Skip to content
Snippets Groups Projects
Commit aa43d440 authored by Jesper's avatar Jesper
Browse files

Parse annotations on aspect-declared constructors

fixes #271 (bitbucket)
parent 01fa9ca2
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@
for each AST class.
* NTAs declared in the abstract grammar will now always be cached,
just like attribute-only NTAs.
* Allow user annotations on aspect constructor declarations.
2016-10-24 Jesper Öqvist <jesper.oqvist@cs.lth.se>
......
......@@ -654,7 +654,7 @@ void AspectBodyDeclaration() :
LOOKAHEAD( AspectMethodDeclarationLookahead() )
AspectMethodDeclaration()
|
LOOKAHEAD( [ "public" | "protected" | "private" ] <IDENTIFIER> "." <IDENTIFIER> "(" )
LOOKAHEAD( Modifiers() <IDENTIFIER> "." <IDENTIFIER> "(" )
AspectConstructorDeclaration()
|
LOOKAHEAD( AspectFieldDeclarationLookahead() )
......@@ -973,7 +973,7 @@ void AspectRefineMethodDeclaration() :
void AspectConstructorDeclaration() :
{Token t;}
{
[ "public" | "protected" | "private" ]
Modifiers()
t = <IDENTIFIER> "." { className = t.image; } <IDENTIFIER> FormalParameters() [ "throws" NameList() ]
"{"
[ LOOKAHEAD(ExplicitConstructorInvocation()) ExplicitConstructorInvocation() ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment