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

Side by Side Diff: pkg/analyzer/lib/dart/element/element.dart

Issue 2226613004: Suppress follow-on errors when a file is imported with either a prefix or a show clause (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Cache URI existence in a modifier' Created 4 years, 4 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 /** 5 /**
6 * Defines the element model. The element model describes the semantic (as 6 * Defines the element model. The element model describes the semantic (as
7 * opposed to syntactic) structure of Dart code. The syntactic structure of the 7 * opposed to syntactic) structure of Dart code. The syntactic structure of the
8 * code is modeled by the [AST structure](../ast/ast.dart). 8 * code is modeled by the [AST structure](../ast/ast.dart).
9 * 9 *
10 * The element model consists of two closely related kinds of objects: elements 10 * The element model consists of two closely related kinds of objects: elements
(...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after
1149 * Return a list containing the combinators that were specified as part of the 1149 * Return a list containing the combinators that were specified as part of the
1150 * export directive in the order in which they were specified. 1150 * export directive in the order in which they were specified.
1151 */ 1151 */
1152 List<NamespaceCombinator> get combinators; 1152 List<NamespaceCombinator> get combinators;
1153 1153
1154 /** 1154 /**
1155 * Return the library that is exported from this library by this export 1155 * Return the library that is exported from this library by this export
1156 * directive. 1156 * directive.
1157 */ 1157 */
1158 LibraryElement get exportedLibrary; 1158 LibraryElement get exportedLibrary;
1159
1160 /**
1161 * Return `true` if the file referenced by the import's URI exists.
1162 */
1163 bool get uriExists;
1159 } 1164 }
1160 1165
1161 /** 1166 /**
1162 * A field defined within a type. 1167 * A field defined within a type.
1163 * 1168 *
1164 * Clients may not extend, implement or mix-in this class. 1169 * Clients may not extend, implement or mix-in this class.
1165 */ 1170 */
1166 abstract class FieldElement 1171 abstract class FieldElement
1167 implements ClassMemberElement, PropertyInducingElement { 1172 implements ClassMemberElement, PropertyInducingElement {
1168 /** 1173 /**
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
1334 * `null` if there was no prefix specified. 1339 * `null` if there was no prefix specified.
1335 */ 1340 */
1336 PrefixElement get prefix; 1341 PrefixElement get prefix;
1337 1342
1338 /** 1343 /**
1339 * Return the offset of the prefix of this import in the file that contains 1344 * Return the offset of the prefix of this import in the file that contains
1340 * this import directive, or `-1` if this import is synthetic, does not have a 1345 * this import directive, or `-1` if this import is synthetic, does not have a
1341 * prefix, or otherwise does not have an offset. 1346 * prefix, or otherwise does not have an offset.
1342 */ 1347 */
1343 int get prefixOffset; 1348 int get prefixOffset;
1349
1350 /**
1351 * Return `true` if the file referenced by the import's URI exists.
1352 */
1353 bool get uriExists;
1344 } 1354 }
1345 1355
1346 /** 1356 /**
1347 * A label associated with a statement. 1357 * A label associated with a statement.
1348 * 1358 *
1349 * Clients may not extend, implement or mix-in this class. 1359 * Clients may not extend, implement or mix-in this class.
1350 */ 1360 */
1351 abstract class LabelElement implements Element { 1361 abstract class LabelElement implements Element {
1352 /** 1362 /**
1353 * An empty list of label elements. 1363 * An empty list of label elements.
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
2021 DartType get type; 2031 DartType get type;
2022 2032
2023 /** 2033 /**
2024 * Return a representation of the value of this variable, forcing the value 2034 * Return a representation of the value of this variable, forcing the value
2025 * to be computed if it had not previously been computed, or `null` if either 2035 * to be computed if it had not previously been computed, or `null` if either
2026 * this variable was not declared with the 'const' modifier or if the value of 2036 * this variable was not declared with the 'const' modifier or if the value of
2027 * this variable could not be computed because of errors. 2037 * this variable could not be computed because of errors.
2028 */ 2038 */
2029 DartObject computeConstantValue(); 2039 DartObject computeConstantValue();
2030 } 2040 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698