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

Side by Side Diff: pkg/front_end/lib/src/fasta/builder/prefix_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.prefix_builder; 5 library fasta.prefix_builder;
6 6
7 import 'builder.dart' show Builder, LibraryBuilder, MemberBuilder;
8
9 import '../messages.dart' show warning;
10
11 import 'package:kernel/ast.dart' show Member; 7 import 'package:kernel/ast.dart' show Member;
12 8
13 import '../dill/dill_member_builder.dart' show DillMemberBuilder; 9 import '../dill/dill_member_builder.dart' show DillMemberBuilder;
14 10
15 import '../errors.dart' show internalError; 11 import '../errors.dart' show internalError;
16 12
13 import '../messages.dart' show warning;
14
15 import 'builder.dart' show Builder, LibraryBuilder, MemberBuilder;
16
17 class PrefixBuilder extends Builder { 17 class PrefixBuilder extends Builder {
18 final String name; 18 final String name;
19 19
20 final Map<String, Builder> exports; 20 final Map<String, Builder> exports;
21 21
22 final LibraryBuilder parent; 22 final LibraryBuilder parent;
23 23
24 PrefixBuilder(this.name, this.exports, LibraryBuilder parent, int charOffset) 24 PrefixBuilder(this.name, this.exports, LibraryBuilder parent, int charOffset)
25 : parent = parent, 25 : parent = parent,
26 super(parent, charOffset, parent.fileUri); 26 super(parent, charOffset, parent.fileUri);
(...skipping 12 matching lines...) Expand all
39 } else if (builder is MemberBuilder) { 39 } else if (builder is MemberBuilder) {
40 return builder.target; 40 return builder.target;
41 } else { 41 } else {
42 return null; 42 return null;
43 } 43 }
44 } 44 }
45 45
46 @override 46 @override
47 String get fullNameForErrors => name; 47 String get fullNameForErrors => name;
48 } 48 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698