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

Side by Side Diff: compiler/java/com/google/dart/compiler/parser/CompletionHooksParserBase.java

Issue 10860012: Add support for metadata annotation syntax (issue 4056) (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 package com.google.dart.compiler.parser; 5 package com.google.dart.compiler.parser;
6 6
7 import com.google.dart.compiler.common.HasSourceInfo; 7 import com.google.dart.compiler.common.HasSourceInfo;
8 8
9 /** 9 /**
10 * This class exists to enforce constraints on begin calls so code 10 * This class exists to enforce constraints on begin calls so code
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 } 250 }
251 251
252 protected void beginMapLiteral() { 252 protected void beginMapLiteral() {
253 begin(); 253 begin();
254 } 254 }
255 255
256 protected void beginMapLiteralEntry() { 256 protected void beginMapLiteralEntry() {
257 begin(); 257 begin();
258 } 258 }
259 259
260 protected void beginMetadata() {
261 begin();
262 }
263
260 protected void beginMethodName() { 264 protected void beginMethodName() {
261 begin(); 265 begin();
262 } 266 }
263 267
264 protected void beginNativeBody() { 268 protected void beginNativeBody() {
265 begin(); 269 begin();
266 } 270 }
267 271
268 protected void beginNativeDirective() { 272 protected void beginNativeDirective() {
269 begin(); 273 begin();
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 * Begin a grammatical structure, saving the current location to later set in 453 * Begin a grammatical structure, saving the current location to later set in
450 * an AST node. This may be followed by zero or more 454 * an AST node. This may be followed by zero or more
451 * {@link #doneWithoutConsuming(Object)} calls, and is terminated by exactly 455 * {@link #doneWithoutConsuming(Object)} calls, and is terminated by exactly
452 * one {@link #done(Object)} or {@link #rollback()} call. 456 * one {@link #done(Object)} or {@link #rollback()} call.
453 */ 457 */
454 private void begin() { 458 private void begin() {
455 assert guard.assertProgress(); 459 assert guard.assertProgress();
456 ctx.begin(); 460 ctx.begin();
457 } 461 }
458 } 462 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698