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

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

Issue 1712583003: Serialize and resynthesize labels. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/element.dart ('k') | pkg/analyzer/lib/src/summary/idl.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // 4 //
5 // This file has been automatically generated. Please do not edit it manually. 5 // This file has been automatically generated. Please do not edit it manually.
6 // To regenerate the file, use the script "pkg/analyzer/tool/generate_files". 6 // To regenerate the file, use the script "pkg/analyzer/tool/generate_files".
7 7
8 library analyzer.src.summary.format; 8 library analyzer.src.summary.format;
9 9
10 import 'flat_buffers.dart' as fb; 10 import 'flat_buffers.dart' as fb;
(...skipping 2416 matching lines...) Expand 10 before | Expand all | Expand 10 after
2427 UnlinkedDocumentationCommentBuilder _documentationComment; 2427 UnlinkedDocumentationCommentBuilder _documentationComment;
2428 int _inferredReturnTypeSlot; 2428 int _inferredReturnTypeSlot;
2429 bool _isAbstract; 2429 bool _isAbstract;
2430 bool _isConst; 2430 bool _isConst;
2431 bool _isExternal; 2431 bool _isExternal;
2432 bool _isFactory; 2432 bool _isFactory;
2433 bool _isRedirectedConstructor; 2433 bool _isRedirectedConstructor;
2434 bool _isStatic; 2434 bool _isStatic;
2435 idl.UnlinkedExecutableKind _kind; 2435 idl.UnlinkedExecutableKind _kind;
2436 List<UnlinkedExecutableBuilder> _localFunctions; 2436 List<UnlinkedExecutableBuilder> _localFunctions;
2437 List<UnlinkedLabelBuilder> _localLabels;
2437 List<UnlinkedVariableBuilder> _localVariables; 2438 List<UnlinkedVariableBuilder> _localVariables;
2438 String _name; 2439 String _name;
2439 int _nameOffset; 2440 int _nameOffset;
2440 List<UnlinkedParamBuilder> _parameters; 2441 List<UnlinkedParamBuilder> _parameters;
2441 EntityRefBuilder _redirectedConstructor; 2442 EntityRefBuilder _redirectedConstructor;
2442 String _redirectedConstructorName; 2443 String _redirectedConstructorName;
2443 EntityRefBuilder _returnType; 2444 EntityRefBuilder _returnType;
2444 List<UnlinkedTypeParamBuilder> _typeParameters; 2445 List<UnlinkedTypeParamBuilder> _typeParameters;
2445 int _visibleLength; 2446 int _visibleLength;
2446 int _visibleOffset; 2447 int _visibleOffset;
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
2583 2584
2584 /** 2585 /**
2585 * The list of local functions. 2586 * The list of local functions.
2586 */ 2587 */
2587 void set localFunctions(List<UnlinkedExecutableBuilder> _value) { 2588 void set localFunctions(List<UnlinkedExecutableBuilder> _value) {
2588 assert(!_finished); 2589 assert(!_finished);
2589 _localFunctions = _value; 2590 _localFunctions = _value;
2590 } 2591 }
2591 2592
2592 @override 2593 @override
2594 List<UnlinkedLabelBuilder> get localLabels => _localLabels ??= <UnlinkedLabelB uilder>[];
2595
2596 /**
2597 * The list of local labels.
2598 */
2599 void set localLabels(List<UnlinkedLabelBuilder> _value) {
2600 assert(!_finished);
2601 _localLabels = _value;
2602 }
2603
2604 @override
2593 List<UnlinkedVariableBuilder> get localVariables => _localVariables ??= <Unlin kedVariableBuilder>[]; 2605 List<UnlinkedVariableBuilder> get localVariables => _localVariables ??= <Unlin kedVariableBuilder>[];
2594 2606
2595 /** 2607 /**
2596 * The list of local variables. 2608 * The list of local variables.
2597 */ 2609 */
2598 void set localVariables(List<UnlinkedVariableBuilder> _value) { 2610 void set localVariables(List<UnlinkedVariableBuilder> _value) {
2599 assert(!_finished); 2611 assert(!_finished);
2600 _localVariables = _value; 2612 _localVariables = _value;
2601 } 2613 }
2602 2614
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
2707 2719
2708 /** 2720 /**
2709 * If a local function, the beginning of the visible range; zero otherwise. 2721 * If a local function, the beginning of the visible range; zero otherwise.
2710 */ 2722 */
2711 void set visibleOffset(int _value) { 2723 void set visibleOffset(int _value) {
2712 assert(!_finished); 2724 assert(!_finished);
2713 assert(_value == null || _value >= 0); 2725 assert(_value == null || _value >= 0);
2714 _visibleOffset = _value; 2726 _visibleOffset = _value;
2715 } 2727 }
2716 2728
2717 UnlinkedExecutableBuilder({List<UnlinkedConstBuilder> annotations, List<Unlink edConstructorInitializerBuilder> constantInitializers, UnlinkedDocumentationComm entBuilder documentationComment, int inferredReturnTypeSlot, bool isAbstract, bo ol isConst, bool isExternal, bool isFactory, bool isRedirectedConstructor, bool isStatic, idl.UnlinkedExecutableKind kind, List<UnlinkedExecutableBuilder> local Functions, List<UnlinkedVariableBuilder> localVariables, String name, int nameOf fset, List<UnlinkedParamBuilder> parameters, EntityRefBuilder redirectedConstruc tor, String redirectedConstructorName, EntityRefBuilder returnType, List<Unlinke dTypeParamBuilder> typeParameters, int visibleLength, int visibleOffset}) 2729 UnlinkedExecutableBuilder({List<UnlinkedConstBuilder> annotations, List<Unlink edConstructorInitializerBuilder> constantInitializers, UnlinkedDocumentationComm entBuilder documentationComment, int inferredReturnTypeSlot, bool isAbstract, bo ol isConst, bool isExternal, bool isFactory, bool isRedirectedConstructor, bool isStatic, idl.UnlinkedExecutableKind kind, List<UnlinkedExecutableBuilder> local Functions, List<UnlinkedLabelBuilder> localLabels, List<UnlinkedVariableBuilder> localVariables, String name, int nameOffset, List<UnlinkedParamBuilder> paramet ers, EntityRefBuilder redirectedConstructor, String redirectedConstructorName, E ntityRefBuilder returnType, List<UnlinkedTypeParamBuilder> typeParameters, int v isibleLength, int visibleOffset})
2718 : _annotations = annotations, 2730 : _annotations = annotations,
2719 _constantInitializers = constantInitializers, 2731 _constantInitializers = constantInitializers,
2720 _documentationComment = documentationComment, 2732 _documentationComment = documentationComment,
2721 _inferredReturnTypeSlot = inferredReturnTypeSlot, 2733 _inferredReturnTypeSlot = inferredReturnTypeSlot,
2722 _isAbstract = isAbstract, 2734 _isAbstract = isAbstract,
2723 _isConst = isConst, 2735 _isConst = isConst,
2724 _isExternal = isExternal, 2736 _isExternal = isExternal,
2725 _isFactory = isFactory, 2737 _isFactory = isFactory,
2726 _isRedirectedConstructor = isRedirectedConstructor, 2738 _isRedirectedConstructor = isRedirectedConstructor,
2727 _isStatic = isStatic, 2739 _isStatic = isStatic,
2728 _kind = kind, 2740 _kind = kind,
2729 _localFunctions = localFunctions, 2741 _localFunctions = localFunctions,
2742 _localLabels = localLabels,
2730 _localVariables = localVariables, 2743 _localVariables = localVariables,
2731 _name = name, 2744 _name = name,
2732 _nameOffset = nameOffset, 2745 _nameOffset = nameOffset,
2733 _parameters = parameters, 2746 _parameters = parameters,
2734 _redirectedConstructor = redirectedConstructor, 2747 _redirectedConstructor = redirectedConstructor,
2735 _redirectedConstructorName = redirectedConstructorName, 2748 _redirectedConstructorName = redirectedConstructorName,
2736 _returnType = returnType, 2749 _returnType = returnType,
2737 _typeParameters = typeParameters, 2750 _typeParameters = typeParameters,
2738 _visibleLength = visibleLength, 2751 _visibleLength = visibleLength,
2739 _visibleOffset = visibleOffset; 2752 _visibleOffset = visibleOffset;
2740 2753
2741 fb.Offset finish(fb.Builder fbBuilder) { 2754 fb.Offset finish(fb.Builder fbBuilder) {
2742 assert(!_finished); 2755 assert(!_finished);
2743 _finished = true; 2756 _finished = true;
2744 fb.Offset offset_annotations; 2757 fb.Offset offset_annotations;
2745 fb.Offset offset_constantInitializers; 2758 fb.Offset offset_constantInitializers;
2746 fb.Offset offset_documentationComment; 2759 fb.Offset offset_documentationComment;
2747 fb.Offset offset_localFunctions; 2760 fb.Offset offset_localFunctions;
2761 fb.Offset offset_localLabels;
2748 fb.Offset offset_localVariables; 2762 fb.Offset offset_localVariables;
2749 fb.Offset offset_name; 2763 fb.Offset offset_name;
2750 fb.Offset offset_parameters; 2764 fb.Offset offset_parameters;
2751 fb.Offset offset_redirectedConstructor; 2765 fb.Offset offset_redirectedConstructor;
2752 fb.Offset offset_redirectedConstructorName; 2766 fb.Offset offset_redirectedConstructorName;
2753 fb.Offset offset_returnType; 2767 fb.Offset offset_returnType;
2754 fb.Offset offset_typeParameters; 2768 fb.Offset offset_typeParameters;
2755 if (!(_annotations == null || _annotations.isEmpty)) { 2769 if (!(_annotations == null || _annotations.isEmpty)) {
2756 offset_annotations = fbBuilder.writeList(_annotations.map((b) => b.finish( fbBuilder)).toList()); 2770 offset_annotations = fbBuilder.writeList(_annotations.map((b) => b.finish( fbBuilder)).toList());
2757 } 2771 }
2758 if (!(_constantInitializers == null || _constantInitializers.isEmpty)) { 2772 if (!(_constantInitializers == null || _constantInitializers.isEmpty)) {
2759 offset_constantInitializers = fbBuilder.writeList(_constantInitializers.ma p((b) => b.finish(fbBuilder)).toList()); 2773 offset_constantInitializers = fbBuilder.writeList(_constantInitializers.ma p((b) => b.finish(fbBuilder)).toList());
2760 } 2774 }
2761 if (_documentationComment != null) { 2775 if (_documentationComment != null) {
2762 offset_documentationComment = _documentationComment.finish(fbBuilder); 2776 offset_documentationComment = _documentationComment.finish(fbBuilder);
2763 } 2777 }
2764 if (!(_localFunctions == null || _localFunctions.isEmpty)) { 2778 if (!(_localFunctions == null || _localFunctions.isEmpty)) {
2765 offset_localFunctions = fbBuilder.writeList(_localFunctions.map((b) => b.f inish(fbBuilder)).toList()); 2779 offset_localFunctions = fbBuilder.writeList(_localFunctions.map((b) => b.f inish(fbBuilder)).toList());
2766 } 2780 }
2781 if (!(_localLabels == null || _localLabels.isEmpty)) {
2782 offset_localLabels = fbBuilder.writeList(_localLabels.map((b) => b.finish( fbBuilder)).toList());
2783 }
2767 if (!(_localVariables == null || _localVariables.isEmpty)) { 2784 if (!(_localVariables == null || _localVariables.isEmpty)) {
2768 offset_localVariables = fbBuilder.writeList(_localVariables.map((b) => b.f inish(fbBuilder)).toList()); 2785 offset_localVariables = fbBuilder.writeList(_localVariables.map((b) => b.f inish(fbBuilder)).toList());
2769 } 2786 }
2770 if (_name != null) { 2787 if (_name != null) {
2771 offset_name = fbBuilder.writeString(_name); 2788 offset_name = fbBuilder.writeString(_name);
2772 } 2789 }
2773 if (!(_parameters == null || _parameters.isEmpty)) { 2790 if (!(_parameters == null || _parameters.isEmpty)) {
2774 offset_parameters = fbBuilder.writeList(_parameters.map((b) => b.finish(fb Builder)).toList()); 2791 offset_parameters = fbBuilder.writeList(_parameters.map((b) => b.finish(fb Builder)).toList());
2775 } 2792 }
2776 if (_redirectedConstructor != null) { 2793 if (_redirectedConstructor != null) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
2815 } 2832 }
2816 if (_isStatic == true) { 2833 if (_isStatic == true) {
2817 fbBuilder.addBool(9, true); 2834 fbBuilder.addBool(9, true);
2818 } 2835 }
2819 if (_kind != null && _kind != idl.UnlinkedExecutableKind.functionOrMethod) { 2836 if (_kind != null && _kind != idl.UnlinkedExecutableKind.functionOrMethod) {
2820 fbBuilder.addUint8(4, _kind.index); 2837 fbBuilder.addUint8(4, _kind.index);
2821 } 2838 }
2822 if (offset_localFunctions != null) { 2839 if (offset_localFunctions != null) {
2823 fbBuilder.addOffset(18, offset_localFunctions); 2840 fbBuilder.addOffset(18, offset_localFunctions);
2824 } 2841 }
2842 if (offset_localLabels != null) {
2843 fbBuilder.addOffset(22, offset_localLabels);
2844 }
2825 if (offset_localVariables != null) { 2845 if (offset_localVariables != null) {
2826 fbBuilder.addOffset(19, offset_localVariables); 2846 fbBuilder.addOffset(19, offset_localVariables);
2827 } 2847 }
2828 if (offset_name != null) { 2848 if (offset_name != null) {
2829 fbBuilder.addOffset(1, offset_name); 2849 fbBuilder.addOffset(1, offset_name);
2830 } 2850 }
2831 if (_nameOffset != null && _nameOffset != 0) { 2851 if (_nameOffset != null && _nameOffset != 0) {
2832 fbBuilder.addUint32(0, _nameOffset); 2852 fbBuilder.addUint32(0, _nameOffset);
2833 } 2853 }
2834 if (offset_parameters != null) { 2854 if (offset_parameters != null) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
2873 idl.UnlinkedDocumentationComment _documentationComment; 2893 idl.UnlinkedDocumentationComment _documentationComment;
2874 int _inferredReturnTypeSlot; 2894 int _inferredReturnTypeSlot;
2875 bool _isAbstract; 2895 bool _isAbstract;
2876 bool _isConst; 2896 bool _isConst;
2877 bool _isExternal; 2897 bool _isExternal;
2878 bool _isFactory; 2898 bool _isFactory;
2879 bool _isRedirectedConstructor; 2899 bool _isRedirectedConstructor;
2880 bool _isStatic; 2900 bool _isStatic;
2881 idl.UnlinkedExecutableKind _kind; 2901 idl.UnlinkedExecutableKind _kind;
2882 List<idl.UnlinkedExecutable> _localFunctions; 2902 List<idl.UnlinkedExecutable> _localFunctions;
2903 List<idl.UnlinkedLabel> _localLabels;
2883 List<idl.UnlinkedVariable> _localVariables; 2904 List<idl.UnlinkedVariable> _localVariables;
2884 String _name; 2905 String _name;
2885 int _nameOffset; 2906 int _nameOffset;
2886 List<idl.UnlinkedParam> _parameters; 2907 List<idl.UnlinkedParam> _parameters;
2887 idl.EntityRef _redirectedConstructor; 2908 idl.EntityRef _redirectedConstructor;
2888 String _redirectedConstructorName; 2909 String _redirectedConstructorName;
2889 idl.EntityRef _returnType; 2910 idl.EntityRef _returnType;
2890 List<idl.UnlinkedTypeParam> _typeParameters; 2911 List<idl.UnlinkedTypeParam> _typeParameters;
2891 int _visibleLength; 2912 int _visibleLength;
2892 int _visibleOffset; 2913 int _visibleOffset;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
2957 return _kind; 2978 return _kind;
2958 } 2979 }
2959 2980
2960 @override 2981 @override
2961 List<idl.UnlinkedExecutable> get localFunctions { 2982 List<idl.UnlinkedExecutable> get localFunctions {
2962 _localFunctions ??= const fb.ListReader<idl.UnlinkedExecutable>(const _Unlin kedExecutableReader()).vTableGet(_bp, 18, const <idl.UnlinkedExecutable>[]); 2983 _localFunctions ??= const fb.ListReader<idl.UnlinkedExecutable>(const _Unlin kedExecutableReader()).vTableGet(_bp, 18, const <idl.UnlinkedExecutable>[]);
2963 return _localFunctions; 2984 return _localFunctions;
2964 } 2985 }
2965 2986
2966 @override 2987 @override
2988 List<idl.UnlinkedLabel> get localLabels {
2989 _localLabels ??= const fb.ListReader<idl.UnlinkedLabel>(const _UnlinkedLabel Reader()).vTableGet(_bp, 22, const <idl.UnlinkedLabel>[]);
2990 return _localLabels;
2991 }
2992
2993 @override
2967 List<idl.UnlinkedVariable> get localVariables { 2994 List<idl.UnlinkedVariable> get localVariables {
2968 _localVariables ??= const fb.ListReader<idl.UnlinkedVariable>(const _Unlinke dVariableReader()).vTableGet(_bp, 19, const <idl.UnlinkedVariable>[]); 2995 _localVariables ??= const fb.ListReader<idl.UnlinkedVariable>(const _Unlinke dVariableReader()).vTableGet(_bp, 19, const <idl.UnlinkedVariable>[]);
2969 return _localVariables; 2996 return _localVariables;
2970 } 2997 }
2971 2998
2972 @override 2999 @override
2973 String get name { 3000 String get name {
2974 _name ??= const fb.StringReader().vTableGet(_bp, 1, ''); 3001 _name ??= const fb.StringReader().vTableGet(_bp, 1, '');
2975 return _name; 3002 return _name;
2976 } 3003 }
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
3032 "documentationComment": documentationComment, 3059 "documentationComment": documentationComment,
3033 "inferredReturnTypeSlot": inferredReturnTypeSlot, 3060 "inferredReturnTypeSlot": inferredReturnTypeSlot,
3034 "isAbstract": isAbstract, 3061 "isAbstract": isAbstract,
3035 "isConst": isConst, 3062 "isConst": isConst,
3036 "isExternal": isExternal, 3063 "isExternal": isExternal,
3037 "isFactory": isFactory, 3064 "isFactory": isFactory,
3038 "isRedirectedConstructor": isRedirectedConstructor, 3065 "isRedirectedConstructor": isRedirectedConstructor,
3039 "isStatic": isStatic, 3066 "isStatic": isStatic,
3040 "kind": kind, 3067 "kind": kind,
3041 "localFunctions": localFunctions, 3068 "localFunctions": localFunctions,
3069 "localLabels": localLabels,
3042 "localVariables": localVariables, 3070 "localVariables": localVariables,
3043 "name": name, 3071 "name": name,
3044 "nameOffset": nameOffset, 3072 "nameOffset": nameOffset,
3045 "parameters": parameters, 3073 "parameters": parameters,
3046 "redirectedConstructor": redirectedConstructor, 3074 "redirectedConstructor": redirectedConstructor,
3047 "redirectedConstructorName": redirectedConstructorName, 3075 "redirectedConstructorName": redirectedConstructorName,
3048 "returnType": returnType, 3076 "returnType": returnType,
3049 "typeParameters": typeParameters, 3077 "typeParameters": typeParameters,
3050 "visibleLength": visibleLength, 3078 "visibleLength": visibleLength,
3051 "visibleOffset": visibleOffset, 3079 "visibleOffset": visibleOffset,
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
3572 "isImplicit": isImplicit, 3600 "isImplicit": isImplicit,
3573 "offset": offset, 3601 "offset": offset,
3574 "prefixOffset": prefixOffset, 3602 "prefixOffset": prefixOffset,
3575 "prefixReference": prefixReference, 3603 "prefixReference": prefixReference,
3576 "uri": uri, 3604 "uri": uri,
3577 "uriEnd": uriEnd, 3605 "uriEnd": uriEnd,
3578 "uriOffset": uriOffset, 3606 "uriOffset": uriOffset,
3579 }; 3607 };
3580 } 3608 }
3581 3609
3610 class UnlinkedLabelBuilder extends Object with _UnlinkedLabelMixin implements id l.UnlinkedLabel {
3611 bool _finished = false;
3612
3613 bool _isOnSwitchMember;
3614 bool _isOnSwitchStatement;
3615 String _name;
3616 int _nameOffset;
3617
3618 @override
3619 bool get isOnSwitchMember => _isOnSwitchMember ??= false;
3620
3621 /**
3622 * Return `true` if this label is associated with a `switch` member (`case` or
3623 * `default`).
3624 */
3625 void set isOnSwitchMember(bool _value) {
3626 assert(!_finished);
3627 _isOnSwitchMember = _value;
3628 }
3629
3630 @override
3631 bool get isOnSwitchStatement => _isOnSwitchStatement ??= false;
3632
3633 /**
3634 * Return `true` if this label is associated with a `switch` statement.
3635 */
3636 void set isOnSwitchStatement(bool _value) {
3637 assert(!_finished);
3638 _isOnSwitchStatement = _value;
3639 }
3640
3641 @override
3642 String get name => _name ??= '';
3643
3644 /**
3645 * Name of the label.
3646 */
3647 void set name(String _value) {
3648 assert(!_finished);
3649 _name = _value;
3650 }
3651
3652 @override
3653 int get nameOffset => _nameOffset ??= 0;
3654
3655 /**
3656 * Offset of the label relative to the beginning of the file.
3657 */
3658 void set nameOffset(int _value) {
3659 assert(!_finished);
3660 assert(_value == null || _value >= 0);
3661 _nameOffset = _value;
3662 }
3663
3664 UnlinkedLabelBuilder({bool isOnSwitchMember, bool isOnSwitchStatement, String name, int nameOffset})
3665 : _isOnSwitchMember = isOnSwitchMember,
3666 _isOnSwitchStatement = isOnSwitchStatement,
3667 _name = name,
3668 _nameOffset = nameOffset;
3669
3670 fb.Offset finish(fb.Builder fbBuilder) {
3671 assert(!_finished);
3672 _finished = true;
3673 fb.Offset offset_name;
3674 if (_name != null) {
3675 offset_name = fbBuilder.writeString(_name);
3676 }
3677 fbBuilder.startTable();
3678 if (_isOnSwitchMember == true) {
3679 fbBuilder.addBool(2, true);
3680 }
3681 if (_isOnSwitchStatement == true) {
3682 fbBuilder.addBool(3, true);
3683 }
3684 if (offset_name != null) {
3685 fbBuilder.addOffset(0, offset_name);
3686 }
3687 if (_nameOffset != null && _nameOffset != 0) {
3688 fbBuilder.addUint32(1, _nameOffset);
3689 }
3690 return fbBuilder.endTable();
3691 }
3692 }
3693
3694 class _UnlinkedLabelReader extends fb.TableReader<_UnlinkedLabelImpl> {
3695 const _UnlinkedLabelReader();
3696
3697 @override
3698 _UnlinkedLabelImpl createObject(fb.BufferPointer bp) => new _UnlinkedLabelImpl (bp);
3699 }
3700
3701 class _UnlinkedLabelImpl extends Object with _UnlinkedLabelMixin implements idl. UnlinkedLabel {
3702 final fb.BufferPointer _bp;
3703
3704 _UnlinkedLabelImpl(this._bp);
3705
3706 bool _isOnSwitchMember;
3707 bool _isOnSwitchStatement;
3708 String _name;
3709 int _nameOffset;
3710
3711 @override
3712 bool get isOnSwitchMember {
3713 _isOnSwitchMember ??= const fb.BoolReader().vTableGet(_bp, 2, false);
3714 return _isOnSwitchMember;
3715 }
3716
3717 @override
3718 bool get isOnSwitchStatement {
3719 _isOnSwitchStatement ??= const fb.BoolReader().vTableGet(_bp, 3, false);
3720 return _isOnSwitchStatement;
3721 }
3722
3723 @override
3724 String get name {
3725 _name ??= const fb.StringReader().vTableGet(_bp, 0, '');
3726 return _name;
3727 }
3728
3729 @override
3730 int get nameOffset {
3731 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0);
3732 return _nameOffset;
3733 }
3734 }
3735
3736 abstract class _UnlinkedLabelMixin implements idl.UnlinkedLabel {
3737 @override
3738 Map<String, Object> toMap() => {
3739 "isOnSwitchMember": isOnSwitchMember,
3740 "isOnSwitchStatement": isOnSwitchStatement,
3741 "name": name,
3742 "nameOffset": nameOffset,
3743 };
3744 }
3745
3582 class UnlinkedParamBuilder extends Object with _UnlinkedParamMixin implements id l.UnlinkedParam { 3746 class UnlinkedParamBuilder extends Object with _UnlinkedParamMixin implements id l.UnlinkedParam {
3583 bool _finished = false; 3747 bool _finished = false;
3584 3748
3585 List<UnlinkedConstBuilder> _annotations; 3749 List<UnlinkedConstBuilder> _annotations;
3586 UnlinkedConstBuilder _defaultValue; 3750 UnlinkedConstBuilder _defaultValue;
3587 int _inferredTypeSlot; 3751 int _inferredTypeSlot;
3588 UnlinkedExecutableBuilder _initializer; 3752 UnlinkedExecutableBuilder _initializer;
3589 bool _isFunctionTyped; 3753 bool _isFunctionTyped;
3590 bool _isInitializingFormal; 3754 bool _isInitializingFormal;
3591 idl.UnlinkedParamKind _kind; 3755 idl.UnlinkedParamKind _kind;
(...skipping 2105 matching lines...) Expand 10 before | Expand all | Expand 10 after
5697 "isStatic": isStatic, 5861 "isStatic": isStatic,
5698 "name": name, 5862 "name": name,
5699 "nameOffset": nameOffset, 5863 "nameOffset": nameOffset,
5700 "propagatedTypeSlot": propagatedTypeSlot, 5864 "propagatedTypeSlot": propagatedTypeSlot,
5701 "type": type, 5865 "type": type,
5702 "visibleLength": visibleLength, 5866 "visibleLength": visibleLength,
5703 "visibleOffset": visibleOffset, 5867 "visibleOffset": visibleOffset,
5704 }; 5868 };
5705 } 5869 }
5706 5870
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/element.dart ('k') | pkg/analyzer/lib/src/summary/idl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698