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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/compiler.dart

Issue 14168003: Implement implicit constructors in mixin applications. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 part of dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 log('Excess resolution work: ${resolved.length}.'); 945 log('Excess resolution work: ${resolved.length}.');
946 for (Element e in resolved) { 946 for (Element e in resolved) {
947 SourceSpan span = spanFromElement(e); 947 SourceSpan span = spanFromElement(e);
948 reportDiagnostic(span, 'Warning: $e resolved but not compiled.', 948 reportDiagnostic(span, 'Warning: $e resolved but not compiled.',
949 api.Diagnostic.WARNING); 949 api.Diagnostic.WARNING);
950 } 950 }
951 } 951 }
952 952
953 TreeElements analyzeElement(Element element) { 953 TreeElements analyzeElement(Element element) {
954 assert(invariant(element, element.isDeclaration)); 954 assert(invariant(element, element.isDeclaration));
955 assert(!element.isForwardingConstructor);
955 TreeElements elements = enqueuer.resolution.getCachedElements(element); 956 TreeElements elements = enqueuer.resolution.getCachedElements(element);
956 if (elements != null) return elements; 957 if (elements != null) return elements;
957 assert(parser != null); 958 assert(parser != null);
958 Node tree = parser.parse(element); 959 Node tree = parser.parse(element);
959 validator.validate(tree); 960 validator.validate(tree);
960 elements = resolver.resolve(element); 961 elements = resolver.resolve(element);
961 if (elements != null) { 962 if (elements != null) {
962 // Only analyze nodes with a corresponding [TreeElements]. 963 // Only analyze nodes with a corresponding [TreeElements].
963 checker.check(tree, elements); 964 checker.check(tree, elements);
964 } 965 }
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
1334 1335
1335 void close() {} 1336 void close() {}
1336 1337
1337 toString() => name; 1338 toString() => name;
1338 1339
1339 /// Convenience method for getting an [api.CompilerOutputProvider]. 1340 /// Convenience method for getting an [api.CompilerOutputProvider].
1340 static NullSink outputProvider(String name, String extension) { 1341 static NullSink outputProvider(String name, String extension) {
1341 return new NullSink('$name.$extension'); 1342 return new NullSink('$name.$extension');
1342 } 1343 }
1343 } 1344 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698