Files
codeql/swift/ql/test/library-tests/hidden-ast/PrintAst.expected
Paolo Tranquilli de03bdc235 Swift: fix hidden AST getters
For consistency with the C/C++ QL library, getters of AST elements
within the hidden AST should not themselves skip other hidden AST
elements.
2023-05-22 09:57:48 +02:00

12 lines
489 B
Plaintext

chained_conversion.swift:
# 1| [NamedFunction] foo(x:)
# 1| InterfaceType = (inout Int) -> Int?
# 1| getParam(0): [ParamDecl] x
# 1| Type = Int
# 1| getBody(): [BraceStmt] { ... }
# 2| getElement(0): [ReturnStmt] return ...
# 2| getResult(): [DeclRefExpr] x
# 2| getResult().getFullyConverted(): [InjectIntoOptionalExpr] (Int?) ...
# 2| getSubExpr(): [LoadExpr] (Int) ...
# 2| getSubExpr(): [DotSelfExpr] .self