| 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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 String name, | 253 String name, |
| 254 List<TypeVariableBuilder> typeVariables, | 254 List<TypeVariableBuilder> typeVariables, |
| 255 List<FormalParameterBuilder> formals, | 255 List<FormalParameterBuilder> formals, |
| 256 ProcedureKind kind, | 256 ProcedureKind kind, |
| 257 int charOffset, | 257 int charOffset, |
| 258 int charOpenParenOffset, | 258 int charOpenParenOffset, |
| 259 int charEndOffset, | 259 int charEndOffset, |
| 260 String nativeMethodName, | 260 String nativeMethodName, |
| 261 {bool isTopLevel}); | 261 {bool isTopLevel}); |
| 262 | 262 |
| 263 void addEnum(List<MetadataBuilder> metadata, String name, | 263 void addEnum( |
| 264 List<Object> constantNamesAndOffsets, int charOffset, int charEndOffset); | 264 String documentationComment, |
| 265 List<MetadataBuilder> metadata, |
| 266 String name, |
| 267 List<Object> constantNamesAndOffsets, |
| 268 int charOffset, |
| 269 int charEndOffset); |
| 265 | 270 |
| 266 void addFunctionTypeAlias( | 271 void addFunctionTypeAlias( |
| 267 List<MetadataBuilder> metadata, | 272 List<MetadataBuilder> metadata, |
| 268 String name, | 273 String name, |
| 269 List<TypeVariableBuilder> typeVariables, | 274 List<TypeVariableBuilder> typeVariables, |
| 270 FunctionTypeBuilder type, | 275 FunctionTypeBuilder type, |
| 271 int charOffset); | 276 int charOffset); |
| 272 | 277 |
| 273 FunctionTypeBuilder addFunctionType( | 278 FunctionTypeBuilder addFunctionType( |
| 274 T returnType, | 279 T returnType, |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 /// synthesize type variables on the factory matching the class'. | 657 /// synthesize type variables on the factory matching the class'. |
| 653 void addFactoryDeclaration( | 658 void addFactoryDeclaration( |
| 654 ProcedureBuilder procedure, DeclarationBuilder<T> factoryDeclaration) { | 659 ProcedureBuilder procedure, DeclarationBuilder<T> factoryDeclaration) { |
| 655 factoryDeclarations[procedure] = factoryDeclaration; | 660 factoryDeclarations[procedure] = factoryDeclaration; |
| 656 } | 661 } |
| 657 | 662 |
| 658 Scope toScope(Scope parent) { | 663 Scope toScope(Scope parent) { |
| 659 return new Scope(members, setters, parent, isModifiable: false); | 664 return new Scope(members, setters, parent, isModifiable: false); |
| 660 } | 665 } |
| 661 } | 666 } |
| OLD | NEW |