| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library analysis_server.src.services.correction.fix; | 5 library analysis_server.src.services.correction.fix; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analysis_server/plugin/edit/fix/fix_core.dart'; | 9 import 'package:analysis_server/plugin/edit/fix/fix_core.dart'; |
| 10 import 'package:analysis_server/src/plugin/server_plugin.dart'; | 10 import 'package:analysis_server/src/plugin/server_plugin.dart'; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 errorCode == StaticWarningCode.FUNCTION_WITHOUT_CALL || | 73 errorCode == StaticWarningCode.FUNCTION_WITHOUT_CALL || |
| 74 errorCode == StaticWarningCode.UNDEFINED_IDENTIFIER || | 74 errorCode == StaticWarningCode.UNDEFINED_IDENTIFIER || |
| 75 errorCode == | 75 errorCode == |
| 76 CompileTimeErrorCode.CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE || | 76 CompileTimeErrorCode.CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE || |
| 77 errorCode == CompileTimeErrorCode.INVALID_ANNOTATION || | 77 errorCode == CompileTimeErrorCode.INVALID_ANNOTATION || |
| 78 errorCode == CompileTimeErrorCode.NO_DEFAULT_SUPER_CONSTRUCTOR_EXPLICIT || | 78 errorCode == CompileTimeErrorCode.NO_DEFAULT_SUPER_CONSTRUCTOR_EXPLICIT || |
| 79 errorCode == CompileTimeErrorCode.PART_OF_NON_PART || | 79 errorCode == CompileTimeErrorCode.PART_OF_NON_PART || |
| 80 errorCode == | 80 errorCode == |
| 81 CompileTimeErrorCode.UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT || | 81 CompileTimeErrorCode.UNDEFINED_CONSTRUCTOR_IN_INITIALIZER_DEFAULT || |
| 82 errorCode == CompileTimeErrorCode.URI_DOES_NOT_EXIST || | 82 errorCode == CompileTimeErrorCode.URI_DOES_NOT_EXIST || |
| 83 errorCode == CompileTimeErrorCode.URI_HAS_NOT_BEEN_GENERATED || |
| 83 errorCode == HintCode.CAN_BE_NULL_AFTER_NULL_AWARE || | 84 errorCode == HintCode.CAN_BE_NULL_AFTER_NULL_AWARE || |
| 84 errorCode == HintCode.DEAD_CODE || | 85 errorCode == HintCode.DEAD_CODE || |
| 85 errorCode == HintCode.DIVISION_OPTIMIZATION || | 86 errorCode == HintCode.DIVISION_OPTIMIZATION || |
| 86 errorCode == HintCode.TYPE_CHECK_IS_NOT_NULL || | 87 errorCode == HintCode.TYPE_CHECK_IS_NOT_NULL || |
| 87 errorCode == HintCode.TYPE_CHECK_IS_NULL || | 88 errorCode == HintCode.TYPE_CHECK_IS_NULL || |
| 88 errorCode == HintCode.UNDEFINED_GETTER || | 89 errorCode == HintCode.UNDEFINED_GETTER || |
| 89 errorCode == HintCode.UNDEFINED_SETTER || | 90 errorCode == HintCode.UNDEFINED_SETTER || |
| 90 errorCode == HintCode.UNNECESSARY_CAST || | 91 errorCode == HintCode.UNNECESSARY_CAST || |
| 91 errorCode == HintCode.UNUSED_CATCH_CLAUSE || | 92 errorCode == HintCode.UNUSED_CATCH_CLAUSE || |
| 92 errorCode == HintCode.UNUSED_CATCH_STACK || | 93 errorCode == HintCode.UNUSED_CATCH_STACK || |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 @override | 234 @override |
| 234 final AnalysisError error; | 235 final AnalysisError error; |
| 235 | 236 |
| 236 FixContextImpl(this.resourceProvider, this.analysisContext, this.error); | 237 FixContextImpl(this.resourceProvider, this.analysisContext, this.error); |
| 237 | 238 |
| 238 FixContextImpl.from(FixContext other) | 239 FixContextImpl.from(FixContext other) |
| 239 : resourceProvider = other.resourceProvider, | 240 : resourceProvider = other.resourceProvider, |
| 240 analysisContext = other.analysisContext, | 241 analysisContext = other.analysisContext, |
| 241 error = other.error; | 242 error = other.error; |
| 242 } | 243 } |
| OLD | NEW |