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

Unified Diff: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/correction/QuickFixProcessor.java

Issue 12048003: Issue 8025. Disallow mixing in classes that have constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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
Index: editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/correction/QuickFixProcessor.java
diff --git a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/correction/QuickFixProcessor.java b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/correction/QuickFixProcessor.java
index cc04ac765c8c2c253a9fe8839bdcc5d69f1e01ca..2c2a61dac5cb1fb0fed9b4de03c88f8abe5b6d57 100644
--- a/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/correction/QuickFixProcessor.java
+++ b/editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/correction/QuickFixProcessor.java
@@ -282,7 +282,7 @@ public class QuickFixProcessor implements IQuickFixProcessor {
|| errorCode == TypeErrorCode.CANNOT_BE_RESOLVED) {
addFix_importLibrary_withField(location);
}
- if (errorCode == ResolverErrorCode.NEW_EXPRESSION_NOT_CONSTRUCTOR) {
+ if (errorCode == TypeErrorCode.NEW_EXPRESSION_NOT_CONSTRUCTOR) {
addFix_createConstructor();
}
if (errorCode == TypeErrorCode.USE_INTEGER_DIVISION) {
@@ -311,7 +311,7 @@ public class QuickFixProcessor implements IQuickFixProcessor {
|| errorCode == TypeErrorCode.INTERFACE_HAS_NO_METHOD_NAMED
|| errorCode == TypeErrorCode.IS_STATIC_METHOD_IN
|| errorCode == TypeErrorCode.NO_SUCH_TYPE
- || errorCode == ResolverErrorCode.NEW_EXPRESSION_NOT_CONSTRUCTOR
+ || errorCode == TypeErrorCode.NEW_EXPRESSION_NOT_CONSTRUCTOR
|| errorCode == TypeErrorCode.USE_INTEGER_DIVISION
|| errorCode == TypeErrorCode.NOT_A_FUNCTION_TYPE_FIELD
|| errorCode == DartCompilerErrorCode.MISSING_PART_OF_DIRECTIVE
« no previous file with comments | « compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java ('k') | tests/co19/co19-compiler.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698