aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/compiler/ast/NewExpr.java
diff options
context:
space:
mode:
authorShigeru Chiba <chibash@users.noreply.github.com>2024-05-03 19:01:47 +0900
committerGitHub <noreply@github.com>2024-05-03 19:01:47 +0900
commitbb261b443831e52409eeed6e49ddfb24db2c4d08 (patch)
tree3f8189ef73984d71ad0b8fe595c0e3a2a425e6bb /src/main/javassist/compiler/ast/NewExpr.java
parent204d67844433c9b781054154695eeb14c2291847 (diff)
parent9777bae93cc84249fe08a7e81b2101c415bd55e5 (diff)
downloadjavassist-bb261b443831e52409eeed6e49ddfb24db2c4d08.tar.gz
javassist-bb261b443831e52409eeed6e49ddfb24db2c4d08.zip
Merge pull request #484 from kuznet1/master
Line numbers support
Diffstat (limited to 'src/main/javassist/compiler/ast/NewExpr.java')
-rw-r--r--src/main/javassist/compiler/ast/NewExpr.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/main/javassist/compiler/ast/NewExpr.java b/src/main/javassist/compiler/ast/NewExpr.java
index 44b264c0..d4f7f475 100644
--- a/src/main/javassist/compiler/ast/NewExpr.java
+++ b/src/main/javassist/compiler/ast/NewExpr.java
@@ -28,26 +28,26 @@ public class NewExpr extends ASTList implements TokenId {
protected boolean newArray;
protected int arrayType;
- public NewExpr(ASTList className, ASTList args) {
- super(className, new ASTList(args));
+ public NewExpr(ASTList className, ASTList args, int lineNumber) {
+ super(className, new ASTList(args, lineNumber), lineNumber);
newArray = false;
arrayType = CLASS;
}
- public NewExpr(int type, ASTList arraySize, ArrayInit init) {
- super(null, new ASTList(arraySize));
+ public NewExpr(int type, ASTList arraySize, ArrayInit init, int lineNumber) {
+ super(null, new ASTList(arraySize, lineNumber), lineNumber);
newArray = true;
arrayType = type;
if (init != null)
- append(this, init);
+ append(this, init, lineNumber);
}
public static NewExpr makeObjectArray(ASTList className,
- ASTList arraySize, ArrayInit init) {
- NewExpr e = new NewExpr(className, arraySize);
+ ASTList arraySize, ArrayInit init, int lineNumber) {
+ NewExpr e = new NewExpr(className, arraySize, lineNumber);
e.newArray = true;
if (init != null)
- append(e, init);
+ append(e, init, lineNumber);
return e;
}