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

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

Issue 1994243002: Dangling comment reference cleanup in analyzer. (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
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';
11 import 'package:analyzer/dart/element/element.dart'; 11 import 'package:analyzer/dart/element/element.dart';
12 import 'package:analyzer/dart/element/type.dart'; 12 import 'package:analyzer/dart/element/type.dart';
13 import 'package:analyzer/source/error_processor.dart'; 13 import 'package:analyzer/source/error_processor.dart';
14 import 'package:analyzer/src/dart/element/type.dart'; 14 import 'package:analyzer/src/dart/element/type.dart';
15 import 'package:analyzer/src/dart/scanner/scanner.dart' show ScannerErrorCode; 15 import 'package:analyzer/src/dart/scanner/scanner.dart' show ScannerErrorCode;
16 import 'package:analyzer/src/generated/generated/shared_messages.dart' 16 import 'package:analyzer/src/generated/generated/shared_messages.dart'
17 as shared_messages; 17 as shared_messages;
18 import 'package:analyzer/src/generated/java_core.dart'; 18 import 'package:analyzer/src/generated/java_core.dart';
19 import 'package:analyzer/src/generated/parser.dart' show ParserErrorCode; 19 import 'package:analyzer/src/generated/parser.dart' show ParserErrorCode;
20 import 'package:analyzer/src/generated/source.dart'; 20 import 'package:analyzer/src/generated/source.dart';
21 import 'package:analyzer/src/task/model.dart'; 21 import 'package:analyzer/src/task/model.dart';
22 import 'package:analyzer/task/model.dart'; 22 import 'package:analyzer/task/model.dart';
23 import 'package:source_span/source_span.dart'; 23 import 'package:source_span/source_span.dart';
24 import 'package:analyzer/src/dart/element/element.dart';
24 25
25 /** 26 /**
26 * The descriptor used to associate error processors with analysis contexts in 27 * The descriptor used to associate error processors with analysis contexts in
27 * configuration data. 28 * configuration data.
28 */ 29 */
29 final ListResultDescriptor<ErrorProcessor> CONFIGURED_ERROR_PROCESSORS = 30 final ListResultDescriptor<ErrorProcessor> CONFIGURED_ERROR_PROCESSORS =
30 new ListResultDescriptorImpl('configured.errors', const <ErrorProcessor>[]); 31 new ListResultDescriptorImpl('configured.errors', const <ErrorProcessor>[]);
31 32
32 /** 33 /**
33 * An error discovered during the analysis of some Dart code. 34 * An error discovered during the analysis of some Dart code.
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 /** 887 /**
887 * 12.11.2 Const: If <i>T</i> is a parameterized type <i>S&lt;U<sub>1</sub>, 888 * 12.11.2 Const: If <i>T</i> is a parameterized type <i>S&lt;U<sub>1</sub>,
888 * &hellip;, U<sub>m</sub>&gt;</i>, let <i>R = S</i>; It is a compile time 889 * &hellip;, U<sub>m</sub>&gt;</i>, let <i>R = S</i>; It is a compile time
889 * error if <i>S</i> is not a generic type with <i>m</i> type parameters. 890 * error if <i>S</i> is not a generic type with <i>m</i> type parameters.
890 * 891 *
891 * Parameters: 892 * Parameters:
892 * 0: the name of the type being referenced (<i>S</i>) 893 * 0: the name of the type being referenced (<i>S</i>)
893 * 1: the number of type parameters that were declared 894 * 1: the number of type parameters that were declared
894 * 2: the number of type arguments provided 895 * 2: the number of type arguments provided
895 * 896 *
896 * See [CompileTimeErrorCode.NEW_WITH_INVALID_TYPE_PARAMETERS], and 897 * See [StaticWarningCode.NEW_WITH_INVALID_TYPE_PARAMETERS], and
897 * [StaticTypeWarningCode.WRONG_NUMBER_OF_TYPE_ARGUMENTS]. 898 * [StaticTypeWarningCode.WRONG_NUMBER_OF_TYPE_ARGUMENTS].
898 */ 899 */
899 static const CompileTimeErrorCode CONST_WITH_INVALID_TYPE_PARAMETERS = 900 static const CompileTimeErrorCode CONST_WITH_INVALID_TYPE_PARAMETERS =
900 const CompileTimeErrorCode('CONST_WITH_INVALID_TYPE_PARAMETERS', 901 const CompileTimeErrorCode('CONST_WITH_INVALID_TYPE_PARAMETERS',
901 "The type '{0}' is declared with {1} type parameters, but {2} type arg uments were given"); 902 "The type '{0}' is declared with {1} type parameters, but {2} type arg uments were given");
902 903
903 /** 904 /**
904 * 12.11.2 Const: If <i>e</i> is of the form <i>const T(a<sub>1</sub>, 905 * 12.11.2 Const: If <i>e</i> is of the form <i>const T(a<sub>1</sub>,
905 * &hellip;, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n+1</sub>, &hellip;, 906 * &hellip;, a<sub>n</sub>, x<sub>n+1</sub>: a<sub>n+1</sub>, &hellip;,
906 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i> it is a compile-time error if the 907 * x<sub>n+k</sub>: a<sub>n+k</sub>)</i> it is a compile-time error if the
(...skipping 4903 matching lines...) Expand 10 before | Expand all | Expand 10 after
5810 * Initialize a newly created error code to have the given [name]. 5811 * Initialize a newly created error code to have the given [name].
5811 */ 5812 */
5812 const TodoCode(String name) : super(name, "{0}"); 5813 const TodoCode(String name) : super(name, "{0}");
5813 5814
5814 @override 5815 @override
5815 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; 5816 ErrorSeverity get errorSeverity => ErrorSeverity.INFO;
5816 5817
5817 @override 5818 @override
5818 ErrorType get type => ErrorType.TODO; 5819 ErrorType get type => ErrorType.TODO;
5819 } 5820 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/type.dart ('k') | pkg/analyzer/lib/src/generated/java_core.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698