| 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 'flat_buffers.dart' as fb; | 10 import 'flat_buffers.dart' as fb; |
| (...skipping 3265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3276 String toString() => convert.JSON.encode(toJson()); | 3276 String toString() => convert.JSON.encode(toJson()); |
| 3277 } | 3277 } |
| 3278 | 3278 |
| 3279 class UnlinkedConstBuilder extends Object with _UnlinkedConstMixin implements id
l.UnlinkedConst { | 3279 class UnlinkedConstBuilder extends Object with _UnlinkedConstMixin implements id
l.UnlinkedConst { |
| 3280 bool _finished = false; | 3280 bool _finished = false; |
| 3281 | 3281 |
| 3282 List<idl.UnlinkedExprAssignOperator> _assignmentOperators; | 3282 List<idl.UnlinkedExprAssignOperator> _assignmentOperators; |
| 3283 List<double> _doubles; | 3283 List<double> _doubles; |
| 3284 List<int> _ints; | 3284 List<int> _ints; |
| 3285 bool _isValidConst; | 3285 bool _isValidConst; |
| 3286 String _name; |
| 3286 List<idl.UnlinkedConstOperation> _operations; | 3287 List<idl.UnlinkedConstOperation> _operations; |
| 3287 List<EntityRefBuilder> _references; | 3288 List<EntityRefBuilder> _references; |
| 3288 List<String> _strings; | 3289 List<String> _strings; |
| 3289 | 3290 |
| 3290 @override | 3291 @override |
| 3291 List<idl.UnlinkedExprAssignOperator> get assignmentOperators => _assignmentOpe
rators ??= <idl.UnlinkedExprAssignOperator>[]; | 3292 List<idl.UnlinkedExprAssignOperator> get assignmentOperators => _assignmentOpe
rators ??= <idl.UnlinkedExprAssignOperator>[]; |
| 3292 | 3293 |
| 3293 /** | 3294 /** |
| 3294 * Sequence of operators used by assignment operations. | 3295 * Sequence of operators used by assignment operations. |
| 3295 */ | 3296 */ |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3329 /** | 3330 /** |
| 3330 * Indicates whether the expression is a valid potentially constant | 3331 * Indicates whether the expression is a valid potentially constant |
| 3331 * expression. | 3332 * expression. |
| 3332 */ | 3333 */ |
| 3333 void set isValidConst(bool _value) { | 3334 void set isValidConst(bool _value) { |
| 3334 assert(!_finished); | 3335 assert(!_finished); |
| 3335 _isValidConst = _value; | 3336 _isValidConst = _value; |
| 3336 } | 3337 } |
| 3337 | 3338 |
| 3338 @override | 3339 @override |
| 3340 String get name => _name ??= ''; |
| 3341 |
| 3342 /** |
| 3343 * If the expression is a [NamedExpression], the name of the expression. |
| 3344 */ |
| 3345 void set name(String _value) { |
| 3346 assert(!_finished); |
| 3347 _name = _value; |
| 3348 } |
| 3349 |
| 3350 @override |
| 3339 List<idl.UnlinkedConstOperation> get operations => _operations ??= <idl.Unlink
edConstOperation>[]; | 3351 List<idl.UnlinkedConstOperation> get operations => _operations ??= <idl.Unlink
edConstOperation>[]; |
| 3340 | 3352 |
| 3341 /** | 3353 /** |
| 3342 * Sequence of operations to execute (starting with an empty stack) to form | 3354 * Sequence of operations to execute (starting with an empty stack) to form |
| 3343 * the constant value. | 3355 * the constant value. |
| 3344 */ | 3356 */ |
| 3345 void set operations(List<idl.UnlinkedConstOperation> _value) { | 3357 void set operations(List<idl.UnlinkedConstOperation> _value) { |
| 3346 assert(!_finished); | 3358 assert(!_finished); |
| 3347 _operations = _value; | 3359 _operations = _value; |
| 3348 } | 3360 } |
| (...skipping 17 matching lines...) Expand all Loading... |
| 3366 | 3378 |
| 3367 /** | 3379 /** |
| 3368 * Sequence of strings consumed by the operations `pushString` and | 3380 * Sequence of strings consumed by the operations `pushString` and |
| 3369 * `invokeConstructor`. | 3381 * `invokeConstructor`. |
| 3370 */ | 3382 */ |
| 3371 void set strings(List<String> _value) { | 3383 void set strings(List<String> _value) { |
| 3372 assert(!_finished); | 3384 assert(!_finished); |
| 3373 _strings = _value; | 3385 _strings = _value; |
| 3374 } | 3386 } |
| 3375 | 3387 |
| 3376 UnlinkedConstBuilder({List<idl.UnlinkedExprAssignOperator> assignmentOperators
, List<double> doubles, List<int> ints, bool isValidConst, List<idl.UnlinkedCons
tOperation> operations, List<EntityRefBuilder> references, List<String> strings}
) | 3388 UnlinkedConstBuilder({List<idl.UnlinkedExprAssignOperator> assignmentOperators
, List<double> doubles, List<int> ints, bool isValidConst, String name, List<idl
.UnlinkedConstOperation> operations, List<EntityRefBuilder> references, List<Str
ing> strings}) |
| 3377 : _assignmentOperators = assignmentOperators, | 3389 : _assignmentOperators = assignmentOperators, |
| 3378 _doubles = doubles, | 3390 _doubles = doubles, |
| 3379 _ints = ints, | 3391 _ints = ints, |
| 3380 _isValidConst = isValidConst, | 3392 _isValidConst = isValidConst, |
| 3393 _name = name, |
| 3381 _operations = operations, | 3394 _operations = operations, |
| 3382 _references = references, | 3395 _references = references, |
| 3383 _strings = strings; | 3396 _strings = strings; |
| 3384 | 3397 |
| 3385 /** | 3398 /** |
| 3386 * Flush [informative] data recursively. | 3399 * Flush [informative] data recursively. |
| 3387 */ | 3400 */ |
| 3388 void flushInformative() { | 3401 void flushInformative() { |
| 3389 _references?.forEach((b) => b.flushInformative()); | 3402 _references?.forEach((b) => b.flushInformative()); |
| 3390 } | 3403 } |
| 3391 | 3404 |
| 3392 fb.Offset finish(fb.Builder fbBuilder) { | 3405 fb.Offset finish(fb.Builder fbBuilder) { |
| 3393 assert(!_finished); | 3406 assert(!_finished); |
| 3394 _finished = true; | 3407 _finished = true; |
| 3395 fb.Offset offset_assignmentOperators; | 3408 fb.Offset offset_assignmentOperators; |
| 3396 fb.Offset offset_doubles; | 3409 fb.Offset offset_doubles; |
| 3397 fb.Offset offset_ints; | 3410 fb.Offset offset_ints; |
| 3411 fb.Offset offset_name; |
| 3398 fb.Offset offset_operations; | 3412 fb.Offset offset_operations; |
| 3399 fb.Offset offset_references; | 3413 fb.Offset offset_references; |
| 3400 fb.Offset offset_strings; | 3414 fb.Offset offset_strings; |
| 3401 if (!(_assignmentOperators == null || _assignmentOperators.isEmpty)) { | 3415 if (!(_assignmentOperators == null || _assignmentOperators.isEmpty)) { |
| 3402 offset_assignmentOperators = fbBuilder.writeListUint8(_assignmentOperators
.map((b) => b.index).toList()); | 3416 offset_assignmentOperators = fbBuilder.writeListUint8(_assignmentOperators
.map((b) => b.index).toList()); |
| 3403 } | 3417 } |
| 3404 if (!(_doubles == null || _doubles.isEmpty)) { | 3418 if (!(_doubles == null || _doubles.isEmpty)) { |
| 3405 offset_doubles = fbBuilder.writeListFloat64(_doubles); | 3419 offset_doubles = fbBuilder.writeListFloat64(_doubles); |
| 3406 } | 3420 } |
| 3407 if (!(_ints == null || _ints.isEmpty)) { | 3421 if (!(_ints == null || _ints.isEmpty)) { |
| 3408 offset_ints = fbBuilder.writeListUint32(_ints); | 3422 offset_ints = fbBuilder.writeListUint32(_ints); |
| 3409 } | 3423 } |
| 3424 if (_name != null) { |
| 3425 offset_name = fbBuilder.writeString(_name); |
| 3426 } |
| 3410 if (!(_operations == null || _operations.isEmpty)) { | 3427 if (!(_operations == null || _operations.isEmpty)) { |
| 3411 offset_operations = fbBuilder.writeListUint8(_operations.map((b) => b.inde
x).toList()); | 3428 offset_operations = fbBuilder.writeListUint8(_operations.map((b) => b.inde
x).toList()); |
| 3412 } | 3429 } |
| 3413 if (!(_references == null || _references.isEmpty)) { | 3430 if (!(_references == null || _references.isEmpty)) { |
| 3414 offset_references = fbBuilder.writeList(_references.map((b) => b.finish(fb
Builder)).toList()); | 3431 offset_references = fbBuilder.writeList(_references.map((b) => b.finish(fb
Builder)).toList()); |
| 3415 } | 3432 } |
| 3416 if (!(_strings == null || _strings.isEmpty)) { | 3433 if (!(_strings == null || _strings.isEmpty)) { |
| 3417 offset_strings = fbBuilder.writeList(_strings.map((b) => fbBuilder.writeSt
ring(b)).toList()); | 3434 offset_strings = fbBuilder.writeList(_strings.map((b) => fbBuilder.writeSt
ring(b)).toList()); |
| 3418 } | 3435 } |
| 3419 fbBuilder.startTable(); | 3436 fbBuilder.startTable(); |
| 3420 if (offset_assignmentOperators != null) { | 3437 if (offset_assignmentOperators != null) { |
| 3421 fbBuilder.addOffset(6, offset_assignmentOperators); | 3438 fbBuilder.addOffset(6, offset_assignmentOperators); |
| 3422 } | 3439 } |
| 3423 if (offset_doubles != null) { | 3440 if (offset_doubles != null) { |
| 3424 fbBuilder.addOffset(4, offset_doubles); | 3441 fbBuilder.addOffset(4, offset_doubles); |
| 3425 } | 3442 } |
| 3426 if (offset_ints != null) { | 3443 if (offset_ints != null) { |
| 3427 fbBuilder.addOffset(1, offset_ints); | 3444 fbBuilder.addOffset(1, offset_ints); |
| 3428 } | 3445 } |
| 3429 if (_isValidConst == true) { | 3446 if (_isValidConst == true) { |
| 3430 fbBuilder.addBool(5, true); | 3447 fbBuilder.addBool(5, true); |
| 3431 } | 3448 } |
| 3449 if (offset_name != null) { |
| 3450 fbBuilder.addOffset(7, offset_name); |
| 3451 } |
| 3432 if (offset_operations != null) { | 3452 if (offset_operations != null) { |
| 3433 fbBuilder.addOffset(0, offset_operations); | 3453 fbBuilder.addOffset(0, offset_operations); |
| 3434 } | 3454 } |
| 3435 if (offset_references != null) { | 3455 if (offset_references != null) { |
| 3436 fbBuilder.addOffset(2, offset_references); | 3456 fbBuilder.addOffset(2, offset_references); |
| 3437 } | 3457 } |
| 3438 if (offset_strings != null) { | 3458 if (offset_strings != null) { |
| 3439 fbBuilder.addOffset(3, offset_strings); | 3459 fbBuilder.addOffset(3, offset_strings); |
| 3440 } | 3460 } |
| 3441 return fbBuilder.endTable(); | 3461 return fbBuilder.endTable(); |
| 3442 } | 3462 } |
| 3443 } | 3463 } |
| 3444 | 3464 |
| 3445 class _UnlinkedConstReader extends fb.TableReader<_UnlinkedConstImpl> { | 3465 class _UnlinkedConstReader extends fb.TableReader<_UnlinkedConstImpl> { |
| 3446 const _UnlinkedConstReader(); | 3466 const _UnlinkedConstReader(); |
| 3447 | 3467 |
| 3448 @override | 3468 @override |
| 3449 _UnlinkedConstImpl createObject(fb.BufferPointer bp) => new _UnlinkedConstImpl
(bp); | 3469 _UnlinkedConstImpl createObject(fb.BufferPointer bp) => new _UnlinkedConstImpl
(bp); |
| 3450 } | 3470 } |
| 3451 | 3471 |
| 3452 class _UnlinkedConstImpl extends Object with _UnlinkedConstMixin implements idl.
UnlinkedConst { | 3472 class _UnlinkedConstImpl extends Object with _UnlinkedConstMixin implements idl.
UnlinkedConst { |
| 3453 final fb.BufferPointer _bp; | 3473 final fb.BufferPointer _bp; |
| 3454 | 3474 |
| 3455 _UnlinkedConstImpl(this._bp); | 3475 _UnlinkedConstImpl(this._bp); |
| 3456 | 3476 |
| 3457 List<idl.UnlinkedExprAssignOperator> _assignmentOperators; | 3477 List<idl.UnlinkedExprAssignOperator> _assignmentOperators; |
| 3458 List<double> _doubles; | 3478 List<double> _doubles; |
| 3459 List<int> _ints; | 3479 List<int> _ints; |
| 3460 bool _isValidConst; | 3480 bool _isValidConst; |
| 3481 String _name; |
| 3461 List<idl.UnlinkedConstOperation> _operations; | 3482 List<idl.UnlinkedConstOperation> _operations; |
| 3462 List<idl.EntityRef> _references; | 3483 List<idl.EntityRef> _references; |
| 3463 List<String> _strings; | 3484 List<String> _strings; |
| 3464 | 3485 |
| 3465 @override | 3486 @override |
| 3466 List<idl.UnlinkedExprAssignOperator> get assignmentOperators { | 3487 List<idl.UnlinkedExprAssignOperator> get assignmentOperators { |
| 3467 _assignmentOperators ??= const fb.ListReader<idl.UnlinkedExprAssignOperator>
(const _UnlinkedExprAssignOperatorReader()).vTableGet(_bp, 6, const <idl.Unlinke
dExprAssignOperator>[]); | 3488 _assignmentOperators ??= const fb.ListReader<idl.UnlinkedExprAssignOperator>
(const _UnlinkedExprAssignOperatorReader()).vTableGet(_bp, 6, const <idl.Unlinke
dExprAssignOperator>[]); |
| 3468 return _assignmentOperators; | 3489 return _assignmentOperators; |
| 3469 } | 3490 } |
| 3470 | 3491 |
| 3471 @override | 3492 @override |
| 3472 List<double> get doubles { | 3493 List<double> get doubles { |
| 3473 _doubles ??= const fb.Float64ListReader().vTableGet(_bp, 4, const <double>[]
); | 3494 _doubles ??= const fb.Float64ListReader().vTableGet(_bp, 4, const <double>[]
); |
| 3474 return _doubles; | 3495 return _doubles; |
| 3475 } | 3496 } |
| 3476 | 3497 |
| 3477 @override | 3498 @override |
| 3478 List<int> get ints { | 3499 List<int> get ints { |
| 3479 _ints ??= const fb.Uint32ListReader().vTableGet(_bp, 1, const <int>[]); | 3500 _ints ??= const fb.Uint32ListReader().vTableGet(_bp, 1, const <int>[]); |
| 3480 return _ints; | 3501 return _ints; |
| 3481 } | 3502 } |
| 3482 | 3503 |
| 3483 @override | 3504 @override |
| 3484 bool get isValidConst { | 3505 bool get isValidConst { |
| 3485 _isValidConst ??= const fb.BoolReader().vTableGet(_bp, 5, false); | 3506 _isValidConst ??= const fb.BoolReader().vTableGet(_bp, 5, false); |
| 3486 return _isValidConst; | 3507 return _isValidConst; |
| 3487 } | 3508 } |
| 3488 | 3509 |
| 3489 @override | 3510 @override |
| 3511 String get name { |
| 3512 _name ??= const fb.StringReader().vTableGet(_bp, 7, ''); |
| 3513 return _name; |
| 3514 } |
| 3515 |
| 3516 @override |
| 3490 List<idl.UnlinkedConstOperation> get operations { | 3517 List<idl.UnlinkedConstOperation> get operations { |
| 3491 _operations ??= const fb.ListReader<idl.UnlinkedConstOperation>(const _Unlin
kedConstOperationReader()).vTableGet(_bp, 0, const <idl.UnlinkedConstOperation>[
]); | 3518 _operations ??= const fb.ListReader<idl.UnlinkedConstOperation>(const _Unlin
kedConstOperationReader()).vTableGet(_bp, 0, const <idl.UnlinkedConstOperation>[
]); |
| 3492 return _operations; | 3519 return _operations; |
| 3493 } | 3520 } |
| 3494 | 3521 |
| 3495 @override | 3522 @override |
| 3496 List<idl.EntityRef> get references { | 3523 List<idl.EntityRef> get references { |
| 3497 _references ??= const fb.ListReader<idl.EntityRef>(const _EntityRefReader())
.vTableGet(_bp, 2, const <idl.EntityRef>[]); | 3524 _references ??= const fb.ListReader<idl.EntityRef>(const _EntityRefReader())
.vTableGet(_bp, 2, const <idl.EntityRef>[]); |
| 3498 return _references; | 3525 return _references; |
| 3499 } | 3526 } |
| 3500 | 3527 |
| 3501 @override | 3528 @override |
| 3502 List<String> get strings { | 3529 List<String> get strings { |
| 3503 _strings ??= const fb.ListReader<String>(const fb.StringReader()).vTableGet(
_bp, 3, const <String>[]); | 3530 _strings ??= const fb.ListReader<String>(const fb.StringReader()).vTableGet(
_bp, 3, const <String>[]); |
| 3504 return _strings; | 3531 return _strings; |
| 3505 } | 3532 } |
| 3506 } | 3533 } |
| 3507 | 3534 |
| 3508 abstract class _UnlinkedConstMixin implements idl.UnlinkedConst { | 3535 abstract class _UnlinkedConstMixin implements idl.UnlinkedConst { |
| 3509 @override | 3536 @override |
| 3510 Map<String, Object> toJson() { | 3537 Map<String, Object> toJson() { |
| 3511 Map<String, Object> _result = <String, Object>{}; | 3538 Map<String, Object> _result = <String, Object>{}; |
| 3512 if (assignmentOperators.isNotEmpty) _result["assignmentOperators"] = assignm
entOperators.map((_value) => _value.toString().split('.')[1]).toList(); | 3539 if (assignmentOperators.isNotEmpty) _result["assignmentOperators"] = assignm
entOperators.map((_value) => _value.toString().split('.')[1]).toList(); |
| 3513 if (doubles.isNotEmpty) _result["doubles"] = doubles.map((_value) => _value.
isFinite ? _value : _value.toString()).toList(); | 3540 if (doubles.isNotEmpty) _result["doubles"] = doubles.map((_value) => _value.
isFinite ? _value : _value.toString()).toList(); |
| 3514 if (ints.isNotEmpty) _result["ints"] = ints; | 3541 if (ints.isNotEmpty) _result["ints"] = ints; |
| 3515 if (isValidConst != false) _result["isValidConst"] = isValidConst; | 3542 if (isValidConst != false) _result["isValidConst"] = isValidConst; |
| 3543 if (name != '') _result["name"] = name; |
| 3516 if (operations.isNotEmpty) _result["operations"] = operations.map((_value) =
> _value.toString().split('.')[1]).toList(); | 3544 if (operations.isNotEmpty) _result["operations"] = operations.map((_value) =
> _value.toString().split('.')[1]).toList(); |
| 3517 if (references.isNotEmpty) _result["references"] = references.map((_value) =
> _value.toJson()).toList(); | 3545 if (references.isNotEmpty) _result["references"] = references.map((_value) =
> _value.toJson()).toList(); |
| 3518 if (strings.isNotEmpty) _result["strings"] = strings; | 3546 if (strings.isNotEmpty) _result["strings"] = strings; |
| 3519 return _result; | 3547 return _result; |
| 3520 } | 3548 } |
| 3521 | 3549 |
| 3522 @override | 3550 @override |
| 3523 Map<String, Object> toMap() => { | 3551 Map<String, Object> toMap() => { |
| 3524 "assignmentOperators": assignmentOperators, | 3552 "assignmentOperators": assignmentOperators, |
| 3525 "doubles": doubles, | 3553 "doubles": doubles, |
| 3526 "ints": ints, | 3554 "ints": ints, |
| 3527 "isValidConst": isValidConst, | 3555 "isValidConst": isValidConst, |
| 3556 "name": name, |
| 3528 "operations": operations, | 3557 "operations": operations, |
| 3529 "references": references, | 3558 "references": references, |
| 3530 "strings": strings, | 3559 "strings": strings, |
| 3531 }; | 3560 }; |
| 3532 | 3561 |
| 3533 @override | 3562 @override |
| 3534 String toString() => convert.JSON.encode(toJson()); | 3563 String toString() => convert.JSON.encode(toJson()); |
| 3535 } | 3564 } |
| 3536 | 3565 |
| 3537 class UnlinkedConstructorInitializerBuilder extends Object with _UnlinkedConstru
ctorInitializerMixin implements idl.UnlinkedConstructorInitializer { | 3566 class UnlinkedConstructorInitializerBuilder extends Object with _UnlinkedConstru
ctorInitializerMixin implements idl.UnlinkedConstructorInitializer { |
| (...skipping 4871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8409 "propagatedTypeSlot": propagatedTypeSlot, | 8438 "propagatedTypeSlot": propagatedTypeSlot, |
| 8410 "type": type, | 8439 "type": type, |
| 8411 "visibleLength": visibleLength, | 8440 "visibleLength": visibleLength, |
| 8412 "visibleOffset": visibleOffset, | 8441 "visibleOffset": visibleOffset, |
| 8413 }; | 8442 }; |
| 8414 | 8443 |
| 8415 @override | 8444 @override |
| 8416 String toString() => convert.JSON.encode(toJson()); | 8445 String toString() => convert.JSON.encode(toJson()); |
| 8417 } | 8446 } |
| 8418 | 8447 |
| OLD | NEW |