| Index: pkg/analyzer/lib/src/generated/scanner.dart
|
| diff --git a/pkg/analyzer/lib/src/generated/scanner.dart b/pkg/analyzer/lib/src/generated/scanner.dart
|
| index f79401ed37caa433f9b7e97833f9f70241db67c3..9e028ca29686c8576ef50cad18146639563783bb 100644
|
| --- a/pkg/analyzer/lib/src/generated/scanner.dart
|
| +++ b/pkg/analyzer/lib/src/generated/scanner.dart
|
| @@ -723,12 +723,6 @@ class Scanner {
|
| bool _hasUnmatchedGroups = false;
|
|
|
| /**
|
| - * A flag indicating whether null-aware operators ('?.', '??', and '??=')
|
| - * should be tokenized.
|
| - */
|
| - bool enableNullAwareOperators = false;
|
| -
|
| - /**
|
| * Initialize a newly created scanner to scan characters from the given
|
| * [source]. The given character [_reader] will be used to read the characters
|
| * in the source. The given [_errorListener] will be informed of any errors
|
| @@ -1664,11 +1658,11 @@ class Scanner {
|
| int _tokenizeQuestion() {
|
| // ? ?. ?? ??=
|
| int next = _reader.advance();
|
| - if (enableNullAwareOperators && next == 0x2E) {
|
| + if (next == 0x2E) {
|
| // '.'
|
| _appendTokenOfType(TokenType.QUESTION_PERIOD);
|
| return _reader.advance();
|
| - } else if (enableNullAwareOperators && next == 0x3F) {
|
| + } else if (next == 0x3F) {
|
| // '?'
|
| next = _reader.advance();
|
| if (next == 0x3D) {
|
|
|