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

Side by Side Diff: pkg/analyzer/lib/src/task/incremental_element_builder.dart

Issue 1693083004: Move scanner out of generated and clean up imports (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: clean up Created 4 years, 10 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 | « pkg/analyzer/lib/src/task/html.dart ('k') | pkg/analyzer/lib/src/task/strong/checker.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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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.task.incremental_element_builder; 5 library analyzer.src.task.incremental_element_builder;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/dart/ast/ast.dart'; 9 import 'package:analyzer/dart/ast/ast.dart';
10 import 'package:analyzer/dart/ast/token.dart';
10 import 'package:analyzer/dart/element/element.dart'; 11 import 'package:analyzer/dart/element/element.dart';
11 import 'package:analyzer/dart/element/visitor.dart'; 12 import 'package:analyzer/dart/element/visitor.dart';
13 import 'package:analyzer/src/dart/ast/token.dart';
12 import 'package:analyzer/src/dart/ast/utilities.dart'; 14 import 'package:analyzer/src/dart/ast/utilities.dart';
13 import 'package:analyzer/src/dart/element/builder.dart'; 15 import 'package:analyzer/src/dart/element/builder.dart';
14 import 'package:analyzer/src/dart/element/element.dart'; 16 import 'package:analyzer/src/dart/element/element.dart';
15 import 'package:analyzer/src/generated/resolver.dart'; 17 import 'package:analyzer/src/generated/resolver.dart';
16 import 'package:analyzer/src/generated/scanner.dart';
17 import 'package:analyzer/src/generated/source.dart'; 18 import 'package:analyzer/src/generated/source.dart';
18 19
19 /** 20 /**
20 * The change of a single [CompilationUnitElement]. 21 * The change of a single [CompilationUnitElement].
21 */ 22 */
22 class CompilationUnitElementDelta { 23 class CompilationUnitElementDelta {
23 /** 24 /**
24 * One or more directives were added/removed. 25 * One or more directives were added/removed.
25 */ 26 */
26 bool hasDirectiveChange = false; 27 bool hasDirectiveChange = false;
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 } 363 }
363 int oldOffset = element.nameOffset; 364 int oldOffset = element.nameOffset;
364 int newOffset = map[oldOffset]; 365 int newOffset = map[oldOffset];
365 assert(newOffset != null); 366 assert(newOffset != null);
366 (element as ElementImpl).nameOffset = newOffset; 367 (element as ElementImpl).nameOffset = newOffset;
367 if (element is! LibraryElement) { 368 if (element is! LibraryElement) {
368 super.visitElement(element); 369 super.visitElement(element);
369 } 370 }
370 } 371 }
371 } 372 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/task/html.dart ('k') | pkg/analyzer/lib/src/task/strong/checker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698