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

Side by Side Diff: pkg/analyzer_experimental/lib/src/generated/instrumentation.dart

Issue 18129004: Simplify constructors translation, improve code style. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 5 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 // This code was auto-generated, is not intended to be edited, and is subject to 1 // This code was auto-generated, is not intended to be edited, and is subject to
2 // significant change. Please see the README file for more information. 2 // significant change. Please see the README file for more information.
3 library engine.instrumentation; 3 library engine.instrumentation;
4 import 'java_core.dart'; 4 import 'java_core.dart';
5 /** 5 /**
6 * The class `Instrumentation` implements support for logging instrumentation in formation. 6 * The class `Instrumentation` implements support for logging instrumentation in formation.
7 * 7 *
8 * Instrumentation information consists of information about specific operations . Those operations 8 * Instrumentation information consists of information about specific operations . Those operations
9 * can range from user-facing operations, such as saving the changes to a file, to internal 9 * can range from user-facing operations, such as saving the changes to a file, to internal
10 * operations, such as tokenizing source code. The information to be logged is g athered by 10 * operations, such as tokenizing source code. The information to be logged is g athered by
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 return InstrumentationLevel.EVERYTHING; 266 return InstrumentationLevel.EVERYTHING;
267 } 267 }
268 if (str == "METRICS") { 268 if (str == "METRICS") {
269 return InstrumentationLevel.METRICS; 269 return InstrumentationLevel.METRICS;
270 } 270 }
271 if (str == "OFF") { 271 if (str == "OFF") {
272 return InstrumentationLevel.OFF; 272 return InstrumentationLevel.OFF;
273 } 273 }
274 throw new IllegalArgumentException("Unrecognised InstrumentationLevel"); 274 throw new IllegalArgumentException("Unrecognised InstrumentationLevel");
275 } 275 }
276 InstrumentationLevel(this.name, this.ordinal) { 276 InstrumentationLevel(this.name, this.ordinal);
277 }
278 int compareTo(InstrumentationLevel other) => ordinal - other.ordinal; 277 int compareTo(InstrumentationLevel other) => ordinal - other.ordinal;
279 int get hashCode => ordinal; 278 int get hashCode => ordinal;
280 String toString() => name; 279 String toString() => name;
281 } 280 }
282 /** 281 /**
283 * The interface `InstrumentationLogger` defines the behavior of objects that ar e used to log 282 * The interface `InstrumentationLogger` defines the behavior of objects that ar e used to log
284 * instrumentation data. 283 * instrumentation data.
285 * 284 *
286 * For an example of using objects that implement this interface, see [Instrumen tation]. 285 * For an example of using objects that implement this interface, see [Instrumen tation].
287 * 286 *
288 * @coverage dart.engine.utilities 287 * @coverage dart.engine.utilities
289 */ 288 */
290 abstract class InstrumentationLogger { 289 abstract class InstrumentationLogger {
291 290
292 /** 291 /**
293 * Create a builder that can collect the data associated with an operation ide ntified by the given 292 * Create a builder that can collect the data associated with an operation ide ntified by the given
294 * name. 293 * name.
295 * 294 *
296 * @param name the name used to uniquely identify the operation 295 * @param name the name used to uniquely identify the operation
297 * @return the builder that was created 296 * @return the builder that was created
298 */ 297 */
299 InstrumentationBuilder createBuilder(String name); 298 InstrumentationBuilder createBuilder(String name);
300 } 299 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698