Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(613)

Side by Side Diff: pkg/analyzer/lib/src/generated/incremental_scanner.dart

Issue 1788303002: Mark some unused code as being deprecated (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/parser.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698