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

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

Issue 21242002: Retain elements a finer granularity than library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Variable initialized too early. Created 7 years, 4 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 library compiler; 5 library compiler;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'implementation/apiimpl.dart'; 8 import 'implementation/apiimpl.dart';
9 9
10 // Unless explicitly allowed, passing [:null:] for any argument to the 10 // Unless explicitly allowed, passing [:null:] for any argument to the
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 * Specification" [http://www.dartlang.org/docs/spec/]. 133 * Specification" [http://www.dartlang.org/docs/spec/].
134 */ 134 */
135 static const Diagnostic WARNING = const Diagnostic(2, 'warning'); 135 static const Diagnostic WARNING = const Diagnostic(2, 'warning');
136 136
137 /** 137 /**
138 * Any other warning that is not covered by [WARNING]. 138 * Any other warning that is not covered by [WARNING].
139 */ 139 */
140 static const Diagnostic HINT = const Diagnostic(4, 'hint'); 140 static const Diagnostic HINT = const Diagnostic(4, 'hint');
141 141
142 /** 142 /**
143 * Informational messages. 143 * Additional information about the preceding non-info diagnostic from the
144 * compiler.
145 *
146 * For example, consider a duplicated definition. The compiler first emits a
147 * message about the duplicated definition, then emits an info message about
148 * the location of the existing definition.
144 */ 149 */
145 static const Diagnostic INFO = const Diagnostic(8, 'info'); 150 static const Diagnostic INFO = const Diagnostic(8, 'info');
146 151
147 /** 152 /**
148 * Informational messages that shouldn't be printed unless 153 * Informational messages that shouldn't be printed unless
149 * explicitly requested by the user of a compiler. 154 * explicitly requested by the user of a compiler.
150 */ 155 */
151 static const Diagnostic VERBOSE_INFO = const Diagnostic(16, 'verbose info'); 156 static const Diagnostic VERBOSE_INFO = const Diagnostic(16, 'verbose info');
152 157
153 /** 158 /**
(...skipping 13 matching lines...) Expand all
167 final String name; 172 final String name;
168 173
169 /** 174 /**
170 * This constructor is not private to support user-defined 175 * This constructor is not private to support user-defined
171 * diagnostic kinds. 176 * diagnostic kinds.
172 */ 177 */
173 const Diagnostic(this.ordinal, this.name); 178 const Diagnostic(this.ordinal, this.name);
174 179
175 String toString() => name; 180 String toString() => name;
176 } 181 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698