Flutter Engine
The Flutter Engine
RefactoringProblemSeverity.java
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
3 * for details. All rights reserved. Use of this source code is governed by a
4 * BSD-style license that can be found in the LICENSE file.
5 *
6 * This file has been automatically generated. Please do not edit it manually.
7 * To regenerate the file, use the script "pkg/analysis_server/tool/spec/generate_files".
8 */
9package org.dartlang.analysis.server.protocol;
10
11/**
12 * An enumeration of the severities of problems that can be returned by the refactoring requests.
13 *
14 * @coverage dart.server.generated.types
15 */
17
18 /**
19 * A minor code problem. No example, because it is not used yet.
20 */
21 public static final String INFO = "INFO";
22
23 /**
24 * A minor code problem. For example names of local variables should be camel case and start with a
25 * lower case letter. Staring the name of a variable with an upper case is OK from the language
26 * point of view, but it is nice to warn the user.
27 */
28 public static final String WARNING = "WARNING";
29
30 /**
31 * The refactoring technically can be performed, but there is a logical problem. For example the
32 * name of a local variable being extracted conflicts with another name in the scope, or duplicate
33 * parameter names in the method being extracted, or a conflict between a parameter name and a
34 * local variable, etc. In some cases the location of the problem is also provided, so the IDE can
35 * show user the location and the problem, and let the user decide whether they want to perform the
36 * refactoring. For example the name conflict might be expected, and the user wants to fix it
37 * afterwards.
38 */
39 public static final String ERROR = "ERROR";
40
41 /**
42 * A fatal error, which prevents performing the refactoring. For example the name of a local
43 * variable being extracted is not a valid identifier, or selection is not a valid expression.
44 */
45 public static final String FATAL = "FATAL";
46
47}