Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 431 class LinkedLibraryBuilder extends Object with _LinkedLibraryMixin implements Li nkedLibrary { | 431 class LinkedLibraryBuilder extends Object with _LinkedLibraryMixin implements Li nkedLibrary { |
| 432 bool _finished = false; | 432 bool _finished = false; |
| 433 | 433 |
| 434 List<LinkedUnitBuilder> _units; | 434 List<LinkedUnitBuilder> _units; |
| 435 List<LinkedDependencyBuilder> _dependencies; | 435 List<LinkedDependencyBuilder> _dependencies; |
| 436 List<int> _importDependencies; | 436 List<int> _importDependencies; |
| 437 List<LinkedExportNameBuilder> _exportNames; | 437 List<LinkedExportNameBuilder> _exportNames; |
| 438 int _numPrelinkedDependencies; | 438 int _numPrelinkedDependencies; |
| 439 | 439 |
| 440 @override | 440 @override |
| 441 List<LinkedUnit> get units => _units ?? const <LinkedUnit>[]; | 441 List<LinkedUnitBuilder> get units => _units ?? const <LinkedUnit>[]; |
|
scheglov
2016/01/20 17:13:06
Should we also replace type arguments of the defau
Paul Berry
2016/01/20 17:31:01
Hmm, good question. Since this is a const list, i
| |
| 442 | 442 |
| 443 /** | 443 /** |
| 444 * The linked summary of all the compilation units constituting the | 444 * The linked summary of all the compilation units constituting the |
| 445 * library. The summary of the defining compilation unit is listed first, | 445 * library. The summary of the defining compilation unit is listed first, |
| 446 * followed by the summary of each part, in the order of the `part` | 446 * followed by the summary of each part, in the order of the `part` |
| 447 * declarations in the defining compilation unit. | 447 * declarations in the defining compilation unit. |
| 448 */ | 448 */ |
| 449 void set units(List<LinkedUnitBuilder> _value) { | 449 void set units(List<LinkedUnitBuilder> _value) { |
| 450 assert(!_finished); | 450 assert(!_finished); |
| 451 _units = _value; | 451 _units = _value; |
| 452 } | 452 } |
| 453 | 453 |
| 454 @override | 454 @override |
| 455 List<LinkedDependency> get dependencies => _dependencies ?? const <LinkedDepen dency>[]; | 455 List<LinkedDependencyBuilder> get dependencies => _dependencies ?? const <Link edDependency>[]; |
| 456 | 456 |
| 457 /** | 457 /** |
| 458 * The libraries that this library depends on (either via an explicit import | 458 * The libraries that this library depends on (either via an explicit import |
| 459 * statement or via the implicit dependencies on `dart:core` and | 459 * statement or via the implicit dependencies on `dart:core` and |
| 460 * `dart:async`). The first element of this array is a pseudo-dependency | 460 * `dart:async`). The first element of this array is a pseudo-dependency |
| 461 * representing the library itself (it is also used for "dynamic"). This is | 461 * representing the library itself (it is also used for "dynamic"). This is |
| 462 * followed by elements representing "prelinked" dependencies (direct imports | 462 * followed by elements representing "prelinked" dependencies (direct imports |
| 463 * and the transitive closure of exports). After the prelinked dependencies | 463 * and the transitive closure of exports). After the prelinked dependencies |
| 464 * are elements represent "linked" dependencies. | 464 * are elements represent "linked" dependencies. |
| 465 * | 465 * |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 480 /** | 480 /** |
| 481 * For each import in [UnlinkedUnit.imports], an index into [dependencies] | 481 * For each import in [UnlinkedUnit.imports], an index into [dependencies] |
| 482 * of the library being imported. | 482 * of the library being imported. |
| 483 */ | 483 */ |
| 484 void set importDependencies(List<int> _value) { | 484 void set importDependencies(List<int> _value) { |
| 485 assert(!_finished); | 485 assert(!_finished); |
| 486 _importDependencies = _value; | 486 _importDependencies = _value; |
| 487 } | 487 } |
| 488 | 488 |
| 489 @override | 489 @override |
| 490 List<LinkedExportName> get exportNames => _exportNames ?? const <LinkedExportN ame>[]; | 490 List<LinkedExportNameBuilder> get exportNames => _exportNames ?? const <Linked ExportName>[]; |
| 491 | 491 |
| 492 /** | 492 /** |
| 493 * Information about entities in the export namespace of the library that are | 493 * Information about entities in the export namespace of the library that are |
| 494 * not in the public namespace of the library (that is, entities that are | 494 * not in the public namespace of the library (that is, entities that are |
| 495 * brought into the namespace via `export` directives). | 495 * brought into the namespace via `export` directives). |
| 496 * | 496 * |
| 497 * Sorted by name. | 497 * Sorted by name. |
| 498 */ | 498 */ |
| 499 void set exportNames(List<LinkedExportNameBuilder> _value) { | 499 void set exportNames(List<LinkedExportNameBuilder> _value) { |
| 500 assert(!_finished); | 500 assert(!_finished); |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 887 }; | 887 }; |
| 888 } | 888 } |
| 889 | 889 |
| 890 class LinkedUnitBuilder extends Object with _LinkedUnitMixin implements LinkedUn it { | 890 class LinkedUnitBuilder extends Object with _LinkedUnitMixin implements LinkedUn it { |
| 891 bool _finished = false; | 891 bool _finished = false; |
| 892 | 892 |
| 893 List<LinkedReferenceBuilder> _references; | 893 List<LinkedReferenceBuilder> _references; |
| 894 List<TypeRefBuilder> _types; | 894 List<TypeRefBuilder> _types; |
| 895 | 895 |
| 896 @override | 896 @override |
| 897 List<LinkedReference> get references => _references ?? const <LinkedReference> []; | 897 List<LinkedReferenceBuilder> get references => _references ?? const <LinkedRef erence>[]; |
| 898 | 898 |
| 899 /** | 899 /** |
| 900 * Information about the resolution of references within the compilation | 900 * Information about the resolution of references within the compilation |
| 901 * unit. Each element of [UnlinkedUnit.references] has a corresponding | 901 * unit. Each element of [UnlinkedUnit.references] has a corresponding |
| 902 * element in this list (at the same index). If this list has additional | 902 * element in this list (at the same index). If this list has additional |
| 903 * elements beyond the number of elements in [UnlinkedUnit.references], those | 903 * elements beyond the number of elements in [UnlinkedUnit.references], those |
| 904 * additional elements are references that are only referred to implicitly | 904 * additional elements are references that are only referred to implicitly |
| 905 * (e.g. elements involved in inferred or propagated types). | 905 * (e.g. elements involved in inferred or propagated types). |
| 906 */ | 906 */ |
| 907 void set references(List<LinkedReferenceBuilder> _value) { | 907 void set references(List<LinkedReferenceBuilder> _value) { |
| 908 assert(!_finished); | 908 assert(!_finished); |
| 909 _references = _value; | 909 _references = _value; |
| 910 } | 910 } |
| 911 | 911 |
| 912 @override | 912 @override |
| 913 List<TypeRef> get types => _types ?? const <TypeRef>[]; | 913 List<TypeRefBuilder> get types => _types ?? const <TypeRef>[]; |
| 914 | 914 |
| 915 /** | 915 /** |
| 916 * List associating slot ids found inside the unlinked summary for the | 916 * List associating slot ids found inside the unlinked summary for the |
| 917 * compilation unit with propagated and inferred types. | 917 * compilation unit with propagated and inferred types. |
| 918 */ | 918 */ |
| 919 void set types(List<TypeRefBuilder> _value) { | 919 void set types(List<TypeRefBuilder> _value) { |
| 920 assert(!_finished); | 920 assert(!_finished); |
| 921 _types = _value; | 921 _types = _value; |
| 922 } | 922 } |
| 923 | 923 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1018 | 1018 |
| 1019 /** | 1019 /** |
| 1020 * The list of URIs of items in [linkedLibraries], e.g. `dart:core`. | 1020 * The list of URIs of items in [linkedLibraries], e.g. `dart:core`. |
| 1021 */ | 1021 */ |
| 1022 void set linkedLibraryUris(List<String> _value) { | 1022 void set linkedLibraryUris(List<String> _value) { |
| 1023 assert(!_finished); | 1023 assert(!_finished); |
| 1024 _linkedLibraryUris = _value; | 1024 _linkedLibraryUris = _value; |
| 1025 } | 1025 } |
| 1026 | 1026 |
| 1027 @override | 1027 @override |
| 1028 List<LinkedLibrary> get linkedLibraries => _linkedLibraries ?? const <LinkedLi brary>[]; | 1028 List<LinkedLibraryBuilder> get linkedLibraries => _linkedLibraries ?? const <L inkedLibrary>[]; |
| 1029 | 1029 |
| 1030 /** | 1030 /** |
| 1031 * Linked libraries. | 1031 * Linked libraries. |
| 1032 */ | 1032 */ |
| 1033 void set linkedLibraries(List<LinkedLibraryBuilder> _value) { | 1033 void set linkedLibraries(List<LinkedLibraryBuilder> _value) { |
| 1034 assert(!_finished); | 1034 assert(!_finished); |
| 1035 _linkedLibraries = _value; | 1035 _linkedLibraries = _value; |
| 1036 } | 1036 } |
| 1037 | 1037 |
| 1038 @override | 1038 @override |
| 1039 List<String> get unlinkedUnitUris => _unlinkedUnitUris ?? const <String>[]; | 1039 List<String> get unlinkedUnitUris => _unlinkedUnitUris ?? const <String>[]; |
| 1040 | 1040 |
| 1041 /** | 1041 /** |
| 1042 * The list of URIs of items in [unlinkedUnits], e.g. `dart:core/bool.dart`. | 1042 * The list of URIs of items in [unlinkedUnits], e.g. `dart:core/bool.dart`. |
| 1043 */ | 1043 */ |
| 1044 void set unlinkedUnitUris(List<String> _value) { | 1044 void set unlinkedUnitUris(List<String> _value) { |
| 1045 assert(!_finished); | 1045 assert(!_finished); |
| 1046 _unlinkedUnitUris = _value; | 1046 _unlinkedUnitUris = _value; |
| 1047 } | 1047 } |
| 1048 | 1048 |
| 1049 @override | 1049 @override |
| 1050 List<UnlinkedUnit> get unlinkedUnits => _unlinkedUnits ?? const <UnlinkedUnit> []; | 1050 List<UnlinkedUnitBuilder> get unlinkedUnits => _unlinkedUnits ?? const <Unlink edUnit>[]; |
| 1051 | 1051 |
| 1052 /** | 1052 /** |
| 1053 * Unlinked information for the compilation units constituting the SDK. | 1053 * Unlinked information for the compilation units constituting the SDK. |
| 1054 */ | 1054 */ |
| 1055 void set unlinkedUnits(List<UnlinkedUnitBuilder> _value) { | 1055 void set unlinkedUnits(List<UnlinkedUnitBuilder> _value) { |
| 1056 assert(!_finished); | 1056 assert(!_finished); |
| 1057 _unlinkedUnits = _value; | 1057 _unlinkedUnits = _value; |
| 1058 } | 1058 } |
| 1059 | 1059 |
| 1060 SdkBundleBuilder({List<String> linkedLibraryUris, List<LinkedLibraryBuilder> l inkedLibraries, List<String> unlinkedUnitUris, List<UnlinkedUnitBuilder> unlinke dUnits}) | 1060 SdkBundleBuilder({List<String> linkedLibraryUris, List<LinkedLibraryBuilder> l inkedLibraries, List<String> unlinkedUnitUris, List<UnlinkedUnitBuilder> unlinke dUnits}) |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1248 * | 1248 * |
| 1249 * If the type being referred to is not a type parameter, [paramReference] is | 1249 * If the type being referred to is not a type parameter, [paramReference] is |
| 1250 * zero. | 1250 * zero. |
| 1251 */ | 1251 */ |
| 1252 void set paramReference(int _value) { | 1252 void set paramReference(int _value) { |
| 1253 assert(!_finished); | 1253 assert(!_finished); |
| 1254 _paramReference = _value; | 1254 _paramReference = _value; |
| 1255 } | 1255 } |
| 1256 | 1256 |
| 1257 @override | 1257 @override |
| 1258 List<TypeRef> get typeArguments => _typeArguments ?? const <TypeRef>[]; | 1258 List<TypeRefBuilder> get typeArguments => _typeArguments ?? const <TypeRef>[]; |
| 1259 | 1259 |
| 1260 /** | 1260 /** |
| 1261 * If this is an instantiation of a generic type, the type arguments used to | 1261 * If this is an instantiation of a generic type, the type arguments used to |
| 1262 * instantiate it. Trailing type arguments of type `dynamic` are omitted. | 1262 * instantiate it. Trailing type arguments of type `dynamic` are omitted. |
| 1263 */ | 1263 */ |
| 1264 void set typeArguments(List<TypeRefBuilder> _value) { | 1264 void set typeArguments(List<TypeRefBuilder> _value) { |
| 1265 assert(!_finished); | 1265 assert(!_finished); |
| 1266 _typeArguments = _value; | 1266 _typeArguments = _value; |
| 1267 } | 1267 } |
| 1268 | 1268 |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1434 | 1434 |
| 1435 /** | 1435 /** |
| 1436 * Offset of the class name relative to the beginning of the file. | 1436 * Offset of the class name relative to the beginning of the file. |
| 1437 */ | 1437 */ |
| 1438 void set nameOffset(int _value) { | 1438 void set nameOffset(int _value) { |
| 1439 assert(!_finished); | 1439 assert(!_finished); |
| 1440 _nameOffset = _value; | 1440 _nameOffset = _value; |
| 1441 } | 1441 } |
| 1442 | 1442 |
| 1443 @override | 1443 @override |
| 1444 UnlinkedDocumentationComment get documentationComment => _documentationComment ; | 1444 UnlinkedDocumentationCommentBuilder get documentationComment => _documentation Comment; |
| 1445 | 1445 |
| 1446 /** | 1446 /** |
| 1447 * Documentation comment for the class, or `null` if there is no | 1447 * Documentation comment for the class, or `null` if there is no |
| 1448 * documentation comment. | 1448 * documentation comment. |
| 1449 */ | 1449 */ |
| 1450 void set documentationComment(UnlinkedDocumentationCommentBuilder _value) { | 1450 void set documentationComment(UnlinkedDocumentationCommentBuilder _value) { |
| 1451 assert(!_finished); | 1451 assert(!_finished); |
| 1452 _documentationComment = _value; | 1452 _documentationComment = _value; |
| 1453 } | 1453 } |
| 1454 | 1454 |
| 1455 @override | 1455 @override |
| 1456 List<UnlinkedTypeParam> get typeParameters => _typeParameters ?? const <Unlink edTypeParam>[]; | 1456 List<UnlinkedTypeParamBuilder> get typeParameters => _typeParameters ?? const <UnlinkedTypeParam>[]; |
| 1457 | 1457 |
| 1458 /** | 1458 /** |
| 1459 * Type parameters of the class, if any. | 1459 * Type parameters of the class, if any. |
| 1460 */ | 1460 */ |
| 1461 void set typeParameters(List<UnlinkedTypeParamBuilder> _value) { | 1461 void set typeParameters(List<UnlinkedTypeParamBuilder> _value) { |
| 1462 assert(!_finished); | 1462 assert(!_finished); |
| 1463 _typeParameters = _value; | 1463 _typeParameters = _value; |
| 1464 } | 1464 } |
| 1465 | 1465 |
| 1466 @override | 1466 @override |
| 1467 TypeRef get supertype => _supertype; | 1467 TypeRefBuilder get supertype => _supertype; |
| 1468 | 1468 |
| 1469 /** | 1469 /** |
| 1470 * Supertype of the class, or `null` if either (a) the class doesn't | 1470 * Supertype of the class, or `null` if either (a) the class doesn't |
| 1471 * explicitly declare a supertype (and hence has supertype `Object`), or (b) | 1471 * explicitly declare a supertype (and hence has supertype `Object`), or (b) |
| 1472 * the class *is* `Object` (and hence has no supertype). | 1472 * the class *is* `Object` (and hence has no supertype). |
| 1473 */ | 1473 */ |
| 1474 void set supertype(TypeRefBuilder _value) { | 1474 void set supertype(TypeRefBuilder _value) { |
| 1475 assert(!_finished); | 1475 assert(!_finished); |
| 1476 _supertype = _value; | 1476 _supertype = _value; |
| 1477 } | 1477 } |
| 1478 | 1478 |
| 1479 @override | 1479 @override |
| 1480 List<TypeRef> get mixins => _mixins ?? const <TypeRef>[]; | 1480 List<TypeRefBuilder> get mixins => _mixins ?? const <TypeRef>[]; |
| 1481 | 1481 |
| 1482 /** | 1482 /** |
| 1483 * Mixins appearing in a `with` clause, if any. | 1483 * Mixins appearing in a `with` clause, if any. |
| 1484 */ | 1484 */ |
| 1485 void set mixins(List<TypeRefBuilder> _value) { | 1485 void set mixins(List<TypeRefBuilder> _value) { |
| 1486 assert(!_finished); | 1486 assert(!_finished); |
| 1487 _mixins = _value; | 1487 _mixins = _value; |
| 1488 } | 1488 } |
| 1489 | 1489 |
| 1490 @override | 1490 @override |
| 1491 List<TypeRef> get interfaces => _interfaces ?? const <TypeRef>[]; | 1491 List<TypeRefBuilder> get interfaces => _interfaces ?? const <TypeRef>[]; |
| 1492 | 1492 |
| 1493 /** | 1493 /** |
| 1494 * Interfaces appearing in an `implements` clause, if any. | 1494 * Interfaces appearing in an `implements` clause, if any. |
| 1495 */ | 1495 */ |
| 1496 void set interfaces(List<TypeRefBuilder> _value) { | 1496 void set interfaces(List<TypeRefBuilder> _value) { |
| 1497 assert(!_finished); | 1497 assert(!_finished); |
| 1498 _interfaces = _value; | 1498 _interfaces = _value; |
| 1499 } | 1499 } |
| 1500 | 1500 |
| 1501 @override | 1501 @override |
| 1502 List<UnlinkedVariable> get fields => _fields ?? const <UnlinkedVariable>[]; | 1502 List<UnlinkedVariableBuilder> get fields => _fields ?? const <UnlinkedVariable >[]; |
| 1503 | 1503 |
| 1504 /** | 1504 /** |
| 1505 * Field declarations contained in the class. | 1505 * Field declarations contained in the class. |
| 1506 */ | 1506 */ |
| 1507 void set fields(List<UnlinkedVariableBuilder> _value) { | 1507 void set fields(List<UnlinkedVariableBuilder> _value) { |
| 1508 assert(!_finished); | 1508 assert(!_finished); |
| 1509 _fields = _value; | 1509 _fields = _value; |
| 1510 } | 1510 } |
| 1511 | 1511 |
| 1512 @override | 1512 @override |
| 1513 List<UnlinkedExecutable> get executables => _executables ?? const <UnlinkedExe cutable>[]; | 1513 List<UnlinkedExecutableBuilder> get executables => _executables ?? const <Unli nkedExecutable>[]; |
| 1514 | 1514 |
| 1515 /** | 1515 /** |
| 1516 * Executable objects (methods, getters, and setters) contained in the class. | 1516 * Executable objects (methods, getters, and setters) contained in the class. |
| 1517 */ | 1517 */ |
| 1518 void set executables(List<UnlinkedExecutableBuilder> _value) { | 1518 void set executables(List<UnlinkedExecutableBuilder> _value) { |
| 1519 assert(!_finished); | 1519 assert(!_finished); |
| 1520 _executables = _value; | 1520 _executables = _value; |
| 1521 } | 1521 } |
| 1522 | 1522 |
| 1523 @override | 1523 @override |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1988 /** | 1988 /** |
| 1989 * Sequence of strings consumed by the operations `pushString` and | 1989 * Sequence of strings consumed by the operations `pushString` and |
| 1990 * `invokeConstructor`. | 1990 * `invokeConstructor`. |
| 1991 */ | 1991 */ |
| 1992 void set strings(List<String> _value) { | 1992 void set strings(List<String> _value) { |
| 1993 assert(!_finished); | 1993 assert(!_finished); |
| 1994 _strings = _value; | 1994 _strings = _value; |
| 1995 } | 1995 } |
| 1996 | 1996 |
| 1997 @override | 1997 @override |
| 1998 List<TypeRef> get references => _references ?? const <TypeRef>[]; | 1998 List<TypeRefBuilder> get references => _references ?? const <TypeRef>[]; |
| 1999 | 1999 |
| 2000 /** | 2000 /** |
| 2001 * Sequence of language constructs consumed by the operations | 2001 * Sequence of language constructs consumed by the operations |
| 2002 * `pushReference`, `invokeConstructor`, `makeList`, and `makeMap`. Note | 2002 * `pushReference`, `invokeConstructor`, `makeList`, and `makeMap`. Note |
| 2003 * that in the case of `pushReference` (and sometimes `invokeConstructor` the | 2003 * that in the case of `pushReference` (and sometimes `invokeConstructor` the |
| 2004 * actual entity being referred to may be something other than a type. | 2004 * actual entity being referred to may be something other than a type. |
| 2005 */ | 2005 */ |
| 2006 void set references(List<TypeRefBuilder> _value) { | 2006 void set references(List<TypeRefBuilder> _value) { |
| 2007 assert(!_finished); | 2007 assert(!_finished); |
| 2008 _references = _value; | 2008 _references = _value; |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2326 | 2326 |
| 2327 /** | 2327 /** |
| 2328 * Offset of the enum name relative to the beginning of the file. | 2328 * Offset of the enum name relative to the beginning of the file. |
| 2329 */ | 2329 */ |
| 2330 void set nameOffset(int _value) { | 2330 void set nameOffset(int _value) { |
| 2331 assert(!_finished); | 2331 assert(!_finished); |
| 2332 _nameOffset = _value; | 2332 _nameOffset = _value; |
| 2333 } | 2333 } |
| 2334 | 2334 |
| 2335 @override | 2335 @override |
| 2336 UnlinkedDocumentationComment get documentationComment => _documentationComment ; | 2336 UnlinkedDocumentationCommentBuilder get documentationComment => _documentation Comment; |
| 2337 | 2337 |
| 2338 /** | 2338 /** |
| 2339 * Documentation comment for the enum, or `null` if there is no documentation | 2339 * Documentation comment for the enum, or `null` if there is no documentation |
| 2340 * comment. | 2340 * comment. |
| 2341 */ | 2341 */ |
| 2342 void set documentationComment(UnlinkedDocumentationCommentBuilder _value) { | 2342 void set documentationComment(UnlinkedDocumentationCommentBuilder _value) { |
| 2343 assert(!_finished); | 2343 assert(!_finished); |
| 2344 _documentationComment = _value; | 2344 _documentationComment = _value; |
| 2345 } | 2345 } |
| 2346 | 2346 |
| 2347 @override | 2347 @override |
| 2348 List<UnlinkedEnumValue> get values => _values ?? const <UnlinkedEnumValue>[]; | 2348 List<UnlinkedEnumValueBuilder> get values => _values ?? const <UnlinkedEnumVal ue>[]; |
| 2349 | 2349 |
| 2350 /** | 2350 /** |
| 2351 * Values listed in the enum declaration, in declaration order. | 2351 * Values listed in the enum declaration, in declaration order. |
| 2352 */ | 2352 */ |
| 2353 void set values(List<UnlinkedEnumValueBuilder> _value) { | 2353 void set values(List<UnlinkedEnumValueBuilder> _value) { |
| 2354 assert(!_finished); | 2354 assert(!_finished); |
| 2355 _values = _value; | 2355 _values = _value; |
| 2356 } | 2356 } |
| 2357 | 2357 |
| 2358 UnlinkedEnumBuilder({String name, int nameOffset, UnlinkedDocumentationComment Builder documentationComment, List<UnlinkedEnumValueBuilder> values}) | 2358 UnlinkedEnumBuilder({String name, int nameOffset, UnlinkedDocumentationComment Builder documentationComment, List<UnlinkedEnumValueBuilder> values}) |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2495 | 2495 |
| 2496 /** | 2496 /** |
| 2497 * Offset of the enum value name relative to the beginning of the file. | 2497 * Offset of the enum value name relative to the beginning of the file. |
| 2498 */ | 2498 */ |
| 2499 void set nameOffset(int _value) { | 2499 void set nameOffset(int _value) { |
| 2500 assert(!_finished); | 2500 assert(!_finished); |
| 2501 _nameOffset = _value; | 2501 _nameOffset = _value; |
| 2502 } | 2502 } |
| 2503 | 2503 |
| 2504 @override | 2504 @override |
| 2505 UnlinkedDocumentationComment get documentationComment => _documentationComment ; | 2505 UnlinkedDocumentationCommentBuilder get documentationComment => _documentation Comment; |
| 2506 | 2506 |
| 2507 /** | 2507 /** |
| 2508 * Documentation comment for the enum value, or `null` if there is no | 2508 * Documentation comment for the enum value, or `null` if there is no |
| 2509 * documentation comment. | 2509 * documentation comment. |
| 2510 */ | 2510 */ |
| 2511 void set documentationComment(UnlinkedDocumentationCommentBuilder _value) { | 2511 void set documentationComment(UnlinkedDocumentationCommentBuilder _value) { |
| 2512 assert(!_finished); | 2512 assert(!_finished); |
| 2513 _documentationComment = _value; | 2513 _documentationComment = _value; |
| 2514 } | 2514 } |
| 2515 | 2515 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2648 * named constructors, this excludes the class name and excludes the ".". | 2648 * named constructors, this excludes the class name and excludes the ".". |
| 2649 * For unnamed constructors, this is the offset of the class name (i.e. the | 2649 * For unnamed constructors, this is the offset of the class name (i.e. the |
| 2650 * offset of the second "C" in "class C { C(); }"). | 2650 * offset of the second "C" in "class C { C(); }"). |
| 2651 */ | 2651 */ |
| 2652 void set nameOffset(int _value) { | 2652 void set nameOffset(int _value) { |
| 2653 assert(!_finished); | 2653 assert(!_finished); |
| 2654 _nameOffset = _value; | 2654 _nameOffset = _value; |
| 2655 } | 2655 } |
| 2656 | 2656 |
| 2657 @override | 2657 @override |
| 2658 UnlinkedDocumentationComment get documentationComment => _documentationComment ; | 2658 UnlinkedDocumentationCommentBuilder get documentationComment => _documentation Comment; |
| 2659 | 2659 |
| 2660 /** | 2660 /** |
| 2661 * Documentation comment for the executable, or `null` if there is no | 2661 * Documentation comment for the executable, or `null` if there is no |
| 2662 * documentation comment. | 2662 * documentation comment. |
| 2663 */ | 2663 */ |
| 2664 void set documentationComment(UnlinkedDocumentationCommentBuilder _value) { | 2664 void set documentationComment(UnlinkedDocumentationCommentBuilder _value) { |
| 2665 assert(!_finished); | 2665 assert(!_finished); |
| 2666 _documentationComment = _value; | 2666 _documentationComment = _value; |
| 2667 } | 2667 } |
| 2668 | 2668 |
| 2669 @override | 2669 @override |
| 2670 List<UnlinkedTypeParam> get typeParameters => _typeParameters ?? const <Unlink edTypeParam>[]; | 2670 List<UnlinkedTypeParamBuilder> get typeParameters => _typeParameters ?? const <UnlinkedTypeParam>[]; |
| 2671 | 2671 |
| 2672 /** | 2672 /** |
| 2673 * Type parameters of the executable, if any. Empty if support for generic | 2673 * Type parameters of the executable, if any. Empty if support for generic |
| 2674 * method syntax is disabled. | 2674 * method syntax is disabled. |
| 2675 */ | 2675 */ |
| 2676 void set typeParameters(List<UnlinkedTypeParamBuilder> _value) { | 2676 void set typeParameters(List<UnlinkedTypeParamBuilder> _value) { |
| 2677 assert(!_finished); | 2677 assert(!_finished); |
| 2678 _typeParameters = _value; | 2678 _typeParameters = _value; |
| 2679 } | 2679 } |
| 2680 | 2680 |
| 2681 @override | 2681 @override |
| 2682 TypeRef get returnType => _returnType; | 2682 TypeRefBuilder get returnType => _returnType; |
| 2683 | 2683 |
| 2684 /** | 2684 /** |
| 2685 * Declared return type of the executable. Absent if the return type is | 2685 * Declared return type of the executable. Absent if the return type is |
| 2686 * `void` or the executable is a constructor. Note that when strong mode is | 2686 * `void` or the executable is a constructor. Note that when strong mode is |
| 2687 * enabled, the actual return type may be different due to type inference. | 2687 * enabled, the actual return type may be different due to type inference. |
| 2688 */ | 2688 */ |
| 2689 void set returnType(TypeRefBuilder _value) { | 2689 void set returnType(TypeRefBuilder _value) { |
| 2690 assert(!_finished); | 2690 assert(!_finished); |
| 2691 _returnType = _value; | 2691 _returnType = _value; |
| 2692 } | 2692 } |
| 2693 | 2693 |
| 2694 @override | 2694 @override |
| 2695 List<UnlinkedParam> get parameters => _parameters ?? const <UnlinkedParam>[]; | 2695 List<UnlinkedParamBuilder> get parameters => _parameters ?? const <UnlinkedPar am>[]; |
| 2696 | 2696 |
| 2697 /** | 2697 /** |
| 2698 * Parameters of the executable, if any. Note that getters have no | 2698 * Parameters of the executable, if any. Note that getters have no |
| 2699 * parameters (hence this will be the empty list), and setters have a single | 2699 * parameters (hence this will be the empty list), and setters have a single |
| 2700 * parameter. | 2700 * parameter. |
| 2701 */ | 2701 */ |
| 2702 void set parameters(List<UnlinkedParamBuilder> _value) { | 2702 void set parameters(List<UnlinkedParamBuilder> _value) { |
| 2703 assert(!_finished); | 2703 assert(!_finished); |
| 2704 _parameters = _value; | 2704 _parameters = _value; |
| 2705 } | 2705 } |
| (...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3225 | 3225 |
| 3226 /** | 3226 /** |
| 3227 * URI used in the source code to reference the exported library. | 3227 * URI used in the source code to reference the exported library. |
| 3228 */ | 3228 */ |
| 3229 void set uri(String _value) { | 3229 void set uri(String _value) { |
| 3230 assert(!_finished); | 3230 assert(!_finished); |
| 3231 _uri = _value; | 3231 _uri = _value; |
| 3232 } | 3232 } |
| 3233 | 3233 |
| 3234 @override | 3234 @override |
| 3235 List<UnlinkedCombinator> get combinators => _combinators ?? const <UnlinkedCom binator>[]; | 3235 List<UnlinkedCombinatorBuilder> get combinators => _combinators ?? const <Unli nkedCombinator>[]; |
| 3236 | 3236 |
| 3237 /** | 3237 /** |
| 3238 * Combinators contained in this import declaration. | 3238 * Combinators contained in this import declaration. |
| 3239 */ | 3239 */ |
| 3240 void set combinators(List<UnlinkedCombinatorBuilder> _value) { | 3240 void set combinators(List<UnlinkedCombinatorBuilder> _value) { |
| 3241 assert(!_finished); | 3241 assert(!_finished); |
| 3242 _combinators = _value; | 3242 _combinators = _value; |
| 3243 } | 3243 } |
| 3244 | 3244 |
| 3245 UnlinkedExportPublicBuilder({String uri, List<UnlinkedCombinatorBuilder> combi nators}) | 3245 UnlinkedExportPublicBuilder({String uri, List<UnlinkedCombinatorBuilder> combi nators}) |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3365 * import declaration, or zero if this import declaration declares no prefix. | 3365 * import declaration, or zero if this import declaration declares no prefix. |
| 3366 * | 3366 * |
| 3367 * Note that multiple imports can declare the same prefix. | 3367 * Note that multiple imports can declare the same prefix. |
| 3368 */ | 3368 */ |
| 3369 void set prefixReference(int _value) { | 3369 void set prefixReference(int _value) { |
| 3370 assert(!_finished); | 3370 assert(!_finished); |
| 3371 _prefixReference = _value; | 3371 _prefixReference = _value; |
| 3372 } | 3372 } |
| 3373 | 3373 |
| 3374 @override | 3374 @override |
| 3375 List<UnlinkedCombinator> get combinators => _combinators ?? const <UnlinkedCom binator>[]; | 3375 List<UnlinkedCombinatorBuilder> get combinators => _combinators ?? const <Unli nkedCombinator>[]; |
| 3376 | 3376 |
| 3377 /** | 3377 /** |
| 3378 * Combinators contained in this import declaration. | 3378 * Combinators contained in this import declaration. |
| 3379 */ | 3379 */ |
| 3380 void set combinators(List<UnlinkedCombinatorBuilder> _value) { | 3380 void set combinators(List<UnlinkedCombinatorBuilder> _value) { |
| 3381 assert(!_finished); | 3381 assert(!_finished); |
| 3382 _combinators = _value; | 3382 _combinators = _value; |
| 3383 } | 3383 } |
| 3384 | 3384 |
| 3385 @override | 3385 @override |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3672 | 3672 |
| 3673 /** | 3673 /** |
| 3674 * Offset of the parameter name relative to the beginning of the file. | 3674 * Offset of the parameter name relative to the beginning of the file. |
| 3675 */ | 3675 */ |
| 3676 void set nameOffset(int _value) { | 3676 void set nameOffset(int _value) { |
| 3677 assert(!_finished); | 3677 assert(!_finished); |
| 3678 _nameOffset = _value; | 3678 _nameOffset = _value; |
| 3679 } | 3679 } |
| 3680 | 3680 |
| 3681 @override | 3681 @override |
| 3682 TypeRef get type => _type; | 3682 TypeRefBuilder get type => _type; |
| 3683 | 3683 |
| 3684 /** | 3684 /** |
| 3685 * If [isFunctionTyped] is `true`, the declared return type. If | 3685 * If [isFunctionTyped] is `true`, the declared return type. If |
| 3686 * [isFunctionTyped] is `false`, the declared type. Absent if | 3686 * [isFunctionTyped] is `false`, the declared type. Absent if |
| 3687 * [isFunctionTyped] is `true` and the declared return type is `void`. Note | 3687 * [isFunctionTyped] is `true` and the declared return type is `void`. Note |
| 3688 * that when strong mode is enabled, the actual type may be different due to | 3688 * that when strong mode is enabled, the actual type may be different due to |
| 3689 * type inference. | 3689 * type inference. |
| 3690 */ | 3690 */ |
| 3691 void set type(TypeRefBuilder _value) { | 3691 void set type(TypeRefBuilder _value) { |
| 3692 assert(!_finished); | 3692 assert(!_finished); |
| 3693 _type = _value; | 3693 _type = _value; |
| 3694 } | 3694 } |
| 3695 | 3695 |
| 3696 @override | 3696 @override |
| 3697 List<UnlinkedParam> get parameters => _parameters ?? const <UnlinkedParam>[]; | 3697 List<UnlinkedParamBuilder> get parameters => _parameters ?? const <UnlinkedPar am>[]; |
| 3698 | 3698 |
| 3699 /** | 3699 /** |
| 3700 * If [isFunctionTyped] is `true`, the parameters of the function type. | 3700 * If [isFunctionTyped] is `true`, the parameters of the function type. |
| 3701 */ | 3701 */ |
| 3702 void set parameters(List<UnlinkedParamBuilder> _value) { | 3702 void set parameters(List<UnlinkedParamBuilder> _value) { |
| 3703 assert(!_finished); | 3703 assert(!_finished); |
| 3704 _parameters = _value; | 3704 _parameters = _value; |
| 3705 } | 3705 } |
| 3706 | 3706 |
| 3707 @override | 3707 @override |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4187 } | 4187 } |
| 4188 | 4188 |
| 4189 class UnlinkedPublicNamespaceBuilder extends Object with _UnlinkedPublicNamespac eMixin implements UnlinkedPublicNamespace { | 4189 class UnlinkedPublicNamespaceBuilder extends Object with _UnlinkedPublicNamespac eMixin implements UnlinkedPublicNamespace { |
| 4190 bool _finished = false; | 4190 bool _finished = false; |
| 4191 | 4191 |
| 4192 List<UnlinkedPublicNameBuilder> _names; | 4192 List<UnlinkedPublicNameBuilder> _names; |
| 4193 List<UnlinkedExportPublicBuilder> _exports; | 4193 List<UnlinkedExportPublicBuilder> _exports; |
| 4194 List<String> _parts; | 4194 List<String> _parts; |
| 4195 | 4195 |
| 4196 @override | 4196 @override |
| 4197 List<UnlinkedPublicName> get names => _names ?? const <UnlinkedPublicName>[]; | 4197 List<UnlinkedPublicNameBuilder> get names => _names ?? const <UnlinkedPublicNa me>[]; |
| 4198 | 4198 |
| 4199 /** | 4199 /** |
| 4200 * Public names defined in the compilation unit. | 4200 * Public names defined in the compilation unit. |
| 4201 * | 4201 * |
| 4202 * TODO(paulberry): consider sorting these names to reduce unnecessary | 4202 * TODO(paulberry): consider sorting these names to reduce unnecessary |
| 4203 * relinking. | 4203 * relinking. |
| 4204 */ | 4204 */ |
| 4205 void set names(List<UnlinkedPublicNameBuilder> _value) { | 4205 void set names(List<UnlinkedPublicNameBuilder> _value) { |
| 4206 assert(!_finished); | 4206 assert(!_finished); |
| 4207 _names = _value; | 4207 _names = _value; |
| 4208 } | 4208 } |
| 4209 | 4209 |
| 4210 @override | 4210 @override |
| 4211 List<UnlinkedExportPublic> get exports => _exports ?? const <UnlinkedExportPub lic>[]; | 4211 List<UnlinkedExportPublicBuilder> get exports => _exports ?? const <UnlinkedEx portPublic>[]; |
| 4212 | 4212 |
| 4213 /** | 4213 /** |
| 4214 * Export declarations in the compilation unit. | 4214 * Export declarations in the compilation unit. |
| 4215 */ | 4215 */ |
| 4216 void set exports(List<UnlinkedExportPublicBuilder> _value) { | 4216 void set exports(List<UnlinkedExportPublicBuilder> _value) { |
| 4217 assert(!_finished); | 4217 assert(!_finished); |
| 4218 _exports = _value; | 4218 _exports = _value; |
| 4219 } | 4219 } |
| 4220 | 4220 |
| 4221 @override | 4221 @override |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4483 | 4483 |
| 4484 /** | 4484 /** |
| 4485 * Offset of the typedef name relative to the beginning of the file. | 4485 * Offset of the typedef name relative to the beginning of the file. |
| 4486 */ | 4486 */ |
| 4487 void set nameOffset(int _value) { | 4487 void set nameOffset(int _value) { |
| 4488 assert(!_finished); | 4488 assert(!_finished); |
| 4489 _nameOffset = _value; | 4489 _nameOffset = _value; |
| 4490 } | 4490 } |
| 4491 | 4491 |
| 4492 @override | 4492 @override |
| 4493 UnlinkedDocumentationComment get documentationComment => _documentationComment ; | 4493 UnlinkedDocumentationCommentBuilder get documentationComment => _documentation Comment; |
| 4494 | 4494 |
| 4495 /** | 4495 /** |
| 4496 * Documentation comment for the typedef, or `null` if there is no | 4496 * Documentation comment for the typedef, or `null` if there is no |
| 4497 * documentation comment. | 4497 * documentation comment. |
| 4498 */ | 4498 */ |
| 4499 void set documentationComment(UnlinkedDocumentationCommentBuilder _value) { | 4499 void set documentationComment(UnlinkedDocumentationCommentBuilder _value) { |
| 4500 assert(!_finished); | 4500 assert(!_finished); |
| 4501 _documentationComment = _value; | 4501 _documentationComment = _value; |
| 4502 } | 4502 } |
| 4503 | 4503 |
| 4504 @override | 4504 @override |
| 4505 List<UnlinkedTypeParam> get typeParameters => _typeParameters ?? const <Unlink edTypeParam>[]; | 4505 List<UnlinkedTypeParamBuilder> get typeParameters => _typeParameters ?? const <UnlinkedTypeParam>[]; |
| 4506 | 4506 |
| 4507 /** | 4507 /** |
| 4508 * Type parameters of the typedef, if any. | 4508 * Type parameters of the typedef, if any. |
| 4509 */ | 4509 */ |
| 4510 void set typeParameters(List<UnlinkedTypeParamBuilder> _value) { | 4510 void set typeParameters(List<UnlinkedTypeParamBuilder> _value) { |
| 4511 assert(!_finished); | 4511 assert(!_finished); |
| 4512 _typeParameters = _value; | 4512 _typeParameters = _value; |
| 4513 } | 4513 } |
| 4514 | 4514 |
| 4515 @override | 4515 @override |
| 4516 TypeRef get returnType => _returnType; | 4516 TypeRefBuilder get returnType => _returnType; |
| 4517 | 4517 |
| 4518 /** | 4518 /** |
| 4519 * Return type of the typedef. Absent if the return type is `void`. | 4519 * Return type of the typedef. Absent if the return type is `void`. |
| 4520 */ | 4520 */ |
| 4521 void set returnType(TypeRefBuilder _value) { | 4521 void set returnType(TypeRefBuilder _value) { |
| 4522 assert(!_finished); | 4522 assert(!_finished); |
| 4523 _returnType = _value; | 4523 _returnType = _value; |
| 4524 } | 4524 } |
| 4525 | 4525 |
| 4526 @override | 4526 @override |
| 4527 List<UnlinkedParam> get parameters => _parameters ?? const <UnlinkedParam>[]; | 4527 List<UnlinkedParamBuilder> get parameters => _parameters ?? const <UnlinkedPar am>[]; |
| 4528 | 4528 |
| 4529 /** | 4529 /** |
| 4530 * Parameters of the executable, if any. | 4530 * Parameters of the executable, if any. |
| 4531 */ | 4531 */ |
| 4532 void set parameters(List<UnlinkedParamBuilder> _value) { | 4532 void set parameters(List<UnlinkedParamBuilder> _value) { |
| 4533 assert(!_finished); | 4533 assert(!_finished); |
| 4534 _parameters = _value; | 4534 _parameters = _value; |
| 4535 } | 4535 } |
| 4536 | 4536 |
| 4537 UnlinkedTypedefBuilder({String name, int nameOffset, UnlinkedDocumentationComm entBuilder documentationComment, List<UnlinkedTypeParamBuilder> typeParameters, TypeRefBuilder returnType, List<UnlinkedParamBuilder> parameters}) | 4537 UnlinkedTypedefBuilder({String name, int nameOffset, UnlinkedDocumentationComm entBuilder documentationComment, List<UnlinkedTypeParamBuilder> typeParameters, TypeRefBuilder returnType, List<UnlinkedParamBuilder> parameters}) |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4716 | 4716 |
| 4717 /** | 4717 /** |
| 4718 * Offset of the type parameter name relative to the beginning of the file. | 4718 * Offset of the type parameter name relative to the beginning of the file. |
| 4719 */ | 4719 */ |
| 4720 void set nameOffset(int _value) { | 4720 void set nameOffset(int _value) { |
| 4721 assert(!_finished); | 4721 assert(!_finished); |
| 4722 _nameOffset = _value; | 4722 _nameOffset = _value; |
| 4723 } | 4723 } |
| 4724 | 4724 |
| 4725 @override | 4725 @override |
| 4726 TypeRef get bound => _bound; | 4726 TypeRefBuilder get bound => _bound; |
| 4727 | 4727 |
| 4728 /** | 4728 /** |
| 4729 * Bound of the type parameter, if a bound is explicitly declared. Otherwise | 4729 * Bound of the type parameter, if a bound is explicitly declared. Otherwise |
| 4730 * null. | 4730 * null. |
| 4731 */ | 4731 */ |
| 4732 void set bound(TypeRefBuilder _value) { | 4732 void set bound(TypeRefBuilder _value) { |
| 4733 assert(!_finished); | 4733 assert(!_finished); |
| 4734 _bound = _value; | 4734 _bound = _value; |
| 4735 } | 4735 } |
| 4736 | 4736 |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4877 /** | 4877 /** |
| 4878 * Length of the library name as it appears in the source code (or 0 if the | 4878 * Length of the library name as it appears in the source code (or 0 if the |
| 4879 * library has no name). | 4879 * library has no name). |
| 4880 */ | 4880 */ |
| 4881 void set libraryNameLength(int _value) { | 4881 void set libraryNameLength(int _value) { |
| 4882 assert(!_finished); | 4882 assert(!_finished); |
| 4883 _libraryNameLength = _value; | 4883 _libraryNameLength = _value; |
| 4884 } | 4884 } |
| 4885 | 4885 |
| 4886 @override | 4886 @override |
| 4887 UnlinkedDocumentationComment get libraryDocumentationComment => _libraryDocume ntationComment; | 4887 UnlinkedDocumentationCommentBuilder get libraryDocumentationComment => _librar yDocumentationComment; |
| 4888 | 4888 |
| 4889 /** | 4889 /** |
| 4890 * Documentation comment for the library, or `null` if there is no | 4890 * Documentation comment for the library, or `null` if there is no |
| 4891 * documentation comment. | 4891 * documentation comment. |
| 4892 */ | 4892 */ |
| 4893 void set libraryDocumentationComment(UnlinkedDocumentationCommentBuilder _valu e) { | 4893 void set libraryDocumentationComment(UnlinkedDocumentationCommentBuilder _valu e) { |
| 4894 assert(!_finished); | 4894 assert(!_finished); |
| 4895 _libraryDocumentationComment = _value; | 4895 _libraryDocumentationComment = _value; |
| 4896 } | 4896 } |
| 4897 | 4897 |
| 4898 @override | 4898 @override |
| 4899 UnlinkedPublicNamespace get publicNamespace => _publicNamespace; | 4899 UnlinkedPublicNamespaceBuilder get publicNamespace => _publicNamespace; |
| 4900 | 4900 |
| 4901 /** | 4901 /** |
| 4902 * Unlinked public namespace of this compilation unit. | 4902 * Unlinked public namespace of this compilation unit. |
| 4903 */ | 4903 */ |
| 4904 void set publicNamespace(UnlinkedPublicNamespaceBuilder _value) { | 4904 void set publicNamespace(UnlinkedPublicNamespaceBuilder _value) { |
| 4905 assert(!_finished); | 4905 assert(!_finished); |
| 4906 _publicNamespace = _value; | 4906 _publicNamespace = _value; |
| 4907 } | 4907 } |
| 4908 | 4908 |
| 4909 @override | 4909 @override |
| 4910 List<UnlinkedReference> get references => _references ?? const <UnlinkedRefere nce>[]; | 4910 List<UnlinkedReferenceBuilder> get references => _references ?? const <Unlinke dReference>[]; |
| 4911 | 4911 |
| 4912 /** | 4912 /** |
| 4913 * Top level and prefixed names referred to by this compilation unit. The | 4913 * Top level and prefixed names referred to by this compilation unit. The |
| 4914 * zeroth element of this array is always populated and always represents a | 4914 * zeroth element of this array is always populated and always represents a |
| 4915 * reference to the pseudo-type "dynamic". | 4915 * reference to the pseudo-type "dynamic". |
| 4916 */ | 4916 */ |
| 4917 void set references(List<UnlinkedReferenceBuilder> _value) { | 4917 void set references(List<UnlinkedReferenceBuilder> _value) { |
| 4918 assert(!_finished); | 4918 assert(!_finished); |
| 4919 _references = _value; | 4919 _references = _value; |
| 4920 } | 4920 } |
| 4921 | 4921 |
| 4922 @override | 4922 @override |
| 4923 List<UnlinkedClass> get classes => _classes ?? const <UnlinkedClass>[]; | 4923 List<UnlinkedClassBuilder> get classes => _classes ?? const <UnlinkedClass>[]; |
| 4924 | 4924 |
| 4925 /** | 4925 /** |
| 4926 * Classes declared in the compilation unit. | 4926 * Classes declared in the compilation unit. |
| 4927 */ | 4927 */ |
| 4928 void set classes(List<UnlinkedClassBuilder> _value) { | 4928 void set classes(List<UnlinkedClassBuilder> _value) { |
| 4929 assert(!_finished); | 4929 assert(!_finished); |
| 4930 _classes = _value; | 4930 _classes = _value; |
| 4931 } | 4931 } |
| 4932 | 4932 |
| 4933 @override | 4933 @override |
| 4934 List<UnlinkedEnum> get enums => _enums ?? const <UnlinkedEnum>[]; | 4934 List<UnlinkedEnumBuilder> get enums => _enums ?? const <UnlinkedEnum>[]; |
| 4935 | 4935 |
| 4936 /** | 4936 /** |
| 4937 * Enums declared in the compilation unit. | 4937 * Enums declared in the compilation unit. |
| 4938 */ | 4938 */ |
| 4939 void set enums(List<UnlinkedEnumBuilder> _value) { | 4939 void set enums(List<UnlinkedEnumBuilder> _value) { |
| 4940 assert(!_finished); | 4940 assert(!_finished); |
| 4941 _enums = _value; | 4941 _enums = _value; |
| 4942 } | 4942 } |
| 4943 | 4943 |
| 4944 @override | 4944 @override |
| 4945 List<UnlinkedExecutable> get executables => _executables ?? const <UnlinkedExe cutable>[]; | 4945 List<UnlinkedExecutableBuilder> get executables => _executables ?? const <Unli nkedExecutable>[]; |
| 4946 | 4946 |
| 4947 /** | 4947 /** |
| 4948 * Top level executable objects (functions, getters, and setters) declared in | 4948 * Top level executable objects (functions, getters, and setters) declared in |
| 4949 * the compilation unit. | 4949 * the compilation unit. |
| 4950 */ | 4950 */ |
| 4951 void set executables(List<UnlinkedExecutableBuilder> _value) { | 4951 void set executables(List<UnlinkedExecutableBuilder> _value) { |
| 4952 assert(!_finished); | 4952 assert(!_finished); |
| 4953 _executables = _value; | 4953 _executables = _value; |
| 4954 } | 4954 } |
| 4955 | 4955 |
| 4956 @override | 4956 @override |
| 4957 List<UnlinkedExportNonPublic> get exports => _exports ?? const <UnlinkedExport NonPublic>[]; | 4957 List<UnlinkedExportNonPublicBuilder> get exports => _exports ?? const <Unlinke dExportNonPublic>[]; |
| 4958 | 4958 |
| 4959 /** | 4959 /** |
| 4960 * Export declarations in the compilation unit. | 4960 * Export declarations in the compilation unit. |
| 4961 */ | 4961 */ |
| 4962 void set exports(List<UnlinkedExportNonPublicBuilder> _value) { | 4962 void set exports(List<UnlinkedExportNonPublicBuilder> _value) { |
| 4963 assert(!_finished); | 4963 assert(!_finished); |
| 4964 _exports = _value; | 4964 _exports = _value; |
| 4965 } | 4965 } |
| 4966 | 4966 |
| 4967 @override | 4967 @override |
| 4968 List<UnlinkedImport> get imports => _imports ?? const <UnlinkedImport>[]; | 4968 List<UnlinkedImportBuilder> get imports => _imports ?? const <UnlinkedImport>[ ]; |
| 4969 | 4969 |
| 4970 /** | 4970 /** |
| 4971 * Import declarations in the compilation unit. | 4971 * Import declarations in the compilation unit. |
| 4972 */ | 4972 */ |
| 4973 void set imports(List<UnlinkedImportBuilder> _value) { | 4973 void set imports(List<UnlinkedImportBuilder> _value) { |
| 4974 assert(!_finished); | 4974 assert(!_finished); |
| 4975 _imports = _value; | 4975 _imports = _value; |
| 4976 } | 4976 } |
| 4977 | 4977 |
| 4978 @override | 4978 @override |
| 4979 List<UnlinkedPart> get parts => _parts ?? const <UnlinkedPart>[]; | 4979 List<UnlinkedPartBuilder> get parts => _parts ?? const <UnlinkedPart>[]; |
| 4980 | 4980 |
| 4981 /** | 4981 /** |
| 4982 * Part declarations in the compilation unit. | 4982 * Part declarations in the compilation unit. |
| 4983 */ | 4983 */ |
| 4984 void set parts(List<UnlinkedPartBuilder> _value) { | 4984 void set parts(List<UnlinkedPartBuilder> _value) { |
| 4985 assert(!_finished); | 4985 assert(!_finished); |
| 4986 _parts = _value; | 4986 _parts = _value; |
| 4987 } | 4987 } |
| 4988 | 4988 |
| 4989 @override | 4989 @override |
| 4990 List<UnlinkedTypedef> get typedefs => _typedefs ?? const <UnlinkedTypedef>[]; | 4990 List<UnlinkedTypedefBuilder> get typedefs => _typedefs ?? const <UnlinkedTyped ef>[]; |
| 4991 | 4991 |
| 4992 /** | 4992 /** |
| 4993 * Typedefs declared in the compilation unit. | 4993 * Typedefs declared in the compilation unit. |
| 4994 */ | 4994 */ |
| 4995 void set typedefs(List<UnlinkedTypedefBuilder> _value) { | 4995 void set typedefs(List<UnlinkedTypedefBuilder> _value) { |
| 4996 assert(!_finished); | 4996 assert(!_finished); |
| 4997 _typedefs = _value; | 4997 _typedefs = _value; |
| 4998 } | 4998 } |
| 4999 | 4999 |
| 5000 @override | 5000 @override |
| 5001 List<UnlinkedVariable> get variables => _variables ?? const <UnlinkedVariable> []; | 5001 List<UnlinkedVariableBuilder> get variables => _variables ?? const <UnlinkedVa riable>[]; |
| 5002 | 5002 |
| 5003 /** | 5003 /** |
| 5004 * Top level variables declared in the compilation unit. | 5004 * Top level variables declared in the compilation unit. |
| 5005 */ | 5005 */ |
| 5006 void set variables(List<UnlinkedVariableBuilder> _value) { | 5006 void set variables(List<UnlinkedVariableBuilder> _value) { |
| 5007 assert(!_finished); | 5007 assert(!_finished); |
| 5008 _variables = _value; | 5008 _variables = _value; |
| 5009 } | 5009 } |
| 5010 | 5010 |
| 5011 UnlinkedUnitBuilder({String libraryName, int libraryNameOffset, int libraryNam eLength, UnlinkedDocumentationCommentBuilder libraryDocumentationComment, Unlink edPublicNamespaceBuilder publicNamespace, List<UnlinkedReferenceBuilder> referen ces, List<UnlinkedClassBuilder> classes, List<UnlinkedEnumBuilder> enums, List<U nlinkedExecutableBuilder> executables, List<UnlinkedExportNonPublicBuilder> expo rts, List<UnlinkedImportBuilder> imports, List<UnlinkedPartBuilder> parts, List< UnlinkedTypedefBuilder> typedefs, List<UnlinkedVariableBuilder> variables}) | 5011 UnlinkedUnitBuilder({String libraryName, int libraryNameOffset, int libraryNam eLength, UnlinkedDocumentationCommentBuilder libraryDocumentationComment, Unlink edPublicNamespaceBuilder publicNamespace, List<UnlinkedReferenceBuilder> referen ces, List<UnlinkedClassBuilder> classes, List<UnlinkedEnumBuilder> enums, List<U nlinkedExecutableBuilder> executables, List<UnlinkedExportNonPublicBuilder> expo rts, List<UnlinkedImportBuilder> imports, List<UnlinkedPartBuilder> parts, List< UnlinkedTypedefBuilder> typedefs, List<UnlinkedVariableBuilder> variables}) |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5375 | 5375 |
| 5376 /** | 5376 /** |
| 5377 * Offset of the variable name relative to the beginning of the file. | 5377 * Offset of the variable name relative to the beginning of the file. |
| 5378 */ | 5378 */ |
| 5379 void set nameOffset(int _value) { | 5379 void set nameOffset(int _value) { |
| 5380 assert(!_finished); | 5380 assert(!_finished); |
| 5381 _nameOffset = _value; | 5381 _nameOffset = _value; |
| 5382 } | 5382 } |
| 5383 | 5383 |
| 5384 @override | 5384 @override |
| 5385 UnlinkedDocumentationComment get documentationComment => _documentationComment ; | 5385 UnlinkedDocumentationCommentBuilder get documentationComment => _documentation Comment; |
| 5386 | 5386 |
| 5387 /** | 5387 /** |
| 5388 * Documentation comment for the variable, or `null` if there is no | 5388 * Documentation comment for the variable, or `null` if there is no |
| 5389 * documentation comment. | 5389 * documentation comment. |
| 5390 */ | 5390 */ |
| 5391 void set documentationComment(UnlinkedDocumentationCommentBuilder _value) { | 5391 void set documentationComment(UnlinkedDocumentationCommentBuilder _value) { |
| 5392 assert(!_finished); | 5392 assert(!_finished); |
| 5393 _documentationComment = _value; | 5393 _documentationComment = _value; |
| 5394 } | 5394 } |
| 5395 | 5395 |
| 5396 @override | 5396 @override |
| 5397 TypeRef get type => _type; | 5397 TypeRefBuilder get type => _type; |
| 5398 | 5398 |
| 5399 /** | 5399 /** |
| 5400 * Declared type of the variable. Note that when strong mode is enabled, the | 5400 * Declared type of the variable. Note that when strong mode is enabled, the |
| 5401 * actual type of the variable may be different due to type inference. | 5401 * actual type of the variable may be different due to type inference. |
| 5402 */ | 5402 */ |
| 5403 void set type(TypeRefBuilder _value) { | 5403 void set type(TypeRefBuilder _value) { |
| 5404 assert(!_finished); | 5404 assert(!_finished); |
| 5405 _type = _value; | 5405 _type = _value; |
| 5406 } | 5406 } |
| 5407 | 5407 |
| 5408 @override | 5408 @override |
| 5409 UnlinkedConst get constExpr => _constExpr; | 5409 UnlinkedConstBuilder get constExpr => _constExpr; |
| 5410 | 5410 |
| 5411 /** | 5411 /** |
| 5412 * If [isConst] is true, and the variable has an initializer, the constant | 5412 * If [isConst] is true, and the variable has an initializer, the constant |
| 5413 * expression in the initializer. | 5413 * expression in the initializer. |
| 5414 */ | 5414 */ |
| 5415 void set constExpr(UnlinkedConstBuilder _value) { | 5415 void set constExpr(UnlinkedConstBuilder _value) { |
| 5416 assert(!_finished); | 5416 assert(!_finished); |
| 5417 _constExpr = _value; | 5417 _constExpr = _value; |
| 5418 } | 5418 } |
| 5419 | 5419 |
| (...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5709 "type": type, | 5709 "type": type, |
| 5710 "constExpr": constExpr, | 5710 "constExpr": constExpr, |
| 5711 "isStatic": isStatic, | 5711 "isStatic": isStatic, |
| 5712 "isFinal": isFinal, | 5712 "isFinal": isFinal, |
| 5713 "isConst": isConst, | 5713 "isConst": isConst, |
| 5714 "hasImplicitType": hasImplicitType, | 5714 "hasImplicitType": hasImplicitType, |
| 5715 "propagatedTypeSlot": propagatedTypeSlot, | 5715 "propagatedTypeSlot": propagatedTypeSlot, |
| 5716 }; | 5716 }; |
| 5717 } | 5717 } |
| 5718 | 5718 |
| OLD | NEW |