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

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

Issue 2235373003: Fix summary handling of unresolved imports, exports, and parts. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Simplify `allowMissingFiles` 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
« no previous file with comments | « pkg/analyzer/doc/tasks.html ('k') | pkg/analyzer/lib/src/dart/element/builder.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
1164 } 1159 }
1165 1160
1166 /** 1161 /**
1167 * A field defined within a type. 1162 * A field defined within a type.
1168 * 1163 *
1169 * Clients may not extend, implement or mix-in this class. 1164 * Clients may not extend, implement or mix-in this class.
1170 */ 1165 */
1171 abstract class FieldElement 1166 abstract class FieldElement
1172 implements ClassMemberElement, PropertyInducingElement { 1167 implements ClassMemberElement, PropertyInducingElement {
1173 /** 1168 /**
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
1339 * `null` if there was no prefix specified. 1334 * `null` if there was no prefix specified.
1340 */ 1335 */
1341 PrefixElement get prefix; 1336 PrefixElement get prefix;
1342 1337
1343 /** 1338 /**
1344 * Return the offset of the prefix of this import in the file that contains 1339 * Return the offset of the prefix of this import in the file that contains
1345 * this import directive, or `-1` if this import is synthetic, does not have a 1340 * this import directive, or `-1` if this import is synthetic, does not have a
1346 * prefix, or otherwise does not have an offset. 1341 * prefix, or otherwise does not have an offset.
1347 */ 1342 */
1348 int get prefixOffset; 1343 int get prefixOffset;
1349
1350 /**
1351 * Return `true` if the file referenced by the import's URI exists.
1352 */
1353 bool get uriExists;
1354 } 1344 }
1355 1345
1356 /** 1346 /**
1357 * A label associated with a statement. 1347 * A label associated with a statement.
1358 * 1348 *
1359 * Clients may not extend, implement or mix-in this class. 1349 * Clients may not extend, implement or mix-in this class.
1360 */ 1350 */
1361 abstract class LabelElement implements Element { 1351 abstract class LabelElement implements Element {
1362 /** 1352 /**
1363 * An empty list of label elements. 1353 * An empty list of label elements.
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
2031 DartType get type; 2021 DartType get type;
2032 2022
2033 /** 2023 /**
2034 * Return a representation of the value of this variable, forcing the value 2024 * Return a representation of the value of this variable, forcing the value
2035 * to be computed if it had not previously been computed, or `null` if either 2025 * to be computed if it had not previously been computed, or `null` if either
2036 * this variable was not declared with the 'const' modifier or if the value of 2026 * this variable was not declared with the 'const' modifier or if the value of
2037 * this variable could not be computed because of errors. 2027 * this variable could not be computed because of errors.
2038 */ 2028 */
2039 DartObject computeConstantValue(); 2029 DartObject computeConstantValue();
2040 } 2030 }
OLDNEW
« no previous file with comments | « pkg/analyzer/doc/tasks.html ('k') | pkg/analyzer/lib/src/dart/element/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698