Commit c42fffd7 authored by Thomas Michael Timmermanns's avatar Thomas Michael Timmermanns
Browse files

a small fix

parent e16a54a9
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<groupId>de.monticore.lang.monticar</groupId> <groupId>de.monticore.lang.monticar</groupId>
<artifactId>cnn-arch</artifactId> <artifactId>cnn-arch</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>0.0.2-SNAPSHOT</version>
<!-- == PROJECT DEPENDENCIES ============================================= --> <!-- == PROJECT DEPENDENCIES ============================================= -->
...@@ -82,12 +82,6 @@ ...@@ -82,12 +82,6 @@
<version>${guava.version}</version> <version>${guava.version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
<version>1.7.22</version>
</dependency>
<!-- MontiCore Dependencies --> <!-- MontiCore Dependencies -->
<dependency> <dependency>
<groupId>de.monticore</groupId> <groupId>de.monticore</groupId>
......
...@@ -28,14 +28,12 @@ public interface ASTMethod extends ASTMethodTOP { ...@@ -28,14 +28,12 @@ public interface ASTMethod extends ASTMethodTOP {
String getName(); String getName();
default List<? extends ASTArgumentAssignment> getAssignments() { List<? extends ASTArgumentAssignment> getArguments();
return new LinkedList<>();
}
default ASTArgumentRhs get(String lhsName) { default ASTArgumentRhs get(String lhsName) {
ASTArgumentRhs rhs = null; ASTArgumentRhs rhs = null;
lhsName = lhsName.replace("_", ""); lhsName = lhsName.replace("_", "");
for (ASTArgumentAssignment assignment : getAssignments()) { for (ASTArgumentAssignment assignment : getArguments()) {
String assignmentLhs = assignment.getLhs().name(); String assignmentLhs = assignment.getLhs().name();
if (assignmentLhs.equalsIgnoreCase(lhsName)) { if (assignmentLhs.equalsIgnoreCase(lhsName)) {
rhs = assignment.getRhs(); rhs = assignment.getRhs();
......
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