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

Unified Diff: runtime/vm/class_finalizer.h

Issue 11049038: Change compile-time errors into dynamic errors in instance creation expression (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 | « runtime/vm/bootstrap_natives.h ('k') | runtime/vm/class_finalizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/class_finalizer.h
===================================================================
--- runtime/vm/class_finalizer.h (revision 13204)
+++ runtime/vm/class_finalizer.h (working copy)
@@ -29,15 +29,17 @@
public:
// Modes for type resolution and finalization. The ordering is relevant.
enum FinalizationKind {
- kIgnore, // Parsed type is ignored and replaced by Dynamic.
- kDoNotResolve, // Type resolution is postponed.
- kTryResolve, // Type resolution is attempted, but not required.
- kFinalize, // Type resolution and type finalization are
- // required; a malformed type is tolerated.
- kCanonicalize, // Same as kFinalize, but with canonicalization.
- kCanonicalizeWellFormed // Error-free resolution, finalization, and
- // canonicalization are required; a malformed type
- // is not tolerated.
+ kIgnore, // Type is ignored and replaced by Dynamic.
+ kDoNotResolve, // Type resolution is postponed.
+ kTryResolve, // Type resolution is attempted.
+ kFinalize, // Type resolution and type finalization are
+ // required; a malformed type is tolerated.
+ kCanonicalize, // Same as kFinalize, but with canonicalization.
+ kCanonicalizeForCreation, // Same as kCanonicalize, but do not tolerate
+ // wrong number of type arguments.
+ kCanonicalizeWellFormed // Error-free resolution, finalization, and
+ // canonicalization are required; a malformed
+ // type is not tolerated.
};
// Finalize given type while parsing class cls.
« no previous file with comments | « runtime/vm/bootstrap_natives.h ('k') | runtime/vm/class_finalizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698