diff options
author | Manoj Palat | 2020-01-07 06:31:16 +0000 |
---|---|---|
committer | Manoj Palat | 2020-01-07 06:31:16 +0000 |
commit | f414f843639cc270822cea65bcf5375caf28464b (patch) | |
tree | b78f7432f4d1eec8b2b00bfed1e2576b17a45c13 | |
parent | ba481134be15d3d72d078f1809b466546ade7d0d (diff) | |
download | eclipse.jdt.core-f414f843639cc270822cea65bcf5375caf28464b.tar.gz eclipse.jdt.core-f414f843639cc270822cea65bcf5375caf28464b.tar.xz eclipse.jdt.core-f414f843639cc270822cea65bcf5375caf28464b.zip |
implicit flagging
Change-Id: I1394c2675007e87cd23b4e42becf8bb8cd8a5396
-rw-r--r-- | org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/RecordDeclaration.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/RecordDeclaration.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/RecordDeclaration.java index 10a6767836..b54e75f148 100644 --- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/RecordDeclaration.java +++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/RecordDeclaration.java @@ -423,6 +423,7 @@ public class RecordDeclaration extends TypeDeclaration { right = m; CombinedBinaryExpression cbe = new CombinedBinaryExpression(left, right, OperatorIds.PLUS, 1); md.statements = new Statement[] { new ReturnStatement(cbe, -1, -1) }; + md.isImplicit = true; } private static char[][] getBoxedName(char[] token) { return @@ -491,6 +492,7 @@ public class RecordDeclaration extends TypeDeclaration { this.default_long_pos, -1, -1); arraysHashCode.arguments = new Expression[] { aae }; md.statements = new Statement[] { new ReturnStatement(arraysHashCode, -1, -1) }; + md.isImplicit = true; } private AbstractMethodDeclaration getMethodByName(char[] name1) { AbstractMethodDeclaration[] ams = getMethod(name1); @@ -572,6 +574,7 @@ public class RecordDeclaration extends TypeDeclaration { } stmts.add(new ReturnStatement(new TrueLiteral(-1, -1), -1, -1)); md.statements = stmts.toArray(new Statement[0]); + md.isImplicit = true; } private MethodDeclaration createMethodDeclaration(char[] name1, TypeReference returnType) { MethodDeclaration m = new MethodDeclaration(this.compilationResult); |