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

Unified Diff: pkg/compiler/lib/src/resolution/resolution.dart

Issue 1971193002: Patches to support Dart VM patch files in dart2js. (Closed) Base URL: sso://user/ahe/dart-sdk@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/resolution/members.dart ('k') | pkg/compiler/lib/src/resolution/send_resolver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/resolution/resolution.dart
diff --git a/pkg/compiler/lib/src/resolution/resolution.dart b/pkg/compiler/lib/src/resolution/resolution.dart
index d3081d214ca7ea3b911f12fadf65c64d57d7b9aa..66bd06781a7967552cbd69b5a48b5fc2b53889e9 100644
--- a/pkg/compiler/lib/src/resolution/resolution.dart
+++ b/pkg/compiler/lib/src/resolution/resolution.dart
@@ -223,7 +223,7 @@ class ResolverTask extends CompilerTask {
if (element.isGenerativeConstructor) {
reporter.reportErrorMessage(
tree, MessageKind.CONST_CONSTRUCTOR_WITH_BODY);
- } else if (!tree.isRedirectingFactory) {
+ } else if (!tree.isRedirectingFactory && !element.isPatch) {
reporter.reportErrorMessage(tree, MessageKind.CONST_FACTORY);
}
}
@@ -453,6 +453,9 @@ class ResolverTask extends CompilerTask {
seen.add(target);
target = nextTarget;
}
+ if (!target.isMalformed && !target.hasFunctionSignature) {
+ target.computeType(resolution);
+ }
if (target.isGenerativeConstructor && target.enclosingClass.isAbstract) {
isMalformed = true;
« no previous file with comments | « pkg/compiler/lib/src/resolution/members.dart ('k') | pkg/compiler/lib/src/resolution/send_resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698