| 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 engine.error; | 5 library engine.error; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'ast.dart' show AstNode; | 9 import 'ast.dart' show AstNode; |
| 10 import 'element.dart'; | 10 import 'element.dart'; |
| (...skipping 1906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1917 */ | 1917 */ |
| 1918 static const CompileTimeErrorCode PRIVATE_OPTIONAL_PARAMETER = | 1918 static const CompileTimeErrorCode PRIVATE_OPTIONAL_PARAMETER = |
| 1919 const CompileTimeErrorCode('PRIVATE_OPTIONAL_PARAMETER', | 1919 const CompileTimeErrorCode('PRIVATE_OPTIONAL_PARAMETER', |
| 1920 "Named optional parameters cannot start with an underscore"); | 1920 "Named optional parameters cannot start with an underscore"); |
| 1921 | 1921 |
| 1922 /** | 1922 /** |
| 1923 * 12.1 Constants: It is a compile-time error if the value of a compile-time | 1923 * 12.1 Constants: It is a compile-time error if the value of a compile-time |
| 1924 * constant expression depends on itself. | 1924 * constant expression depends on itself. |
| 1925 */ | 1925 */ |
| 1926 static const CompileTimeErrorCode RECURSIVE_COMPILE_TIME_CONSTANT = | 1926 static const CompileTimeErrorCode RECURSIVE_COMPILE_TIME_CONSTANT = |
| 1927 const CompileTimeErrorCode('RECURSIVE_COMPILE_TIME_CONSTANT', ""); | 1927 const CompileTimeErrorCode('RECURSIVE_COMPILE_TIME_CONSTANT', |
| 1928 "Compile-time constant expression depends on itself"); |
| 1928 | 1929 |
| 1929 /** | 1930 /** |
| 1930 * 7.6.1 Generative Constructors: A generative constructor may be redirecting, | 1931 * 7.6.1 Generative Constructors: A generative constructor may be redirecting, |
| 1931 * in which case its only action is to invoke another generative constructor. | 1932 * in which case its only action is to invoke another generative constructor. |
| 1932 * | 1933 * |
| 1933 * TODO(scheglov) review this later, there are no explicit "it is a | 1934 * TODO(scheglov) review this later, there are no explicit "it is a |
| 1934 * compile-time error" in specification. But it was added to the co19 and | 1935 * compile-time error" in specification. But it was added to the co19 and |
| 1935 * there is same error for factories. | 1936 * there is same error for factories. |
| 1936 * | 1937 * |
| 1937 * https://code.google.com/p/dart/issues/detail?id=954 | 1938 * https://code.google.com/p/dart/issues/detail?id=954 |
| (...skipping 2954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4892 * Initialize a newly created error code to have the given [name]. | 4893 * Initialize a newly created error code to have the given [name]. |
| 4893 */ | 4894 */ |
| 4894 const TodoCode(String name) : super(name, "{0}"); | 4895 const TodoCode(String name) : super(name, "{0}"); |
| 4895 | 4896 |
| 4896 @override | 4897 @override |
| 4897 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; | 4898 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; |
| 4898 | 4899 |
| 4899 @override | 4900 @override |
| 4900 ErrorType get type => ErrorType.TODO; | 4901 ErrorType get type => ErrorType.TODO; |
| 4901 } | 4902 } |
| OLD | NEW |