Repository: flex-falcon Updated Branches: refs/heads/develop 3deb30dfd -> 9162a4aac
StreamingASTokenizer: fixed issue where assertion would fail when include was used as an identifier Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/44aec6c1 Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/44aec6c1 Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/44aec6c1 Branch: refs/heads/develop Commit: 44aec6c1eb8c4b08d33e6b1c8cf8a4cc7e5cd3e7 Parents: 3deb30d Author: Josh Tynjala <[email protected]> Authored: Wed Jun 22 14:37:11 2016 -0700 Committer: Josh Tynjala <[email protected]> Committed: Wed Jun 22 14:37:11 2016 -0700 ---------------------------------------------------------------------- .../flex/compiler/internal/parsing/as/StreamingASTokenizer.java | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/44aec6c1/compiler/src/main/java/org/apache/flex/compiler/internal/parsing/as/StreamingASTokenizer.java ---------------------------------------------------------------------- diff --git a/compiler/src/main/java/org/apache/flex/compiler/internal/parsing/as/StreamingASTokenizer.java b/compiler/src/main/java/org/apache/flex/compiler/internal/parsing/as/StreamingASTokenizer.java index 2db5d17..d081e91 100644 --- a/compiler/src/main/java/org/apache/flex/compiler/internal/parsing/as/StreamingASTokenizer.java +++ b/compiler/src/main/java/org/apache/flex/compiler/internal/parsing/as/StreamingASTokenizer.java @@ -815,7 +815,10 @@ public class StreamingASTokenizer implements ASTokenTypes, IASTokenizer, Closeab case TOKEN_RESERVED_WORD_GET: case TOKEN_RESERVED_WORD_SET: case TOKEN_OPERATOR_MEMBER_ACCESS: + { retVal.setType(TOKEN_IDENTIFIER); + return retVal; + } } } // "followIncludes=false" is usually used for code model
