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.source_library_builder; | 5 library fasta.source_library_builder; |
6 | 6 |
7 import 'package:kernel/ast.dart' show ProcedureKind; | 7 import 'package:kernel/ast.dart' show ProcedureKind; |
8 | 8 |
9 import '../../base/resolve_relative_uri.dart' show resolveRelativeUri; | 9 import '../../base/resolve_relative_uri.dart' show resolveRelativeUri; |
10 | 10 |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 parts.add(loader.read(resolvedUri, charOffset, | 190 parts.add(loader.read(resolvedUri, charOffset, |
191 fileUri: newFileUri, accessor: this)); | 191 fileUri: newFileUri, accessor: this)); |
192 } | 192 } |
193 | 193 |
194 void addPartOf(List<MetadataBuilder> metadata, String name, String uri) { | 194 void addPartOf(List<MetadataBuilder> metadata, String name, String uri) { |
195 partOfName = name; | 195 partOfName = name; |
196 partOfUri = uri; | 196 partOfUri = uri; |
197 } | 197 } |
198 | 198 |
199 void addClass( | 199 void addClass( |
| 200 String documentationComment, |
200 List<MetadataBuilder> metadata, | 201 List<MetadataBuilder> metadata, |
201 int modifiers, | 202 int modifiers, |
202 String name, | 203 String name, |
203 List<TypeVariableBuilder> typeVariables, | 204 List<TypeVariableBuilder> typeVariables, |
204 T supertype, | 205 T supertype, |
205 List<T> interfaces, | 206 List<T> interfaces, |
206 int charOffset); | 207 int charOffset); |
207 | 208 |
208 void addNamedMixinApplication( | 209 void addNamedMixinApplication( |
209 List<MetadataBuilder> metadata, | 210 List<MetadataBuilder> metadata, |
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 /// synthesize type variables on the factory matching the class'. | 646 /// synthesize type variables on the factory matching the class'. |
646 void addFactoryDeclaration( | 647 void addFactoryDeclaration( |
647 ProcedureBuilder procedure, DeclarationBuilder<T> factoryDeclaration) { | 648 ProcedureBuilder procedure, DeclarationBuilder<T> factoryDeclaration) { |
648 factoryDeclarations[procedure] = factoryDeclaration; | 649 factoryDeclarations[procedure] = factoryDeclaration; |
649 } | 650 } |
650 | 651 |
651 Scope toScope(Scope parent) { | 652 Scope toScope(Scope parent) { |
652 return new Scope(members, setters, parent, isModifiable: false); | 653 return new Scope(members, setters, parent, isModifiable: false); |
653 } | 654 } |
654 } | 655 } |
OLD | NEW |