Commit 9732a21a authored by Adam Knapp's avatar Adam Knapp
Browse files

OOP: implemented chained function calls param check, parser fix


Signed-off-by: Adam Knapp's avatarAdam Knapp <adam.knapp@ericsson.com>
parent 2e8bb7ec
...@@ -8184,7 +8184,8 @@ pr_ExtendedFieldReference returns[List<ISubReference> subReferences] ...@@ -8184,7 +8184,8 @@ pr_ExtendedFieldReference returns[List<ISubReference> subReferences]
}: }:
( a = pr_Dot ( a = pr_Dot
( funcid = pr_Identifier ( funcid = pr_Identifier
lp = pr_LParen /*lp = pr_LParen*/ /* Somehow this ruins the rule... */
LPAREN
( par = pr_FunctionActualParList { ( par = pr_FunctionActualParList {
parameters = $par.parsedParameters; parameters = $par.parsedParameters;
parameters.setLocation( getLocation( $par.start, $par.stop ) ); parameters.setLocation( getLocation( $par.start, $par.stop ) );
...@@ -8193,7 +8194,7 @@ pr_ExtendedFieldReference returns[List<ISubReference> subReferences] ...@@ -8193,7 +8194,7 @@ pr_ExtendedFieldReference returns[List<ISubReference> subReferences]
{ {
if (parameters == null) { if (parameters == null) {
parameters = new ParsedActualParameters(); parameters = new ParsedActualParameters();
parameters.setLocation(getLocation($lp.start, $rp.stop)); parameters.setLocation( getLocation( $funcid.start, $rp.stop ) );
} }
ParameterisedSubReference funcReference = new ParameterisedSubReference($funcid.identifier, parameters); ParameterisedSubReference funcReference = new ParameterisedSubReference($funcid.identifier, parameters);
funcReference.setLocation( getLocation( $funcid.start, $par.stop ) ); funcReference.setLocation( getLocation( $funcid.start, $par.stop ) );
......
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