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

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

Issue 11186064: Enforce new optional parameter rules. (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5
6 /** 6 /**
7 * If true, print a warning for each method that was resolved, but not 7 * If true, print a warning for each method that was resolved, but not
8 * compiled. 8 * compiled.
9 */ 9 */
10 const bool REPORT_EXCESS_RESOLUTION = false; 10 const bool REPORT_EXCESS_RESOLUTION = false;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 final bool enableMinification; 100 final bool enableMinification;
101 final bool enableTypeAssertions; 101 final bool enableTypeAssertions;
102 final bool enableUserAssertions; 102 final bool enableUserAssertions;
103 final bool enableConcreteTypeInference; 103 final bool enableConcreteTypeInference;
104 104
105 bool disableInlining = false; 105 bool disableInlining = false;
106 106
107 // TODO(5074): Remove this field once we don't accept the 107 // TODO(5074): Remove this field once we don't accept the
108 // deprecated parameter specification. 108 // deprecated parameter specification.
109 static final bool REJECT_NAMED_ARGUMENT_AS_POSITIONAL = false; 109 static final bool REJECT_NAMED_ARGUMENT_AS_POSITIONAL = true;
110 110
111 final Tracer tracer; 111 final Tracer tracer;
112 112
113 CompilerTask measuredTask; 113 CompilerTask measuredTask;
114 Element _currentElement; 114 Element _currentElement;
115 LibraryElement coreLibrary; 115 LibraryElement coreLibrary;
116 LibraryElement coreImplLibrary; 116 LibraryElement coreImplLibrary;
117 LibraryElement isolateLibrary; 117 LibraryElement isolateLibrary;
118 LibraryElement jsHelperLibrary; 118 LibraryElement jsHelperLibrary;
119 LibraryElement interceptorsLibrary; 119 LibraryElement interceptorsLibrary;
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 // TODO(johnniwinther): Use [spannable] and [message] to provide better 861 // TODO(johnniwinther): Use [spannable] and [message] to provide better
862 // information on assertion errors. 862 // information on assertion errors.
863 if (condition is Function){ 863 if (condition is Function){
864 condition = condition(); 864 condition = condition();
865 } 865 }
866 if (!condition && message != null) { 866 if (!condition && message != null) {
867 print('assertion failed: $message'); 867 print('assertion failed: $message');
868 } 868 }
869 return spannable != null && condition; 869 return spannable != null && condition;
870 } 870 }
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698