Skip to content
Snippets Groups Projects
Commit faf36d22 authored by idrissrio's avatar idrissrio Committed by Jesper
Browse files

[parser] Improve handling of multiple interfaces in implements statement

fixes #324
parent 00eafbfe
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,11 @@ ...@@ -11,6 +11,11 @@
* Fixed aspect parsing issue for Java 8 array constructor references. * Fixed aspect parsing issue for Java 8 array constructor references.
See https://bitbucket.org/jastadd/jastadd2/issues/323/parsing-of-array-constructor-references See https://bitbucket.org/jastadd/jastadd2/issues/323/parsing-of-array-constructor-references
2020-05-08 Idriss Riouak <idriss.riouak@cs.lth.se>
* Improve parsing of multiple interfaces in implements statement.
See https://bitbucket.org/jastadd/jastadd2/issues/324/parsing-after-implements
2019-11-29 Jesper Öqvist <jesper.oqvist@cs.lth.se> 2019-11-29 Jesper Öqvist <jesper.oqvist@cs.lth.se>
* Deprecated some old options: lazyMaps, private, traceVisitCheck, * Deprecated some old options: lazyMaps, private, traceVisitCheck,
......
...@@ -1434,20 +1434,15 @@ void CollectionContribution(): ...@@ -1434,20 +1434,15 @@ void CollectionContribution():
void AspectAddInterface() : void AspectAddInterface() :
{ {
Token first, last;
Token targetName; Token targetName;
SimpleNode nameList; SimpleNode name;
} }
{ {
targetName = <IDENTIFIER> { first = token; } targetName = <IDENTIFIER>
"implements" "implements"
nameList = TypeNameList() name = ClassOrInterfaceType(){ root.addInterface(name, targetName.image, fileName); }
( "," name = ClassOrInterfaceType() { root.addInterface(name, targetName.image, fileName); } )*
";" ";"
{
last = token;
root.addInterface(nameList, targetName.image, fileName);
}
} }
void AspectExtendInterface() : void AspectExtendInterface() :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment