| OLD | NEW |
| 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/element/element.dart'; | 10 import 'package:analyzer/dart/element/element.dart'; |
| 11 import 'package:analyzer/dart/element/visitor.dart'; | 11 import 'package:analyzer/dart/element/visitor.dart'; |
| 12 import 'package:analyzer/src/dart/ast/utilities.dart'; | 12 import 'package:analyzer/src/dart/ast/utilities.dart'; |
| 13 import 'package:analyzer/src/dart/element/builder.dart'; |
| 13 import 'package:analyzer/src/dart/element/element.dart'; | 14 import 'package:analyzer/src/dart/element/element.dart'; |
| 14 import 'package:analyzer/src/generated/resolver.dart'; | 15 import 'package:analyzer/src/generated/resolver.dart'; |
| 15 import 'package:analyzer/src/generated/scanner.dart'; | 16 import 'package:analyzer/src/generated/scanner.dart'; |
| 16 import 'package:analyzer/src/generated/source.dart'; | 17 import 'package:analyzer/src/generated/source.dart'; |
| 17 | 18 |
| 18 /** | 19 /** |
| 19 * The change of a single [CompilationUnitElement]. | 20 * The change of a single [CompilationUnitElement]. |
| 20 */ | 21 */ |
| 21 class CompilationUnitElementDelta { | 22 class CompilationUnitElementDelta { |
| 22 /** | 23 /** |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 } | 362 } |
| 362 int oldOffset = element.nameOffset; | 363 int oldOffset = element.nameOffset; |
| 363 int newOffset = map[oldOffset]; | 364 int newOffset = map[oldOffset]; |
| 364 assert(newOffset != null); | 365 assert(newOffset != null); |
| 365 (element as ElementImpl).nameOffset = newOffset; | 366 (element as ElementImpl).nameOffset = newOffset; |
| 366 if (element is! LibraryElement) { | 367 if (element is! LibraryElement) { |
| 367 super.visitElement(element); | 368 super.visitElement(element); |
| 368 } | 369 } |
| 369 } | 370 } |
| 370 } | 371 } |
| OLD | NEW |