Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Unified Diff: compiler/java/com/google/dart/compiler/parser/CompletionHooksParserBase.java

Issue 8295003: Improve error message for over qualified constructor names. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/parser/DartParser.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/parser/CompletionHooksParserBase.java
===================================================================
--- compiler/java/com/google/dart/compiler/parser/CompletionHooksParserBase.java (revision 418)
+++ compiler/java/com/google/dart/compiler/parser/CompletionHooksParserBase.java (working copy)
@@ -18,7 +18,7 @@
* <li>remember start positions to set source location information on AST
* nodes
* <li>provide an event mechanism that is useful for an IDE operating on code
- * being edited - for example, for error recovery or code completion
+ * being edited - for example, for error recovery or code completion
* </ol>
* <p>
* Every call to {@code beginFoo} must be balanced with exactly one call
@@ -90,7 +90,7 @@
/**
* Set the context the parser will use.
- *
+ *
* @param ctx the {@link ParserContext} to use
*/
public CompletionHooksParserBase(ParserContext ctx) {
@@ -145,6 +145,10 @@
begin();
}
+ protected void beginConstructorNamePart() {
+ begin();
+ }
+
protected void beginContinueStatement() {
begin();
}
@@ -392,7 +396,7 @@
/**
* Terminates a grammatical structure, saving the source location in the
* supplied AST node.
- *
+ *
* @param <T> type of the AST node
* @param result the AST node to return, if any - if it implements
* {@link HasSourceInfo}, the source location is set based on the
@@ -408,7 +412,7 @@
* subcomponents of the AST. This may only be called within an active
* {@link #begin()} call, which must still be terminated with either
* {@link #done(Object)} or {@link #rollback()}.
- *
+ *
* @param <T> type of the AST node
* @param result the AST node to return - if it implements
* {@link HasSourceInfo}, the source location is set based on the
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/parser/DartParser.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698