mirror of
https://github.com/github/codeql.git
synced 2026-08-02 08:23:01 +02:00
For consistency with the C/C++ QL library, getters of AST elements within the hidden AST should not themselves skip other hidden AST elements.
12 lines
489 B
Plaintext
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
|