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

Side by Side Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/ErrorType.java

Issue 15736020: generate suggestions during analysis (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012, the Dart project authors. 2 * Copyright (c) 2012, the Dart project authors.
3 * 3 *
4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u se this file except 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u se this file except
5 * in compliance with the License. You may obtain a copy of the License at 5 * in compliance with the License. You may obtain a copy of the License at
6 * 6 *
7 * http://www.eclipse.org/legal/epl-v10.html 7 * http://www.eclipse.org/legal/epl-v10.html
8 * 8 *
9 * Unless required by applicable law or agreed to in writing, software distribut ed under the License 9 * Unless required by applicable law or agreed to in writing, software distribut ed under the License
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K IND, either express 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K IND, either express
11 * or implied. See the License for the specific language governing permissions a nd limitations under 11 * or implied. See the License for the specific language governing permissions a nd limitations under
12 * the License. 12 * the License.
13 */ 13 */
14 package com.google.dart.engine.error; 14 package com.google.dart.engine.error;
15 15
16 /** 16 /**
17 * Instances of the enumeration {@code ErrorType} represent the type of an {@lin k ErrorCode}. 17 * Instances of the enumeration {@code ErrorType} represent the type of an {@lin k ErrorCode}.
18 * 18 *
19 * @coverage dart.engine.error 19 * @coverage dart.engine.error
20 */ 20 */
21 public enum ErrorType { 21 public enum ErrorType {
22 /** 22 /**
23 * Compile-time errors are errors that preclude execution. A compile time erro r must be reported 23 * Compile-time errors are errors that preclude execution. A compile time erro r must be reported
24 * by a Dart compiler before the erroneous code is executed. 24 * by a Dart compiler before the erroneous code is executed.
25 */ 25 */
26 COMPILE_TIME_ERROR(ErrorSeverity.ERROR), 26 COMPILE_TIME_ERROR(ErrorSeverity.ERROR),
27 27
28 /** 28 /**
29 * Bad practices representing situations where the user has deviated from reco mmended pub
Brian Wilkerson 2013/05/31 15:28:58 nit: Perhaps "Bad practices representing" --> "Sug
danrubel 2013/05/31 19:43:45 Done.
30 * programming practices.
31 */
32 PUB_SUGGESTION(ErrorSeverity.SUGGESTION),
33
34 /**
29 * Static warnings are those warnings reported by the static checker. They hav e no effect on 35 * Static warnings are those warnings reported by the static checker. They hav e no effect on
30 * execution. Static warnings must be provided by Dart compilers used during d evelopment. 36 * execution. Static warnings must be provided by Dart compilers used during d evelopment.
31 */ 37 */
32 STATIC_WARNING(ErrorSeverity.WARNING), 38 STATIC_WARNING(ErrorSeverity.WARNING),
33 39
34 /** 40 /**
35 * Many, but not all, static warnings relate to types, in which case they are known as static type 41 * Many, but not all, static warnings relate to types, in which case they are known as static type
36 * warnings. 42 * warnings.
37 */ 43 */
38 STATIC_TYPE_WARNING(ErrorSeverity.WARNING), 44 STATIC_TYPE_WARNING(ErrorSeverity.WARNING),
(...skipping 19 matching lines...) Expand all
58 64
59 /** 65 /**
60 * Return the severity of this type of error. 66 * Return the severity of this type of error.
61 * 67 *
62 * @return the severity of this type of error 68 * @return the severity of this type of error
63 */ 69 */
64 public ErrorSeverity getSeverity() { 70 public ErrorSeverity getSeverity() {
65 return severity; 71 return severity;
66 } 72 }
67 } 73 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698