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

Side by Side Diff: pkg/front_end/lib/src/fasta/builder/class_builder.dart

Issue 2755983002: Implement override checks for methods. (Closed)
Patch Set: Add TODO and merged with master. Created 3 years, 9 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.class_builder; 5 library fasta.class_builder;
6 6
7 import '../errors.dart' show internalError; 7 import '../errors.dart' show internalError;
8 8
9 import 'builder.dart' 9 import 'builder.dart'
10 show 10 show
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 bool get isMixinApplication => mixedInType != null; 47 bool get isMixinApplication => mixedInType != null;
48 48
49 T get mixedInType; 49 T get mixedInType;
50 50
51 List<ConstructorReferenceBuilder> get constructorReferences => null; 51 List<ConstructorReferenceBuilder> get constructorReferences => null;
52 52
53 Map<String, Builder> get constructors; 53 Map<String, Builder> get constructors;
54 54
55 Map<String, Builder> get membersInScope => members; 55 Map<String, Builder> get membersInScope => members;
56 56
57 LibraryBuilder get library {
58 LibraryBuilder library = parent;
59 return library.partOfLibrary ?? library;
60 }
61
57 int resolveConstructors(LibraryBuilder library) { 62 int resolveConstructors(LibraryBuilder library) {
58 if (constructorReferences == null) return 0; 63 if (constructorReferences == null) return 0;
59 Scope scope = computeInstanceScope(library.scope); 64 Scope scope = computeInstanceScope(library.scope);
60 for (ConstructorReferenceBuilder ref in constructorReferences) { 65 for (ConstructorReferenceBuilder ref in constructorReferences) {
61 ref.resolveIn(scope); 66 ref.resolveIn(scope);
62 } 67 }
63 return constructorReferences.length; 68 return constructorReferences.length;
64 } 69 }
65 70
66 Scope computeInstanceScope(Scope parent) { 71 Scope computeInstanceScope(Scope parent) {
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 argument = argument.subst(substitutionMap); 166 argument = argument.subst(substitutionMap);
162 } 167 }
163 directSubstitutionMap[variables[i]] = argument; 168 directSubstitutionMap[variables[i]] = argument;
164 } 169 }
165 substitutionMap = directSubstitutionMap; 170 substitutionMap = directSubstitutionMap;
166 } 171 }
167 } 172 }
168 return substitutionMap; 173 return substitutionMap;
169 } 174 }
170 } 175 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/analyzer/analyzer_loader.dart ('k') | pkg/front_end/lib/src/fasta/builder/library_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698