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

Unified Diff: pkg/analysis_server/lib/src/services/correction/assist_internal.dart

Issue 2691043003: Remove unused TokenType.IS. (Closed)
Patch Set: Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/dev_compiler/lib/src/compiler/ast_builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/services/correction/assist_internal.dart
diff --git a/pkg/analysis_server/lib/src/services/correction/assist_internal.dart b/pkg/analysis_server/lib/src/services/correction/assist_internal.dart
index c92920d7e650d371d596d3d455f8b648c20c6b14..28d6f8feda14c4d0240cf2356997d5c5f7e9cd65 100644
--- a/pkg/analysis_server/lib/src/services/correction/assist_internal.dart
+++ b/pkg/analysis_server/lib/src/services/correction/assist_internal.dart
@@ -876,7 +876,7 @@ class AssistProcessor {
}
// strip !()
if (getExpressionParentPrecedence(prefExpression) >=
- TokenType.IS.precedence) {
+ TokenClass.RELATIONAL_OPERATOR.precedence) {
_addRemoveEdit(rangeToken(prefExpression.operator));
} else {
_addRemoveEdit(
@@ -925,7 +925,7 @@ class AssistProcessor {
}
// strip !()
if (getExpressionParentPrecedence(prefExpression) >=
- TokenType.IS.precedence) {
+ TokenClass.RELATIONAL_OPERATOR.precedence) {
_addRemoveEdit(rangeToken(prefExpression.operator));
} else {
_addRemoveEdit(
« no previous file with comments | « no previous file | pkg/dev_compiler/lib/src/compiler/ast_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698