| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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 library servicec.parser; | 5 library servicec.parser; |
| 6 | 6 |
| 7 import 'package:compiler/src/tokens/token.dart' show | 7 import 'package:compiler/src/tokens/token.dart' show |
| 8 ErrorToken, | 8 ErrorToken, |
| 9 KeywordToken, | 9 KeywordToken, |
| 10 Token; | 10 Token; |
| 11 | 11 |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 return tokens; | 238 return tokens; |
| 239 } | 239 } |
| 240 | 240 |
| 241 bool valid(Token tokens) { | 241 bool valid(Token tokens) { |
| 242 tokens = skipNewLines(tokens); | 242 tokens = skipNewLines(tokens); |
| 243 return tokens.kind != EOF_TOKEN && tokens is! ErrorToken; | 243 return tokens.kind != EOF_TOKEN && tokens is! ErrorToken; |
| 244 } | 244 } |
| 245 | 245 |
| 246 Token next(Token tokens) => skipNewLines(skipNewLines(tokens).next); | 246 Token next(Token tokens) => skipNewLines(skipNewLines(tokens).next); |
| 247 } | 247 } |
| OLD | NEW |