Commit a91866f0 authored by Malte Heithoff's avatar Malte Heithoff
Browse files

Removed double license

parent fb804bea
Pipeline #392206 passed with stage
in 58 seconds
......@@ -21,13 +21,7 @@ import de.monticore.ast.ASTNode;
import de.monticore.lang.tagging._ast.*;
import de.monticore.lang.tagging._parser.TaggingParser;
import de.monticore.lang.tagging.helper.RangeFixer;
import de.monticore.symboltable.CommonScope;
import de.monticore.symboltable.MutableScope;
import de.monticore.symboltable.Scope;
import de.monticore.symboltable.ScopeSpanningSymbol;
import de.monticore.symboltable.Symbol;
import de.monticore.symboltable.SymbolKind;
import de.monticore.symboltable.SymbolPredicate;
import de.monticore.symboltable.*;
import de.monticore.symboltable.modifiers.AccessModifier;
import de.monticore.symboltable.resolving.ResolvingFilter;
import de.se_rwth.commons.logging.Log;
......@@ -277,4 +271,20 @@ public class TaggingResolver implements Scope {
public MutableScope getAsMutableScope() {
return globalScope.getAsMutableScope();
}
public void addSubScope(MutableScope subScope) {
if (!(globalScope instanceof GlobalScope)) return;
if (!globalScope.getSubScopes().contains(subScope)) {
((GlobalScope) this.globalScope).addSubScope(subScope);
subScope.setEnclosingScope((GlobalScope) this.globalScope);
}
}
public void removeSubScope(MutableScope subScope) {
if (!(globalScope instanceof GlobalScope)) return;
if (globalScope.getSubScopes().contains(subScope)) {
((GlobalScope) this.globalScope).removeSubScope(subScope);
subScope.setEnclosingScope(null);
}
}
}
/* (c) https://github.com/MontiCore/monticore */
/* generated by template templates.de.monticore.lang.tagschema.SimpleTagType*/
......
/* (c) https://github.com/MontiCore/monticore */
/* generated by template templates.de.monticore.lang.tagschema.SimpleTagTypeCreator*/
......
/* (c) https://github.com/MontiCore/monticore */
/* generated by template templates.de.monticore.lang.tagschema.TagSchema*/
......
/* (c) https://github.com/MontiCore/monticore */
/* generated by template templates.de.monticore.lang.tagschema.SimpleTagType*/
......
/* (c) https://github.com/MontiCore/monticore */
/* generated by template templates.de.monticore.lang.tagschema.SimpleTagTypeCreator*/
......
/* (c) https://github.com/MontiCore/monticore */
/* generated by template templates.de.monticore.lang.tagschema.TagSchema*/
......
/* (c) https://github.com/MontiCore/monticore */
/* generated by template templates.de.monticore.lang.tagschema.ValuedTagType*/
......
/* (c) https://github.com/MontiCore/monticore */
/* generated by template templates.de.monticore.lang.tagschema.ValuedTagTypeCreator*/
......@@ -56,7 +55,7 @@ public class CompPowerInstSymbolCreator implements TagSymbolCreator {
for (ASTTag element : unit.getTagBody().getTagList()) {
element.getTagElementList().stream()
.filter(t -> t.getName().equals("CompPowerInst"))
.filter(t -> !t.getTagValueOpt().isPresent())
.filter(t -> t.isPresentTagValue())
.map(t -> checkContent(t.getTagValueOpt().get()))
.filter(r -> r != null)
.filter(this::checkUnit)
......@@ -100,7 +99,7 @@ public class CompPowerInstSymbolCreator implements TagSymbolCreator {
Log.enableFailQuick(false);
long errorCount = Log.getErrorCount();
ast = parser.parseUnitTagValue(s);
ast = parser.parse_StringUnitTagValue(s);
Log.enableFailQuick(enableFailQuick);
if (Log.getErrorCount() > errorCount) {
......
/* (c) https://github.com/MontiCore/monticore */
/* generated by template templates.de.monticore.lang.tagschema.ValuedTagType*/
......
/* (c) https://github.com/MontiCore/monticore */
/* generated by template templates.de.monticore.lang.tagschema.ValuedTagTypeCreator*/
......@@ -56,7 +55,7 @@ public class CompPowerSymbolCreator implements TagSymbolCreator {
for (ASTTag element : unit.getTagBody().getTagList()) {
element.getTagElementList().stream()
.filter(t -> t.getName().equals("CompPower"))
.filter(t -> !t.getTagValueOpt().isPresent())
.filter(t -> t.isPresentTagValue())
.map(t -> checkContent(t.getTagValueOpt().get()))
.filter(r -> r != null)
.filter(this::checkUnit)
......@@ -100,7 +99,7 @@ public class CompPowerSymbolCreator implements TagSymbolCreator {
Log.enableFailQuick(false);
long errorCount = Log.getErrorCount();
ast = parser.parseUnitTagValue(s);
ast = parser.parse_StringUnitTagValue(s);
Log.enableFailQuick(enableFailQuick);
if (Log.getErrorCount() > errorCount) {
......
/* (c) https://github.com/MontiCore/monticore */
/* generated by template templates.de.monticore.lang.tagschema.ValuedTagType*/
......
/* (c) https://github.com/MontiCore/monticore */
/* generated by template templates.de.monticore.lang.tagschema.ValuedTagTypeCreator*/
......@@ -56,7 +55,7 @@ public class LatencyCmpInstSymbolCreator implements TagSymbolCreator {
for (ASTTag element : unit.getTagBody().getTagList()) {
element.getTagElementList().stream()
.filter(t -> t.getName().equals("LatencyCmpInst"))
.filter(t -> !t.getTagValueOpt().isPresent())
.filter(t -> t.isPresentTagValue())
.map(t -> checkContent(t.getTagValueOpt().get()))
.filter(r -> r != null)
.filter(this::checkUnit)
......@@ -100,7 +99,7 @@ public class LatencyCmpInstSymbolCreator implements TagSymbolCreator {
Log.enableFailQuick(false);
long errorCount = Log.getErrorCount();
ast = parser.parseUnitTagValue(s);
ast = parser.parse_StringUnitTagValue(s);
Log.enableFailQuick(enableFailQuick);
if (Log.getErrorCount() > errorCount) {
......
/* (c) https://github.com/MontiCore/monticore */
/* generated by template templates.de.monticore.lang.tagschema.ValuedTagType*/
......
/* (c) https://github.com/MontiCore/monticore */
/* generated by template templates.de.monticore.lang.tagschema.ValuedTagTypeCreator*/
......@@ -56,7 +55,7 @@ public class LatencyCmpSymbolCreator implements TagSymbolCreator {
for (ASTTag element : unit.getTagBody().getTagList()) {
element.getTagElementList().stream()
.filter(t -> t.getName().equals("LatencyCmp"))
.filter(t -> !t.getTagValueOpt().isPresent())
.filter(t -> t.isPresentTagValue())
.map(t -> checkContent(t.getTagValueOpt().get()))
.filter(r -> r != null)
.filter(this::checkUnit)
......@@ -100,7 +99,7 @@ public class LatencyCmpSymbolCreator implements TagSymbolCreator {
Log.enableFailQuick(false);
long errorCount = Log.getErrorCount();
ast = parser.parseUnitTagValue(s);
ast = parser.parse_StringUnitTagValue(s);
Log.enableFailQuick(enableFailQuick);
if (Log.getErrorCount() > errorCount) {
......
/* (c) https://github.com/MontiCore/monticore */
/* generated by template templates.de.monticore.lang.tagschema.ValuedTagType*/
......
/* (c) https://github.com/MontiCore/monticore */
/* generated by template templates.de.monticore.lang.tagschema.ValuedTagTypeCreator*/
......@@ -56,7 +55,7 @@ public class LatencyConnSymbolCreator implements TagSymbolCreator {
for (ASTTag element : unit.getTagBody().getTagList()) {
element.getTagElementList().stream()
.filter(t -> t.getName().equals("LatencyConn"))
.filter(t -> !t.getTagValueOpt().isPresent())
.filter(t -> t.isPresentTagValue())
.map(t -> checkContent(t.getTagValueOpt().get()))
.filter(r -> r != null)
.filter(this::checkUnit)
......@@ -100,7 +99,7 @@ public class LatencyConnSymbolCreator implements TagSymbolCreator {
Log.enableFailQuick(false);
long errorCount = Log.getErrorCount();
ast = parser.parseUnitTagValue(s);
ast = parser.parse_StringUnitTagValue(s);
Log.enableFailQuick(enableFailQuick);
if (Log.getErrorCount() > errorCount) {
......
/* (c) https://github.com/MontiCore/monticore */
/* generated by template templates.de.monticore.lang.tagschema.ValuedTagType*/
......
/* (c) https://github.com/MontiCore/monticore */
/* generated by template templates.de.monticore.lang.tagschema.ValuedTagTypeCreator*/
......@@ -56,7 +55,7 @@ public class LatencyPortSymbolCreator implements TagSymbolCreator {
for (ASTTag element : unit.getTagBody().getTagList()) {
element.getTagElementList().stream()
.filter(t -> t.getName().equals("LatencyPort"))
.filter(t -> !t.getTagValueOpt().isPresent())
.filter(t -> t.isPresentTagValue())
.map(t -> checkContent(t.getTagValueOpt().get()))
.filter(r -> r != null)
.filter(this::checkUnit)
......@@ -100,7 +99,7 @@ public class LatencyPortSymbolCreator implements TagSymbolCreator {
Log.enableFailQuick(false);
long errorCount = Log.getErrorCount();
ast = parser.parseUnitTagValue(s);
ast = parser.parse_StringUnitTagValue(s);
Log.enableFailQuick(enableFailQuick);
if (Log.getErrorCount() > errorCount) {
......
/* (c) https://github.com/MontiCore/monticore */
/* generated by template templates.de.monticore.lang.tagschema.TagSchema*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment