| 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 @deprecated |
| 5 library analyzer.src.generated.incremental_scanner; | 6 library analyzer.src.generated.incremental_scanner; |
| 6 | 7 |
| 7 import "dart:math" as math; | 8 import "dart:math" as math; |
| 8 | 9 |
| 9 import 'package:analyzer/dart/ast/token.dart'; | 10 import 'package:analyzer/dart/ast/token.dart'; |
| 10 import 'package:analyzer/src/dart/scanner/reader.dart'; | 11 import 'package:analyzer/src/dart/scanner/reader.dart'; |
| 11 import 'package:analyzer/src/dart/scanner/scanner.dart'; | 12 import 'package:analyzer/src/dart/scanner/scanner.dart'; |
| 12 import 'package:analyzer/src/generated/engine.dart'; | 13 import 'package:analyzer/src/generated/engine.dart'; |
| 13 import 'package:analyzer/src/generated/error.dart'; | 14 import 'package:analyzer/src/generated/error.dart'; |
| 14 import 'package:analyzer/src/generated/source.dart'; | 15 import 'package:analyzer/src/generated/source.dart'; |
| 15 import 'package:analyzer/src/generated/utilities_collection.dart' show TokenMap; | 16 import 'package:analyzer/src/generated/utilities_collection.dart' show TokenMap; |
| 16 | 17 |
| 17 /** | 18 /** |
| 18 * An `IncrementalScanner` is a scanner that scans a subset of a string and | 19 * An `IncrementalScanner` is a scanner that scans a subset of a string and |
| 19 * inserts the resulting tokens into the middle of an existing token stream. | 20 * inserts the resulting tokens into the middle of an existing token stream. |
| 20 */ | 21 */ |
| 22 @deprecated |
| 21 class IncrementalScanner { | 23 class IncrementalScanner { |
| 22 /** | 24 /** |
| 23 * The source being scanned. | 25 * The source being scanned. |
| 24 */ | 26 */ |
| 25 final Source source; | 27 final Source source; |
| 26 | 28 |
| 27 /** | 29 /** |
| 28 * The reader used to access the characters in the source. | 30 * The reader used to access the characters in the source. |
| 29 */ | 31 */ |
| 30 final CharacterReader reader; | 32 final CharacterReader reader; |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 while (comment != null) { | 242 while (comment != null) { |
| 241 comment.offset += delta; | 243 comment.offset += delta; |
| 242 comment = comment.next; | 244 comment = comment.next; |
| 243 } | 245 } |
| 244 token = token.next; | 246 token = token.next; |
| 245 } | 247 } |
| 246 _tokenMap.put(token, token); | 248 _tokenMap.put(token, token); |
| 247 token.offset += delta; | 249 token.offset += delta; |
| 248 } | 250 } |
| 249 } | 251 } |
| OLD | NEW |