Commit 8e597aed authored by Julian Johannes Steinsberger-Dührßen's avatar Julian Johannes Steinsberger-Dührßen
Browse files

misc

parent 62c02e9c
Pipeline #348413 passed with stage
in 1 minute and 52 seconds
...@@ -12,7 +12,6 @@ import de.monticore.lang.tagging._symboltable.TagSymbol; ...@@ -12,7 +12,6 @@ import de.monticore.lang.tagging._symboltable.TagSymbol;
public class LayerPathParameterSymbol extends TagSymbol { public class LayerPathParameterSymbol extends TagSymbol {
public static final LayerPathParameterKind KIND = LayerPathParameterKind.INSTANCE; public static final LayerPathParameterKind KIND = LayerPathParameterKind.INSTANCE;
public LayerPathParameterSymbol() { public LayerPathParameterSymbol() {
super(KIND, "."); super(KIND, ".");
} }
......
...@@ -59,7 +59,7 @@ public class LayerPathParameterSymbolCreator implements TagSymbolCreator { ...@@ -59,7 +59,7 @@ public class LayerPathParameterSymbolCreator implements TagSymbolCreator {
protected void addTag(ASTTag tag, TaggingResolver tagging, String root, SymbolKind kind) { protected void addTag(ASTTag tag, TaggingResolver tagging, String root, SymbolKind kind) {
tag.getTagElementList().stream() tag.getTagElementList().stream()
.filter(tagElement -> tagElement.getName().equals("LayerPathParameter")) .filter(tagElement -> tagElement.getName().equals("LayerPathParameter"))
.forEachOrdered(tagElement -> { .forEachOrdered(tagElement -> {
Matcher matcher = matchRegexPattern(tagElement.getTagValue()); Matcher matcher = matchRegexPattern(tagElement.getTagValue());
tag.getScopeList().stream() tag.getScopeList().stream()
.filter(scope -> scope.getScopeKind().equals("NameScope")) .filter(scope -> scope.getScopeKind().equals("NameScope"))
...@@ -84,7 +84,7 @@ public class LayerPathParameterSymbolCreator implements TagSymbolCreator { ...@@ -84,7 +84,7 @@ public class LayerPathParameterSymbolCreator implements TagSymbolCreator {
Log.error( Log.error(
String.format( String.format(
"'%s' does not match the specified regex pattern '%s'", "'%s' does not match the specified regex pattern '%s'",
regex, "{path = {LayerPathParameter}, name = {tagId}}" regex, "{path = {LayerPathParameter}, id = {tagId}}"
) )
); );
return null; return null;
......
...@@ -14,7 +14,6 @@ import de.monticore.lang.monticar.emadl.AbstractTaggingResolverTest; ...@@ -14,7 +14,6 @@ import de.monticore.lang.monticar.emadl.AbstractTaggingResolverTest;
import de.monticore.lang.tagging._symboltable.TagSymbol; import de.monticore.lang.tagging._symboltable.TagSymbol;
import de.monticore.lang.tagging._symboltable.TaggingResolver; import de.monticore.lang.tagging._symboltable.TaggingResolver;
import de.monticore.lang.monticar.emadl.tagging.dltag.DataPathSymbol; import de.monticore.lang.monticar.emadl.tagging.dltag.DataPathSymbol;
import de.monticore.lang.monticar.emadl.tagging.dltag.LayerPathParameterSymbol;
import org.junit.Test; import org.junit.Test;
......
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