Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: pkg/front_end/lib/src/fasta/source/source_library_builder.dart

Issue 2794533002: Move scope.dart. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 AsyncMarker, ProcedureKind; 7 import 'package:kernel/ast.dart' show AsyncMarker, ProcedureKind;
8 8
9 import '../combinator.dart' show Combinator; 9 import '../combinator.dart' show Combinator;
10 10
11 import '../errors.dart' show inputError, internalError; 11 import '../errors.dart' show inputError, internalError;
12 12
13 import '../export.dart' show Export; 13 import '../export.dart' show Export;
14 14
15 import '../import.dart' show Import; 15 import '../import.dart' show Import;
16 16
17 import 'source_loader.dart' show SourceLoader; 17 import 'source_loader.dart' show SourceLoader;
18 18
19 import '../builder/scope.dart' show Scope;
20
21 import '../builder/builder.dart' 19 import '../builder/builder.dart'
22 show 20 show
23 Builder, 21 Builder,
24 ClassBuilder, 22 ClassBuilder,
25 ConstructorReferenceBuilder, 23 ConstructorReferenceBuilder,
26 FormalParameterBuilder, 24 FormalParameterBuilder,
27 FunctionTypeBuilder, 25 FunctionTypeBuilder,
28 LibraryBuilder, 26 LibraryBuilder,
29 MemberBuilder, 27 MemberBuilder,
30 MetadataBuilder, 28 MetadataBuilder,
31 PrefixBuilder, 29 PrefixBuilder,
32 ProcedureBuilder, 30 ProcedureBuilder,
31 Scope,
33 TypeBuilder, 32 TypeBuilder,
34 TypeDeclarationBuilder, 33 TypeDeclarationBuilder,
35 TypeVariableBuilder, 34 TypeVariableBuilder,
36 Unhandled; 35 Unhandled;
37 36
38 abstract class SourceLibraryBuilder<T extends TypeBuilder, R> 37 abstract class SourceLibraryBuilder<T extends TypeBuilder, R>
39 extends LibraryBuilder<T, R> { 38 extends LibraryBuilder<T, R> {
40 final SourceLoader loader; 39 final SourceLoader loader;
41 40
42 final DeclarationBuilder<T> libraryDeclaration = 41 final DeclarationBuilder<T> libraryDeclaration =
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 } 537 }
539 538
540 /// Called to register [procedure] as a factory whose types are collected in 539 /// Called to register [procedure] as a factory whose types are collected in
541 /// [factoryDeclaration]. Later, once the class has been built, we can 540 /// [factoryDeclaration]. Later, once the class has been built, we can
542 /// synthesize type variables on the factory matching the class'. 541 /// synthesize type variables on the factory matching the class'.
543 void addFactoryDeclaration( 542 void addFactoryDeclaration(
544 ProcedureBuilder procedure, DeclarationBuilder<T> factoryDeclaration) { 543 ProcedureBuilder procedure, DeclarationBuilder<T> factoryDeclaration) {
545 factoryDeclarations[procedure] = factoryDeclaration; 544 factoryDeclarations[procedure] = factoryDeclaration;
546 } 545 }
547 } 546 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/source/scope_listener.dart ('k') | pkg/front_end/test/fasta/testing.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698