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

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

Issue 1739553003: Move errors for bad imports and exports to the directive (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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';
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 /** 79 /**
80 * The correction to be displayed for this error, or `null` if there is no 80 * The correction to be displayed for this error, or `null` if there is no
81 * correction information for this error. 81 * correction information for this error.
82 */ 82 */
83 String _correction; 83 String _correction;
84 84
85 /** 85 /**
86 * The source in which the error occurred, or `null` if unknown. 86 * The source in which the error occurred, or `null` if unknown.
87 */ 87 */
88 Source source; 88 final Source source;
89 89
90 /** 90 /**
91 * The character offset from the beginning of the source (zero based) where 91 * The character offset from the beginning of the source (zero based) where
92 * the error occurred. 92 * the error occurred.
93 */ 93 */
94 int offset = 0; 94 int offset = 0;
95 95
96 /** 96 /**
97 * The number of characters from the offset to the end of the source which 97 * The number of characters from the offset to the end of the source which
98 * encompasses the compilation error. 98 * encompasses the compilation error.
(...skipping 5613 matching lines...) Expand 10 before | Expand all | Expand 10 after
5712 * Initialize a newly created error code to have the given [name]. 5712 * Initialize a newly created error code to have the given [name].
5713 */ 5713 */
5714 const TodoCode(String name) : super(name, "{0}"); 5714 const TodoCode(String name) : super(name, "{0}");
5715 5715
5716 @override 5716 @override
5717 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; 5717 ErrorSeverity get errorSeverity => ErrorSeverity.INFO;
5718 5718
5719 @override 5719 @override
5720 ErrorType get type => ErrorType.TODO; 5720 ErrorType get type => ErrorType.TODO;
5721 } 5721 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/builder.dart ('k') | pkg/analyzer/test/generated/resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698