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

Module ParentChild

This module provides the generated parent/child relationship.

Import path

import codeql.swift.generated.ParentChild

Imports

AccessorOrNamedFunction

This module provides the class AccessorOrNamedFunction.

DotSyntaxCallExpr

This module provides the class DotSyntaxCallExpr.

InitializerRefCallExpr

This module provides the class InitializerRefCallExpr.

SelfApplyExpr

This module provides the class SelfApplyExpr.

elements

This module exports all modules providing Element subclasses.

Predicates

getChild

Gets the child indexed at index. Indexes are not guaranteed to be contiguous, but are guaranteed to be distinct. accessor is bound the member predicate call resulting in the given child.

getChildAndAccessor

Gets the child indexed at index. Indexes are not guaranteed to be contiguous, but are guaranteed to be distinct. accessor is bound the member predicate call resulting in the given child.

getImmediateChild

Gets the immediate child indexed at index. Indexes are not guaranteed to be contiguous, but are guaranteed to be distinct.

getImmediateChildAndAccessor

Gets the immediate child indexed at index. Indexes are not guaranteed to be contiguous, but are guaranteed to be distinct. accessor is bound the member predicate call resulting in the given child.

getImmediateParent

Gets the “immediate” parent of e. “Immediate” means not taking into account node resolution: for example if e has conversions, getImmediateParent(e) will give the innermost conversion in the hidden AST.