| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| package com.google.dart.compiler.parser; |
| |
| import java.lang.annotation.ElementType; |
| import java.lang.annotation.Retention; |
| import java.lang.annotation.RetentionPolicy; |
| import java.lang.annotation.Target; |
| |
| /** |
| * Put this annotation on a method in {@link DartParser} so that code will not consume any tokens |
| * that a method further up on the stack can use to properly terminate a statement. |
| */ |
| @Retention(value=RetentionPolicy.RUNTIME) |
| @Target(value=ElementType.METHOD) |
| public @interface Terminals { |
| public Token[] tokens() default {}; |
| } |