| 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 analyzer.src.error.codes; | 5 library analyzer.src.error.codes; |
| 6 | 6 |
| 7 import 'package:analyzer/error/error.dart'; | 7 import 'package:analyzer/error/error.dart'; |
| 8 | 8 |
| 9 export 'package:analyzer/src/analysis_options/error/option_codes.dart'; | 9 export 'package:analyzer/src/analysis_options/error/option_codes.dart'; |
| 10 export 'package:analyzer/src/dart/error/hint_codes.dart'; | 10 export 'package:analyzer/src/dart/error/hint_codes.dart'; |
| (...skipping 3396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3407 * | 3407 * |
| 3408 * Parameters: | 3408 * Parameters: |
| 3409 * 0: the ambiguous name | 3409 * 0: the ambiguous name |
| 3410 * 1: the name of the dart: library in which the element is found | 3410 * 1: the name of the dart: library in which the element is found |
| 3411 * 2: the name of the non-dart: library in which the element is found | 3411 * 2: the name of the non-dart: library in which the element is found |
| 3412 */ | 3412 */ |
| 3413 static const StaticWarningCode CONFLICTING_DART_IMPORT = | 3413 static const StaticWarningCode CONFLICTING_DART_IMPORT = |
| 3414 const StaticWarningCode( | 3414 const StaticWarningCode( |
| 3415 'CONFLICTING_DART_IMPORT', | 3415 'CONFLICTING_DART_IMPORT', |
| 3416 "Element '{0}' from SDK library '{1}' is implicitly hidden by '{2}'.", | 3416 "Element '{0}' from SDK library '{1}' is implicitly hidden by '{2}'.", |
| 3417 "Try adding an explicit hide combinator."); | 3417 "Try adding an explicit hide combinator.", |
| 3418 false); |
| 3418 | 3419 |
| 3419 /** | 3420 /** |
| 3420 * 7.2 Getters: It is a static warning if a class <i>C</i> declares an | 3421 * 7.2 Getters: It is a static warning if a class <i>C</i> declares an |
| 3421 * instance getter named <i>v</i> and an accessible static member named | 3422 * instance getter named <i>v</i> and an accessible static member named |
| 3422 * <i>v</i> or <i>v=</i> is declared in a superclass of <i>C</i>. | 3423 * <i>v</i> or <i>v=</i> is declared in a superclass of <i>C</i>. |
| 3423 * | 3424 * |
| 3424 * Parameters: | 3425 * Parameters: |
| 3425 * 0: the name of the super class declaring a static member | 3426 * 0: the name of the super class declaring a static member |
| 3426 */ | 3427 */ |
| 3427 static const StaticWarningCode | 3428 static const StaticWarningCode |
| (...skipping 1634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5062 * created from the optional [correction] template. | 5063 * created from the optional [correction] template. |
| 5063 */ | 5064 */ |
| 5064 const StrongModeCode(ErrorType type, String name, String message, | 5065 const StrongModeCode(ErrorType type, String name, String message, |
| 5065 [String correction]) | 5066 [String correction]) |
| 5066 : type = type, | 5067 : type = type, |
| 5067 super('STRONG_MODE_$name', message, correction); | 5068 super('STRONG_MODE_$name', message, correction); |
| 5068 | 5069 |
| 5069 @override | 5070 @override |
| 5070 ErrorSeverity get errorSeverity => type.severity; | 5071 ErrorSeverity get errorSeverity => type.severity; |
| 5071 } | 5072 } |
| OLD | NEW |