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

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

Issue 1124733008: Remove const instance creation expressions from the dependency graph. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 | Annotate | Revision Log
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 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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698