mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
Java: Override toString() for statements
Additionally remove redundant QLDoc which is inherited anyways.
This commit is contained in:
@@ -2,22 +2,22 @@ constructors/A.java:
|
||||
# 0| [CompilationUnit] A
|
||||
# 3| 1: [Class] A
|
||||
# 4| 3: [Constructor] A
|
||||
# 4| 5: [BlockStmt] stmt
|
||||
# 4| 5: [BlockStmt] { ... }
|
||||
# 5| 0: [ThisConstructorInvocationStmt] this(...)
|
||||
# 5| 0: [IntegerLiteral] 42
|
||||
# 8| 4: [Constructor] A
|
||||
#-----| 4: (Parameters)
|
||||
# 8| 0: [Parameter] i
|
||||
# 8| 0: [TypeAccess] int
|
||||
# 8| 5: [BlockStmt] stmt
|
||||
# 8| 5: [BlockStmt] { ... }
|
||||
# 10| 5: [Method] main
|
||||
# 10| 3: [TypeAccess] void
|
||||
#-----| 4: (Parameters)
|
||||
# 10| 0: [Parameter] args
|
||||
# 10| 0: [ArrayTypeAccess] ...[]
|
||||
# 10| 0: [TypeAccess] String
|
||||
# 10| 5: [BlockStmt] stmt
|
||||
# 11| 0: [ExprStmt] stmt
|
||||
# 10| 5: [BlockStmt] { ... }
|
||||
# 11| 0: [ExprStmt] ...;
|
||||
# 11| 0: [ClassInstanceExpr] new A(...)
|
||||
# 11| -3: [TypeAccess] A
|
||||
# 14| 6: [FieldDeclaration] String STATIC, ...;
|
||||
@@ -26,14 +26,14 @@ constructors/A.java:
|
||||
# 15| 7: [FieldDeclaration] String INSTANCE, ...;
|
||||
# 15| -1: [TypeAccess] String
|
||||
# 15| 0: [StringLiteral] "instance string"
|
||||
# 17| 8: [BlockStmt] stmt
|
||||
# 18| 0: [ExprStmt] stmt
|
||||
# 17| 8: [BlockStmt] { ... }
|
||||
# 18| 0: [ExprStmt] ...;
|
||||
# 18| 0: [MethodAccess] println(...)
|
||||
# 18| -1: [VarAccess] System.out
|
||||
# 18| -1: [TypeAccess] System
|
||||
# 18| 0: [StringLiteral] "<obinit>"
|
||||
# 21| 9: [BlockStmt] stmt
|
||||
# 22| 0: [ExprStmt] stmt
|
||||
# 21| 9: [BlockStmt] { ... }
|
||||
# 22| 0: [ExprStmt] ...;
|
||||
# 22| 0: [MethodAccess] println(...)
|
||||
# 22| -1: [VarAccess] System.out
|
||||
# 22| -1: [TypeAccess] System
|
||||
|
||||
Reference in New Issue
Block a user