CodeQL library for Swift
codeql/swift-all 6.2.1-dev (changelog, source)
Search

Predicate doubleChildren

Checks that no two children share the same index.

Import path

import codeql.swift.printast.Consistency
predicate doubleChildren(PrintAstNode parent, int index, string label1, PrintAstNode child1, string label2, PrintAstNode child2)