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

Class PrintAstNode

A node in the output tree.

Import path

import codeql.swift.printast.PrintAstNode

Direct supertypes

Known direct subtypes

Predicates

getAstNode

Gets the underlying AST node, if any.

getLocation

Gets the location of this node in the source code.

getProperty

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

hasChild

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

shouldBePrinted

Holds if this node should be printed in the output.

toString

Gets a textual representation of this node.