Files
codeql/java/ql/test/kotlin/library-tests/data-classes/PrintAst.expected

156 lines
6.6 KiB
Plaintext

dc.kt:
# 0| [CompilationUnit] dc
# 1| 1: [Class] ProtoMapValue
# 0| 1: [Method] component1
# 0| 3: [TypeAccess] byte[]
# 0| 5: [BlockStmt] { ... }
# 0| 0: [ReturnStmt] return ...
# 0| 0: [VarAccess] this.bytes
# 0| -1: [ThisAccess] this
# 0| 1: [Method] component2
# 0| 3: [TypeAccess] String[]
# 0| 0: [TypeAccess] String
# 0| 5: [BlockStmt] { ... }
# 0| 0: [ReturnStmt] return ...
# 0| 0: [VarAccess] this.strs
# 0| -1: [ThisAccess] this
# 0| 1: [Method] copy
# 0| 3: [TypeAccess] ProtoMapValue
#-----| 4: (Parameters)
# 1| 0: [Parameter] bytes
# 1| 0: [TypeAccess] byte[]
# 1| 1: [Parameter] strs
# 1| 0: [TypeAccess] String[]
# 1| 0: [TypeAccess] String
# 0| 5: [BlockStmt] { ... }
# 0| 0: [ReturnStmt] return ...
# 0| 0: [ClassInstanceExpr] new ProtoMapValue(...)
# 0| -3: [TypeAccess] ProtoMapValue
# 0| 0: [VarAccess] bytes
# 0| 1: [VarAccess] strs
# 0| 1: [Method] toString
# 0| 3: [TypeAccess] String
# 0| 5: [BlockStmt] { ... }
# 0| 0: [ReturnStmt] return ...
# 0| 0: [StringTemplateExpr] "..."
# 0| 0: [StringLiteral] ProtoMapValue(
# 0| 1: [StringLiteral] bytes=
# 0| 2: [MethodAccess] toString(...)
# 0| -1: [TypeAccess] Arrays
# 0| 0: [VarAccess] this.bytes
# 0| -1: [ThisAccess] this
# 0| 3: [StringLiteral] ,
# 0| 4: [StringLiteral] strs=
# 0| 5: [MethodAccess] toString(...)
# 0| -1: [TypeAccess] Arrays
# 0| 0: [VarAccess] this.strs
# 0| -1: [ThisAccess] this
# 0| 6: [StringLiteral] )
# 0| 1: [Method] hashCode
# 0| 3: [TypeAccess] int
# 0| 5: [BlockStmt] { ... }
# 0| 0: [LocalVariableDeclStmt] var ...;
# 0| 1: [LocalVariableDeclExpr] result
# 0| 0: [MethodAccess] hashCode(...)
# 0| -1: [TypeAccess] Arrays
# 0| 0: [VarAccess] this.bytes
# 0| -1: [ThisAccess] this
# 0| 1: [ExprStmt] <Expr>;
# 0| 0: [AssignExpr] ...=...
# 0| 0: [VarAccess] result
# 0| 1: [MethodAccess] plus(...)
# 0| -1: [MethodAccess] times(...)
# 0| -1: [VarAccess] result
# 0| 0: [IntegerLiteral] 31
# 0| 0: [MethodAccess] hashCode(...)
# 0| -1: [TypeAccess] Arrays
# 0| 0: [VarAccess] this.strs
# 0| -1: [ThisAccess] this
# 0| 2: [ReturnStmt] return ...
# 0| 0: [VarAccess] result
# 0| 1: [Method] equals
# 0| 3: [TypeAccess] boolean
#-----| 4: (Parameters)
# 0| 0: [Parameter] other
# 0| 0: [TypeAccess] Object
# 0| 5: [BlockStmt] { ... }
# 0| 0: [ExprStmt] <Expr>;
# 0| 0: [WhenExpr] when ...
# 0| 0: [WhenBranch] ... -> ...
# 0| 0: [EQExpr] ... == ...
# 0| 0: [ThisAccess] this
# 0| 1: [VarAccess] other
# 0| 1: [ReturnStmt] return ...
# 0| 0: [BooleanLiteral] true
# 0| 1: [ExprStmt] <Expr>;
# 0| 0: [WhenExpr] when ...
# 0| 0: [WhenBranch] ... -> ...
# 0| 0: [NotInstanceOfExpr] ... !is ...
# 0| 0: [VarAccess] other
# 0| 1: [TypeAccess] ProtoMapValue
# 0| 1: [ReturnStmt] return ...
# 0| 0: [BooleanLiteral] false
# 0| 2: [LocalVariableDeclStmt] var ...;
# 0| 1: [LocalVariableDeclExpr] tmp0_other_with_cast
# 0| 0: [CastExpr] (...)...
# 0| 0: [TypeAccess] ProtoMapValue
# 0| 1: [VarAccess] other
# 0| 3: [ExprStmt] <Expr>;
# 0| 0: [WhenExpr] when ...
# 0| 0: [WhenBranch] ... -> ...
# 0| 0: [ValueNEExpr] ... (value not-equals) ...
# 0| 0: [VarAccess] this.bytes
# 0| -1: [ThisAccess] this
# 0| 1: [VarAccess] tmp0_other_with_cast.bytes
# 0| -1: [VarAccess] tmp0_other_with_cast
# 0| 1: [ReturnStmt] return ...
# 0| 0: [BooleanLiteral] false
# 0| 4: [ExprStmt] <Expr>;
# 0| 0: [WhenExpr] when ...
# 0| 0: [WhenBranch] ... -> ...
# 0| 0: [ValueNEExpr] ... (value not-equals) ...
# 0| 0: [VarAccess] this.strs
# 0| -1: [ThisAccess] this
# 0| 1: [VarAccess] tmp0_other_with_cast.strs
# 0| -1: [VarAccess] tmp0_other_with_cast
# 0| 1: [ReturnStmt] return ...
# 0| 0: [BooleanLiteral] false
# 0| 5: [ReturnStmt] return ...
# 0| 0: [BooleanLiteral] true
# 1| 7: [Constructor] ProtoMapValue
#-----| 4: (Parameters)
# 1| 0: [Parameter] bytes
# 1| 0: [TypeAccess] byte[]
# 1| 1: [Parameter] strs
# 1| 0: [TypeAccess] String[]
# 1| 0: [TypeAccess] String
# 1| 5: [BlockStmt] { ... }
# 1| 0: [SuperConstructorInvocationStmt] super(...)
# 1| 1: [BlockStmt] { ... }
# 1| 0: [ExprStmt] <Expr>;
# 1| 0: [KtInitializerAssignExpr] ...=...
# 1| 0: [VarAccess] bytes
# 1| 1: [ExprStmt] <Expr>;
# 1| 0: [KtInitializerAssignExpr] ...=...
# 1| 0: [VarAccess] strs
# 1| 8: [Method] getBytes
# 1| 3: [TypeAccess] byte[]
# 1| 5: [BlockStmt] { ... }
# 1| 0: [ReturnStmt] return ...
# 1| 0: [VarAccess] this.bytes
# 1| -1: [ThisAccess] this
# 1| 8: [FieldDeclaration] byte[] bytes;
# 1| -1: [TypeAccess] byte[]
# 1| 0: [VarAccess] bytes
# 1| 10: [Method] getStrs
# 1| 3: [TypeAccess] String[]
# 1| 0: [TypeAccess] String
# 1| 5: [BlockStmt] { ... }
# 1| 0: [ReturnStmt] return ...
# 1| 0: [VarAccess] this.strs
# 1| -1: [ThisAccess] this
# 1| 10: [FieldDeclaration] String[] strs;
# 1| -1: [TypeAccess] String[]
# 1| 0: [TypeAccess] String
# 1| 0: [VarAccess] strs