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

Class PrintPatternBindingDecl

A specialization of graph node for PatternBindingDecl, to solve ambiguity on getInit. When a property wrapper is involved, getInit may become shared between the explicit binding and the implicit compiler synthesized one.

Import path

import codeql.swift.printast.PrintAstNode

Direct supertypes

Indirect supertypes

Fields

Predicates

hasChild

Gets the child node at index index. Child indices must be unique, but need not be contiguous.

Inherited predicates

getAstNode

Gets the underlying AST node, if any.

from PrintLocatable
getLocation

Gets the location of this node in the source code.

from PrintLocatable
getProperty

Gets the value of an additional property of this node, where the name of the property is key.

from PrintAstNode
shouldBePrinted

Holds if this node should be printed in the output.

from PrintLocatable
toString

Gets a textual representation of this node.

from PrintLocatable