| 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 | 279 |
| 280 @override | 280 @override |
| 281 int get dependency => _dependency ?? 0; | 281 int get dependency => _dependency ?? 0; |
| 282 | 282 |
| 283 /** | 283 /** |
| 284 * Index into [LinkedLibrary.dependencies] for the library in which the | 284 * Index into [LinkedLibrary.dependencies] for the library in which the |
| 285 * entity is defined. | 285 * entity is defined. |
| 286 */ | 286 */ |
| 287 void set dependency(int _value) { | 287 void set dependency(int _value) { |
| 288 assert(!_finished); | 288 assert(!_finished); |
| 289 assert(_value == null || _value >= 0); |
| 289 _dependency = _value; | 290 _dependency = _value; |
| 290 } | 291 } |
| 291 | 292 |
| 292 @override | 293 @override |
| 293 int get unit => _unit ?? 0; | 294 int get unit => _unit ?? 0; |
| 294 | 295 |
| 295 /** | 296 /** |
| 296 * Integer index indicating which unit in the exported library contains the | 297 * Integer index indicating which unit in the exported library contains the |
| 297 * definition of the entity. As with indices into [LinkedLibrary.units], | 298 * definition of the entity. As with indices into [LinkedLibrary.units], |
| 298 * zero represents the defining compilation unit, and nonzero values | 299 * zero represents the defining compilation unit, and nonzero values |
| 299 * represent parts in the order of the corresponding `part` declarations. | 300 * represent parts in the order of the corresponding `part` declarations. |
| 300 */ | 301 */ |
| 301 void set unit(int _value) { | 302 void set unit(int _value) { |
| 302 assert(!_finished); | 303 assert(!_finished); |
| 304 assert(_value == null || _value >= 0); |
| 303 _unit = _value; | 305 _unit = _value; |
| 304 } | 306 } |
| 305 | 307 |
| 306 @override | 308 @override |
| 307 ReferenceKind get kind => _kind ?? ReferenceKind.classOrEnum; | 309 ReferenceKind get kind => _kind ?? ReferenceKind.classOrEnum; |
| 308 | 310 |
| 309 /** | 311 /** |
| 310 * The kind of the entity being referred to. | 312 * The kind of the entity being referred to. |
| 311 */ | 313 */ |
| 312 void set kind(ReferenceKind _value) { | 314 void set kind(ReferenceKind _value) { |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 | 478 |
| 477 @override | 479 @override |
| 478 List<int> get importDependencies => _importDependencies ?? const <int>[]; | 480 List<int> get importDependencies => _importDependencies ?? const <int>[]; |
| 479 | 481 |
| 480 /** | 482 /** |
| 481 * For each import in [UnlinkedUnit.imports], an index into [dependencies] | 483 * For each import in [UnlinkedUnit.imports], an index into [dependencies] |
| 482 * of the library being imported. | 484 * of the library being imported. |
| 483 */ | 485 */ |
| 484 void set importDependencies(List<int> _value) { | 486 void set importDependencies(List<int> _value) { |
| 485 assert(!_finished); | 487 assert(!_finished); |
| 488 assert(_value == null || _value.every((e) => e >= 0)); |
| 486 _importDependencies = _value; | 489 _importDependencies = _value; |
| 487 } | 490 } |
| 488 | 491 |
| 489 @override | 492 @override |
| 490 List<LinkedExportName> get exportNames => _exportNames ?? const <LinkedExportN
ame>[]; | 493 List<LinkedExportName> get exportNames => _exportNames ?? const <LinkedExportN
ame>[]; |
| 491 | 494 |
| 492 /** | 495 /** |
| 493 * Information about entities in the export namespace of the library that are | 496 * 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 | 497 * not in the public namespace of the library (that is, entities that are |
| 495 * brought into the namespace via `export` directives). | 498 * brought into the namespace via `export` directives). |
| 496 * | 499 * |
| 497 * Sorted by name. | 500 * Sorted by name. |
| 498 */ | 501 */ |
| 499 void set exportNames(List<LinkedExportNameBuilder> _value) { | 502 void set exportNames(List<LinkedExportNameBuilder> _value) { |
| 500 assert(!_finished); | 503 assert(!_finished); |
| 501 _exportNames = _value; | 504 _exportNames = _value; |
| 502 } | 505 } |
| 503 | 506 |
| 504 @override | 507 @override |
| 505 int get numPrelinkedDependencies => _numPrelinkedDependencies ?? 0; | 508 int get numPrelinkedDependencies => _numPrelinkedDependencies ?? 0; |
| 506 | 509 |
| 507 /** | 510 /** |
| 508 * The number of elements in [dependencies] which are not "linked" | 511 * The number of elements in [dependencies] which are not "linked" |
| 509 * dependencies (that is, the number of libraries in the direct imports plus | 512 * dependencies (that is, the number of libraries in the direct imports plus |
| 510 * the transitive closure of exports, plus the library itself). | 513 * the transitive closure of exports, plus the library itself). |
| 511 */ | 514 */ |
| 512 void set numPrelinkedDependencies(int _value) { | 515 void set numPrelinkedDependencies(int _value) { |
| 513 assert(!_finished); | 516 assert(!_finished); |
| 517 assert(_value == null || _value >= 0); |
| 514 _numPrelinkedDependencies = _value; | 518 _numPrelinkedDependencies = _value; |
| 515 } | 519 } |
| 516 | 520 |
| 517 LinkedLibraryBuilder({List<LinkedUnitBuilder> units, List<LinkedDependencyBuil
der> dependencies, List<int> importDependencies, List<LinkedExportNameBuilder> e
xportNames, int numPrelinkedDependencies}) | 521 LinkedLibraryBuilder({List<LinkedUnitBuilder> units, List<LinkedDependencyBuil
der> dependencies, List<int> importDependencies, List<LinkedExportNameBuilder> e
xportNames, int numPrelinkedDependencies}) |
| 518 : _units = units, | 522 : _units = units, |
| 519 _dependencies = dependencies, | 523 _dependencies = dependencies, |
| 520 _importDependencies = importDependencies, | 524 _importDependencies = importDependencies, |
| 521 _exportNames = exportNames, | 525 _exportNames = exportNames, |
| 522 _numPrelinkedDependencies = numPrelinkedDependencies; | 526 _numPrelinkedDependencies = numPrelinkedDependencies; |
| 523 | 527 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 | 697 |
| 694 @override | 698 @override |
| 695 int get dependency => _dependency ?? 0; | 699 int get dependency => _dependency ?? 0; |
| 696 | 700 |
| 697 /** | 701 /** |
| 698 * Index into [LinkedLibrary.dependencies] indicating which imported library | 702 * Index into [LinkedLibrary.dependencies] indicating which imported library |
| 699 * declares the entity being referred to. | 703 * declares the entity being referred to. |
| 700 */ | 704 */ |
| 701 void set dependency(int _value) { | 705 void set dependency(int _value) { |
| 702 assert(!_finished); | 706 assert(!_finished); |
| 707 assert(_value == null || _value >= 0); |
| 703 _dependency = _value; | 708 _dependency = _value; |
| 704 } | 709 } |
| 705 | 710 |
| 706 @override | 711 @override |
| 707 ReferenceKind get kind => _kind ?? ReferenceKind.classOrEnum; | 712 ReferenceKind get kind => _kind ?? ReferenceKind.classOrEnum; |
| 708 | 713 |
| 709 /** | 714 /** |
| 710 * The kind of the entity being referred to. For the pseudo-type `dynamic`, | 715 * The kind of the entity being referred to. For the pseudo-type `dynamic`, |
| 711 * the kind is [ReferenceKind.classOrEnum]. | 716 * the kind is [ReferenceKind.classOrEnum]. |
| 712 */ | 717 */ |
| 713 void set kind(ReferenceKind _value) { | 718 void set kind(ReferenceKind _value) { |
| 714 assert(!_finished); | 719 assert(!_finished); |
| 715 _kind = _value; | 720 _kind = _value; |
| 716 } | 721 } |
| 717 | 722 |
| 718 @override | 723 @override |
| 719 int get unit => _unit ?? 0; | 724 int get unit => _unit ?? 0; |
| 720 | 725 |
| 721 /** | 726 /** |
| 722 * Integer index indicating which unit in the imported library contains the | 727 * Integer index indicating which unit in the imported library contains the |
| 723 * definition of the entity. As with indices into [LinkedLibrary.units], | 728 * definition of the entity. As with indices into [LinkedLibrary.units], |
| 724 * zero represents the defining compilation unit, and nonzero values | 729 * zero represents the defining compilation unit, and nonzero values |
| 725 * represent parts in the order of the corresponding `part` declarations. | 730 * represent parts in the order of the corresponding `part` declarations. |
| 726 */ | 731 */ |
| 727 void set unit(int _value) { | 732 void set unit(int _value) { |
| 728 assert(!_finished); | 733 assert(!_finished); |
| 734 assert(_value == null || _value >= 0); |
| 729 _unit = _value; | 735 _unit = _value; |
| 730 } | 736 } |
| 731 | 737 |
| 732 @override | 738 @override |
| 733 int get numTypeParameters => _numTypeParameters ?? 0; | 739 int get numTypeParameters => _numTypeParameters ?? 0; |
| 734 | 740 |
| 735 /** | 741 /** |
| 736 * If the entity being referred to is generic, the number of type parameters | 742 * If the entity being referred to is generic, the number of type parameters |
| 737 * it accepts. Otherwise zero. | 743 * it accepts. Otherwise zero. |
| 738 */ | 744 */ |
| 739 void set numTypeParameters(int _value) { | 745 void set numTypeParameters(int _value) { |
| 740 assert(!_finished); | 746 assert(!_finished); |
| 747 assert(_value == null || _value >= 0); |
| 741 _numTypeParameters = _value; | 748 _numTypeParameters = _value; |
| 742 } | 749 } |
| 743 | 750 |
| 744 @override | 751 @override |
| 745 String get name => _name ?? ''; | 752 String get name => _name ?? ''; |
| 746 | 753 |
| 747 /** | 754 /** |
| 748 * If this [LinkedReference] doesn't have an associated [UnlinkedReference], | 755 * If this [LinkedReference] doesn't have an associated [UnlinkedReference], |
| 749 * name of the entity being referred to. The empty string refers to the | 756 * name of the entity being referred to. The empty string refers to the |
| 750 * pseudo-type `dynamic`. | 757 * pseudo-type `dynamic`. |
| (...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1199 | 1206 |
| 1200 /** | 1207 /** |
| 1201 * If this [TypeRef] is contained within [LinkedUnit.types], slot id (which | 1208 * If this [TypeRef] is contained within [LinkedUnit.types], slot id (which |
| 1202 * is unique within the compilation unit) identifying the target of type | 1209 * is unique within the compilation unit) identifying the target of type |
| 1203 * propagation or type inference with which this [TypeRef] is asociated. | 1210 * propagation or type inference with which this [TypeRef] is asociated. |
| 1204 * | 1211 * |
| 1205 * Otherwise zero. | 1212 * Otherwise zero. |
| 1206 */ | 1213 */ |
| 1207 void set slot(int _value) { | 1214 void set slot(int _value) { |
| 1208 assert(!_finished); | 1215 assert(!_finished); |
| 1216 assert(_value == null || _value >= 0); |
| 1209 _slot = _value; | 1217 _slot = _value; |
| 1210 } | 1218 } |
| 1211 | 1219 |
| 1212 @override | 1220 @override |
| 1213 int get reference => _reference ?? 0; | 1221 int get reference => _reference ?? 0; |
| 1214 | 1222 |
| 1215 /** | 1223 /** |
| 1216 * Index into [UnlinkedUnit.references] for the type being referred to, or | 1224 * Index into [UnlinkedUnit.references] for the type being referred to, or |
| 1217 * zero if this is a reference to a type parameter. | 1225 * zero if this is a reference to a type parameter. |
| 1218 * | 1226 * |
| 1219 * Note that since zero is also a valid index into | 1227 * Note that since zero is also a valid index into |
| 1220 * [UnlinkedUnit.references], we cannot distinguish between references to | 1228 * [UnlinkedUnit.references], we cannot distinguish between references to |
| 1221 * type parameters and references to types by checking [reference] against | 1229 * type parameters and references to types by checking [reference] against |
| 1222 * zero. To distinguish between references to type parameters and references | 1230 * zero. To distinguish between references to type parameters and references |
| 1223 * to types, check whether [paramReference] is zero. | 1231 * to types, check whether [paramReference] is zero. |
| 1224 */ | 1232 */ |
| 1225 void set reference(int _value) { | 1233 void set reference(int _value) { |
| 1226 assert(!_finished); | 1234 assert(!_finished); |
| 1235 assert(_value == null || _value >= 0); |
| 1227 _reference = _value; | 1236 _reference = _value; |
| 1228 } | 1237 } |
| 1229 | 1238 |
| 1230 @override | 1239 @override |
| 1231 int get paramReference => _paramReference ?? 0; | 1240 int get paramReference => _paramReference ?? 0; |
| 1232 | 1241 |
| 1233 /** | 1242 /** |
| 1234 * If this is a reference to a type parameter, one-based index into the list | 1243 * If this is a reference to a type parameter, one-based index into the list |
| 1235 * of [UnlinkedTypeParam]s currently in effect. Indexing is done using De | 1244 * of [UnlinkedTypeParam]s currently in effect. Indexing is done using De |
| 1236 * Bruijn index conventions; that is, innermost parameters come first, and | 1245 * Bruijn index conventions; that is, innermost parameters come first, and |
| 1237 * if a class or method has multiple parameters, they are indexed from right | 1246 * if a class or method has multiple parameters, they are indexed from right |
| 1238 * to left. So for instance, if the enclosing declaration is | 1247 * to left. So for instance, if the enclosing declaration is |
| 1239 * | 1248 * |
| 1240 * class C<T,U> { | 1249 * class C<T,U> { |
| 1241 * m<V,W> { | 1250 * m<V,W> { |
| 1242 * ... | 1251 * ... |
| 1243 * } | 1252 * } |
| 1244 * } | 1253 * } |
| 1245 * | 1254 * |
| 1246 * Then [paramReference] values of 1, 2, 3, and 4 represent W, V, U, and T, | 1255 * Then [paramReference] values of 1, 2, 3, and 4 represent W, V, U, and T, |
| 1247 * respectively. | 1256 * respectively. |
| 1248 * | 1257 * |
| 1249 * If the type being referred to is not a type parameter, [paramReference] is | 1258 * If the type being referred to is not a type parameter, [paramReference] is |
| 1250 * zero. | 1259 * zero. |
| 1251 */ | 1260 */ |
| 1252 void set paramReference(int _value) { | 1261 void set paramReference(int _value) { |
| 1253 assert(!_finished); | 1262 assert(!_finished); |
| 1263 assert(_value == null || _value >= 0); |
| 1254 _paramReference = _value; | 1264 _paramReference = _value; |
| 1255 } | 1265 } |
| 1256 | 1266 |
| 1257 @override | 1267 @override |
| 1258 List<TypeRef> get typeArguments => _typeArguments ?? const <TypeRef>[]; | 1268 List<TypeRef> get typeArguments => _typeArguments ?? const <TypeRef>[]; |
| 1259 | 1269 |
| 1260 /** | 1270 /** |
| 1261 * If this is an instantiation of a generic type, the type arguments used to | 1271 * 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. | 1272 * instantiate it. Trailing type arguments of type `dynamic` are omitted. |
| 1263 */ | 1273 */ |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1430 } | 1440 } |
| 1431 | 1441 |
| 1432 @override | 1442 @override |
| 1433 int get nameOffset => _nameOffset ?? 0; | 1443 int get nameOffset => _nameOffset ?? 0; |
| 1434 | 1444 |
| 1435 /** | 1445 /** |
| 1436 * Offset of the class name relative to the beginning of the file. | 1446 * Offset of the class name relative to the beginning of the file. |
| 1437 */ | 1447 */ |
| 1438 void set nameOffset(int _value) { | 1448 void set nameOffset(int _value) { |
| 1439 assert(!_finished); | 1449 assert(!_finished); |
| 1450 assert(_value == null || _value >= 0); |
| 1440 _nameOffset = _value; | 1451 _nameOffset = _value; |
| 1441 } | 1452 } |
| 1442 | 1453 |
| 1443 @override | 1454 @override |
| 1444 UnlinkedDocumentationComment get documentationComment => _documentationComment
; | 1455 UnlinkedDocumentationComment get documentationComment => _documentationComment
; |
| 1445 | 1456 |
| 1446 /** | 1457 /** |
| 1447 * Documentation comment for the class, or `null` if there is no | 1458 * Documentation comment for the class, or `null` if there is no |
| 1448 * documentation comment. | 1459 * documentation comment. |
| 1449 */ | 1460 */ |
| (...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1961 @override | 1972 @override |
| 1962 List<int> get ints => _ints ?? const <int>[]; | 1973 List<int> get ints => _ints ?? const <int>[]; |
| 1963 | 1974 |
| 1964 /** | 1975 /** |
| 1965 * Sequence of 32-bit integers consumed by the operations `pushArgument`, | 1976 * Sequence of 32-bit integers consumed by the operations `pushArgument`, |
| 1966 * `pushInt`, `shiftOr`, `concatenate`, `invokeConstructor`, `makeList`, and | 1977 * `pushInt`, `shiftOr`, `concatenate`, `invokeConstructor`, `makeList`, and |
| 1967 * `makeMap`. | 1978 * `makeMap`. |
| 1968 */ | 1979 */ |
| 1969 void set ints(List<int> _value) { | 1980 void set ints(List<int> _value) { |
| 1970 assert(!_finished); | 1981 assert(!_finished); |
| 1982 assert(_value == null || _value.every((e) => e >= 0)); |
| 1971 _ints = _value; | 1983 _ints = _value; |
| 1972 } | 1984 } |
| 1973 | 1985 |
| 1974 @override | 1986 @override |
| 1975 List<double> get doubles => _doubles ?? const <double>[]; | 1987 List<double> get doubles => _doubles ?? const <double>[]; |
| 1976 | 1988 |
| 1977 /** | 1989 /** |
| 1978 * Sequence of 64-bit doubles consumed by the operation `pushDouble`. | 1990 * Sequence of 64-bit doubles consumed by the operation `pushDouble`. |
| 1979 */ | 1991 */ |
| 1980 void set doubles(List<double> _value) { | 1992 void set doubles(List<double> _value) { |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2186 | 2198 |
| 2187 @override | 2199 @override |
| 2188 int get offset => _offset ?? 0; | 2200 int get offset => _offset ?? 0; |
| 2189 | 2201 |
| 2190 /** | 2202 /** |
| 2191 * Offset of the beginning of the documentation comment relative to the | 2203 * Offset of the beginning of the documentation comment relative to the |
| 2192 * beginning of the file. | 2204 * beginning of the file. |
| 2193 */ | 2205 */ |
| 2194 void set offset(int _value) { | 2206 void set offset(int _value) { |
| 2195 assert(!_finished); | 2207 assert(!_finished); |
| 2208 assert(_value == null || _value >= 0); |
| 2196 _offset = _value; | 2209 _offset = _value; |
| 2197 } | 2210 } |
| 2198 | 2211 |
| 2199 @override | 2212 @override |
| 2200 int get length => _length ?? 0; | 2213 int get length => _length ?? 0; |
| 2201 | 2214 |
| 2202 /** | 2215 /** |
| 2203 * Length of the documentation comment (prior to replacing '\r\n' with '\n'). | 2216 * Length of the documentation comment (prior to replacing '\r\n' with '\n'). |
| 2204 */ | 2217 */ |
| 2205 void set length(int _value) { | 2218 void set length(int _value) { |
| 2206 assert(!_finished); | 2219 assert(!_finished); |
| 2220 assert(_value == null || _value >= 0); |
| 2207 _length = _value; | 2221 _length = _value; |
| 2208 } | 2222 } |
| 2209 | 2223 |
| 2210 UnlinkedDocumentationCommentBuilder({String text, int offset, int length}) | 2224 UnlinkedDocumentationCommentBuilder({String text, int offset, int length}) |
| 2211 : _text = text, | 2225 : _text = text, |
| 2212 _offset = offset, | 2226 _offset = offset, |
| 2213 _length = length; | 2227 _length = length; |
| 2214 | 2228 |
| 2215 fb.Offset finish(fb.Builder fbBuilder) { | 2229 fb.Offset finish(fb.Builder fbBuilder) { |
| 2216 assert(!_finished); | 2230 assert(!_finished); |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2322 } | 2336 } |
| 2323 | 2337 |
| 2324 @override | 2338 @override |
| 2325 int get nameOffset => _nameOffset ?? 0; | 2339 int get nameOffset => _nameOffset ?? 0; |
| 2326 | 2340 |
| 2327 /** | 2341 /** |
| 2328 * Offset of the enum name relative to the beginning of the file. | 2342 * Offset of the enum name relative to the beginning of the file. |
| 2329 */ | 2343 */ |
| 2330 void set nameOffset(int _value) { | 2344 void set nameOffset(int _value) { |
| 2331 assert(!_finished); | 2345 assert(!_finished); |
| 2346 assert(_value == null || _value >= 0); |
| 2332 _nameOffset = _value; | 2347 _nameOffset = _value; |
| 2333 } | 2348 } |
| 2334 | 2349 |
| 2335 @override | 2350 @override |
| 2336 UnlinkedDocumentationComment get documentationComment => _documentationComment
; | 2351 UnlinkedDocumentationComment get documentationComment => _documentationComment
; |
| 2337 | 2352 |
| 2338 /** | 2353 /** |
| 2339 * Documentation comment for the enum, or `null` if there is no documentation | 2354 * Documentation comment for the enum, or `null` if there is no documentation |
| 2340 * comment. | 2355 * comment. |
| 2341 */ | 2356 */ |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2491 } | 2506 } |
| 2492 | 2507 |
| 2493 @override | 2508 @override |
| 2494 int get nameOffset => _nameOffset ?? 0; | 2509 int get nameOffset => _nameOffset ?? 0; |
| 2495 | 2510 |
| 2496 /** | 2511 /** |
| 2497 * Offset of the enum value name relative to the beginning of the file. | 2512 * Offset of the enum value name relative to the beginning of the file. |
| 2498 */ | 2513 */ |
| 2499 void set nameOffset(int _value) { | 2514 void set nameOffset(int _value) { |
| 2500 assert(!_finished); | 2515 assert(!_finished); |
| 2516 assert(_value == null || _value >= 0); |
| 2501 _nameOffset = _value; | 2517 _nameOffset = _value; |
| 2502 } | 2518 } |
| 2503 | 2519 |
| 2504 @override | 2520 @override |
| 2505 UnlinkedDocumentationComment get documentationComment => _documentationComment
; | 2521 UnlinkedDocumentationComment get documentationComment => _documentationComment
; |
| 2506 | 2522 |
| 2507 /** | 2523 /** |
| 2508 * Documentation comment for the enum value, or `null` if there is no | 2524 * Documentation comment for the enum value, or `null` if there is no |
| 2509 * documentation comment. | 2525 * documentation comment. |
| 2510 */ | 2526 */ |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2644 int get nameOffset => _nameOffset ?? 0; | 2660 int get nameOffset => _nameOffset ?? 0; |
| 2645 | 2661 |
| 2646 /** | 2662 /** |
| 2647 * Offset of the executable name relative to the beginning of the file. For | 2663 * Offset of the executable name relative to the beginning of the file. For |
| 2648 * named constructors, this excludes the class name and excludes the ".". | 2664 * 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 | 2665 * For unnamed constructors, this is the offset of the class name (i.e. the |
| 2650 * offset of the second "C" in "class C { C(); }"). | 2666 * offset of the second "C" in "class C { C(); }"). |
| 2651 */ | 2667 */ |
| 2652 void set nameOffset(int _value) { | 2668 void set nameOffset(int _value) { |
| 2653 assert(!_finished); | 2669 assert(!_finished); |
| 2670 assert(_value == null || _value >= 0); |
| 2654 _nameOffset = _value; | 2671 _nameOffset = _value; |
| 2655 } | 2672 } |
| 2656 | 2673 |
| 2657 @override | 2674 @override |
| 2658 UnlinkedDocumentationComment get documentationComment => _documentationComment
; | 2675 UnlinkedDocumentationComment get documentationComment => _documentationComment
; |
| 2659 | 2676 |
| 2660 /** | 2677 /** |
| 2661 * Documentation comment for the executable, or `null` if there is no | 2678 * Documentation comment for the executable, or `null` if there is no |
| 2662 * documentation comment. | 2679 * documentation comment. |
| 2663 */ | 2680 */ |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3090 int _uriEnd; | 3107 int _uriEnd; |
| 3091 | 3108 |
| 3092 @override | 3109 @override |
| 3093 int get offset => _offset ?? 0; | 3110 int get offset => _offset ?? 0; |
| 3094 | 3111 |
| 3095 /** | 3112 /** |
| 3096 * Offset of the "export" keyword. | 3113 * Offset of the "export" keyword. |
| 3097 */ | 3114 */ |
| 3098 void set offset(int _value) { | 3115 void set offset(int _value) { |
| 3099 assert(!_finished); | 3116 assert(!_finished); |
| 3117 assert(_value == null || _value >= 0); |
| 3100 _offset = _value; | 3118 _offset = _value; |
| 3101 } | 3119 } |
| 3102 | 3120 |
| 3103 @override | 3121 @override |
| 3104 int get uriOffset => _uriOffset ?? 0; | 3122 int get uriOffset => _uriOffset ?? 0; |
| 3105 | 3123 |
| 3106 /** | 3124 /** |
| 3107 * Offset of the URI string (including quotes) relative to the beginning of | 3125 * Offset of the URI string (including quotes) relative to the beginning of |
| 3108 * the file. | 3126 * the file. |
| 3109 */ | 3127 */ |
| 3110 void set uriOffset(int _value) { | 3128 void set uriOffset(int _value) { |
| 3111 assert(!_finished); | 3129 assert(!_finished); |
| 3130 assert(_value == null || _value >= 0); |
| 3112 _uriOffset = _value; | 3131 _uriOffset = _value; |
| 3113 } | 3132 } |
| 3114 | 3133 |
| 3115 @override | 3134 @override |
| 3116 int get uriEnd => _uriEnd ?? 0; | 3135 int get uriEnd => _uriEnd ?? 0; |
| 3117 | 3136 |
| 3118 /** | 3137 /** |
| 3119 * End of the URI string (including quotes) relative to the beginning of the | 3138 * End of the URI string (including quotes) relative to the beginning of the |
| 3120 * file. | 3139 * file. |
| 3121 */ | 3140 */ |
| 3122 void set uriEnd(int _value) { | 3141 void set uriEnd(int _value) { |
| 3123 assert(!_finished); | 3142 assert(!_finished); |
| 3143 assert(_value == null || _value >= 0); |
| 3124 _uriEnd = _value; | 3144 _uriEnd = _value; |
| 3125 } | 3145 } |
| 3126 | 3146 |
| 3127 UnlinkedExportNonPublicBuilder({int offset, int uriOffset, int uriEnd}) | 3147 UnlinkedExportNonPublicBuilder({int offset, int uriOffset, int uriEnd}) |
| 3128 : _offset = offset, | 3148 : _offset = offset, |
| 3129 _uriOffset = uriOffset, | 3149 _uriOffset = uriOffset, |
| 3130 _uriEnd = uriEnd; | 3150 _uriEnd = uriEnd; |
| 3131 | 3151 |
| 3132 fb.Offset finish(fb.Builder fbBuilder) { | 3152 fb.Offset finish(fb.Builder fbBuilder) { |
| 3133 assert(!_finished); | 3153 assert(!_finished); |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3347 | 3367 |
| 3348 @override | 3368 @override |
| 3349 int get offset => _offset ?? 0; | 3369 int get offset => _offset ?? 0; |
| 3350 | 3370 |
| 3351 /** | 3371 /** |
| 3352 * If [isImplicit] is false, offset of the "import" keyword. If [isImplicit] | 3372 * If [isImplicit] is false, offset of the "import" keyword. If [isImplicit] |
| 3353 * is true, zero. | 3373 * is true, zero. |
| 3354 */ | 3374 */ |
| 3355 void set offset(int _value) { | 3375 void set offset(int _value) { |
| 3356 assert(!_finished); | 3376 assert(!_finished); |
| 3377 assert(_value == null || _value >= 0); |
| 3357 _offset = _value; | 3378 _offset = _value; |
| 3358 } | 3379 } |
| 3359 | 3380 |
| 3360 @override | 3381 @override |
| 3361 int get prefixReference => _prefixReference ?? 0; | 3382 int get prefixReference => _prefixReference ?? 0; |
| 3362 | 3383 |
| 3363 /** | 3384 /** |
| 3364 * Index into [UnlinkedUnit.references] of the prefix declared by this | 3385 * Index into [UnlinkedUnit.references] of the prefix declared by this |
| 3365 * import declaration, or zero if this import declaration declares no prefix. | 3386 * import declaration, or zero if this import declaration declares no prefix. |
| 3366 * | 3387 * |
| 3367 * Note that multiple imports can declare the same prefix. | 3388 * Note that multiple imports can declare the same prefix. |
| 3368 */ | 3389 */ |
| 3369 void set prefixReference(int _value) { | 3390 void set prefixReference(int _value) { |
| 3370 assert(!_finished); | 3391 assert(!_finished); |
| 3392 assert(_value == null || _value >= 0); |
| 3371 _prefixReference = _value; | 3393 _prefixReference = _value; |
| 3372 } | 3394 } |
| 3373 | 3395 |
| 3374 @override | 3396 @override |
| 3375 List<UnlinkedCombinator> get combinators => _combinators ?? const <UnlinkedCom
binator>[]; | 3397 List<UnlinkedCombinator> get combinators => _combinators ?? const <UnlinkedCom
binator>[]; |
| 3376 | 3398 |
| 3377 /** | 3399 /** |
| 3378 * Combinators contained in this import declaration. | 3400 * Combinators contained in this import declaration. |
| 3379 */ | 3401 */ |
| 3380 void set combinators(List<UnlinkedCombinatorBuilder> _value) { | 3402 void set combinators(List<UnlinkedCombinatorBuilder> _value) { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 3406 | 3428 |
| 3407 @override | 3429 @override |
| 3408 int get uriOffset => _uriOffset ?? 0; | 3430 int get uriOffset => _uriOffset ?? 0; |
| 3409 | 3431 |
| 3410 /** | 3432 /** |
| 3411 * Offset of the URI string (including quotes) relative to the beginning of | 3433 * Offset of the URI string (including quotes) relative to the beginning of |
| 3412 * the file. If [isImplicit] is true, zero. | 3434 * the file. If [isImplicit] is true, zero. |
| 3413 */ | 3435 */ |
| 3414 void set uriOffset(int _value) { | 3436 void set uriOffset(int _value) { |
| 3415 assert(!_finished); | 3437 assert(!_finished); |
| 3438 assert(_value == null || _value >= 0); |
| 3416 _uriOffset = _value; | 3439 _uriOffset = _value; |
| 3417 } | 3440 } |
| 3418 | 3441 |
| 3419 @override | 3442 @override |
| 3420 int get uriEnd => _uriEnd ?? 0; | 3443 int get uriEnd => _uriEnd ?? 0; |
| 3421 | 3444 |
| 3422 /** | 3445 /** |
| 3423 * End of the URI string (including quotes) relative to the beginning of the | 3446 * End of the URI string (including quotes) relative to the beginning of the |
| 3424 * file. If [isImplicit] is true, zero. | 3447 * file. If [isImplicit] is true, zero. |
| 3425 */ | 3448 */ |
| 3426 void set uriEnd(int _value) { | 3449 void set uriEnd(int _value) { |
| 3427 assert(!_finished); | 3450 assert(!_finished); |
| 3451 assert(_value == null || _value >= 0); |
| 3428 _uriEnd = _value; | 3452 _uriEnd = _value; |
| 3429 } | 3453 } |
| 3430 | 3454 |
| 3431 @override | 3455 @override |
| 3432 int get prefixOffset => _prefixOffset ?? 0; | 3456 int get prefixOffset => _prefixOffset ?? 0; |
| 3433 | 3457 |
| 3434 /** | 3458 /** |
| 3435 * Offset of the prefix name relative to the beginning of the file, or zero | 3459 * Offset of the prefix name relative to the beginning of the file, or zero |
| 3436 * if there is no prefix. | 3460 * if there is no prefix. |
| 3437 */ | 3461 */ |
| 3438 void set prefixOffset(int _value) { | 3462 void set prefixOffset(int _value) { |
| 3439 assert(!_finished); | 3463 assert(!_finished); |
| 3464 assert(_value == null || _value >= 0); |
| 3440 _prefixOffset = _value; | 3465 _prefixOffset = _value; |
| 3441 } | 3466 } |
| 3442 | 3467 |
| 3443 UnlinkedImportBuilder({String uri, int offset, int prefixReference, List<Unlin
kedCombinatorBuilder> combinators, bool isDeferred, bool isImplicit, int uriOffs
et, int uriEnd, int prefixOffset}) | 3468 UnlinkedImportBuilder({String uri, int offset, int prefixReference, List<Unlin
kedCombinatorBuilder> combinators, bool isDeferred, bool isImplicit, int uriOffs
et, int uriEnd, int prefixOffset}) |
| 3444 : _uri = uri, | 3469 : _uri = uri, |
| 3445 _offset = offset, | 3470 _offset = offset, |
| 3446 _prefixReference = prefixReference, | 3471 _prefixReference = prefixReference, |
| 3447 _combinators = combinators, | 3472 _combinators = combinators, |
| 3448 _isDeferred = isDeferred, | 3473 _isDeferred = isDeferred, |
| 3449 _isImplicit = isImplicit, | 3474 _isImplicit = isImplicit, |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3668 } | 3693 } |
| 3669 | 3694 |
| 3670 @override | 3695 @override |
| 3671 int get nameOffset => _nameOffset ?? 0; | 3696 int get nameOffset => _nameOffset ?? 0; |
| 3672 | 3697 |
| 3673 /** | 3698 /** |
| 3674 * Offset of the parameter name relative to the beginning of the file. | 3699 * Offset of the parameter name relative to the beginning of the file. |
| 3675 */ | 3700 */ |
| 3676 void set nameOffset(int _value) { | 3701 void set nameOffset(int _value) { |
| 3677 assert(!_finished); | 3702 assert(!_finished); |
| 3703 assert(_value == null || _value >= 0); |
| 3678 _nameOffset = _value; | 3704 _nameOffset = _value; |
| 3679 } | 3705 } |
| 3680 | 3706 |
| 3681 @override | 3707 @override |
| 3682 TypeRef get type => _type; | 3708 TypeRef get type => _type; |
| 3683 | 3709 |
| 3684 /** | 3710 /** |
| 3685 * If [isFunctionTyped] is `true`, the declared return type. If | 3711 * If [isFunctionTyped] is `true`, the declared return type. If |
| 3686 * [isFunctionTyped] is `false`, the declared type. Absent if | 3712 * [isFunctionTyped] is `false`, the declared type. Absent if |
| 3687 * [isFunctionTyped] is `true` and the declared return type is `void`. Note | 3713 * [isFunctionTyped] is `true` and the declared return type is `void`. Note |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3948 | 3974 |
| 3949 @override | 3975 @override |
| 3950 int get uriOffset => _uriOffset ?? 0; | 3976 int get uriOffset => _uriOffset ?? 0; |
| 3951 | 3977 |
| 3952 /** | 3978 /** |
| 3953 * Offset of the URI string (including quotes) relative to the beginning of | 3979 * Offset of the URI string (including quotes) relative to the beginning of |
| 3954 * the file. | 3980 * the file. |
| 3955 */ | 3981 */ |
| 3956 void set uriOffset(int _value) { | 3982 void set uriOffset(int _value) { |
| 3957 assert(!_finished); | 3983 assert(!_finished); |
| 3984 assert(_value == null || _value >= 0); |
| 3958 _uriOffset = _value; | 3985 _uriOffset = _value; |
| 3959 } | 3986 } |
| 3960 | 3987 |
| 3961 @override | 3988 @override |
| 3962 int get uriEnd => _uriEnd ?? 0; | 3989 int get uriEnd => _uriEnd ?? 0; |
| 3963 | 3990 |
| 3964 /** | 3991 /** |
| 3965 * End of the URI string (including quotes) relative to the beginning of the | 3992 * End of the URI string (including quotes) relative to the beginning of the |
| 3966 * file. | 3993 * file. |
| 3967 */ | 3994 */ |
| 3968 void set uriEnd(int _value) { | 3995 void set uriEnd(int _value) { |
| 3969 assert(!_finished); | 3996 assert(!_finished); |
| 3997 assert(_value == null || _value >= 0); |
| 3970 _uriEnd = _value; | 3998 _uriEnd = _value; |
| 3971 } | 3999 } |
| 3972 | 4000 |
| 3973 UnlinkedPartBuilder({int uriOffset, int uriEnd}) | 4001 UnlinkedPartBuilder({int uriOffset, int uriEnd}) |
| 3974 : _uriOffset = uriOffset, | 4002 : _uriOffset = uriOffset, |
| 3975 _uriEnd = uriEnd; | 4003 _uriEnd = uriEnd; |
| 3976 | 4004 |
| 3977 fb.Offset finish(fb.Builder fbBuilder) { | 4005 fb.Offset finish(fb.Builder fbBuilder) { |
| 3978 assert(!_finished); | 4006 assert(!_finished); |
| 3979 _finished = true; | 4007 _finished = true; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4073 | 4101 |
| 4074 @override | 4102 @override |
| 4075 int get numTypeParameters => _numTypeParameters ?? 0; | 4103 int get numTypeParameters => _numTypeParameters ?? 0; |
| 4076 | 4104 |
| 4077 /** | 4105 /** |
| 4078 * If the entity being referred to is generic, the number of type parameters | 4106 * If the entity being referred to is generic, the number of type parameters |
| 4079 * it accepts. Otherwise zero. | 4107 * it accepts. Otherwise zero. |
| 4080 */ | 4108 */ |
| 4081 void set numTypeParameters(int _value) { | 4109 void set numTypeParameters(int _value) { |
| 4082 assert(!_finished); | 4110 assert(!_finished); |
| 4111 assert(_value == null || _value >= 0); |
| 4083 _numTypeParameters = _value; | 4112 _numTypeParameters = _value; |
| 4084 } | 4113 } |
| 4085 | 4114 |
| 4086 UnlinkedPublicNameBuilder({String name, ReferenceKind kind, int numTypeParamet
ers}) | 4115 UnlinkedPublicNameBuilder({String name, ReferenceKind kind, int numTypeParamet
ers}) |
| 4087 : _name = name, | 4116 : _name = name, |
| 4088 _kind = kind, | 4117 _kind = kind, |
| 4089 _numTypeParameters = numTypeParameters; | 4118 _numTypeParameters = numTypeParameters; |
| 4090 | 4119 |
| 4091 fb.Offset finish(fb.Builder fbBuilder) { | 4120 fb.Offset finish(fb.Builder fbBuilder) { |
| 4092 assert(!_finished); | 4121 assert(!_finished); |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4366 /** | 4395 /** |
| 4367 * Prefix used to refer to the entity, or zero if no prefix is used. This is | 4396 * Prefix used to refer to the entity, or zero if no prefix is used. This is |
| 4368 * an index into [UnlinkedUnit.references]. | 4397 * an index into [UnlinkedUnit.references]. |
| 4369 * | 4398 * |
| 4370 * Prefix references must always point backward; that is, for all i, if | 4399 * Prefix references must always point backward; that is, for all i, if |
| 4371 * UnlinkedUnit.references[i].prefixReference != 0, then | 4400 * UnlinkedUnit.references[i].prefixReference != 0, then |
| 4372 * UnlinkedUnit.references[i].prefixReference < i. | 4401 * UnlinkedUnit.references[i].prefixReference < i. |
| 4373 */ | 4402 */ |
| 4374 void set prefixReference(int _value) { | 4403 void set prefixReference(int _value) { |
| 4375 assert(!_finished); | 4404 assert(!_finished); |
| 4405 assert(_value == null || _value >= 0); |
| 4376 _prefixReference = _value; | 4406 _prefixReference = _value; |
| 4377 } | 4407 } |
| 4378 | 4408 |
| 4379 UnlinkedReferenceBuilder({String name, int prefixReference}) | 4409 UnlinkedReferenceBuilder({String name, int prefixReference}) |
| 4380 : _name = name, | 4410 : _name = name, |
| 4381 _prefixReference = prefixReference; | 4411 _prefixReference = prefixReference; |
| 4382 | 4412 |
| 4383 fb.Offset finish(fb.Builder fbBuilder) { | 4413 fb.Offset finish(fb.Builder fbBuilder) { |
| 4384 assert(!_finished); | 4414 assert(!_finished); |
| 4385 _finished = true; | 4415 _finished = true; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4479 } | 4509 } |
| 4480 | 4510 |
| 4481 @override | 4511 @override |
| 4482 int get nameOffset => _nameOffset ?? 0; | 4512 int get nameOffset => _nameOffset ?? 0; |
| 4483 | 4513 |
| 4484 /** | 4514 /** |
| 4485 * Offset of the typedef name relative to the beginning of the file. | 4515 * Offset of the typedef name relative to the beginning of the file. |
| 4486 */ | 4516 */ |
| 4487 void set nameOffset(int _value) { | 4517 void set nameOffset(int _value) { |
| 4488 assert(!_finished); | 4518 assert(!_finished); |
| 4519 assert(_value == null || _value >= 0); |
| 4489 _nameOffset = _value; | 4520 _nameOffset = _value; |
| 4490 } | 4521 } |
| 4491 | 4522 |
| 4492 @override | 4523 @override |
| 4493 UnlinkedDocumentationComment get documentationComment => _documentationComment
; | 4524 UnlinkedDocumentationComment get documentationComment => _documentationComment
; |
| 4494 | 4525 |
| 4495 /** | 4526 /** |
| 4496 * Documentation comment for the typedef, or `null` if there is no | 4527 * Documentation comment for the typedef, or `null` if there is no |
| 4497 * documentation comment. | 4528 * documentation comment. |
| 4498 */ | 4529 */ |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4712 } | 4743 } |
| 4713 | 4744 |
| 4714 @override | 4745 @override |
| 4715 int get nameOffset => _nameOffset ?? 0; | 4746 int get nameOffset => _nameOffset ?? 0; |
| 4716 | 4747 |
| 4717 /** | 4748 /** |
| 4718 * Offset of the type parameter name relative to the beginning of the file. | 4749 * Offset of the type parameter name relative to the beginning of the file. |
| 4719 */ | 4750 */ |
| 4720 void set nameOffset(int _value) { | 4751 void set nameOffset(int _value) { |
| 4721 assert(!_finished); | 4752 assert(!_finished); |
| 4753 assert(_value == null || _value >= 0); |
| 4722 _nameOffset = _value; | 4754 _nameOffset = _value; |
| 4723 } | 4755 } |
| 4724 | 4756 |
| 4725 @override | 4757 @override |
| 4726 TypeRef get bound => _bound; | 4758 TypeRef get bound => _bound; |
| 4727 | 4759 |
| 4728 /** | 4760 /** |
| 4729 * Bound of the type parameter, if a bound is explicitly declared. Otherwise | 4761 * Bound of the type parameter, if a bound is explicitly declared. Otherwise |
| 4730 * null. | 4762 * null. |
| 4731 */ | 4763 */ |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4861 | 4893 |
| 4862 @override | 4894 @override |
| 4863 int get libraryNameOffset => _libraryNameOffset ?? 0; | 4895 int get libraryNameOffset => _libraryNameOffset ?? 0; |
| 4864 | 4896 |
| 4865 /** | 4897 /** |
| 4866 * Offset of the library name relative to the beginning of the file (or 0 if | 4898 * Offset of the library name relative to the beginning of the file (or 0 if |
| 4867 * the library has no name). | 4899 * the library has no name). |
| 4868 */ | 4900 */ |
| 4869 void set libraryNameOffset(int _value) { | 4901 void set libraryNameOffset(int _value) { |
| 4870 assert(!_finished); | 4902 assert(!_finished); |
| 4903 assert(_value == null || _value >= 0); |
| 4871 _libraryNameOffset = _value; | 4904 _libraryNameOffset = _value; |
| 4872 } | 4905 } |
| 4873 | 4906 |
| 4874 @override | 4907 @override |
| 4875 int get libraryNameLength => _libraryNameLength ?? 0; | 4908 int get libraryNameLength => _libraryNameLength ?? 0; |
| 4876 | 4909 |
| 4877 /** | 4910 /** |
| 4878 * Length of the library name as it appears in the source code (or 0 if the | 4911 * Length of the library name as it appears in the source code (or 0 if the |
| 4879 * library has no name). | 4912 * library has no name). |
| 4880 */ | 4913 */ |
| 4881 void set libraryNameLength(int _value) { | 4914 void set libraryNameLength(int _value) { |
| 4882 assert(!_finished); | 4915 assert(!_finished); |
| 4916 assert(_value == null || _value >= 0); |
| 4883 _libraryNameLength = _value; | 4917 _libraryNameLength = _value; |
| 4884 } | 4918 } |
| 4885 | 4919 |
| 4886 @override | 4920 @override |
| 4887 UnlinkedDocumentationComment get libraryDocumentationComment => _libraryDocume
ntationComment; | 4921 UnlinkedDocumentationComment get libraryDocumentationComment => _libraryDocume
ntationComment; |
| 4888 | 4922 |
| 4889 /** | 4923 /** |
| 4890 * Documentation comment for the library, or `null` if there is no | 4924 * Documentation comment for the library, or `null` if there is no |
| 4891 * documentation comment. | 4925 * documentation comment. |
| 4892 */ | 4926 */ |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5371 } | 5405 } |
| 5372 | 5406 |
| 5373 @override | 5407 @override |
| 5374 int get nameOffset => _nameOffset ?? 0; | 5408 int get nameOffset => _nameOffset ?? 0; |
| 5375 | 5409 |
| 5376 /** | 5410 /** |
| 5377 * Offset of the variable name relative to the beginning of the file. | 5411 * Offset of the variable name relative to the beginning of the file. |
| 5378 */ | 5412 */ |
| 5379 void set nameOffset(int _value) { | 5413 void set nameOffset(int _value) { |
| 5380 assert(!_finished); | 5414 assert(!_finished); |
| 5415 assert(_value == null || _value >= 0); |
| 5381 _nameOffset = _value; | 5416 _nameOffset = _value; |
| 5382 } | 5417 } |
| 5383 | 5418 |
| 5384 @override | 5419 @override |
| 5385 UnlinkedDocumentationComment get documentationComment => _documentationComment
; | 5420 UnlinkedDocumentationComment get documentationComment => _documentationComment
; |
| 5386 | 5421 |
| 5387 /** | 5422 /** |
| 5388 * Documentation comment for the variable, or `null` if there is no | 5423 * Documentation comment for the variable, or `null` if there is no |
| 5389 * documentation comment. | 5424 * documentation comment. |
| 5390 */ | 5425 */ |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5471 /** | 5506 /** |
| 5472 * If this variable is propagable, nonzero slot id identifying which entry in | 5507 * If this variable is propagable, nonzero slot id identifying which entry in |
| 5473 * [LinkedLibrary.types] contains the propagated type for this variable. If | 5508 * [LinkedLibrary.types] contains the propagated type for this variable. If |
| 5474 * there is no matching entry in [LinkedLibrary.types], then this variable's | 5509 * there is no matching entry in [LinkedLibrary.types], then this variable's |
| 5475 * propagated type is the same as its declared type. | 5510 * propagated type is the same as its declared type. |
| 5476 * | 5511 * |
| 5477 * Non-propagable variables have a [propagatedTypeSlot] of zero. | 5512 * Non-propagable variables have a [propagatedTypeSlot] of zero. |
| 5478 */ | 5513 */ |
| 5479 void set propagatedTypeSlot(int _value) { | 5514 void set propagatedTypeSlot(int _value) { |
| 5480 assert(!_finished); | 5515 assert(!_finished); |
| 5516 assert(_value == null || _value >= 0); |
| 5481 _propagatedTypeSlot = _value; | 5517 _propagatedTypeSlot = _value; |
| 5482 } | 5518 } |
| 5483 | 5519 |
| 5484 UnlinkedVariableBuilder({String name, int nameOffset, UnlinkedDocumentationCom
mentBuilder documentationComment, TypeRefBuilder type, UnlinkedConstBuilder cons
tExpr, bool isStatic, bool isFinal, bool isConst, bool hasImplicitType, int prop
agatedTypeSlot}) | 5520 UnlinkedVariableBuilder({String name, int nameOffset, UnlinkedDocumentationCom
mentBuilder documentationComment, TypeRefBuilder type, UnlinkedConstBuilder cons
tExpr, bool isStatic, bool isFinal, bool isConst, bool hasImplicitType, int prop
agatedTypeSlot}) |
| 5485 : _name = name, | 5521 : _name = name, |
| 5486 _nameOffset = nameOffset, | 5522 _nameOffset = nameOffset, |
| 5487 _documentationComment = documentationComment, | 5523 _documentationComment = documentationComment, |
| 5488 _type = type, | 5524 _type = type, |
| 5489 _constExpr = constExpr, | 5525 _constExpr = constExpr, |
| 5490 _isStatic = isStatic, | 5526 _isStatic = isStatic, |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5709 "type": type, | 5745 "type": type, |
| 5710 "constExpr": constExpr, | 5746 "constExpr": constExpr, |
| 5711 "isStatic": isStatic, | 5747 "isStatic": isStatic, |
| 5712 "isFinal": isFinal, | 5748 "isFinal": isFinal, |
| 5713 "isConst": isConst, | 5749 "isConst": isConst, |
| 5714 "hasImplicitType": hasImplicitType, | 5750 "hasImplicitType": hasImplicitType, |
| 5715 "propagatedTypeSlot": propagatedTypeSlot, | 5751 "propagatedTypeSlot": propagatedTypeSlot, |
| 5716 }; | 5752 }; |
| 5717 } | 5753 } |
| 5718 | 5754 |
| OLD | NEW |