| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 fasta.library_builder; | 5 library fasta.library_builder; |
| 6 | 6 |
| 7 import '../combinator.dart' show Combinator; | 7 import '../combinator.dart' show Combinator; |
| 8 | 8 |
| 9 import '../problems.dart' show internalProblem; | 9 import '../problems.dart' show internalProblem; |
| 10 | 10 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 LibraryBuilder(Uri fileUri, this.scope, this.exportScope) | 59 LibraryBuilder(Uri fileUri, this.scope, this.exportScope) |
| 60 : fileUri = fileUri, | 60 : fileUri = fileUri, |
| 61 relativeFileUri = relativizeUri(fileUri), | 61 relativeFileUri = relativizeUri(fileUri), |
| 62 scopeBuilder = new ScopeBuilder(scope), | 62 scopeBuilder = new ScopeBuilder(scope), |
| 63 exportScopeBuilder = new ScopeBuilder(exportScope), | 63 exportScopeBuilder = new ScopeBuilder(exportScope), |
| 64 super(null, -1, fileUri); | 64 super(null, -1, fileUri); |
| 65 | 65 |
| 66 Loader get loader; | 66 Loader get loader; |
| 67 | 67 |
| 68 @override |
| 69 R get target; |
| 70 |
| 68 Uri get uri; | 71 Uri get uri; |
| 69 | 72 |
| 70 Builder addBuilder(String name, Builder builder, int charOffset); | 73 Builder addBuilder(String name, Builder builder, int charOffset); |
| 71 | 74 |
| 72 void addExporter( | 75 void addExporter( |
| 73 LibraryBuilder exporter, List<Combinator> combinators, int charOffset) { | 76 LibraryBuilder exporter, List<Combinator> combinators, int charOffset) { |
| 74 exporters.add(new Export(exporter, this, combinators, charOffset)); | 77 exporters.add(new Export(exporter, this, combinators, charOffset)); |
| 75 } | 78 } |
| 76 | 79 |
| 77 /// See `Loader.addCompileTimeError` for an explanation of the | 80 /// See `Loader.addCompileTimeError` for an explanation of the |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 templateInternalProblemNotFoundIn.withArguments( | 196 templateInternalProblemNotFoundIn.withArguments( |
| 194 name, relativeFileUri), | 197 name, relativeFileUri), |
| 195 -1, | 198 -1, |
| 196 null); | 199 null); |
| 197 } | 200 } |
| 198 | 201 |
| 199 Builder lookup(String name, int charOffset, Uri fileUri) { | 202 Builder lookup(String name, int charOffset, Uri fileUri) { |
| 200 return scope.lookup(name, charOffset, fileUri); | 203 return scope.lookup(name, charOffset, fileUri); |
| 201 } | 204 } |
| 202 } | 205 } |
| OLD | NEW |