From 79804b47995c6decebbd3c7f6deff20687079b59 Mon Sep 17 00:00:00 2001 From: "Jurgen J. Vinju" Date: Tue, 26 Sep 2023 14:32:23 +0200 Subject: [PATCH] regenerated parser and AST hierarchy to include SyntaxRoleModifiers in type symbols --- src/org/rascalmpl/ast/Assignable.java | 1 + src/org/rascalmpl/ast/Assignment.java | 1 + src/org/rascalmpl/ast/Backslash.java | 1 + src/org/rascalmpl/ast/Body.java | 1 + src/org/rascalmpl/ast/BooleanLiteral.java | 1 + src/org/rascalmpl/ast/Case.java | 1 + .../ast/CaseInsensitiveStringConstant.java | 1 + src/org/rascalmpl/ast/Catch.java | 1 + src/org/rascalmpl/ast/Char.java | 1 + src/org/rascalmpl/ast/Class.java | 1 + src/org/rascalmpl/ast/Command.java | 1 + src/org/rascalmpl/ast/Commands.java | 1 + src/org/rascalmpl/ast/Comment.java | 1 + src/org/rascalmpl/ast/Comprehension.java | 1 + src/org/rascalmpl/ast/Concrete.java | 1 + src/org/rascalmpl/ast/ConcreteHole.java | 1 + src/org/rascalmpl/ast/ConcretePart.java | 1 + src/org/rascalmpl/ast/DataTypeSelector.java | 1 + src/org/rascalmpl/ast/DateAndTime.java | 1 + src/org/rascalmpl/ast/DatePart.java | 1 + src/org/rascalmpl/ast/DateTimeLiteral.java | 1 + .../rascalmpl/ast/DecimalIntegerLiteral.java | 1 + src/org/rascalmpl/ast/Declaration.java | 1 + src/org/rascalmpl/ast/Declarator.java | 1 + src/org/rascalmpl/ast/Field.java | 1 + src/org/rascalmpl/ast/Formals.java | 1 + src/org/rascalmpl/ast/FunctionBody.java | 1 + .../rascalmpl/ast/FunctionDeclaration.java | 1 + src/org/rascalmpl/ast/FunctionModifiers.java | 1 + src/org/rascalmpl/ast/FunctionType.java | 1 + src/org/rascalmpl/ast/Header.java | 1 + src/org/rascalmpl/ast/HexIntegerLiteral.java | 1 + src/org/rascalmpl/ast/IASTVisitor.java | 12 +++ src/org/rascalmpl/ast/Import.java | 1 + src/org/rascalmpl/ast/ImportedModule.java | 1 + src/org/rascalmpl/ast/IntegerLiteral.java | 1 + src/org/rascalmpl/ast/JustDate.java | 1 + src/org/rascalmpl/ast/JustTime.java | 1 + .../ast/KeywordArgument_Expression.java | 1 + src/org/rascalmpl/ast/KeywordFormal.java | 1 + src/org/rascalmpl/ast/LAYOUT.java | 1 + src/org/rascalmpl/ast/Literal.java | 1 + .../ast/LocalVariableDeclaration.java | 1 + src/org/rascalmpl/ast/LocationLiteral.java | 1 + src/org/rascalmpl/ast/Mapping_Expression.java | 1 + src/org/rascalmpl/ast/MidPathChars.java | 1 + src/org/rascalmpl/ast/MidProtocolChars.java | 1 + src/org/rascalmpl/ast/MidStringChars.java | 1 + src/org/rascalmpl/ast/Module.java | 1 + src/org/rascalmpl/ast/ModuleActuals.java | 1 + src/org/rascalmpl/ast/ModuleParameters.java | 1 + src/org/rascalmpl/ast/Name.java | 1 + src/org/rascalmpl/ast/NamedBackslash.java | 1 + src/org/rascalmpl/ast/NamedRegExp.java | 1 + src/org/rascalmpl/ast/Nonterminal.java | 1 + src/org/rascalmpl/ast/NonterminalLabel.java | 1 + src/org/rascalmpl/ast/NullASTVisitor.java | 24 +++++ .../rascalmpl/ast/OctalIntegerLiteral.java | 1 + src/org/rascalmpl/ast/OptionalComma.java | 1 + src/org/rascalmpl/ast/Output.java | 1 + src/org/rascalmpl/ast/Parameters.java | 1 + src/org/rascalmpl/ast/PathChars.java | 1 + src/org/rascalmpl/ast/PathPart.java | 1 + src/org/rascalmpl/ast/PathTail.java | 1 + src/org/rascalmpl/ast/PatternWithAction.java | 1 + src/org/rascalmpl/ast/PostPathChars.java | 1 + src/org/rascalmpl/ast/PostProtocolChars.java | 1 + src/org/rascalmpl/ast/PostStringChars.java | 1 + src/org/rascalmpl/ast/PrePathChars.java | 1 + src/org/rascalmpl/ast/PreProtocolChars.java | 1 + src/org/rascalmpl/ast/PreStringChars.java | 1 + src/org/rascalmpl/ast/Prod.java | 1 + src/org/rascalmpl/ast/ProtocolChars.java | 1 + src/org/rascalmpl/ast/ProtocolPart.java | 1 + src/org/rascalmpl/ast/ProtocolTail.java | 1 + src/org/rascalmpl/ast/QualifiedName.java | 1 + src/org/rascalmpl/ast/Range.java | 1 + src/org/rascalmpl/ast/RationalLiteral.java | 1 + src/org/rascalmpl/ast/RealLiteral.java | 1 + src/org/rascalmpl/ast/RegExp.java | 1 + src/org/rascalmpl/ast/RegExpLiteral.java | 1 + src/org/rascalmpl/ast/RegExpModifier.java | 1 + src/org/rascalmpl/ast/Renaming.java | 1 + src/org/rascalmpl/ast/Renamings.java | 1 + src/org/rascalmpl/ast/Replacement.java | 1 + src/org/rascalmpl/ast/ShellCommand.java | 17 ++++ src/org/rascalmpl/ast/Signature.java | 1 + src/org/rascalmpl/ast/StringCharacter.java | 1 + src/org/rascalmpl/ast/StringConstant.java | 1 + src/org/rascalmpl/ast/StringLiteral.java | 1 + src/org/rascalmpl/ast/StringMiddle.java | 1 + src/org/rascalmpl/ast/StringTail.java | 1 + src/org/rascalmpl/ast/StringTemplate.java | 1 + src/org/rascalmpl/ast/StructuredType.java | 1 + src/org/rascalmpl/ast/SyntaxDefinition.java | 1 + src/org/rascalmpl/ast/Tag.java | 7 +- src/org/rascalmpl/ast/TagString.java | 1 + src/org/rascalmpl/ast/Tags.java | 3 +- src/org/rascalmpl/ast/Target.java | 4 +- src/org/rascalmpl/ast/TimePartNoTZ.java | 1 + src/org/rascalmpl/ast/TimeZonePart.java | 1 + src/org/rascalmpl/ast/Toplevel.java | 3 +- src/org/rascalmpl/ast/Type.java | 98 +++++++++++++++++-- src/org/rascalmpl/ast/TypeArg.java | 5 +- src/org/rascalmpl/ast/TypeVar.java | 5 +- src/org/rascalmpl/ast/URLChars.java | 1 + src/org/rascalmpl/ast/UnicodeEscape.java | 1 + src/org/rascalmpl/ast/UserType.java | 5 +- src/org/rascalmpl/ast/Variable.java | 5 +- src/org/rascalmpl/ast/Variant.java | 3 +- src/org/rascalmpl/ast/Visibility.java | 6 +- src/org/rascalmpl/ast/Visit.java | 5 +- 112 files changed, 270 insertions(+), 29 deletions(-) diff --git a/src/org/rascalmpl/ast/Assignable.java b/src/org/rascalmpl/ast/Assignable.java index f788d12dd99..08187f7fa0e 100644 --- a/src/org/rascalmpl/ast/Assignable.java +++ b/src/org/rascalmpl/ast/Assignable.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Assignable extends AbstractAST { public Assignable(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Assignment.java b/src/org/rascalmpl/ast/Assignment.java index da782d56554..7e0e90af453 100644 --- a/src/org/rascalmpl/ast/Assignment.java +++ b/src/org/rascalmpl/ast/Assignment.java @@ -59,6 +59,7 @@ protected void addForLineNumber(int $line, java.util.List $result) if (getLocation().getBeginLine() == $line) { $result.add(this); } + ISourceLocation $l; } diff --git a/src/org/rascalmpl/ast/Backslash.java b/src/org/rascalmpl/ast/Backslash.java index 895f2234aa3..7e1505d1ab5 100644 --- a/src/org/rascalmpl/ast/Backslash.java +++ b/src/org/rascalmpl/ast/Backslash.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Backslash extends AbstractAST { public Backslash(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Body.java b/src/org/rascalmpl/ast/Body.java index 3effa7850bb..aa9d4994e85 100644 --- a/src/org/rascalmpl/ast/Body.java +++ b/src/org/rascalmpl/ast/Body.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Body extends AbstractAST { public Body(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/BooleanLiteral.java b/src/org/rascalmpl/ast/BooleanLiteral.java index 1cfd8c6ff7b..f1528b1bc94 100644 --- a/src/org/rascalmpl/ast/BooleanLiteral.java +++ b/src/org/rascalmpl/ast/BooleanLiteral.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class BooleanLiteral extends AbstractAST { public BooleanLiteral(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Case.java b/src/org/rascalmpl/ast/Case.java index 58a630fce1c..4eb6ea99c98 100644 --- a/src/org/rascalmpl/ast/Case.java +++ b/src/org/rascalmpl/ast/Case.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Case extends AbstractAST { public Case(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/CaseInsensitiveStringConstant.java b/src/org/rascalmpl/ast/CaseInsensitiveStringConstant.java index 67299d54d42..8006993d3f9 100644 --- a/src/org/rascalmpl/ast/CaseInsensitiveStringConstant.java +++ b/src/org/rascalmpl/ast/CaseInsensitiveStringConstant.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class CaseInsensitiveStringConstant extends AbstractAST { public CaseInsensitiveStringConstant(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Catch.java b/src/org/rascalmpl/ast/Catch.java index 72ed585f8bb..99fd970b524 100644 --- a/src/org/rascalmpl/ast/Catch.java +++ b/src/org/rascalmpl/ast/Catch.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Catch extends AbstractAST { public Catch(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Char.java b/src/org/rascalmpl/ast/Char.java index a12bbeb145e..c89bfe3c285 100644 --- a/src/org/rascalmpl/ast/Char.java +++ b/src/org/rascalmpl/ast/Char.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Char extends AbstractAST { public Char(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Class.java b/src/org/rascalmpl/ast/Class.java index 55ed38b53c2..4c59d040929 100644 --- a/src/org/rascalmpl/ast/Class.java +++ b/src/org/rascalmpl/ast/Class.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Class extends AbstractAST { public Class(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Command.java b/src/org/rascalmpl/ast/Command.java index b8013000c4c..bb22f4a1fa1 100644 --- a/src/org/rascalmpl/ast/Command.java +++ b/src/org/rascalmpl/ast/Command.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Command extends AbstractAST { public Command(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Commands.java b/src/org/rascalmpl/ast/Commands.java index 14e54d09e7b..5afdffa035a 100644 --- a/src/org/rascalmpl/ast/Commands.java +++ b/src/org/rascalmpl/ast/Commands.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Commands extends AbstractAST { public Commands(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Comment.java b/src/org/rascalmpl/ast/Comment.java index ca75e5c6b09..fba5214745b 100644 --- a/src/org/rascalmpl/ast/Comment.java +++ b/src/org/rascalmpl/ast/Comment.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Comment extends AbstractAST { public Comment(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Comprehension.java b/src/org/rascalmpl/ast/Comprehension.java index dea51bfa20f..b1a9844f280 100644 --- a/src/org/rascalmpl/ast/Comprehension.java +++ b/src/org/rascalmpl/ast/Comprehension.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Comprehension extends AbstractAST { public Comprehension(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Concrete.java b/src/org/rascalmpl/ast/Concrete.java index da0cb966c60..74ee3ea1569 100644 --- a/src/org/rascalmpl/ast/Concrete.java +++ b/src/org/rascalmpl/ast/Concrete.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Concrete extends AbstractAST { public Concrete(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/ConcreteHole.java b/src/org/rascalmpl/ast/ConcreteHole.java index e55351a4a17..2db935ed8bf 100644 --- a/src/org/rascalmpl/ast/ConcreteHole.java +++ b/src/org/rascalmpl/ast/ConcreteHole.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class ConcreteHole extends AbstractAST { public ConcreteHole(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/ConcretePart.java b/src/org/rascalmpl/ast/ConcretePart.java index eb02e797939..1565ed34c37 100644 --- a/src/org/rascalmpl/ast/ConcretePart.java +++ b/src/org/rascalmpl/ast/ConcretePart.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class ConcretePart extends AbstractAST { public ConcretePart(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/DataTypeSelector.java b/src/org/rascalmpl/ast/DataTypeSelector.java index 3bbfb132185..ee86a169438 100644 --- a/src/org/rascalmpl/ast/DataTypeSelector.java +++ b/src/org/rascalmpl/ast/DataTypeSelector.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class DataTypeSelector extends AbstractAST { public DataTypeSelector(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/DateAndTime.java b/src/org/rascalmpl/ast/DateAndTime.java index 25ed7a410b8..1edc5392933 100644 --- a/src/org/rascalmpl/ast/DateAndTime.java +++ b/src/org/rascalmpl/ast/DateAndTime.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class DateAndTime extends AbstractAST { public DateAndTime(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/DatePart.java b/src/org/rascalmpl/ast/DatePart.java index 708989571c2..271f84a1602 100644 --- a/src/org/rascalmpl/ast/DatePart.java +++ b/src/org/rascalmpl/ast/DatePart.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class DatePart extends AbstractAST { public DatePart(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/DateTimeLiteral.java b/src/org/rascalmpl/ast/DateTimeLiteral.java index da62de20006..9afbbdc3c1b 100644 --- a/src/org/rascalmpl/ast/DateTimeLiteral.java +++ b/src/org/rascalmpl/ast/DateTimeLiteral.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class DateTimeLiteral extends AbstractAST { public DateTimeLiteral(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/DecimalIntegerLiteral.java b/src/org/rascalmpl/ast/DecimalIntegerLiteral.java index 9c307588fa2..87b314c8228 100644 --- a/src/org/rascalmpl/ast/DecimalIntegerLiteral.java +++ b/src/org/rascalmpl/ast/DecimalIntegerLiteral.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class DecimalIntegerLiteral extends AbstractAST { public DecimalIntegerLiteral(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Declaration.java b/src/org/rascalmpl/ast/Declaration.java index a6215312b2f..72a4f94a4db 100644 --- a/src/org/rascalmpl/ast/Declaration.java +++ b/src/org/rascalmpl/ast/Declaration.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Declaration extends AbstractAST { public Declaration(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Declarator.java b/src/org/rascalmpl/ast/Declarator.java index 9467d93bb1f..17ec58070a6 100644 --- a/src/org/rascalmpl/ast/Declarator.java +++ b/src/org/rascalmpl/ast/Declarator.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Declarator extends AbstractAST { public Declarator(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Field.java b/src/org/rascalmpl/ast/Field.java index 89b3a911606..18cf8c303c3 100644 --- a/src/org/rascalmpl/ast/Field.java +++ b/src/org/rascalmpl/ast/Field.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Field extends AbstractAST { public Field(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Formals.java b/src/org/rascalmpl/ast/Formals.java index cd70229d2a7..1a9595c0311 100644 --- a/src/org/rascalmpl/ast/Formals.java +++ b/src/org/rascalmpl/ast/Formals.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Formals extends AbstractAST { public Formals(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/FunctionBody.java b/src/org/rascalmpl/ast/FunctionBody.java index 06ffd6a4295..60c54218830 100644 --- a/src/org/rascalmpl/ast/FunctionBody.java +++ b/src/org/rascalmpl/ast/FunctionBody.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class FunctionBody extends AbstractAST { public FunctionBody(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/FunctionDeclaration.java b/src/org/rascalmpl/ast/FunctionDeclaration.java index 9d08b3ffcdc..8fd452a5527 100644 --- a/src/org/rascalmpl/ast/FunctionDeclaration.java +++ b/src/org/rascalmpl/ast/FunctionDeclaration.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class FunctionDeclaration extends AbstractAST { public FunctionDeclaration(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/FunctionModifiers.java b/src/org/rascalmpl/ast/FunctionModifiers.java index aaa8cb7a298..70a886497e2 100644 --- a/src/org/rascalmpl/ast/FunctionModifiers.java +++ b/src/org/rascalmpl/ast/FunctionModifiers.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class FunctionModifiers extends AbstractAST { public FunctionModifiers(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/FunctionType.java b/src/org/rascalmpl/ast/FunctionType.java index 2bc28c8d57c..defc97638e1 100644 --- a/src/org/rascalmpl/ast/FunctionType.java +++ b/src/org/rascalmpl/ast/FunctionType.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class FunctionType extends AbstractAST { public FunctionType(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Header.java b/src/org/rascalmpl/ast/Header.java index b178d595d10..64bce1b112e 100644 --- a/src/org/rascalmpl/ast/Header.java +++ b/src/org/rascalmpl/ast/Header.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Header extends AbstractAST { public Header(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/HexIntegerLiteral.java b/src/org/rascalmpl/ast/HexIntegerLiteral.java index ac94bb9e314..e7f248973df 100644 --- a/src/org/rascalmpl/ast/HexIntegerLiteral.java +++ b/src/org/rascalmpl/ast/HexIntegerLiteral.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class HexIntegerLiteral extends AbstractAST { public HexIntegerLiteral(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/IASTVisitor.java b/src/org/rascalmpl/ast/IASTVisitor.java index 97b5fe91102..5ffde7f2f0a 100644 --- a/src/org/rascalmpl/ast/IASTVisitor.java +++ b/src/org/rascalmpl/ast/IASTVisitor.java @@ -693,6 +693,16 @@ public interface IASTVisitor { public T visitSyntaxDefinitionLexical(SyntaxDefinition.Lexical x); + public T visitSyntaxRoleModifierData(SyntaxRoleModifier.Data x); + + public T visitSyntaxRoleModifierKeyword(SyntaxRoleModifier.Keyword x); + + public T visitSyntaxRoleModifierLayout(SyntaxRoleModifier.Layout x); + + public T visitSyntaxRoleModifierLexical(SyntaxRoleModifier.Lexical x); + + public T visitSyntaxRoleModifierSyntax(SyntaxRoleModifier.Syntax x); + public T visitTagDefault(Tag.Default x); public T visitTagEmpty(Tag.Empty x); @@ -713,6 +723,8 @@ public interface IASTVisitor { public T visitTypeFunction(Type.Function x); + public T visitTypeModifier(Type.Modifier x); + public T visitTypeSelector(Type.Selector x); public T visitTypeStructured(Type.Structured x); diff --git a/src/org/rascalmpl/ast/Import.java b/src/org/rascalmpl/ast/Import.java index 963496ddd0c..1853df9e1d2 100644 --- a/src/org/rascalmpl/ast/Import.java +++ b/src/org/rascalmpl/ast/Import.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Import extends AbstractAST { public Import(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/ImportedModule.java b/src/org/rascalmpl/ast/ImportedModule.java index af154a37ae9..82a122881da 100644 --- a/src/org/rascalmpl/ast/ImportedModule.java +++ b/src/org/rascalmpl/ast/ImportedModule.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class ImportedModule extends AbstractAST { public ImportedModule(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/IntegerLiteral.java b/src/org/rascalmpl/ast/IntegerLiteral.java index 3ec7b5ccd64..b36a0229034 100644 --- a/src/org/rascalmpl/ast/IntegerLiteral.java +++ b/src/org/rascalmpl/ast/IntegerLiteral.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class IntegerLiteral extends AbstractAST { public IntegerLiteral(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/JustDate.java b/src/org/rascalmpl/ast/JustDate.java index da6ce01b29a..fda759a189b 100644 --- a/src/org/rascalmpl/ast/JustDate.java +++ b/src/org/rascalmpl/ast/JustDate.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class JustDate extends AbstractAST { public JustDate(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/JustTime.java b/src/org/rascalmpl/ast/JustTime.java index d9e5ff6bb57..1f8d3d9510d 100644 --- a/src/org/rascalmpl/ast/JustTime.java +++ b/src/org/rascalmpl/ast/JustTime.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class JustTime extends AbstractAST { public JustTime(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/KeywordArgument_Expression.java b/src/org/rascalmpl/ast/KeywordArgument_Expression.java index e1c033d723c..0c70e0f32c0 100644 --- a/src/org/rascalmpl/ast/KeywordArgument_Expression.java +++ b/src/org/rascalmpl/ast/KeywordArgument_Expression.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class KeywordArgument_Expression extends AbstractAST { public KeywordArgument_Expression(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/KeywordFormal.java b/src/org/rascalmpl/ast/KeywordFormal.java index df5a8153b28..f8f8aecdf6e 100644 --- a/src/org/rascalmpl/ast/KeywordFormal.java +++ b/src/org/rascalmpl/ast/KeywordFormal.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class KeywordFormal extends AbstractAST { public KeywordFormal(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/LAYOUT.java b/src/org/rascalmpl/ast/LAYOUT.java index 87ab1d4cdb9..8b17a784034 100644 --- a/src/org/rascalmpl/ast/LAYOUT.java +++ b/src/org/rascalmpl/ast/LAYOUT.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class LAYOUT extends AbstractAST { public LAYOUT(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Literal.java b/src/org/rascalmpl/ast/Literal.java index 8dffd3bce3d..945fa6fc57d 100644 --- a/src/org/rascalmpl/ast/Literal.java +++ b/src/org/rascalmpl/ast/Literal.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Literal extends AbstractAST { public Literal(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/LocalVariableDeclaration.java b/src/org/rascalmpl/ast/LocalVariableDeclaration.java index 3b9d5d036da..ffc7efd7b1e 100644 --- a/src/org/rascalmpl/ast/LocalVariableDeclaration.java +++ b/src/org/rascalmpl/ast/LocalVariableDeclaration.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class LocalVariableDeclaration extends AbstractAST { public LocalVariableDeclaration(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/LocationLiteral.java b/src/org/rascalmpl/ast/LocationLiteral.java index 6a24f8a5bb1..041da56636d 100644 --- a/src/org/rascalmpl/ast/LocationLiteral.java +++ b/src/org/rascalmpl/ast/LocationLiteral.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class LocationLiteral extends AbstractAST { public LocationLiteral(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Mapping_Expression.java b/src/org/rascalmpl/ast/Mapping_Expression.java index 437cc71e9cd..dccc2dcf9df 100644 --- a/src/org/rascalmpl/ast/Mapping_Expression.java +++ b/src/org/rascalmpl/ast/Mapping_Expression.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Mapping_Expression extends AbstractAST { public Mapping_Expression(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/MidPathChars.java b/src/org/rascalmpl/ast/MidPathChars.java index 5e7ed0e8061..4145eac9a3f 100644 --- a/src/org/rascalmpl/ast/MidPathChars.java +++ b/src/org/rascalmpl/ast/MidPathChars.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class MidPathChars extends AbstractAST { public MidPathChars(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/MidProtocolChars.java b/src/org/rascalmpl/ast/MidProtocolChars.java index b2df3a9bddb..a3180b84691 100644 --- a/src/org/rascalmpl/ast/MidProtocolChars.java +++ b/src/org/rascalmpl/ast/MidProtocolChars.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class MidProtocolChars extends AbstractAST { public MidProtocolChars(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/MidStringChars.java b/src/org/rascalmpl/ast/MidStringChars.java index e9a85ebfe9c..74c3f6c55be 100644 --- a/src/org/rascalmpl/ast/MidStringChars.java +++ b/src/org/rascalmpl/ast/MidStringChars.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class MidStringChars extends AbstractAST { public MidStringChars(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Module.java b/src/org/rascalmpl/ast/Module.java index f34c2db632c..b3b8333ac7d 100644 --- a/src/org/rascalmpl/ast/Module.java +++ b/src/org/rascalmpl/ast/Module.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Module extends AbstractAST { public Module(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/ModuleActuals.java b/src/org/rascalmpl/ast/ModuleActuals.java index 3f86dfe8020..8011982b649 100644 --- a/src/org/rascalmpl/ast/ModuleActuals.java +++ b/src/org/rascalmpl/ast/ModuleActuals.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class ModuleActuals extends AbstractAST { public ModuleActuals(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/ModuleParameters.java b/src/org/rascalmpl/ast/ModuleParameters.java index 27dc09b6e49..1e5649d5506 100644 --- a/src/org/rascalmpl/ast/ModuleParameters.java +++ b/src/org/rascalmpl/ast/ModuleParameters.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class ModuleParameters extends AbstractAST { public ModuleParameters(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Name.java b/src/org/rascalmpl/ast/Name.java index 59ce8ef0b57..0a4afd5622e 100644 --- a/src/org/rascalmpl/ast/Name.java +++ b/src/org/rascalmpl/ast/Name.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Name extends AbstractAST { public Name(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/NamedBackslash.java b/src/org/rascalmpl/ast/NamedBackslash.java index 7da661cfe0e..2c7c8486b2c 100644 --- a/src/org/rascalmpl/ast/NamedBackslash.java +++ b/src/org/rascalmpl/ast/NamedBackslash.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class NamedBackslash extends AbstractAST { public NamedBackslash(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/NamedRegExp.java b/src/org/rascalmpl/ast/NamedRegExp.java index abbf237103b..8a881ec2f37 100644 --- a/src/org/rascalmpl/ast/NamedRegExp.java +++ b/src/org/rascalmpl/ast/NamedRegExp.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class NamedRegExp extends AbstractAST { public NamedRegExp(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Nonterminal.java b/src/org/rascalmpl/ast/Nonterminal.java index 5ba62961226..a11370447bc 100644 --- a/src/org/rascalmpl/ast/Nonterminal.java +++ b/src/org/rascalmpl/ast/Nonterminal.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Nonterminal extends AbstractAST { public Nonterminal(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/NonterminalLabel.java b/src/org/rascalmpl/ast/NonterminalLabel.java index ce65ab2ca62..e5ebcd267f8 100644 --- a/src/org/rascalmpl/ast/NonterminalLabel.java +++ b/src/org/rascalmpl/ast/NonterminalLabel.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class NonterminalLabel extends AbstractAST { public NonterminalLabel(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/NullASTVisitor.java b/src/org/rascalmpl/ast/NullASTVisitor.java index 62ec109ee14..3a5e442d1b1 100644 --- a/src/org/rascalmpl/ast/NullASTVisitor.java +++ b/src/org/rascalmpl/ast/NullASTVisitor.java @@ -1369,6 +1369,26 @@ public T visitSyntaxDefinitionLexical(SyntaxDefinition.Lexical x) { return null; } + public T visitSyntaxRoleModifierData(SyntaxRoleModifier.Data x) { + return null; + } + + public T visitSyntaxRoleModifierKeyword(SyntaxRoleModifier.Keyword x) { + return null; + } + + public T visitSyntaxRoleModifierLayout(SyntaxRoleModifier.Layout x) { + return null; + } + + public T visitSyntaxRoleModifierLexical(SyntaxRoleModifier.Lexical x) { + return null; + } + + public T visitSyntaxRoleModifierSyntax(SyntaxRoleModifier.Syntax x) { + return null; + } + public T visitTagDefault(Tag.Default x) { return null; } @@ -1409,6 +1429,10 @@ public T visitTypeFunction(Type.Function x) { return null; } + public T visitTypeModifier(Type.Modifier x) { + return null; + } + public T visitTypeSelector(Type.Selector x) { return null; } diff --git a/src/org/rascalmpl/ast/OctalIntegerLiteral.java b/src/org/rascalmpl/ast/OctalIntegerLiteral.java index a2d78342e54..a7051419a85 100644 --- a/src/org/rascalmpl/ast/OctalIntegerLiteral.java +++ b/src/org/rascalmpl/ast/OctalIntegerLiteral.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class OctalIntegerLiteral extends AbstractAST { public OctalIntegerLiteral(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/OptionalComma.java b/src/org/rascalmpl/ast/OptionalComma.java index ad6629b15cf..46e968d4f88 100644 --- a/src/org/rascalmpl/ast/OptionalComma.java +++ b/src/org/rascalmpl/ast/OptionalComma.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class OptionalComma extends AbstractAST { public OptionalComma(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Output.java b/src/org/rascalmpl/ast/Output.java index ab628813d85..201c007470c 100644 --- a/src/org/rascalmpl/ast/Output.java +++ b/src/org/rascalmpl/ast/Output.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Output extends AbstractAST { public Output(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Parameters.java b/src/org/rascalmpl/ast/Parameters.java index af45b8106b8..8a0e49b8982 100644 --- a/src/org/rascalmpl/ast/Parameters.java +++ b/src/org/rascalmpl/ast/Parameters.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Parameters extends AbstractAST { public Parameters(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/PathChars.java b/src/org/rascalmpl/ast/PathChars.java index 5e907ea3276..7326fa172a5 100644 --- a/src/org/rascalmpl/ast/PathChars.java +++ b/src/org/rascalmpl/ast/PathChars.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class PathChars extends AbstractAST { public PathChars(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/PathPart.java b/src/org/rascalmpl/ast/PathPart.java index b6f2f193638..6df0cc5dc2c 100644 --- a/src/org/rascalmpl/ast/PathPart.java +++ b/src/org/rascalmpl/ast/PathPart.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class PathPart extends AbstractAST { public PathPart(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/PathTail.java b/src/org/rascalmpl/ast/PathTail.java index 030dfc33cb6..f17eb658c16 100644 --- a/src/org/rascalmpl/ast/PathTail.java +++ b/src/org/rascalmpl/ast/PathTail.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class PathTail extends AbstractAST { public PathTail(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/PatternWithAction.java b/src/org/rascalmpl/ast/PatternWithAction.java index 5f6b071b4a6..32148f04e9f 100644 --- a/src/org/rascalmpl/ast/PatternWithAction.java +++ b/src/org/rascalmpl/ast/PatternWithAction.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class PatternWithAction extends AbstractAST { public PatternWithAction(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/PostPathChars.java b/src/org/rascalmpl/ast/PostPathChars.java index 3f273241737..31f23639b5e 100644 --- a/src/org/rascalmpl/ast/PostPathChars.java +++ b/src/org/rascalmpl/ast/PostPathChars.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class PostPathChars extends AbstractAST { public PostPathChars(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/PostProtocolChars.java b/src/org/rascalmpl/ast/PostProtocolChars.java index 3e775de0cc0..ce3bf9d31e0 100644 --- a/src/org/rascalmpl/ast/PostProtocolChars.java +++ b/src/org/rascalmpl/ast/PostProtocolChars.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class PostProtocolChars extends AbstractAST { public PostProtocolChars(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/PostStringChars.java b/src/org/rascalmpl/ast/PostStringChars.java index b719a84b76c..6301a7d4d4d 100644 --- a/src/org/rascalmpl/ast/PostStringChars.java +++ b/src/org/rascalmpl/ast/PostStringChars.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class PostStringChars extends AbstractAST { public PostStringChars(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/PrePathChars.java b/src/org/rascalmpl/ast/PrePathChars.java index 0c86270344b..6cf11cc5c64 100644 --- a/src/org/rascalmpl/ast/PrePathChars.java +++ b/src/org/rascalmpl/ast/PrePathChars.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class PrePathChars extends AbstractAST { public PrePathChars(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/PreProtocolChars.java b/src/org/rascalmpl/ast/PreProtocolChars.java index 5b700c5c03a..f9843b4daf5 100644 --- a/src/org/rascalmpl/ast/PreProtocolChars.java +++ b/src/org/rascalmpl/ast/PreProtocolChars.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class PreProtocolChars extends AbstractAST { public PreProtocolChars(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/PreStringChars.java b/src/org/rascalmpl/ast/PreStringChars.java index ed50845089a..830c72df34c 100644 --- a/src/org/rascalmpl/ast/PreStringChars.java +++ b/src/org/rascalmpl/ast/PreStringChars.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class PreStringChars extends AbstractAST { public PreStringChars(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Prod.java b/src/org/rascalmpl/ast/Prod.java index 37611e8bb62..1aa1429bcfc 100644 --- a/src/org/rascalmpl/ast/Prod.java +++ b/src/org/rascalmpl/ast/Prod.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Prod extends AbstractAST { public Prod(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/ProtocolChars.java b/src/org/rascalmpl/ast/ProtocolChars.java index b5e92e32dcb..07f05a1da01 100644 --- a/src/org/rascalmpl/ast/ProtocolChars.java +++ b/src/org/rascalmpl/ast/ProtocolChars.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class ProtocolChars extends AbstractAST { public ProtocolChars(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/ProtocolPart.java b/src/org/rascalmpl/ast/ProtocolPart.java index 33589231448..cd3c2e2f57b 100644 --- a/src/org/rascalmpl/ast/ProtocolPart.java +++ b/src/org/rascalmpl/ast/ProtocolPart.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class ProtocolPart extends AbstractAST { public ProtocolPart(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/ProtocolTail.java b/src/org/rascalmpl/ast/ProtocolTail.java index 2d12da06d1d..998d84b41d6 100644 --- a/src/org/rascalmpl/ast/ProtocolTail.java +++ b/src/org/rascalmpl/ast/ProtocolTail.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class ProtocolTail extends AbstractAST { public ProtocolTail(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/QualifiedName.java b/src/org/rascalmpl/ast/QualifiedName.java index dc4464e1012..81a3a4e4483 100644 --- a/src/org/rascalmpl/ast/QualifiedName.java +++ b/src/org/rascalmpl/ast/QualifiedName.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class QualifiedName extends AbstractAST { public QualifiedName(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Range.java b/src/org/rascalmpl/ast/Range.java index 1b1af11ab46..9d4c51e7096 100644 --- a/src/org/rascalmpl/ast/Range.java +++ b/src/org/rascalmpl/ast/Range.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Range extends AbstractAST { public Range(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/RationalLiteral.java b/src/org/rascalmpl/ast/RationalLiteral.java index a5e1870905f..3a61a3f5f33 100644 --- a/src/org/rascalmpl/ast/RationalLiteral.java +++ b/src/org/rascalmpl/ast/RationalLiteral.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class RationalLiteral extends AbstractAST { public RationalLiteral(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/RealLiteral.java b/src/org/rascalmpl/ast/RealLiteral.java index a66f76ae255..45c66e80dfe 100644 --- a/src/org/rascalmpl/ast/RealLiteral.java +++ b/src/org/rascalmpl/ast/RealLiteral.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class RealLiteral extends AbstractAST { public RealLiteral(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/RegExp.java b/src/org/rascalmpl/ast/RegExp.java index f64243e779c..eedd0e4f523 100644 --- a/src/org/rascalmpl/ast/RegExp.java +++ b/src/org/rascalmpl/ast/RegExp.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class RegExp extends AbstractAST { public RegExp(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/RegExpLiteral.java b/src/org/rascalmpl/ast/RegExpLiteral.java index 601af8e55ac..ba16b72ae1c 100644 --- a/src/org/rascalmpl/ast/RegExpLiteral.java +++ b/src/org/rascalmpl/ast/RegExpLiteral.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class RegExpLiteral extends AbstractAST { public RegExpLiteral(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/RegExpModifier.java b/src/org/rascalmpl/ast/RegExpModifier.java index f4167508c52..99d86aa434e 100644 --- a/src/org/rascalmpl/ast/RegExpModifier.java +++ b/src/org/rascalmpl/ast/RegExpModifier.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class RegExpModifier extends AbstractAST { public RegExpModifier(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Renaming.java b/src/org/rascalmpl/ast/Renaming.java index 53e52fe7ae5..cc8eaefc2e3 100644 --- a/src/org/rascalmpl/ast/Renaming.java +++ b/src/org/rascalmpl/ast/Renaming.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Renaming extends AbstractAST { public Renaming(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Renamings.java b/src/org/rascalmpl/ast/Renamings.java index f810476c32d..39d63478ecc 100644 --- a/src/org/rascalmpl/ast/Renamings.java +++ b/src/org/rascalmpl/ast/Renamings.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Renamings extends AbstractAST { public Renamings(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Replacement.java b/src/org/rascalmpl/ast/Replacement.java index f25210ee074..61219bd2cc7 100644 --- a/src/org/rascalmpl/ast/Replacement.java +++ b/src/org/rascalmpl/ast/Replacement.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Replacement extends AbstractAST { public Replacement(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/ShellCommand.java b/src/org/rascalmpl/ast/ShellCommand.java index ef17f31e239..e2b7b69f1da 100644 --- a/src/org/rascalmpl/ast/ShellCommand.java +++ b/src/org/rascalmpl/ast/ShellCommand.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class ShellCommand extends AbstractAST { public ShellCommand(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); @@ -72,6 +73,8 @@ protected void addForLineNumber(int $line, java.util.List $result) if (getLocation().getBeginLine() == $line) { $result.add(this); } + ISourceLocation $l; + } @Override @@ -79,6 +82,7 @@ public boolean equals(Object o) { if (!(o instanceof Clear)) { return false; } + Clear tmp = (Clear) o; return true ; } @@ -198,6 +202,8 @@ protected void addForLineNumber(int $line, java.util.List $result) if (getLocation().getBeginLine() == $line) { $result.add(this); } + ISourceLocation $l; + } @Override @@ -205,6 +211,7 @@ public boolean equals(Object o) { if (!(o instanceof Help)) { return false; } + Help tmp = (Help) o; return true ; } @@ -250,6 +257,7 @@ protected void addForLineNumber(int $line, java.util.List $result) if (getLocation().getBeginLine() == $line) { $result.add(this); } + ISourceLocation $l; } @@ -258,6 +266,7 @@ public boolean equals(Object o) { if (!(o instanceof History)) { return false; } + History tmp = (History) o; return true ; } @@ -303,6 +312,7 @@ protected void addForLineNumber(int $line, java.util.List $result) if (getLocation().getBeginLine() == $line) { $result.add(this); } + ISourceLocation $l; } @@ -311,6 +321,7 @@ public boolean equals(Object o) { if (!(o instanceof ListDeclarations)) { return false; } + ListDeclarations tmp = (ListDeclarations) o; return true ; } @@ -356,6 +367,7 @@ protected void addForLineNumber(int $line, java.util.List $result) if (getLocation().getBeginLine() == $line) { $result.add(this); } + ISourceLocation $l; } @@ -364,6 +376,7 @@ public boolean equals(Object o) { if (!(o instanceof ListModules)) { return false; } + ListModules tmp = (ListModules) o; return true ; } @@ -409,6 +422,7 @@ protected void addForLineNumber(int $line, java.util.List $result) if (getLocation().getBeginLine() == $line) { $result.add(this); } + ISourceLocation $l; } @@ -417,6 +431,7 @@ public boolean equals(Object o) { if (!(o instanceof Quit)) { return false; } + Quit tmp = (Quit) o; return true ; } @@ -555,6 +570,7 @@ protected void addForLineNumber(int $line, java.util.List $result) if (getLocation().getBeginLine() == $line) { $result.add(this); } + ISourceLocation $l; } @@ -563,6 +579,7 @@ public boolean equals(Object o) { if (!(o instanceof Test)) { return false; } + Test tmp = (Test) o; return true ; } diff --git a/src/org/rascalmpl/ast/Signature.java b/src/org/rascalmpl/ast/Signature.java index f37477bfc7d..67c16d9a3b0 100644 --- a/src/org/rascalmpl/ast/Signature.java +++ b/src/org/rascalmpl/ast/Signature.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Signature extends AbstractAST { public Signature(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/StringCharacter.java b/src/org/rascalmpl/ast/StringCharacter.java index 08705c4676c..710fa8f7501 100644 --- a/src/org/rascalmpl/ast/StringCharacter.java +++ b/src/org/rascalmpl/ast/StringCharacter.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class StringCharacter extends AbstractAST { public StringCharacter(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/StringConstant.java b/src/org/rascalmpl/ast/StringConstant.java index 82736794f4e..d4ac3288e17 100644 --- a/src/org/rascalmpl/ast/StringConstant.java +++ b/src/org/rascalmpl/ast/StringConstant.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class StringConstant extends AbstractAST { public StringConstant(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/StringLiteral.java b/src/org/rascalmpl/ast/StringLiteral.java index bbbffc4b378..fad93712024 100644 --- a/src/org/rascalmpl/ast/StringLiteral.java +++ b/src/org/rascalmpl/ast/StringLiteral.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class StringLiteral extends AbstractAST { public StringLiteral(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/StringMiddle.java b/src/org/rascalmpl/ast/StringMiddle.java index 33b42b74620..1eb963084cd 100644 --- a/src/org/rascalmpl/ast/StringMiddle.java +++ b/src/org/rascalmpl/ast/StringMiddle.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class StringMiddle extends AbstractAST { public StringMiddle(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/StringTail.java b/src/org/rascalmpl/ast/StringTail.java index 4410f8fb504..5020467cbf9 100644 --- a/src/org/rascalmpl/ast/StringTail.java +++ b/src/org/rascalmpl/ast/StringTail.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class StringTail extends AbstractAST { public StringTail(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/StringTemplate.java b/src/org/rascalmpl/ast/StringTemplate.java index e1d8594e52b..5dc7be9140a 100644 --- a/src/org/rascalmpl/ast/StringTemplate.java +++ b/src/org/rascalmpl/ast/StringTemplate.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class StringTemplate extends AbstractAST { public StringTemplate(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/StructuredType.java b/src/org/rascalmpl/ast/StructuredType.java index 009f49a8048..16cf2840974 100644 --- a/src/org/rascalmpl/ast/StructuredType.java +++ b/src/org/rascalmpl/ast/StructuredType.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class StructuredType extends AbstractAST { public StructuredType(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/SyntaxDefinition.java b/src/org/rascalmpl/ast/SyntaxDefinition.java index d8eff7ad7ec..55f99a56e2b 100644 --- a/src/org/rascalmpl/ast/SyntaxDefinition.java +++ b/src/org/rascalmpl/ast/SyntaxDefinition.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class SyntaxDefinition extends AbstractAST { public SyntaxDefinition(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Tag.java b/src/org/rascalmpl/ast/Tag.java index ffa55d9c280..57e3016454a 100644 --- a/src/org/rascalmpl/ast/Tag.java +++ b/src/org/rascalmpl/ast/Tag.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Tag extends AbstractAST { public Tag(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); @@ -114,7 +115,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return 29 + 947 * name.hashCode() + 883 * contents.hashCode() ; + return 263 + 163 * name.hashCode() + 683 * contents.hashCode() ; } @@ -197,7 +198,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return 743 + 313 * name.hashCode() ; + return 661 + 499 * name.hashCode() ; } @@ -281,7 +282,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return 607 + 727 * name.hashCode() + 883 * expression.hashCode() ; + return 769 + 163 * name.hashCode() + 641 * expression.hashCode() ; } diff --git a/src/org/rascalmpl/ast/TagString.java b/src/org/rascalmpl/ast/TagString.java index 7579d8e65e5..ef1899a6a21 100644 --- a/src/org/rascalmpl/ast/TagString.java +++ b/src/org/rascalmpl/ast/TagString.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class TagString extends AbstractAST { public TagString(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Tags.java b/src/org/rascalmpl/ast/Tags.java index 70b8508098b..283acdce9b9 100644 --- a/src/org/rascalmpl/ast/Tags.java +++ b/src/org/rascalmpl/ast/Tags.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Tags extends AbstractAST { public Tags(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); @@ -92,7 +93,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return 617 + 233 * tags.hashCode() ; + return 313 + 509 * tags.hashCode() ; } diff --git a/src/org/rascalmpl/ast/Target.java b/src/org/rascalmpl/ast/Target.java index dadd78fdb14..aa383f7c647 100644 --- a/src/org/rascalmpl/ast/Target.java +++ b/src/org/rascalmpl/ast/Target.java @@ -81,7 +81,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return 263 ; + return 563 ; } @@ -146,7 +146,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return 163 + 683 * name.hashCode() ; + return 149 + 431 * name.hashCode() ; } diff --git a/src/org/rascalmpl/ast/TimePartNoTZ.java b/src/org/rascalmpl/ast/TimePartNoTZ.java index 5384545a587..18e43c9bbf5 100644 --- a/src/org/rascalmpl/ast/TimePartNoTZ.java +++ b/src/org/rascalmpl/ast/TimePartNoTZ.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class TimePartNoTZ extends AbstractAST { public TimePartNoTZ(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/TimeZonePart.java b/src/org/rascalmpl/ast/TimeZonePart.java index 962c1cd1454..814c39ce8c7 100644 --- a/src/org/rascalmpl/ast/TimeZonePart.java +++ b/src/org/rascalmpl/ast/TimeZonePart.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class TimeZonePart extends AbstractAST { public TimeZonePart(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/Toplevel.java b/src/org/rascalmpl/ast/Toplevel.java index 7955b991910..1157154a227 100644 --- a/src/org/rascalmpl/ast/Toplevel.java +++ b/src/org/rascalmpl/ast/Toplevel.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Toplevel extends AbstractAST { public Toplevel(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); @@ -90,7 +91,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return 661 + 499 * declaration.hashCode() ; + return 67 + 19 * declaration.hashCode() ; } diff --git a/src/org/rascalmpl/ast/Type.java b/src/org/rascalmpl/ast/Type.java index 90cbe05b8d1..454395688c5 100644 --- a/src/org/rascalmpl/ast/Type.java +++ b/src/org/rascalmpl/ast/Type.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Type extends AbstractAST { public Type(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); @@ -60,6 +61,13 @@ public boolean hasSymbol() { public org.rascalmpl.ast.Sym getSymbol() { throw new UnsupportedOperationException(); } + public boolean hasModifier() { + return false; + } + + public org.rascalmpl.ast.SyntaxRoleModifier getModifier() { + throw new UnsupportedOperationException(); + } public boolean hasType() { return false; } @@ -139,7 +147,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return 769 + 163 * basic.hashCode() ; + return 181 + 599 * basic.hashCode() ; } @@ -213,7 +221,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return 641 + 313 * type.hashCode() ; + return 101 + 421 * type.hashCode() ; } @@ -287,7 +295,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return 509 + 563 * function.hashCode() ; + return 277 + 487 * function.hashCode() ; } @@ -306,6 +314,80 @@ public Object clone() { return newInstance(getClass(), src, (IConstructor) null , clone(function)); } + } + public boolean isModifier() { + return false; + } + + static public class Modifier extends Type { + // Production: sig("Modifier",[arg("org.rascalmpl.ast.SyntaxRoleModifier","modifier")],breakable=false) + + + private final org.rascalmpl.ast.SyntaxRoleModifier modifier; + + public Modifier(ISourceLocation src, IConstructor node , org.rascalmpl.ast.SyntaxRoleModifier modifier) { + super(src, node); + + this.modifier = modifier; + } + + @Override + public boolean isModifier() { + return true; + } + + @Override + public T accept(IASTVisitor visitor) { + return visitor.visitTypeModifier(this); + } + + @Override + protected void addForLineNumber(int $line, java.util.List $result) { + if (getLocation().getBeginLine() == $line) { + $result.add(this); + } + ISourceLocation $l; + + $l = modifier.getLocation(); + if ($l.hasLineColumn() && $l.getBeginLine() <= $line && $l.getEndLine() >= $line) { + modifier.addForLineNumber($line, $result); + } + if ($l.getBeginLine() > $line) { + return; + } + + } + + @Override + public boolean equals(Object o) { + if (!(o instanceof Modifier)) { + return false; + } + Modifier tmp = (Modifier) o; + return true && tmp.modifier.equals(this.modifier) ; + } + + @Override + public int hashCode() { + return 797 + 787 * modifier.hashCode() ; + } + + + @Override + public org.rascalmpl.ast.SyntaxRoleModifier getModifier() { + return this.modifier; + } + + @Override + public boolean hasModifier() { + return true; + } + + @Override + public Object clone() { + return newInstance(getClass(), src, (IConstructor) null , clone(modifier)); + } + } public boolean isSelector() { return false; @@ -361,7 +443,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return 149 + 431 * selector.hashCode() ; + return 397 + 191 * selector.hashCode() ; } @@ -435,7 +517,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return 67 + 19 * structured.hashCode() ; + return 977 + 173 * structured.hashCode() ; } @@ -509,7 +591,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return 181 + 599 * symbol.hashCode() ; + return 541 + 491 * symbol.hashCode() ; } @@ -583,7 +665,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return 101 + 421 * user.hashCode() ; + return 331 + 167 * user.hashCode() ; } @@ -657,7 +739,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return 277 + 487 * typeVar.hashCode() ; + return 809 + 109 * typeVar.hashCode() ; } diff --git a/src/org/rascalmpl/ast/TypeArg.java b/src/org/rascalmpl/ast/TypeArg.java index 596aa3b9ba2..a15b65b3520 100644 --- a/src/org/rascalmpl/ast/TypeArg.java +++ b/src/org/rascalmpl/ast/TypeArg.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class TypeArg extends AbstractAST { public TypeArg(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); @@ -97,7 +98,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return 797 + 787 * type.hashCode() ; + return 373 + 449 * type.hashCode() ; } @@ -181,7 +182,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return 397 + 191 * type.hashCode() + 977 * name.hashCode() ; + return 571 + 467 * type.hashCode() + 691 * name.hashCode() ; } diff --git a/src/org/rascalmpl/ast/TypeVar.java b/src/org/rascalmpl/ast/TypeVar.java index b11e998b3de..eaee10fb5cb 100644 --- a/src/org/rascalmpl/ast/TypeVar.java +++ b/src/org/rascalmpl/ast/TypeVar.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class TypeVar extends AbstractAST { public TypeVar(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); @@ -107,7 +108,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return 173 + 541 * name.hashCode() + 491 * bound.hashCode() ; + return 701 + 19 * name.hashCode() + 137 * bound.hashCode() ; } @@ -190,7 +191,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return 331 + 167 * name.hashCode() ; + return 907 + 41 * name.hashCode() ; } diff --git a/src/org/rascalmpl/ast/URLChars.java b/src/org/rascalmpl/ast/URLChars.java index c4579c5dd50..ab016bf9a01 100644 --- a/src/org/rascalmpl/ast/URLChars.java +++ b/src/org/rascalmpl/ast/URLChars.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class URLChars extends AbstractAST { public URLChars(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/UnicodeEscape.java b/src/org/rascalmpl/ast/UnicodeEscape.java index 3b958f7f271..21170244124 100644 --- a/src/org/rascalmpl/ast/UnicodeEscape.java +++ b/src/org/rascalmpl/ast/UnicodeEscape.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class UnicodeEscape extends AbstractAST { public UnicodeEscape(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); diff --git a/src/org/rascalmpl/ast/UserType.java b/src/org/rascalmpl/ast/UserType.java index 41c7f7177ff..cc6071727d6 100644 --- a/src/org/rascalmpl/ast/UserType.java +++ b/src/org/rascalmpl/ast/UserType.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class UserType extends AbstractAST { public UserType(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); @@ -97,7 +98,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return 809 + 109 * name.hashCode() ; + return 59 + 823 * name.hashCode() ; } @@ -183,7 +184,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return 373 + 449 * name.hashCode() + 571 * parameters.hashCode() ; + return 139 + 293 * name.hashCode() + 773 * parameters.hashCode() ; } diff --git a/src/org/rascalmpl/ast/Variable.java b/src/org/rascalmpl/ast/Variable.java index aa3806b13f0..c375b975c44 100644 --- a/src/org/rascalmpl/ast/Variable.java +++ b/src/org/rascalmpl/ast/Variable.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Variable extends AbstractAST { public Variable(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); @@ -107,7 +108,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return 467 + 691 * name.hashCode() + 701 * initial.hashCode() ; + return 293 + 421 * name.hashCode() + 467 * initial.hashCode() ; } @@ -190,7 +191,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return 19 + 137 * name.hashCode() ; + return 181 + 383 * name.hashCode() ; } diff --git a/src/org/rascalmpl/ast/Variant.java b/src/org/rascalmpl/ast/Variant.java index 9ea54e5d50d..b8e4e75ed90 100644 --- a/src/org/rascalmpl/ast/Variant.java +++ b/src/org/rascalmpl/ast/Variant.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Variant extends AbstractAST { public Variant(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); @@ -126,7 +127,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return 907 + 41 * name.hashCode() + 59 * arguments.hashCode() + 823 * keywordArguments.hashCode() ; + return 263 + 463 * name.hashCode() + 223 * arguments.hashCode() + 139 * keywordArguments.hashCode() ; } diff --git a/src/org/rascalmpl/ast/Visibility.java b/src/org/rascalmpl/ast/Visibility.java index 5272568e81a..4ca590aba78 100644 --- a/src/org/rascalmpl/ast/Visibility.java +++ b/src/org/rascalmpl/ast/Visibility.java @@ -74,7 +74,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return 139 ; + return 347 ; } @@ -129,7 +129,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return 293 ; + return 557 ; } @@ -184,7 +184,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return 773 ; + return 131 ; } diff --git a/src/org/rascalmpl/ast/Visit.java b/src/org/rascalmpl/ast/Visit.java index 4c9723b0951..e8df189d703 100644 --- a/src/org/rascalmpl/ast/Visit.java +++ b/src/org/rascalmpl/ast/Visit.java @@ -19,6 +19,7 @@ import io.usethesource.vallang.IConstructor; import io.usethesource.vallang.ISourceLocation; +@SuppressWarnings(value = {"unused"}) public abstract class Visit extends AbstractAST { public Visit(ISourceLocation src, IConstructor node) { super(src /* we forget node on purpose */); @@ -116,7 +117,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return 293 + 421 * subject.hashCode() + 467 * cases.hashCode() ; + return 797 + 149 * subject.hashCode() + 877 * cases.hashCode() ; } @@ -221,7 +222,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return 181 + 383 * strategy.hashCode() + 263 * subject.hashCode() + 463 * cases.hashCode() ; + return 401 + 787 * strategy.hashCode() + 239 * subject.hashCode() + 997 * cases.hashCode() ; }