| 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 4756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4767 * 14.1 Imports: If a name <i>N</i> is referenced by a library <i>L</i> and | 4767 * 14.1 Imports: If a name <i>N</i> is referenced by a library <i>L</i> and |
| 4768 * <i>N</i> would be introduced into the top level scope of <i>L</i> by an | 4768 * <i>N</i> would be introduced into the top level scope of <i>L</i> by an |
| 4769 * import from a library whose URI begins with <i>dart:</i> and an import from | 4769 * import from a library whose URI begins with <i>dart:</i> and an import from |
| 4770 * a library whose URI does not begin with <i>dart:</i>: | 4770 * a library whose URI does not begin with <i>dart:</i>: |
| 4771 * * The import from <i>dart:</i> is implicitly extended by a hide N clause. | 4771 * * The import from <i>dart:</i> is implicitly extended by a hide N clause. |
| 4772 * * A static warning is issued. | 4772 * * A static warning is issued. |
| 4773 * | 4773 * |
| 4774 * Parameters: | 4774 * Parameters: |
| 4775 * 0: the ambiguous name | 4775 * 0: the ambiguous name |
| 4776 * 1: the name of the dart: library in which the element is found | 4776 * 1: the name of the dart: library in which the element is found |
| 4777 * 1: the name of the non-dart: library in which the element is found | 4777 * 2: the name of the non-dart: library in which the element is found |
| 4778 */ | 4778 */ |
| 4779 static const StaticWarningCode CONFLICTING_DART_IMPORT = | 4779 static const StaticWarningCode CONFLICTING_DART_IMPORT = |
| 4780 const StaticWarningCode('CONFLICTING_DART_IMPORT', | 4780 const StaticWarningCode('CONFLICTING_DART_IMPORT', |
| 4781 "Element '{0}' from SDK library '{1}' is implicitly hidden by '{2}'"); | 4781 "Element '{0}' from SDK library '{1}' is implicitly hidden by '{2}'"); |
| 4782 | 4782 |
| 4783 /** | 4783 /** |
| 4784 * 7.2 Getters: It is a static warning if a class <i>C</i> declares an | 4784 * 7.2 Getters: It is a static warning if a class <i>C</i> declares an |
| 4785 * instance getter named <i>v</i> and an accessible static member named | 4785 * instance getter named <i>v</i> and an accessible static member named |
| 4786 * <i>v</i> or <i>v=</i> is declared in a superclass of <i>C</i>. | 4786 * <i>v</i> or <i>v=</i> is declared in a superclass of <i>C</i>. |
| 4787 * | 4787 * |
| (...skipping 1352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6140 * Initialize a newly created error code to have the given [name]. | 6140 * Initialize a newly created error code to have the given [name]. |
| 6141 */ | 6141 */ |
| 6142 const TodoCode(String name) : super(name, "{0}"); | 6142 const TodoCode(String name) : super(name, "{0}"); |
| 6143 | 6143 |
| 6144 @override | 6144 @override |
| 6145 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; | 6145 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; |
| 6146 | 6146 |
| 6147 @override | 6147 @override |
| 6148 ErrorType get type => ErrorType.TODO; | 6148 ErrorType get type => ErrorType.TODO; |
| 6149 } | 6149 } |
| OLD | NEW |