Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Static Public Attributes | List of all members
org.dartlang.analysis.server.protocol.RefactoringProblemSeverity Class Reference

Static Public Attributes

static final String INFO = "INFO"
 
static final String WARNING = "WARNING"
 
static final String ERROR = "ERROR"
 
static final String FATAL = "FATAL"
 

Detailed Description

An enumeration of the severities of problems that can be returned by the refactoring requests.

@coverage dart.server.generated.types

Definition at line 16 of file RefactoringProblemSeverity.java.

Member Data Documentation

◆ ERROR

final String org.dartlang.analysis.server.protocol.RefactoringProblemSeverity.ERROR = "ERROR"
static

The refactoring technically can be performed, but there is a logical problem. For example the name of a local variable being extracted conflicts with another name in the scope, or duplicate parameter names in the method being extracted, or a conflict between a parameter name and a local variable, etc. In some cases the location of the problem is also provided, so the IDE can show user the location and the problem, and let the user decide whether they want to perform the refactoring. For example the name conflict might be expected, and the user wants to fix it afterwards.

Definition at line 39 of file RefactoringProblemSeverity.java.

◆ FATAL

final String org.dartlang.analysis.server.protocol.RefactoringProblemSeverity.FATAL = "FATAL"
static

A fatal error, which prevents performing the refactoring. For example the name of a local variable being extracted is not a valid identifier, or selection is not a valid expression.

Definition at line 45 of file RefactoringProblemSeverity.java.

◆ INFO

final String org.dartlang.analysis.server.protocol.RefactoringProblemSeverity.INFO = "INFO"
static

A minor code problem. No example, because it is not used yet.

Definition at line 21 of file RefactoringProblemSeverity.java.

◆ WARNING

final String org.dartlang.analysis.server.protocol.RefactoringProblemSeverity.WARNING = "WARNING"
static

A minor code problem. For example names of local variables should be camel case and start with a lower case letter. Staring the name of a variable with an upper case is OK from the language point of view, but it is nice to warn the user.

Definition at line 28 of file RefactoringProblemSeverity.java.


The documentation for this class was generated from the following file: