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

Side by Side Diff: pkg/analyzer/lib/src/generated/error.dart

Issue 1975383002: Verify that required param constants are accessible outside the declaring lib (#26440). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/hint_code_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/hint_code_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698