flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joshtynj...@apache.org
Subject [1/3] git commit: [flex-falcon] [refs/heads/develop] - ASParser: open and close braces are included in switch statement contents to get correct start and end lines/columns
Date Wed, 27 Apr 2016 23:34:36 GMT
Repository: flex-falcon
Updated Branches:
  refs/heads/develop d82c11b32 -> 2301f056a


ASParser: open and close braces are included in switch statement contents to get correct start
and end lines/columns


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/518b959d
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/518b959d
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/518b959d

Branch: refs/heads/develop
Commit: 518b959daba7f102158cb0ace27007c27c1e7474
Parents: 34ed40f
Author: Josh Tynjala <joshtynjala@gmail.com>
Authored: Wed Apr 27 16:28:06 2016 -0700
Committer: Josh Tynjala <joshtynjala@gmail.com>
Committed: Wed Apr 27 16:28:25 2016 -0700

----------------------------------------------------------------------
 .../org/apache/flex/compiler/internal/parsing/as/ASParser.g      | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/518b959d/compiler/src/main/antlr/org/apache/flex/compiler/internal/parsing/as/ASParser.g
----------------------------------------------------------------------
diff --git a/compiler/src/main/antlr/org/apache/flex/compiler/internal/parsing/as/ASParser.g
b/compiler/src/main/antlr/org/apache/flex/compiler/internal/parsing/as/ASParser.g
index 4d4936b..e5af0f9 100644
--- a/compiler/src/main/antlr/org/apache/flex/compiler/internal/parsing/as/ASParser.g
+++ b/compiler/src/main/antlr/org/apache/flex/compiler/internal/parsing/as/ASParser.g
@@ -1813,7 +1813,9 @@ cases[SwitchNode sw]
 { 
 	final ContainerNode b = sw.getContentsNode(); 
 }
-    :   TOKEN_BLOCK_OPEN caseClauses[b] TOKEN_BLOCK_CLOSE
+    :   openT:TOKEN_BLOCK_OPEN           { b.startBefore(openT); }
+    	caseClauses[b]
+    	closeT:TOKEN_BLOCK_CLOSE         { b.endAfter(closeT); }
 	;
 
 /**


Mime
View raw message