Skip to content

Commit 095fdb7

Browse files
committed
regenerated parser and AST hierarchy
1 parent 362f840 commit 095fdb7

14 files changed

Lines changed: 3012 additions & 2884 deletions

File tree

src/org/rascalmpl/ast/SyntaxRoleModifier.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public boolean hasArg() {
3131
}
3232

3333
public org.rascalmpl.ast.TypeArg getArg() {
34-
throw new UnsupportedOperationException();
34+
throw new UnsupportedOperationException(this.src.toString());
3535
}
3636

3737

@@ -91,7 +91,7 @@ public boolean equals(Object o) {
9191

9292
@Override
9393
public int hashCode() {
94-
return 509 + 563 * arg.hashCode() ;
94+
return 431 + 67 * arg.hashCode() ;
9595
}
9696

9797

@@ -165,7 +165,7 @@ public boolean equals(Object o) {
165165

166166
@Override
167167
public int hashCode() {
168-
return 149 + 431 * arg.hashCode() ;
168+
return 19 + 181 * arg.hashCode() ;
169169
}
170170

171171

@@ -239,7 +239,7 @@ public boolean equals(Object o) {
239239

240240
@Override
241241
public int hashCode() {
242-
return 67 + 19 * arg.hashCode() ;
242+
return 599 + 101 * arg.hashCode() ;
243243
}
244244

245245

@@ -313,7 +313,7 @@ public boolean equals(Object o) {
313313

314314
@Override
315315
public int hashCode() {
316-
return 181 + 599 * arg.hashCode() ;
316+
return 421 + 277 * arg.hashCode() ;
317317
}
318318

319319

@@ -387,7 +387,7 @@ public boolean equals(Object o) {
387387

388388
@Override
389389
public int hashCode() {
390-
return 101 + 421 * arg.hashCode() ;
390+
return 487 + 797 * arg.hashCode() ;
391391
}
392392

393393

src/org/rascalmpl/ast/Tag.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,21 @@ public boolean hasExpression() {
3131
}
3232

3333
public org.rascalmpl.ast.Expression getExpression() {
34-
throw new UnsupportedOperationException();
34+
throw new UnsupportedOperationException(this.src.toString());
3535
}
3636
public boolean hasName() {
3737
return false;
3838
}
3939

4040
public org.rascalmpl.ast.Name getName() {
41-
throw new UnsupportedOperationException();
41+
throw new UnsupportedOperationException(this.src.toString());
4242
}
4343
public boolean hasContents() {
4444
return false;
4545
}
4646

4747
public org.rascalmpl.ast.TagString getContents() {
48-
throw new UnsupportedOperationException();
48+
throw new UnsupportedOperationException(this.src.toString());
4949
}
5050

5151

@@ -115,7 +115,7 @@ public boolean equals(Object o) {
115115

116116
@Override
117117
public int hashCode() {
118-
return 277 + 487 * name.hashCode() + 797 * contents.hashCode() ;
118+
return 787 + 397 * name.hashCode() + 191 * contents.hashCode() ;
119119
}
120120

121121

@@ -198,7 +198,7 @@ public boolean equals(Object o) {
198198

199199
@Override
200200
public int hashCode() {
201-
return 787 + 397 * name.hashCode() ;
201+
return 977 + 173 * name.hashCode() ;
202202
}
203203

204204

@@ -282,7 +282,7 @@ public boolean equals(Object o) {
282282

283283
@Override
284284
public int hashCode() {
285-
return 191 + 977 * name.hashCode() + 173 * expression.hashCode() ;
285+
return 541 + 491 * name.hashCode() + 331 * expression.hashCode() ;
286286
}
287287

288288

src/org/rascalmpl/ast/Tags.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public boolean hasTags() {
3131
}
3232

3333
public java.util.List<org.rascalmpl.ast.Tag> getTags() {
34-
throw new UnsupportedOperationException();
34+
throw new UnsupportedOperationException(this.src.toString());
3535
}
3636

3737

@@ -93,7 +93,7 @@ public boolean equals(Object o) {
9393

9494
@Override
9595
public int hashCode() {
96-
return 541 + 491 * tags.hashCode() ;
96+
return 167 + 809 * tags.hashCode() ;
9797
}
9898

9999

src/org/rascalmpl/ast/Target.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public boolean hasName() {
3131
}
3232

3333
public org.rascalmpl.ast.Name getName() {
34-
throw new UnsupportedOperationException();
34+
throw new UnsupportedOperationException(this.src.toString());
3535
}
3636

3737

@@ -81,7 +81,7 @@ public boolean equals(Object o) {
8181

8282
@Override
8383
public int hashCode() {
84-
return 331 ;
84+
return 109 ;
8585
}
8686

8787

@@ -146,7 +146,7 @@ public boolean equals(Object o) {
146146

147147
@Override
148148
public int hashCode() {
149-
return 167 + 809 * name.hashCode() ;
149+
return 373 + 449 * name.hashCode() ;
150150
}
151151

152152

src/org/rascalmpl/ast/Toplevel.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public boolean hasDeclaration() {
3131
}
3232

3333
public org.rascalmpl.ast.Declaration getDeclaration() {
34-
throw new UnsupportedOperationException();
34+
throw new UnsupportedOperationException(this.src.toString());
3535
}
3636

3737

@@ -91,7 +91,7 @@ public boolean equals(Object o) {
9191

9292
@Override
9393
public int hashCode() {
94-
return 109 + 373 * declaration.hashCode() ;
94+
return 571 + 467 * declaration.hashCode() ;
9595
}
9696

9797

src/org/rascalmpl/ast/Type.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,63 +31,63 @@ public boolean hasBasic() {
3131
}
3232

3333
public org.rascalmpl.ast.BasicType getBasic() {
34-
throw new UnsupportedOperationException();
34+
throw new UnsupportedOperationException(this.src.toString());
3535
}
3636
public boolean hasSelector() {
3737
return false;
3838
}
3939

4040
public org.rascalmpl.ast.DataTypeSelector getSelector() {
41-
throw new UnsupportedOperationException();
41+
throw new UnsupportedOperationException(this.src.toString());
4242
}
4343
public boolean hasFunction() {
4444
return false;
4545
}
4646

4747
public org.rascalmpl.ast.FunctionType getFunction() {
48-
throw new UnsupportedOperationException();
48+
throw new UnsupportedOperationException(this.src.toString());
4949
}
5050
public boolean hasStructured() {
5151
return false;
5252
}
5353

5454
public org.rascalmpl.ast.StructuredType getStructured() {
55-
throw new UnsupportedOperationException();
55+
throw new UnsupportedOperationException(this.src.toString());
5656
}
5757
public boolean hasSymbol() {
5858
return false;
5959
}
6060

6161
public org.rascalmpl.ast.Sym getSymbol() {
62-
throw new UnsupportedOperationException();
62+
throw new UnsupportedOperationException(this.src.toString());
6363
}
6464
public boolean hasModifier() {
6565
return false;
6666
}
6767

6868
public org.rascalmpl.ast.SyntaxRoleModifier getModifier() {
69-
throw new UnsupportedOperationException();
69+
throw new UnsupportedOperationException(this.src.toString());
7070
}
7171
public boolean hasType() {
7272
return false;
7373
}
7474

7575
public org.rascalmpl.ast.Type getType() {
76-
throw new UnsupportedOperationException();
76+
throw new UnsupportedOperationException(this.src.toString());
7777
}
7878
public boolean hasTypeVar() {
7979
return false;
8080
}
8181

8282
public org.rascalmpl.ast.TypeVar getTypeVar() {
83-
throw new UnsupportedOperationException();
83+
throw new UnsupportedOperationException(this.src.toString());
8484
}
8585
public boolean hasUser() {
8686
return false;
8787
}
8888

8989
public org.rascalmpl.ast.UserType getUser() {
90-
throw new UnsupportedOperationException();
90+
throw new UnsupportedOperationException(this.src.toString());
9191
}
9292

9393

@@ -147,7 +147,7 @@ public boolean equals(Object o) {
147147

148148
@Override
149149
public int hashCode() {
150-
return 449 + 571 * basic.hashCode() ;
150+
return 691 + 701 * basic.hashCode() ;
151151
}
152152

153153

@@ -221,7 +221,7 @@ public boolean equals(Object o) {
221221

222222
@Override
223223
public int hashCode() {
224-
return 467 + 691 * type.hashCode() ;
224+
return 19 + 137 * type.hashCode() ;
225225
}
226226

227227

@@ -295,7 +295,7 @@ public boolean equals(Object o) {
295295

296296
@Override
297297
public int hashCode() {
298-
return 701 + 19 * function.hashCode() ;
298+
return 907 + 41 * function.hashCode() ;
299299
}
300300

301301

@@ -369,7 +369,7 @@ public boolean equals(Object o) {
369369

370370
@Override
371371
public int hashCode() {
372-
return 137 + 907 * modifier.hashCode() ;
372+
return 59 + 823 * modifier.hashCode() ;
373373
}
374374

375375

@@ -443,7 +443,7 @@ public boolean equals(Object o) {
443443

444444
@Override
445445
public int hashCode() {
446-
return 41 + 59 * selector.hashCode() ;
446+
return 139 + 293 * selector.hashCode() ;
447447
}
448448

449449

@@ -517,7 +517,7 @@ public boolean equals(Object o) {
517517

518518
@Override
519519
public int hashCode() {
520-
return 823 + 139 * structured.hashCode() ;
520+
return 773 + 293 * structured.hashCode() ;
521521
}
522522

523523

@@ -591,7 +591,7 @@ public boolean equals(Object o) {
591591

592592
@Override
593593
public int hashCode() {
594-
return 293 + 773 * symbol.hashCode() ;
594+
return 421 + 467 * symbol.hashCode() ;
595595
}
596596

597597

@@ -665,7 +665,7 @@ public boolean equals(Object o) {
665665

666666
@Override
667667
public int hashCode() {
668-
return 293 + 421 * user.hashCode() ;
668+
return 181 + 383 * user.hashCode() ;
669669
}
670670

671671

@@ -739,7 +739,7 @@ public boolean equals(Object o) {
739739

740740
@Override
741741
public int hashCode() {
742-
return 467 + 181 * typeVar.hashCode() ;
742+
return 263 + 463 * typeVar.hashCode() ;
743743
}
744744

745745

src/org/rascalmpl/ast/TypeArg.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ public boolean hasName() {
3131
}
3232

3333
public org.rascalmpl.ast.Name getName() {
34-
throw new UnsupportedOperationException();
34+
throw new UnsupportedOperationException(this.src.toString());
3535
}
3636
public boolean hasType() {
3737
return false;
3838
}
3939

4040
public org.rascalmpl.ast.Type getType() {
41-
throw new UnsupportedOperationException();
41+
throw new UnsupportedOperationException(this.src.toString());
4242
}
4343

4444

@@ -98,7 +98,7 @@ public boolean equals(Object o) {
9898

9999
@Override
100100
public int hashCode() {
101-
return 383 + 263 * type.hashCode() ;
101+
return 223 + 139 * type.hashCode() ;
102102
}
103103

104104

@@ -182,7 +182,7 @@ public boolean equals(Object o) {
182182

183183
@Override
184184
public int hashCode() {
185-
return 463 + 223 * type.hashCode() + 139 * name.hashCode() ;
185+
return 347 + 557 * type.hashCode() + 131 * name.hashCode() ;
186186
}
187187

188188

src/org/rascalmpl/ast/TypeVar.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ public boolean hasName() {
3131
}
3232

3333
public org.rascalmpl.ast.Name getName() {
34-
throw new UnsupportedOperationException();
34+
throw new UnsupportedOperationException(this.src.toString());
3535
}
3636
public boolean hasBound() {
3737
return false;
3838
}
3939

4040
public org.rascalmpl.ast.Type getBound() {
41-
throw new UnsupportedOperationException();
41+
throw new UnsupportedOperationException(this.src.toString());
4242
}
4343

4444

@@ -108,7 +108,7 @@ public boolean equals(Object o) {
108108

109109
@Override
110110
public int hashCode() {
111-
return 347 + 557 * name.hashCode() + 131 * bound.hashCode() ;
111+
return 797 + 149 * name.hashCode() + 877 * bound.hashCode() ;
112112
}
113113

114114

@@ -191,7 +191,7 @@ public boolean equals(Object o) {
191191

192192
@Override
193193
public int hashCode() {
194-
return 797 + 149 * name.hashCode() ;
194+
return 401 + 787 * name.hashCode() ;
195195
}
196196

197197

0 commit comments

Comments
 (0)