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

Side by Side Diff: pkg/analyzer/lib/src/summary/format.dart

Issue 1621763002: Use the explicit string 'dynamic' to refer to dynamic in summaries. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 | « no previous file | pkg/analyzer/lib/src/summary/prelink.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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 // This file has been automatically generated. Please do not edit it manually. 5 // This file has been automatically generated. Please do not edit it manually.
6 // To regenerate the file, use the script "pkg/analyzer/tool/generate_files". 6 // To regenerate the file, use the script "pkg/analyzer/tool/generate_files".
7 7
8 library analyzer.src.summary.format; 8 library analyzer.src.summary.format;
9 9
10 import 'base.dart' as base; 10 import 'base.dart' as base;
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 assert(_value == null || _value >= 0); 440 assert(_value == null || _value >= 0);
441 _slot = _value; 441 _slot = _value;
442 } 442 }
443 443
444 @override 444 @override
445 int get reference => _reference ??= 0; 445 int get reference => _reference ??= 0;
446 446
447 /** 447 /**
448 * Index into [UnlinkedUnit.references] for the entity being referred to, or 448 * Index into [UnlinkedUnit.references] for the entity being referred to, or
449 * zero if this is a reference to a type parameter. 449 * zero if this is a reference to a type parameter.
450 *
451 * Note that since zero is also a valid index into
452 * [UnlinkedUnit.references], we cannot distinguish between references to
453 * type parameters and references to other entities by checking [reference]
454 * against zero. To distinguish between references to type parameters and
455 * references to other entities, check whether [paramReference] is zero.
456 */ 450 */
457 void set reference(int _value) { 451 void set reference(int _value) {
458 assert(!_finished); 452 assert(!_finished);
459 assert(_value == null || _value >= 0); 453 assert(_value == null || _value >= 0);
460 _reference = _value; 454 _reference = _value;
461 } 455 }
462 456
463 @override 457 @override
464 int get paramReference => _paramReference ??= 0; 458 int get paramReference => _paramReference ??= 0;
465 459
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 * is unique within the compilation unit) identifying the target of type 536 * is unique within the compilation unit) identifying the target of type
543 * propagation or type inference with which this [EntityRef] is associated. 537 * propagation or type inference with which this [EntityRef] is associated.
544 * 538 *
545 * Otherwise zero. 539 * Otherwise zero.
546 */ 540 */
547 int get slot; 541 int get slot;
548 542
549 /** 543 /**
550 * Index into [UnlinkedUnit.references] for the entity being referred to, or 544 * Index into [UnlinkedUnit.references] for the entity being referred to, or
551 * zero if this is a reference to a type parameter. 545 * zero if this is a reference to a type parameter.
552 *
553 * Note that since zero is also a valid index into
554 * [UnlinkedUnit.references], we cannot distinguish between references to
555 * type parameters and references to other entities by checking [reference]
556 * against zero. To distinguish between references to type parameters and
557 * references to other entities, check whether [paramReference] is zero.
558 */ 546 */
559 int get reference; 547 int get reference;
560 548
561 /** 549 /**
562 * If this is a reference to a type parameter, one-based index into the list 550 * If this is a reference to a type parameter, one-based index into the list
563 * of [UnlinkedTypeParam]s currently in effect. Indexing is done using De 551 * of [UnlinkedTypeParam]s currently in effect. Indexing is done using De
564 * Bruijn index conventions; that is, innermost parameters come first, and 552 * Bruijn index conventions; that is, innermost parameters come first, and
565 * if a class or method has multiple parameters, they are indexed from right 553 * if a class or method has multiple parameters, they are indexed from right
566 * to left. So for instance, if the enclosing declaration is 554 * to left. So for instance, if the enclosing declaration is
567 * 555 *
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
1245 assert(!_finished); 1233 assert(!_finished);
1246 assert(_value == null || _value >= 0); 1234 assert(_value == null || _value >= 0);
1247 _numTypeParameters = _value; 1235 _numTypeParameters = _value;
1248 } 1236 }
1249 1237
1250 @override 1238 @override
1251 String get name => _name ??= ''; 1239 String get name => _name ??= '';
1252 1240
1253 /** 1241 /**
1254 * If this [LinkedReference] doesn't have an associated [UnlinkedReference], 1242 * If this [LinkedReference] doesn't have an associated [UnlinkedReference],
1255 * name of the entity being referred to. The empty string refers to the 1243 * name of the entity being referred to. For the pseudo-type `dynamic`, the
1256 * pseudo-type `dynamic`. 1244 * string is "dynamic".
1257 */ 1245 */
1258 void set name(String _value) { 1246 void set name(String _value) {
1259 assert(!_finished); 1247 assert(!_finished);
1260 _name = _value; 1248 _name = _value;
1261 } 1249 }
1262 1250
1263 LinkedReferenceBuilder({int dependency, ReferenceKind kind, int unit, int numT ypeParameters, String name}) 1251 LinkedReferenceBuilder({int dependency, ReferenceKind kind, int unit, int numT ypeParameters, String name})
1264 : _dependency = dependency, 1252 : _dependency = dependency,
1265 _kind = kind, 1253 _kind = kind,
1266 _unit = unit, 1254 _unit = unit,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
1320 int get unit; 1308 int get unit;
1321 1309
1322 /** 1310 /**
1323 * If the entity being referred to is generic, the number of type parameters 1311 * If the entity being referred to is generic, the number of type parameters
1324 * it accepts. Otherwise zero. 1312 * it accepts. Otherwise zero.
1325 */ 1313 */
1326 int get numTypeParameters; 1314 int get numTypeParameters;
1327 1315
1328 /** 1316 /**
1329 * If this [LinkedReference] doesn't have an associated [UnlinkedReference], 1317 * If this [LinkedReference] doesn't have an associated [UnlinkedReference],
1330 * name of the entity being referred to. The empty string refers to the 1318 * name of the entity being referred to. For the pseudo-type `dynamic`, the
1331 * pseudo-type `dynamic`. 1319 * string is "dynamic".
1332 */ 1320 */
1333 String get name; 1321 String get name;
1334 } 1322 }
1335 1323
1336 class _LinkedReferenceReader extends fb.TableReader<_LinkedReferenceImpl> { 1324 class _LinkedReferenceReader extends fb.TableReader<_LinkedReferenceImpl> {
1337 const _LinkedReferenceReader(); 1325 const _LinkedReferenceReader();
1338 1326
1339 @override 1327 @override
1340 _LinkedReferenceImpl createObject(fb.BufferPointer bp) => new _LinkedReference Impl(bp); 1328 _LinkedReferenceImpl createObject(fb.BufferPointer bp) => new _LinkedReference Impl(bp);
1341 } 1329 }
(...skipping 3312 matching lines...) Expand 10 before | Expand all | Expand 10 after
4654 class UnlinkedReferenceBuilder extends Object with _UnlinkedReferenceMixin imple ments UnlinkedReference { 4642 class UnlinkedReferenceBuilder extends Object with _UnlinkedReferenceMixin imple ments UnlinkedReference {
4655 bool _finished = false; 4643 bool _finished = false;
4656 4644
4657 String _name; 4645 String _name;
4658 int _prefixReference; 4646 int _prefixReference;
4659 4647
4660 @override 4648 @override
4661 String get name => _name ??= ''; 4649 String get name => _name ??= '';
4662 4650
4663 /** 4651 /**
4664 * Name of the entity being referred to. The empty string refers to the 4652 * Name of the entity being referred to. For the pseudo-type `dynamic`, the
4665 * pseudo-type `dynamic`. 4653 * string is "dynamic".
4666 */ 4654 */
4667 void set name(String _value) { 4655 void set name(String _value) {
4668 assert(!_finished); 4656 assert(!_finished);
4669 _name = _value; 4657 _name = _value;
4670 } 4658 }
4671 4659
4672 @override 4660 @override
4673 int get prefixReference => _prefixReference ??= 0; 4661 int get prefixReference => _prefixReference ??= 0;
4674 4662
4675 /** 4663 /**
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
4708 } 4696 }
4709 } 4697 }
4710 4698
4711 /** 4699 /**
4712 * Unlinked summary information about a name referred to in one library that 4700 * Unlinked summary information about a name referred to in one library that
4713 * might be defined in another. 4701 * might be defined in another.
4714 */ 4702 */
4715 abstract class UnlinkedReference extends base.SummaryClass { 4703 abstract class UnlinkedReference extends base.SummaryClass {
4716 4704
4717 /** 4705 /**
4718 * Name of the entity being referred to. The empty string refers to the 4706 * Name of the entity being referred to. For the pseudo-type `dynamic`, the
4719 * pseudo-type `dynamic`. 4707 * string is "dynamic".
4720 */ 4708 */
4721 String get name; 4709 String get name;
4722 4710
4723 /** 4711 /**
4724 * Prefix used to refer to the entity, or zero if no prefix is used. This is 4712 * Prefix used to refer to the entity, or zero if no prefix is used. This is
4725 * an index into [UnlinkedUnit.references]. 4713 * an index into [UnlinkedUnit.references].
4726 * 4714 *
4727 * Prefix references must always point backward; that is, for all i, if 4715 * Prefix references must always point backward; that is, for all i, if
4728 * UnlinkedUnit.references[i].prefixReference != 0, then 4716 * UnlinkedUnit.references[i].prefixReference != 0, then
4729 * UnlinkedUnit.references[i].prefixReference < i. 4717 * UnlinkedUnit.references[i].prefixReference < i.
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
5218 void set publicNamespace(UnlinkedPublicNamespaceBuilder _value) { 5206 void set publicNamespace(UnlinkedPublicNamespaceBuilder _value) {
5219 assert(!_finished); 5207 assert(!_finished);
5220 _publicNamespace = _value; 5208 _publicNamespace = _value;
5221 } 5209 }
5222 5210
5223 @override 5211 @override
5224 List<UnlinkedReferenceBuilder> get references => _references ??= <UnlinkedRefe renceBuilder>[]; 5212 List<UnlinkedReferenceBuilder> get references => _references ??= <UnlinkedRefe renceBuilder>[];
5225 5213
5226 /** 5214 /**
5227 * Top level and prefixed names referred to by this compilation unit. The 5215 * Top level and prefixed names referred to by this compilation unit. The
5228 * zeroth element of this array is always populated and always represents a 5216 * zeroth element of this array is always populated and is used to represent
5229 * reference to the pseudo-type "dynamic". 5217 * the absence of a reference in places where a reference is optional (for
5218 * example [UnlinkedReference.prefixReference or
5219 * UnlinkedImport.prefixReference]).
5230 */ 5220 */
5231 void set references(List<UnlinkedReferenceBuilder> _value) { 5221 void set references(List<UnlinkedReferenceBuilder> _value) {
5232 assert(!_finished); 5222 assert(!_finished);
5233 _references = _value; 5223 _references = _value;
5234 } 5224 }
5235 5225
5236 @override 5226 @override
5237 List<UnlinkedClassBuilder> get classes => _classes ??= <UnlinkedClassBuilder>[ ]; 5227 List<UnlinkedClassBuilder> get classes => _classes ??= <UnlinkedClassBuilder>[ ];
5238 5228
5239 /** 5229 /**
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
5473 */ 5463 */
5474 UnlinkedDocumentationComment get libraryDocumentationComment; 5464 UnlinkedDocumentationComment get libraryDocumentationComment;
5475 5465
5476 /** 5466 /**
5477 * Unlinked public namespace of this compilation unit. 5467 * Unlinked public namespace of this compilation unit.
5478 */ 5468 */
5479 UnlinkedPublicNamespace get publicNamespace; 5469 UnlinkedPublicNamespace get publicNamespace;
5480 5470
5481 /** 5471 /**
5482 * Top level and prefixed names referred to by this compilation unit. The 5472 * Top level and prefixed names referred to by this compilation unit. The
5483 * zeroth element of this array is always populated and always represents a 5473 * zeroth element of this array is always populated and is used to represent
5484 * reference to the pseudo-type "dynamic". 5474 * the absence of a reference in places where a reference is optional (for
5475 * example [UnlinkedReference.prefixReference or
5476 * UnlinkedImport.prefixReference]).
5485 */ 5477 */
5486 List<UnlinkedReference> get references; 5478 List<UnlinkedReference> get references;
5487 5479
5488 /** 5480 /**
5489 * Classes declared in the compilation unit. 5481 * Classes declared in the compilation unit.
5490 */ 5482 */
5491 List<UnlinkedClass> get classes; 5483 List<UnlinkedClass> get classes;
5492 5484
5493 /** 5485 /**
5494 * Enums declared in the compilation unit. 5486 * Enums declared in the compilation unit.
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
6025 "type": type, 6017 "type": type,
6026 "constExpr": constExpr, 6018 "constExpr": constExpr,
6027 "isStatic": isStatic, 6019 "isStatic": isStatic,
6028 "isFinal": isFinal, 6020 "isFinal": isFinal,
6029 "isConst": isConst, 6021 "isConst": isConst,
6030 "hasImplicitType": hasImplicitType, 6022 "hasImplicitType": hasImplicitType,
6031 "propagatedTypeSlot": propagatedTypeSlot, 6023 "propagatedTypeSlot": propagatedTypeSlot,
6032 }; 6024 };
6033 } 6025 }
6034 6026
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/summary/prelink.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698