| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library analyzer.src.generated.parser; | 5 library analyzer.src.generated.parser; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 import "dart:math" as math; | 8 import "dart:math" as math; |
| 9 | 9 |
| 10 import 'package:analyzer/dart/ast/ast.dart'; | 10 import 'package:analyzer/dart/ast/ast.dart'; |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 void set enableNnbd(bool enable) { | 291 void set enableNnbd(bool enable) { |
| 292 _enableNnbd = enable; | 292 _enableNnbd = enable; |
| 293 } | 293 } |
| 294 | 294 |
| 295 /** | 295 /** |
| 296 * Return `true` if the current token is the first token of a return type that | 296 * Return `true` if the current token is the first token of a return type that |
| 297 * is followed by an identifier, possibly followed by a list of type | 297 * is followed by an identifier, possibly followed by a list of type |
| 298 * parameters, followed by a left-parenthesis. This is used by | 298 * parameters, followed by a left-parenthesis. This is used by |
| 299 * [parseTypeAlias] to determine whether or not to parse a return type. | 299 * [parseTypeAlias] to determine whether or not to parse a return type. |
| 300 */ | 300 */ |
| 301 @deprecated | |
| 302 bool get hasReturnTypeInTypeAlias { | 301 bool get hasReturnTypeInTypeAlias { |
| 302 // TODO(brianwilkerson) This is too expensive as implemented and needs to be |
| 303 // re-implemented or removed. |
| 303 Token next = skipReturnType(_currentToken); | 304 Token next = skipReturnType(_currentToken); |
| 304 if (next == null) { | 305 if (next == null) { |
| 305 return false; | 306 return false; |
| 306 } | 307 } |
| 307 return _tokenMatchesIdentifier(next); | 308 return _tokenMatchesIdentifier(next); |
| 308 } | 309 } |
| 309 | 310 |
| 310 /** | 311 /** |
| 311 * Set whether the parser is to parse the async support. | 312 * Set whether the parser is to parse the async support. |
| 312 * | 313 * |
| (...skipping 7807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8120 */ | 8121 */ |
| 8121 Parser_SyntheticKeywordToken(Keyword keyword, int offset) | 8122 Parser_SyntheticKeywordToken(Keyword keyword, int offset) |
| 8122 : super(keyword, offset); | 8123 : super(keyword, offset); |
| 8123 | 8124 |
| 8124 @override | 8125 @override |
| 8125 int get length => 0; | 8126 int get length => 0; |
| 8126 | 8127 |
| 8127 @override | 8128 @override |
| 8128 Token copy() => new Parser_SyntheticKeywordToken(keyword, offset); | 8129 Token copy() => new Parser_SyntheticKeywordToken(keyword, offset); |
| 8129 } | 8130 } |
| OLD | NEW |