| 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.generated.error; | 5 library analyzer.src.generated.error; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'package:analyzer/dart/ast/ast.dart' show AstNode; | 9 import 'package:analyzer/dart/ast/ast.dart' show AstNode; |
| 10 import 'package:analyzer/dart/ast/token.dart'; | 10 import 'package:analyzer/dart/ast/token.dart'; |
| (...skipping 3577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3588 | 3588 |
| 3589 /** | 3589 /** |
| 3590 * Generate a hint for a constructor, function or method invocation where a | 3590 * Generate a hint for a constructor, function or method invocation where a |
| 3591 * required parameter is missing. | 3591 * required parameter is missing. |
| 3592 * | 3592 * |
| 3593 * Parameters: | 3593 * Parameters: |
| 3594 * 0: the name of the parameter | 3594 * 0: the name of the parameter |
| 3595 * 1: message details | 3595 * 1: message details |
| 3596 */ | 3596 */ |
| 3597 static const HintCode MISSING_REQUIRED_PARAM_WITH_DETAILS = const HintCode( | 3597 static const HintCode MISSING_REQUIRED_PARAM_WITH_DETAILS = const HintCode( |
| 3598 'MISSING_REQUIRED_PARAM', "The parameter '{0}' is required. {1}"); | 3598 'MISSING_REQUIRED_PARAM_WITH_DETAILS', |
| 3599 "The parameter '{0}' is required. {1}"); |
| 3599 | 3600 |
| 3600 /** | 3601 /** |
| 3601 * Generate a hint for an element that is annotated with `@JS(...)` whose | 3602 * Generate a hint for an element that is annotated with `@JS(...)` whose |
| 3602 * library declaration is not similarly annotated. | 3603 * library declaration is not similarly annotated. |
| 3603 */ | 3604 */ |
| 3604 static const HintCode MISSING_JS_LIB_ANNOTATION = const HintCode( | 3605 static const HintCode MISSING_JS_LIB_ANNOTATION = const HintCode( |
| 3605 'MISSING_JS_LIB_ANNOTATION', | 3606 'MISSING_JS_LIB_ANNOTATION', |
| 3606 "The @JS() annotation can only be used if it is also declared on the libra
ry directive."); | 3607 "The @JS() annotation can only be used if it is also declared on the libra
ry directive."); |
| 3607 | 3608 |
| 3608 /** | 3609 /** |
| (...skipping 2200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5809 * Initialize a newly created error code to have the given [name]. | 5810 * Initialize a newly created error code to have the given [name]. |
| 5810 */ | 5811 */ |
| 5811 const TodoCode(String name) : super(name, "{0}"); | 5812 const TodoCode(String name) : super(name, "{0}"); |
| 5812 | 5813 |
| 5813 @override | 5814 @override |
| 5814 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; | 5815 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; |
| 5815 | 5816 |
| 5816 @override | 5817 @override |
| 5817 ErrorType get type => ErrorType.TODO; | 5818 ErrorType get type => ErrorType.TODO; |
| 5818 } | 5819 } |
| OLD | NEW |