| 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 2102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2113 */ | 2113 */ |
| 2114 final Source _source; | 2114 final Source _source; |
| 2115 | 2115 |
| 2116 /** | 2116 /** |
| 2117 * The error listener that will be informed of any errors that are found | 2117 * The error listener that will be informed of any errors that are found |
| 2118 * during the parse. | 2118 * during the parse. |
| 2119 */ | 2119 */ |
| 2120 final AnalysisErrorListener _errorListener; | 2120 final AnalysisErrorListener _errorListener; |
| 2121 | 2121 |
| 2122 /** | 2122 /** |
| 2123 * An [errorListener] lock, if more than `0`, then errors are not reported. | 2123 * An [_errorListener] lock, if more than `0`, then errors are not reported. |
| 2124 */ | 2124 */ |
| 2125 int _errorListenerLock = 0; | 2125 int _errorListenerLock = 0; |
| 2126 | 2126 |
| 2127 /** | 2127 /** |
| 2128 * A flag indicating whether the parser is to parse the async support. | 2128 * A flag indicating whether the parser is to parse the async support. |
| 2129 */ | 2129 */ |
| 2130 bool _parseAsync = true; | 2130 bool _parseAsync = true; |
| 2131 | 2131 |
| 2132 /** | 2132 /** |
| 2133 * A flag indicating whether parser is to parse function bodies. | 2133 * A flag indicating whether parser is to parse function bodies. |
| (...skipping 7838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9972 */ | 9972 */ |
| 9973 const ParserErrorCode(String name, String message, [String correction]) | 9973 const ParserErrorCode(String name, String message, [String correction]) |
| 9974 : super(name, message, correction); | 9974 : super(name, message, correction); |
| 9975 | 9975 |
| 9976 @override | 9976 @override |
| 9977 ErrorSeverity get errorSeverity => ErrorSeverity.ERROR; | 9977 ErrorSeverity get errorSeverity => ErrorSeverity.ERROR; |
| 9978 | 9978 |
| 9979 @override | 9979 @override |
| 9980 ErrorType get type => ErrorType.SYNTACTIC_ERROR; | 9980 ErrorType get type => ErrorType.SYNTACTIC_ERROR; |
| 9981 } | 9981 } |
| OLD | NEW |