You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2013/09/17 21:04:47 UTC
[2/7] git commit: [flex-falcon] [refs/heads/develop] - move creation
of CompilerProblem so it is only created when needed
move creation of CompilerProblem so it is only created when needed
Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/e2e48e80
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/e2e48e80
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/e2e48e80
Branch: refs/heads/develop
Commit: e2e48e809d0a3764a81141a4344729878656bd4c
Parents: 6aa1e02
Author: Alex Harui <ah...@apache.org>
Authored: Mon Sep 16 14:22:36 2013 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Tue Sep 17 12:04:37 2013 -0700
----------------------------------------------------------------------
.../apache/flex/compiler/internal/parsing/as/BaseASParser.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/e2e48e80/compiler/src/org/apache/flex/compiler/internal/parsing/as/BaseASParser.java
----------------------------------------------------------------------
diff --git a/compiler/src/org/apache/flex/compiler/internal/parsing/as/BaseASParser.java b/compiler/src/org/apache/flex/compiler/internal/parsing/as/BaseASParser.java
index ed82d09..ca19e78 100644
--- a/compiler/src/org/apache/flex/compiler/internal/parsing/as/BaseASParser.java
+++ b/compiler/src/org/apache/flex/compiler/internal/parsing/as/BaseASParser.java
@@ -602,8 +602,6 @@ abstract class BaseASParser extends LLkParser implements IProblemReporter
String sourcePath = location.getSourcePath();
- final ParserProblem genericParserProblem = new ParserProblem(location);
-
// create tokenizer
final StreamingASTokenizer tokenizer =
StreamingASTokenizer.createForInlineExpressionParsing(
@@ -633,6 +631,7 @@ abstract class BaseASParser extends LLkParser implements IProblemReporter
}
catch (TokenStreamException e)
{
+ final ParserProblem genericParserProblem = new ParserProblem(location);
problems.add(genericParserProblem);
}
finally