flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cd...@apache.org
Subject [42/50] git commit: [flex-falcon] [refs/heads/feature/maven-migration] - compiler: fixed column of NodeBase when starting after a token
Date Mon, 11 Apr 2016 14:00:09 GMT
compiler: fixed column of NodeBase when starting after a token


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

Branch: refs/heads/feature/maven-migration
Commit: d89a0b29c7e6905677f6b92c35c239e72b16f5d2
Parents: 23f83ec
Author: Josh Tynjala <joshtynjala@apache.org>
Authored: Fri Apr 8 11:56:21 2016 -0700
Committer: Josh Tynjala <joshtynjala@apache.org>
Committed: Fri Apr 8 11:56:21 2016 -0700

----------------------------------------------------------------------
 .../src/org/apache/flex/compiler/internal/tree/as/NodeBase.java | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/d89a0b29/compiler/src/org/apache/flex/compiler/internal/tree/as/NodeBase.java
----------------------------------------------------------------------
diff --git a/compiler/src/org/apache/flex/compiler/internal/tree/as/NodeBase.java b/compiler/src/org/apache/flex/compiler/internal/tree/as/NodeBase.java
index a6ca29a..be0510d 100644
--- a/compiler/src/org/apache/flex/compiler/internal/tree/as/NodeBase.java
+++ b/compiler/src/org/apache/flex/compiler/internal/tree/as/NodeBase.java
@@ -335,7 +335,10 @@ public abstract class NodeBase extends SourceLocation implements IASNode
     public void startAfter(Token token)
     {
         if (token instanceof ISourceLocation)
-            startAfter((ISourceLocation)token);
+        {
+            startAfter((ISourceLocation) token);
+            setColumn(getColumn() + token.getText().length());
+        }
     }
     
     /**


Mime
View raw message