| 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 library code_transformer.src.resolver_impl; | 5 library code_transformer.src.resolver_impl; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'package:analyzer/analyzer.dart' show parseCompilationUnit; | 8 import 'package:analyzer/analyzer.dart' show parseCompilationUnit; |
| 9 import 'package:analyzer/src/generated/ast.dart'; | 9 import 'package:analyzer/src/generated/ast.dart'; |
| 10 import 'package:analyzer/src/generated/element.dart'; | 10 import 'package:analyzer/src/generated/element.dart'; |
| 11 import 'package:analyzer/src/generated/engine.dart'; | 11 import 'package:analyzer/src/generated/engine.dart'; |
| 12 import 'package:analyzer/src/generated/error.dart'; | |
| 13 import 'package:analyzer/src/generated/java_io.dart'; | 12 import 'package:analyzer/src/generated/java_io.dart'; |
| 14 import 'package:analyzer/src/generated/parser.dart'; | |
| 15 import 'package:analyzer/src/generated/scanner.dart'; | |
| 16 import 'package:analyzer/src/generated/sdk.dart' show DartSdk; | 13 import 'package:analyzer/src/generated/sdk.dart' show DartSdk; |
| 17 import 'package:analyzer/src/generated/sdk_io.dart' show DirectoryBasedDartSdk; | 14 import 'package:analyzer/src/generated/sdk_io.dart' show DirectoryBasedDartSdk; |
| 18 import 'package:analyzer/src/generated/source.dart'; | 15 import 'package:analyzer/src/generated/source.dart'; |
| 19 import 'package:barback/barback.dart'; | 16 import 'package:barback/barback.dart'; |
| 20 import 'package:code_transformers/assets.dart'; | 17 import 'package:code_transformers/assets.dart'; |
| 21 import 'package:path/path.dart' as native_path; | 18 import 'package:path/path.dart' as native_path; |
| 22 import 'package:source_maps/refactor.dart'; | 19 import 'package:source_maps/refactor.dart'; |
| 23 import 'package:source_maps/span.dart' show SourceFile, Span; | 20 import 'package:source_maps/span.dart' show SourceFile, Span; |
| 24 | 21 |
| 25 import 'resolver.dart'; | 22 import 'resolver.dart'; |
| (...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 | 599 |
| 603 void apply(ChangeSet changeSet) { | 600 void apply(ChangeSet changeSet) { |
| 604 if (!source.updateContents(content)) return; | 601 if (!source.updateContents(content)) return; |
| 605 if (source._revision == 1 && source._contents != null) { | 602 if (source._revision == 1 && source._contents != null) { |
| 606 changeSet.addedSource(source); | 603 changeSet.addedSource(source); |
| 607 } else { | 604 } else { |
| 608 changeSet.changedSource(source); | 605 changeSet.changedSource(source); |
| 609 } | 606 } |
| 610 } | 607 } |
| 611 } | 608 } |
| OLD | NEW |