Skip to content

Commit

Permalink
also added empty tuple to Pattern syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Dec 19, 2024
1 parent 172e9cf commit 2a7c533
Show file tree
Hide file tree
Showing 69 changed files with 2,598 additions and 2,626 deletions.
19 changes: 6 additions & 13 deletions src/org/rascalmpl/ast/Expression.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,6 @@ public boolean hasArguments() {
public java.util.List<org.rascalmpl.ast.Expression> getArguments() {
throw new UnsupportedOperationException();
}
public boolean hasElements() {
return false;
}

public java.util.List<org.rascalmpl.ast.Expression> getElements() {
throw new UnsupportedOperationException();
}
public boolean hasElements0() {
return false;
}
Expand Down Expand Up @@ -6446,7 +6439,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 331 + 347 * elements0.hashCode() ;
return 599 + 863 * elements0.hashCode() ;
}


Expand Down Expand Up @@ -6530,7 +6523,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 487 + 53 * type.hashCode() + 983 * name.hashCode() ;
return 331 + 347 * type.hashCode() + 487 * name.hashCode() ;
}


Expand Down Expand Up @@ -6633,7 +6626,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 653 + 29 * type.hashCode() + 487 * name.hashCode() + 653 * pattern.hashCode() ;
return 53 + 983 * type.hashCode() + 653 * name.hashCode() + 29 * pattern.hashCode() ;
}


Expand Down Expand Up @@ -6735,7 +6728,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 373 + 449 * name.hashCode() + 251 * pattern.hashCode() ;
return 487 + 653 * name.hashCode() + 373 * pattern.hashCode() ;
}


Expand Down Expand Up @@ -6828,7 +6821,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 109 + 967 * label.hashCode() + 269 * visit.hashCode() ;
return 449 + 251 * label.hashCode() + 109 * visit.hashCode() ;
}


Expand Down Expand Up @@ -6923,7 +6916,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 97 + 101 * parameters.hashCode() + 467 * statements0.hashCode() ;
return 967 + 269 * parameters.hashCode() + 97 * statements0.hashCode() ;
}


Expand Down
4 changes: 2 additions & 2 deletions src/org/rascalmpl/ast/Field.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 89 + 727 * fieldIndex.hashCode() ;
return 101 + 467 * fieldIndex.hashCode() ;
}


Expand Down Expand Up @@ -172,7 +172,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 673 + 743 * fieldName.hashCode() ;
return 89 + 727 * fieldName.hashCode() ;
}


Expand Down
2 changes: 1 addition & 1 deletion src/org/rascalmpl/ast/Formals.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 29 + 571 * formals.hashCode() ;
return 673 + 743 * formals.hashCode() ;
}


Expand Down
2 changes: 1 addition & 1 deletion src/org/rascalmpl/ast/FunctionBody.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 211 + 727 * statements.hashCode() ;
return 29 + 571 * statements.hashCode() ;
}


Expand Down
8 changes: 4 additions & 4 deletions src/org/rascalmpl/ast/FunctionDeclaration.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 251 + 131 * tags.hashCode() + 811 * visibility.hashCode() + 199 * signature.hashCode() ;
return 211 + 727 * tags.hashCode() + 251 * visibility.hashCode() + 131 * signature.hashCode() ;
}


Expand Down Expand Up @@ -280,7 +280,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 5 + 157 * tags.hashCode() + 389 * visibility.hashCode() + 163 * signature.hashCode() + 163 * expression.hashCode() + 71 * conditions.hashCode() ;
return 811 + 199 * tags.hashCode() + 5 * visibility.hashCode() + 157 * signature.hashCode() + 389 * expression.hashCode() + 163 * conditions.hashCode() ;
}


Expand Down Expand Up @@ -420,7 +420,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 503 + 31 * tags.hashCode() + 181 * visibility.hashCode() + 313 * signature.hashCode() + 463 * body.hashCode() ;
return 163 + 71 * tags.hashCode() + 503 * visibility.hashCode() + 31 * signature.hashCode() + 181 * body.hashCode() ;
}


Expand Down Expand Up @@ -551,7 +551,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 257 + 211 * tags.hashCode() + 179 * visibility.hashCode() + 457 * signature.hashCode() + 839 * expression.hashCode() ;
return 313 + 463 * tags.hashCode() + 257 * visibility.hashCode() + 211 * signature.hashCode() + 179 * expression.hashCode() ;
}


Expand Down
6 changes: 3 additions & 3 deletions src/org/rascalmpl/ast/FunctionModifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 2 ;
return 457 ;
}


Expand Down Expand Up @@ -129,7 +129,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 461 ;
return 839 ;
}


Expand Down Expand Up @@ -184,7 +184,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 877 ;
return 2 ;
}


Expand Down
2 changes: 1 addition & 1 deletion src/org/rascalmpl/ast/FunctionModifiers.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 599 + 281 * modifiers.hashCode() ;
return 461 + 877 * modifiers.hashCode() ;
}


Expand Down
2 changes: 1 addition & 1 deletion src/org/rascalmpl/ast/FunctionType.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 43 + 103 * type.hashCode() + 673 * arguments.hashCode() ;
return 599 + 281 * type.hashCode() + 43 * arguments.hashCode() ;
}


Expand Down
4 changes: 2 additions & 2 deletions src/org/rascalmpl/ast/Header.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 509 + 61 * tags.hashCode() + 173 * name.hashCode() + 761 * imports.hashCode() ;
return 103 + 673 * tags.hashCode() + 509 * name.hashCode() + 61 * imports.hashCode() ;
}


Expand Down Expand Up @@ -258,7 +258,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 409 + 997 * tags.hashCode() + 367 * name.hashCode() + 401 * params.hashCode() + 139 * imports.hashCode() ;
return 173 + 761 * tags.hashCode() + 409 * name.hashCode() + 997 * params.hashCode() + 367 * imports.hashCode() ;
}


Expand Down
2 changes: 0 additions & 2 deletions src/org/rascalmpl/ast/IASTVisitor.java
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,6 @@ public interface IASTVisitor<T> {

public T visitExpressionTuple(Expression.Tuple x);

public T visitExpressionTuple(Expression.Tuple x);

public T visitExpressionTypedVariable(Expression.TypedVariable x);

public T visitExpressionTypedVariableBecomes(Expression.TypedVariableBecomes x);
Expand Down
8 changes: 4 additions & 4 deletions src/org/rascalmpl/ast/Import.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 937 + 521 * module.hashCode() ;
return 401 + 139 * module.hashCode() ;
}


Expand Down Expand Up @@ -186,7 +186,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 719 + 773 * module.hashCode() ;
return 937 + 521 * module.hashCode() ;
}


Expand Down Expand Up @@ -270,7 +270,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 277 + 239 * name.hashCode() + 151 * at.hashCode() ;
return 719 + 773 * name.hashCode() + 277 * at.hashCode() ;
}


Expand Down Expand Up @@ -353,7 +353,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 397 + 137 * syntax.hashCode() ;
return 239 + 151 * syntax.hashCode() ;
}


Expand Down
8 changes: 4 additions & 4 deletions src/org/rascalmpl/ast/ImportedModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 811 + 709 * name.hashCode() + 167 * actuals.hashCode() ;
return 397 + 137 * name.hashCode() + 811 * actuals.hashCode() ;
}


Expand Down Expand Up @@ -218,7 +218,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 53 + 463 * name.hashCode() + 127 * actuals.hashCode() + 67 * renamings.hashCode() ;
return 709 + 167 * name.hashCode() + 53 * actuals.hashCode() + 463 * renamings.hashCode() ;
}


Expand Down Expand Up @@ -310,7 +310,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 643 + 229 * name.hashCode() ;
return 127 + 67 * name.hashCode() ;
}


Expand Down Expand Up @@ -394,7 +394,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 271 + 331 * name.hashCode() + 17 * renamings.hashCode() ;
return 643 + 229 * name.hashCode() + 271 * renamings.hashCode() ;
}


Expand Down
6 changes: 3 additions & 3 deletions src/org/rascalmpl/ast/IntegerLiteral.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 401 + 313 * decimal.hashCode() ;
return 331 + 17 * decimal.hashCode() ;
}


Expand Down Expand Up @@ -179,7 +179,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 449 + 463 * hex.hashCode() ;
return 401 + 313 * hex.hashCode() ;
}


Expand Down Expand Up @@ -253,7 +253,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 971 + 179 * octal.hashCode() ;
return 449 + 463 * octal.hashCode() ;
}


Expand Down
2 changes: 1 addition & 1 deletion src/org/rascalmpl/ast/KeywordArgument_Expression.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 229 + 823 * name.hashCode() + 43 * expression.hashCode() ;
return 971 + 179 * name.hashCode() + 229 * expression.hashCode() ;
}


Expand Down
4 changes: 2 additions & 2 deletions src/org/rascalmpl/ast/KeywordArguments_Expression.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 733 + 239 * optionalComma.hashCode() + 941 * keywordArgumentList.hashCode() ;
return 823 + 43 * optionalComma.hashCode() + 733 * keywordArgumentList.hashCode() ;
}


Expand Down Expand Up @@ -183,7 +183,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 941 ;
return 239 ;
}


Expand Down
2 changes: 1 addition & 1 deletion src/org/rascalmpl/ast/KeywordFormal.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 2 + 421 * type.hashCode() + 941 * name.hashCode() + 307 * expression.hashCode() ;
return 941 + 941 * type.hashCode() + 2 * name.hashCode() + 421 * expression.hashCode() ;
}


Expand Down
4 changes: 2 additions & 2 deletions src/org/rascalmpl/ast/KeywordFormals.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 941 + 631 * optionalComma.hashCode() + 269 * keywordFormalList.hashCode() ;
return 941 + 307 * optionalComma.hashCode() + 941 * keywordFormalList.hashCode() ;
}


Expand Down Expand Up @@ -183,7 +183,7 @@ public boolean equals(Object o) {

@Override
public int hashCode() {
return 293 ;
return 631 ;
}


Expand Down
Loading

0 comments on commit 2a7c533

Please sign in to comment.