Repository: flex-falcon Updated Branches: refs/heads/develop 239f935f2 -> 4cc081b01
ASParser.g: fixed issue where the parameters container of a FunctionNode had the wrong column position. similar to function call arguments, the parameters now include the parentheses Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/94987360 Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/94987360 Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/94987360 Branch: refs/heads/develop Commit: 94987360cb06b00d6f7909ffdfc2ab74f50de544 Parents: 239f935 Author: Josh Tynjala <[email protected]> Authored: Fri Apr 8 10:48:33 2016 -0700 Committer: Josh Tynjala <[email protected]> Committed: Fri Apr 8 10:48:33 2016 -0700 ---------------------------------------------------------------------- .../org/apache/flex/compiler/internal/parsing/as/ASParser.g | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/94987360/compiler/src/org/apache/flex/compiler/internal/parsing/as/ASParser.g ---------------------------------------------------------------------- diff --git a/compiler/src/org/apache/flex/compiler/internal/parsing/as/ASParser.g b/compiler/src/org/apache/flex/compiler/internal/parsing/as/ASParser.g index 835f63a..34cb240 100644 --- a/compiler/src/org/apache/flex/compiler/internal/parsing/as/ASParser.g +++ b/compiler/src/org/apache/flex/compiler/internal/parsing/as/ASParser.g @@ -931,11 +931,11 @@ functionExpression returns [FunctionObjectNode n] lpT:TOKEN_PAREN_OPEN { p = f.getParametersContainerNode(); - p.startAfter(lpT); + p.startBefore(lpT); } formalParameters[p] rpT:TOKEN_PAREN_CLOSE - { p.endBefore(rpT); } + { p.endAfter(rpT); } (resultType[f])? { enableSemicolonInsertion(); } @@ -1044,11 +1044,11 @@ functionDefinition[ContainerNode c, INamespaceDecorationNode namespace, List<Mod lpT:TOKEN_PAREN_OPEN { final ContainerNode parameters = n.getParametersContainerNode(); - parameters.startAfter(lpT); + parameters.startBefore(lpT); } formalParameters[parameters] ( rpT:TOKEN_PAREN_CLOSE - { parameters.endBefore(rpT); } + { parameters.endAfter(rpT); } // error recovery for typing in-progress function definitions exception catch [RecognitionException ex] { handleParsingError(ex); } )
