| 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 2415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2426 List<UnlinkedConstructorInitializerBuilder> _constantInitializers; | 2426 List<UnlinkedConstructorInitializerBuilder> _constantInitializers; |
| 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; |
| 2437 List<UnlinkedVariableBuilder> _localVariables; |
| 2436 String _name; | 2438 String _name; |
| 2437 int _nameOffset; | 2439 int _nameOffset; |
| 2438 List<UnlinkedParamBuilder> _parameters; | 2440 List<UnlinkedParamBuilder> _parameters; |
| 2439 EntityRefBuilder _redirectedConstructor; | 2441 EntityRefBuilder _redirectedConstructor; |
| 2440 String _redirectedConstructorName; | 2442 String _redirectedConstructorName; |
| 2441 EntityRefBuilder _returnType; | 2443 EntityRefBuilder _returnType; |
| 2442 List<UnlinkedTypeParamBuilder> _typeParameters; | 2444 List<UnlinkedTypeParamBuilder> _typeParameters; |
| 2445 int _visibleLength; |
| 2446 int _visibleOffset; |
| 2443 | 2447 |
| 2444 @override | 2448 @override |
| 2445 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; | 2449 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; |
| 2446 | 2450 |
| 2447 /** | 2451 /** |
| 2448 * Annotations for this executable. | 2452 * Annotations for this executable. |
| 2449 */ | 2453 */ |
| 2450 void set annotations(List<UnlinkedConstBuilder> _value) { | 2454 void set annotations(List<UnlinkedConstBuilder> _value) { |
| 2451 assert(!_finished); | 2455 assert(!_finished); |
| 2452 _annotations = _value; | 2456 _annotations = _value; |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2568 /** | 2572 /** |
| 2569 * The kind of the executable (function/method, getter, setter, or | 2573 * The kind of the executable (function/method, getter, setter, or |
| 2570 * constructor). | 2574 * constructor). |
| 2571 */ | 2575 */ |
| 2572 void set kind(idl.UnlinkedExecutableKind _value) { | 2576 void set kind(idl.UnlinkedExecutableKind _value) { |
| 2573 assert(!_finished); | 2577 assert(!_finished); |
| 2574 _kind = _value; | 2578 _kind = _value; |
| 2575 } | 2579 } |
| 2576 | 2580 |
| 2577 @override | 2581 @override |
| 2582 List<UnlinkedExecutableBuilder> get localFunctions => _localFunctions ??= <Unl
inkedExecutableBuilder>[]; |
| 2583 |
| 2584 /** |
| 2585 * The list of local functions. |
| 2586 */ |
| 2587 void set localFunctions(List<UnlinkedExecutableBuilder> _value) { |
| 2588 assert(!_finished); |
| 2589 _localFunctions = _value; |
| 2590 } |
| 2591 |
| 2592 @override |
| 2593 List<UnlinkedVariableBuilder> get localVariables => _localVariables ??= <Unlin
kedVariableBuilder>[]; |
| 2594 |
| 2595 /** |
| 2596 * The list of local variables. |
| 2597 */ |
| 2598 void set localVariables(List<UnlinkedVariableBuilder> _value) { |
| 2599 assert(!_finished); |
| 2600 _localVariables = _value; |
| 2601 } |
| 2602 |
| 2603 @override |
| 2578 String get name => _name ??= ''; | 2604 String get name => _name ??= ''; |
| 2579 | 2605 |
| 2580 /** | 2606 /** |
| 2581 * Name of the executable. For setters, this includes the trailing "=". For | 2607 * Name of the executable. For setters, this includes the trailing "=". For |
| 2582 * named constructors, this excludes the class name and excludes the ".". | 2608 * named constructors, this excludes the class name and excludes the ".". |
| 2583 * For unnamed constructors, this is the empty string. | 2609 * For unnamed constructors, this is the empty string. |
| 2584 */ | 2610 */ |
| 2585 void set name(String _value) { | 2611 void set name(String _value) { |
| 2586 assert(!_finished); | 2612 assert(!_finished); |
| 2587 _name = _value; | 2613 _name = _value; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2657 | 2683 |
| 2658 /** | 2684 /** |
| 2659 * Type parameters of the executable, if any. Empty if support for generic | 2685 * Type parameters of the executable, if any. Empty if support for generic |
| 2660 * method syntax is disabled. | 2686 * method syntax is disabled. |
| 2661 */ | 2687 */ |
| 2662 void set typeParameters(List<UnlinkedTypeParamBuilder> _value) { | 2688 void set typeParameters(List<UnlinkedTypeParamBuilder> _value) { |
| 2663 assert(!_finished); | 2689 assert(!_finished); |
| 2664 _typeParameters = _value; | 2690 _typeParameters = _value; |
| 2665 } | 2691 } |
| 2666 | 2692 |
| 2667 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, String name, int nameOffset, List<Unl
inkedParamBuilder> parameters, EntityRefBuilder redirectedConstructor, String re
directedConstructorName, EntityRefBuilder returnType, List<UnlinkedTypeParamBuil
der> typeParameters}) | 2693 @override |
| 2694 int get visibleLength => _visibleLength ??= 0; |
| 2695 |
| 2696 /** |
| 2697 * If a local function, the length of the visible range; zero otherwise. |
| 2698 */ |
| 2699 void set visibleLength(int _value) { |
| 2700 assert(!_finished); |
| 2701 assert(_value == null || _value >= 0); |
| 2702 _visibleLength = _value; |
| 2703 } |
| 2704 |
| 2705 @override |
| 2706 int get visibleOffset => _visibleOffset ??= 0; |
| 2707 |
| 2708 /** |
| 2709 * If a local function, the beginning of the visible range; zero otherwise. |
| 2710 */ |
| 2711 void set visibleOffset(int _value) { |
| 2712 assert(!_finished); |
| 2713 assert(_value == null || _value >= 0); |
| 2714 _visibleOffset = _value; |
| 2715 } |
| 2716 |
| 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}) |
| 2668 : _annotations = annotations, | 2718 : _annotations = annotations, |
| 2669 _constantInitializers = constantInitializers, | 2719 _constantInitializers = constantInitializers, |
| 2670 _documentationComment = documentationComment, | 2720 _documentationComment = documentationComment, |
| 2671 _inferredReturnTypeSlot = inferredReturnTypeSlot, | 2721 _inferredReturnTypeSlot = inferredReturnTypeSlot, |
| 2672 _isAbstract = isAbstract, | 2722 _isAbstract = isAbstract, |
| 2673 _isConst = isConst, | 2723 _isConst = isConst, |
| 2674 _isExternal = isExternal, | 2724 _isExternal = isExternal, |
| 2675 _isFactory = isFactory, | 2725 _isFactory = isFactory, |
| 2676 _isRedirectedConstructor = isRedirectedConstructor, | 2726 _isRedirectedConstructor = isRedirectedConstructor, |
| 2677 _isStatic = isStatic, | 2727 _isStatic = isStatic, |
| 2678 _kind = kind, | 2728 _kind = kind, |
| 2729 _localFunctions = localFunctions, |
| 2730 _localVariables = localVariables, |
| 2679 _name = name, | 2731 _name = name, |
| 2680 _nameOffset = nameOffset, | 2732 _nameOffset = nameOffset, |
| 2681 _parameters = parameters, | 2733 _parameters = parameters, |
| 2682 _redirectedConstructor = redirectedConstructor, | 2734 _redirectedConstructor = redirectedConstructor, |
| 2683 _redirectedConstructorName = redirectedConstructorName, | 2735 _redirectedConstructorName = redirectedConstructorName, |
| 2684 _returnType = returnType, | 2736 _returnType = returnType, |
| 2685 _typeParameters = typeParameters; | 2737 _typeParameters = typeParameters, |
| 2738 _visibleLength = visibleLength, |
| 2739 _visibleOffset = visibleOffset; |
| 2686 | 2740 |
| 2687 fb.Offset finish(fb.Builder fbBuilder) { | 2741 fb.Offset finish(fb.Builder fbBuilder) { |
| 2688 assert(!_finished); | 2742 assert(!_finished); |
| 2689 _finished = true; | 2743 _finished = true; |
| 2690 fb.Offset offset_annotations; | 2744 fb.Offset offset_annotations; |
| 2691 fb.Offset offset_constantInitializers; | 2745 fb.Offset offset_constantInitializers; |
| 2692 fb.Offset offset_documentationComment; | 2746 fb.Offset offset_documentationComment; |
| 2747 fb.Offset offset_localFunctions; |
| 2748 fb.Offset offset_localVariables; |
| 2693 fb.Offset offset_name; | 2749 fb.Offset offset_name; |
| 2694 fb.Offset offset_parameters; | 2750 fb.Offset offset_parameters; |
| 2695 fb.Offset offset_redirectedConstructor; | 2751 fb.Offset offset_redirectedConstructor; |
| 2696 fb.Offset offset_redirectedConstructorName; | 2752 fb.Offset offset_redirectedConstructorName; |
| 2697 fb.Offset offset_returnType; | 2753 fb.Offset offset_returnType; |
| 2698 fb.Offset offset_typeParameters; | 2754 fb.Offset offset_typeParameters; |
| 2699 if (!(_annotations == null || _annotations.isEmpty)) { | 2755 if (!(_annotations == null || _annotations.isEmpty)) { |
| 2700 offset_annotations = fbBuilder.writeList(_annotations.map((b) => b.finish(
fbBuilder)).toList()); | 2756 offset_annotations = fbBuilder.writeList(_annotations.map((b) => b.finish(
fbBuilder)).toList()); |
| 2701 } | 2757 } |
| 2702 if (!(_constantInitializers == null || _constantInitializers.isEmpty)) { | 2758 if (!(_constantInitializers == null || _constantInitializers.isEmpty)) { |
| 2703 offset_constantInitializers = fbBuilder.writeList(_constantInitializers.ma
p((b) => b.finish(fbBuilder)).toList()); | 2759 offset_constantInitializers = fbBuilder.writeList(_constantInitializers.ma
p((b) => b.finish(fbBuilder)).toList()); |
| 2704 } | 2760 } |
| 2705 if (_documentationComment != null) { | 2761 if (_documentationComment != null) { |
| 2706 offset_documentationComment = _documentationComment.finish(fbBuilder); | 2762 offset_documentationComment = _documentationComment.finish(fbBuilder); |
| 2707 } | 2763 } |
| 2764 if (!(_localFunctions == null || _localFunctions.isEmpty)) { |
| 2765 offset_localFunctions = fbBuilder.writeList(_localFunctions.map((b) => b.f
inish(fbBuilder)).toList()); |
| 2766 } |
| 2767 if (!(_localVariables == null || _localVariables.isEmpty)) { |
| 2768 offset_localVariables = fbBuilder.writeList(_localVariables.map((b) => b.f
inish(fbBuilder)).toList()); |
| 2769 } |
| 2708 if (_name != null) { | 2770 if (_name != null) { |
| 2709 offset_name = fbBuilder.writeString(_name); | 2771 offset_name = fbBuilder.writeString(_name); |
| 2710 } | 2772 } |
| 2711 if (!(_parameters == null || _parameters.isEmpty)) { | 2773 if (!(_parameters == null || _parameters.isEmpty)) { |
| 2712 offset_parameters = fbBuilder.writeList(_parameters.map((b) => b.finish(fb
Builder)).toList()); | 2774 offset_parameters = fbBuilder.writeList(_parameters.map((b) => b.finish(fb
Builder)).toList()); |
| 2713 } | 2775 } |
| 2714 if (_redirectedConstructor != null) { | 2776 if (_redirectedConstructor != null) { |
| 2715 offset_redirectedConstructor = _redirectedConstructor.finish(fbBuilder); | 2777 offset_redirectedConstructor = _redirectedConstructor.finish(fbBuilder); |
| 2716 } | 2778 } |
| 2717 if (_redirectedConstructorName != null) { | 2779 if (_redirectedConstructorName != null) { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2750 } | 2812 } |
| 2751 if (_isRedirectedConstructor == true) { | 2813 if (_isRedirectedConstructor == true) { |
| 2752 fbBuilder.addBool(8, true); | 2814 fbBuilder.addBool(8, true); |
| 2753 } | 2815 } |
| 2754 if (_isStatic == true) { | 2816 if (_isStatic == true) { |
| 2755 fbBuilder.addBool(9, true); | 2817 fbBuilder.addBool(9, true); |
| 2756 } | 2818 } |
| 2757 if (_kind != null && _kind != idl.UnlinkedExecutableKind.functionOrMethod) { | 2819 if (_kind != null && _kind != idl.UnlinkedExecutableKind.functionOrMethod) { |
| 2758 fbBuilder.addUint32(10, _kind.index); | 2820 fbBuilder.addUint32(10, _kind.index); |
| 2759 } | 2821 } |
| 2822 if (offset_localFunctions != null) { |
| 2823 fbBuilder.addOffset(11, offset_localFunctions); |
| 2824 } |
| 2825 if (offset_localVariables != null) { |
| 2826 fbBuilder.addOffset(12, offset_localVariables); |
| 2827 } |
| 2760 if (offset_name != null) { | 2828 if (offset_name != null) { |
| 2761 fbBuilder.addOffset(11, offset_name); | 2829 fbBuilder.addOffset(13, offset_name); |
| 2762 } | 2830 } |
| 2763 if (_nameOffset != null && _nameOffset != 0) { | 2831 if (_nameOffset != null && _nameOffset != 0) { |
| 2764 fbBuilder.addUint32(12, _nameOffset); | 2832 fbBuilder.addUint32(14, _nameOffset); |
| 2765 } | 2833 } |
| 2766 if (offset_parameters != null) { | 2834 if (offset_parameters != null) { |
| 2767 fbBuilder.addOffset(13, offset_parameters); | 2835 fbBuilder.addOffset(15, offset_parameters); |
| 2768 } | 2836 } |
| 2769 if (offset_redirectedConstructor != null) { | 2837 if (offset_redirectedConstructor != null) { |
| 2770 fbBuilder.addOffset(14, offset_redirectedConstructor); | 2838 fbBuilder.addOffset(16, offset_redirectedConstructor); |
| 2771 } | 2839 } |
| 2772 if (offset_redirectedConstructorName != null) { | 2840 if (offset_redirectedConstructorName != null) { |
| 2773 fbBuilder.addOffset(15, offset_redirectedConstructorName); | 2841 fbBuilder.addOffset(17, offset_redirectedConstructorName); |
| 2774 } | 2842 } |
| 2775 if (offset_returnType != null) { | 2843 if (offset_returnType != null) { |
| 2776 fbBuilder.addOffset(16, offset_returnType); | 2844 fbBuilder.addOffset(18, offset_returnType); |
| 2777 } | 2845 } |
| 2778 if (offset_typeParameters != null) { | 2846 if (offset_typeParameters != null) { |
| 2779 fbBuilder.addOffset(17, offset_typeParameters); | 2847 fbBuilder.addOffset(19, offset_typeParameters); |
| 2848 } |
| 2849 if (_visibleLength != null && _visibleLength != 0) { |
| 2850 fbBuilder.addUint32(20, _visibleLength); |
| 2851 } |
| 2852 if (_visibleOffset != null && _visibleOffset != 0) { |
| 2853 fbBuilder.addUint32(21, _visibleOffset); |
| 2780 } | 2854 } |
| 2781 return fbBuilder.endTable(); | 2855 return fbBuilder.endTable(); |
| 2782 } | 2856 } |
| 2783 } | 2857 } |
| 2784 | 2858 |
| 2785 class _UnlinkedExecutableReader extends fb.TableReader<_UnlinkedExecutableImpl>
{ | 2859 class _UnlinkedExecutableReader extends fb.TableReader<_UnlinkedExecutableImpl>
{ |
| 2786 const _UnlinkedExecutableReader(); | 2860 const _UnlinkedExecutableReader(); |
| 2787 | 2861 |
| 2788 @override | 2862 @override |
| 2789 _UnlinkedExecutableImpl createObject(fb.BufferPointer bp) => new _UnlinkedExec
utableImpl(bp); | 2863 _UnlinkedExecutableImpl createObject(fb.BufferPointer bp) => new _UnlinkedExec
utableImpl(bp); |
| 2790 } | 2864 } |
| 2791 | 2865 |
| 2792 class _UnlinkedExecutableImpl extends Object with _UnlinkedExecutableMixin imple
ments idl.UnlinkedExecutable { | 2866 class _UnlinkedExecutableImpl extends Object with _UnlinkedExecutableMixin imple
ments idl.UnlinkedExecutable { |
| 2793 final fb.BufferPointer _bp; | 2867 final fb.BufferPointer _bp; |
| 2794 | 2868 |
| 2795 _UnlinkedExecutableImpl(this._bp); | 2869 _UnlinkedExecutableImpl(this._bp); |
| 2796 | 2870 |
| 2797 List<idl.UnlinkedConst> _annotations; | 2871 List<idl.UnlinkedConst> _annotations; |
| 2798 List<idl.UnlinkedConstructorInitializer> _constantInitializers; | 2872 List<idl.UnlinkedConstructorInitializer> _constantInitializers; |
| 2799 idl.UnlinkedDocumentationComment _documentationComment; | 2873 idl.UnlinkedDocumentationComment _documentationComment; |
| 2800 int _inferredReturnTypeSlot; | 2874 int _inferredReturnTypeSlot; |
| 2801 bool _isAbstract; | 2875 bool _isAbstract; |
| 2802 bool _isConst; | 2876 bool _isConst; |
| 2803 bool _isExternal; | 2877 bool _isExternal; |
| 2804 bool _isFactory; | 2878 bool _isFactory; |
| 2805 bool _isRedirectedConstructor; | 2879 bool _isRedirectedConstructor; |
| 2806 bool _isStatic; | 2880 bool _isStatic; |
| 2807 idl.UnlinkedExecutableKind _kind; | 2881 idl.UnlinkedExecutableKind _kind; |
| 2882 List<idl.UnlinkedExecutable> _localFunctions; |
| 2883 List<idl.UnlinkedVariable> _localVariables; |
| 2808 String _name; | 2884 String _name; |
| 2809 int _nameOffset; | 2885 int _nameOffset; |
| 2810 List<idl.UnlinkedParam> _parameters; | 2886 List<idl.UnlinkedParam> _parameters; |
| 2811 idl.EntityRef _redirectedConstructor; | 2887 idl.EntityRef _redirectedConstructor; |
| 2812 String _redirectedConstructorName; | 2888 String _redirectedConstructorName; |
| 2813 idl.EntityRef _returnType; | 2889 idl.EntityRef _returnType; |
| 2814 List<idl.UnlinkedTypeParam> _typeParameters; | 2890 List<idl.UnlinkedTypeParam> _typeParameters; |
| 2891 int _visibleLength; |
| 2892 int _visibleOffset; |
| 2815 | 2893 |
| 2816 @override | 2894 @override |
| 2817 List<idl.UnlinkedConst> get annotations { | 2895 List<idl.UnlinkedConst> get annotations { |
| 2818 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bp, 0, const <idl.UnlinkedConst>[]); | 2896 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bp, 0, const <idl.UnlinkedConst>[]); |
| 2819 return _annotations; | 2897 return _annotations; |
| 2820 } | 2898 } |
| 2821 | 2899 |
| 2822 @override | 2900 @override |
| 2823 List<idl.UnlinkedConstructorInitializer> get constantInitializers { | 2901 List<idl.UnlinkedConstructorInitializer> get constantInitializers { |
| 2824 _constantInitializers ??= const fb.ListReader<idl.UnlinkedConstructorInitial
izer>(const _UnlinkedConstructorInitializerReader()).vTableGet(_bp, 1, const <id
l.UnlinkedConstructorInitializer>[]); | 2902 _constantInitializers ??= const fb.ListReader<idl.UnlinkedConstructorInitial
izer>(const _UnlinkedConstructorInitializerReader()).vTableGet(_bp, 1, const <id
l.UnlinkedConstructorInitializer>[]); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2873 return _isStatic; | 2951 return _isStatic; |
| 2874 } | 2952 } |
| 2875 | 2953 |
| 2876 @override | 2954 @override |
| 2877 idl.UnlinkedExecutableKind get kind { | 2955 idl.UnlinkedExecutableKind get kind { |
| 2878 _kind ??= const _UnlinkedExecutableKindReader().vTableGet(_bp, 10, idl.Unlin
kedExecutableKind.functionOrMethod); | 2956 _kind ??= const _UnlinkedExecutableKindReader().vTableGet(_bp, 10, idl.Unlin
kedExecutableKind.functionOrMethod); |
| 2879 return _kind; | 2957 return _kind; |
| 2880 } | 2958 } |
| 2881 | 2959 |
| 2882 @override | 2960 @override |
| 2961 List<idl.UnlinkedExecutable> get localFunctions { |
| 2962 _localFunctions ??= const fb.ListReader<idl.UnlinkedExecutable>(const _Unlin
kedExecutableReader()).vTableGet(_bp, 11, const <idl.UnlinkedExecutable>[]); |
| 2963 return _localFunctions; |
| 2964 } |
| 2965 |
| 2966 @override |
| 2967 List<idl.UnlinkedVariable> get localVariables { |
| 2968 _localVariables ??= const fb.ListReader<idl.UnlinkedVariable>(const _Unlinke
dVariableReader()).vTableGet(_bp, 12, const <idl.UnlinkedVariable>[]); |
| 2969 return _localVariables; |
| 2970 } |
| 2971 |
| 2972 @override |
| 2883 String get name { | 2973 String get name { |
| 2884 _name ??= const fb.StringReader().vTableGet(_bp, 11, ''); | 2974 _name ??= const fb.StringReader().vTableGet(_bp, 13, ''); |
| 2885 return _name; | 2975 return _name; |
| 2886 } | 2976 } |
| 2887 | 2977 |
| 2888 @override | 2978 @override |
| 2889 int get nameOffset { | 2979 int get nameOffset { |
| 2890 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 12, 0); | 2980 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 14, 0); |
| 2891 return _nameOffset; | 2981 return _nameOffset; |
| 2892 } | 2982 } |
| 2893 | 2983 |
| 2894 @override | 2984 @override |
| 2895 List<idl.UnlinkedParam> get parameters { | 2985 List<idl.UnlinkedParam> get parameters { |
| 2896 _parameters ??= const fb.ListReader<idl.UnlinkedParam>(const _UnlinkedParamR
eader()).vTableGet(_bp, 13, const <idl.UnlinkedParam>[]); | 2986 _parameters ??= const fb.ListReader<idl.UnlinkedParam>(const _UnlinkedParamR
eader()).vTableGet(_bp, 15, const <idl.UnlinkedParam>[]); |
| 2897 return _parameters; | 2987 return _parameters; |
| 2898 } | 2988 } |
| 2899 | 2989 |
| 2900 @override | 2990 @override |
| 2901 idl.EntityRef get redirectedConstructor { | 2991 idl.EntityRef get redirectedConstructor { |
| 2902 _redirectedConstructor ??= const _EntityRefReader().vTableGet(_bp, 14, null)
; | 2992 _redirectedConstructor ??= const _EntityRefReader().vTableGet(_bp, 16, null)
; |
| 2903 return _redirectedConstructor; | 2993 return _redirectedConstructor; |
| 2904 } | 2994 } |
| 2905 | 2995 |
| 2906 @override | 2996 @override |
| 2907 String get redirectedConstructorName { | 2997 String get redirectedConstructorName { |
| 2908 _redirectedConstructorName ??= const fb.StringReader().vTableGet(_bp, 15, ''
); | 2998 _redirectedConstructorName ??= const fb.StringReader().vTableGet(_bp, 17, ''
); |
| 2909 return _redirectedConstructorName; | 2999 return _redirectedConstructorName; |
| 2910 } | 3000 } |
| 2911 | 3001 |
| 2912 @override | 3002 @override |
| 2913 idl.EntityRef get returnType { | 3003 idl.EntityRef get returnType { |
| 2914 _returnType ??= const _EntityRefReader().vTableGet(_bp, 16, null); | 3004 _returnType ??= const _EntityRefReader().vTableGet(_bp, 18, null); |
| 2915 return _returnType; | 3005 return _returnType; |
| 2916 } | 3006 } |
| 2917 | 3007 |
| 2918 @override | 3008 @override |
| 2919 List<idl.UnlinkedTypeParam> get typeParameters { | 3009 List<idl.UnlinkedTypeParam> get typeParameters { |
| 2920 _typeParameters ??= const fb.ListReader<idl.UnlinkedTypeParam>(const _Unlink
edTypeParamReader()).vTableGet(_bp, 17, const <idl.UnlinkedTypeParam>[]); | 3010 _typeParameters ??= const fb.ListReader<idl.UnlinkedTypeParam>(const _Unlink
edTypeParamReader()).vTableGet(_bp, 19, const <idl.UnlinkedTypeParam>[]); |
| 2921 return _typeParameters; | 3011 return _typeParameters; |
| 2922 } | 3012 } |
| 3013 |
| 3014 @override |
| 3015 int get visibleLength { |
| 3016 _visibleLength ??= const fb.Uint32Reader().vTableGet(_bp, 20, 0); |
| 3017 return _visibleLength; |
| 3018 } |
| 3019 |
| 3020 @override |
| 3021 int get visibleOffset { |
| 3022 _visibleOffset ??= const fb.Uint32Reader().vTableGet(_bp, 21, 0); |
| 3023 return _visibleOffset; |
| 3024 } |
| 2923 } | 3025 } |
| 2924 | 3026 |
| 2925 abstract class _UnlinkedExecutableMixin implements idl.UnlinkedExecutable { | 3027 abstract class _UnlinkedExecutableMixin implements idl.UnlinkedExecutable { |
| 2926 @override | 3028 @override |
| 2927 Map<String, Object> toMap() => { | 3029 Map<String, Object> toMap() => { |
| 2928 "annotations": annotations, | 3030 "annotations": annotations, |
| 2929 "constantInitializers": constantInitializers, | 3031 "constantInitializers": constantInitializers, |
| 2930 "documentationComment": documentationComment, | 3032 "documentationComment": documentationComment, |
| 2931 "inferredReturnTypeSlot": inferredReturnTypeSlot, | 3033 "inferredReturnTypeSlot": inferredReturnTypeSlot, |
| 2932 "isAbstract": isAbstract, | 3034 "isAbstract": isAbstract, |
| 2933 "isConst": isConst, | 3035 "isConst": isConst, |
| 2934 "isExternal": isExternal, | 3036 "isExternal": isExternal, |
| 2935 "isFactory": isFactory, | 3037 "isFactory": isFactory, |
| 2936 "isRedirectedConstructor": isRedirectedConstructor, | 3038 "isRedirectedConstructor": isRedirectedConstructor, |
| 2937 "isStatic": isStatic, | 3039 "isStatic": isStatic, |
| 2938 "kind": kind, | 3040 "kind": kind, |
| 3041 "localFunctions": localFunctions, |
| 3042 "localVariables": localVariables, |
| 2939 "name": name, | 3043 "name": name, |
| 2940 "nameOffset": nameOffset, | 3044 "nameOffset": nameOffset, |
| 2941 "parameters": parameters, | 3045 "parameters": parameters, |
| 2942 "redirectedConstructor": redirectedConstructor, | 3046 "redirectedConstructor": redirectedConstructor, |
| 2943 "redirectedConstructorName": redirectedConstructorName, | 3047 "redirectedConstructorName": redirectedConstructorName, |
| 2944 "returnType": returnType, | 3048 "returnType": returnType, |
| 2945 "typeParameters": typeParameters, | 3049 "typeParameters": typeParameters, |
| 3050 "visibleLength": visibleLength, |
| 3051 "visibleOffset": visibleOffset, |
| 2946 }; | 3052 }; |
| 2947 } | 3053 } |
| 2948 | 3054 |
| 2949 class UnlinkedExportNonPublicBuilder extends Object with _UnlinkedExportNonPubli
cMixin implements idl.UnlinkedExportNonPublic { | 3055 class UnlinkedExportNonPublicBuilder extends Object with _UnlinkedExportNonPubli
cMixin implements idl.UnlinkedExportNonPublic { |
| 2950 bool _finished = false; | 3056 bool _finished = false; |
| 2951 | 3057 |
| 2952 List<UnlinkedConstBuilder> _annotations; | 3058 List<UnlinkedConstBuilder> _annotations; |
| 2953 int _offset; | 3059 int _offset; |
| 2954 int _uriEnd; | 3060 int _uriEnd; |
| 2955 int _uriOffset; | 3061 int _uriOffset; |
| (...skipping 2155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5111 UnlinkedConstBuilder _constExpr; | 5217 UnlinkedConstBuilder _constExpr; |
| 5112 UnlinkedDocumentationCommentBuilder _documentationComment; | 5218 UnlinkedDocumentationCommentBuilder _documentationComment; |
| 5113 int _inferredTypeSlot; | 5219 int _inferredTypeSlot; |
| 5114 bool _isConst; | 5220 bool _isConst; |
| 5115 bool _isFinal; | 5221 bool _isFinal; |
| 5116 bool _isStatic; | 5222 bool _isStatic; |
| 5117 String _name; | 5223 String _name; |
| 5118 int _nameOffset; | 5224 int _nameOffset; |
| 5119 int _propagatedTypeSlot; | 5225 int _propagatedTypeSlot; |
| 5120 EntityRefBuilder _type; | 5226 EntityRefBuilder _type; |
| 5227 int _visibleLength; |
| 5228 int _visibleOffset; |
| 5121 | 5229 |
| 5122 @override | 5230 @override |
| 5123 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; | 5231 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; |
| 5124 | 5232 |
| 5125 /** | 5233 /** |
| 5126 * Annotations for this variable. | 5234 * Annotations for this variable. |
| 5127 */ | 5235 */ |
| 5128 void set annotations(List<UnlinkedConstBuilder> _value) { | 5236 void set annotations(List<UnlinkedConstBuilder> _value) { |
| 5129 assert(!_finished); | 5237 assert(!_finished); |
| 5130 _annotations = _value; | 5238 _annotations = _value; |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5251 EntityRefBuilder get type => _type; | 5359 EntityRefBuilder get type => _type; |
| 5252 | 5360 |
| 5253 /** | 5361 /** |
| 5254 * Declared type of the variable. Absent if the type is implicit. | 5362 * Declared type of the variable. Absent if the type is implicit. |
| 5255 */ | 5363 */ |
| 5256 void set type(EntityRefBuilder _value) { | 5364 void set type(EntityRefBuilder _value) { |
| 5257 assert(!_finished); | 5365 assert(!_finished); |
| 5258 _type = _value; | 5366 _type = _value; |
| 5259 } | 5367 } |
| 5260 | 5368 |
| 5261 UnlinkedVariableBuilder({List<UnlinkedConstBuilder> annotations, UnlinkedConst
Builder constExpr, UnlinkedDocumentationCommentBuilder documentationComment, int
inferredTypeSlot, bool isConst, bool isFinal, bool isStatic, String name, int n
ameOffset, int propagatedTypeSlot, EntityRefBuilder type}) | 5369 @override |
| 5370 int get visibleLength => _visibleLength ??= 0; |
| 5371 |
| 5372 /** |
| 5373 * If a local variable, the length of the visible range; zero otherwise. |
| 5374 */ |
| 5375 void set visibleLength(int _value) { |
| 5376 assert(!_finished); |
| 5377 assert(_value == null || _value >= 0); |
| 5378 _visibleLength = _value; |
| 5379 } |
| 5380 |
| 5381 @override |
| 5382 int get visibleOffset => _visibleOffset ??= 0; |
| 5383 |
| 5384 /** |
| 5385 * If a local variable, the beginning of the visible range; zero otherwise. |
| 5386 */ |
| 5387 void set visibleOffset(int _value) { |
| 5388 assert(!_finished); |
| 5389 assert(_value == null || _value >= 0); |
| 5390 _visibleOffset = _value; |
| 5391 } |
| 5392 |
| 5393 UnlinkedVariableBuilder({List<UnlinkedConstBuilder> annotations, UnlinkedConst
Builder constExpr, UnlinkedDocumentationCommentBuilder documentationComment, int
inferredTypeSlot, bool isConst, bool isFinal, bool isStatic, String name, int n
ameOffset, int propagatedTypeSlot, EntityRefBuilder type, int visibleLength, int
visibleOffset}) |
| 5262 : _annotations = annotations, | 5394 : _annotations = annotations, |
| 5263 _constExpr = constExpr, | 5395 _constExpr = constExpr, |
| 5264 _documentationComment = documentationComment, | 5396 _documentationComment = documentationComment, |
| 5265 _inferredTypeSlot = inferredTypeSlot, | 5397 _inferredTypeSlot = inferredTypeSlot, |
| 5266 _isConst = isConst, | 5398 _isConst = isConst, |
| 5267 _isFinal = isFinal, | 5399 _isFinal = isFinal, |
| 5268 _isStatic = isStatic, | 5400 _isStatic = isStatic, |
| 5269 _name = name, | 5401 _name = name, |
| 5270 _nameOffset = nameOffset, | 5402 _nameOffset = nameOffset, |
| 5271 _propagatedTypeSlot = propagatedTypeSlot, | 5403 _propagatedTypeSlot = propagatedTypeSlot, |
| 5272 _type = type; | 5404 _type = type, |
| 5405 _visibleLength = visibleLength, |
| 5406 _visibleOffset = visibleOffset; |
| 5273 | 5407 |
| 5274 fb.Offset finish(fb.Builder fbBuilder) { | 5408 fb.Offset finish(fb.Builder fbBuilder) { |
| 5275 assert(!_finished); | 5409 assert(!_finished); |
| 5276 _finished = true; | 5410 _finished = true; |
| 5277 fb.Offset offset_annotations; | 5411 fb.Offset offset_annotations; |
| 5278 fb.Offset offset_constExpr; | 5412 fb.Offset offset_constExpr; |
| 5279 fb.Offset offset_documentationComment; | 5413 fb.Offset offset_documentationComment; |
| 5280 fb.Offset offset_name; | 5414 fb.Offset offset_name; |
| 5281 fb.Offset offset_type; | 5415 fb.Offset offset_type; |
| 5282 if (!(_annotations == null || _annotations.isEmpty)) { | 5416 if (!(_annotations == null || _annotations.isEmpty)) { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5321 } | 5455 } |
| 5322 if (_nameOffset != null && _nameOffset != 0) { | 5456 if (_nameOffset != null && _nameOffset != 0) { |
| 5323 fbBuilder.addUint32(8, _nameOffset); | 5457 fbBuilder.addUint32(8, _nameOffset); |
| 5324 } | 5458 } |
| 5325 if (_propagatedTypeSlot != null && _propagatedTypeSlot != 0) { | 5459 if (_propagatedTypeSlot != null && _propagatedTypeSlot != 0) { |
| 5326 fbBuilder.addUint32(9, _propagatedTypeSlot); | 5460 fbBuilder.addUint32(9, _propagatedTypeSlot); |
| 5327 } | 5461 } |
| 5328 if (offset_type != null) { | 5462 if (offset_type != null) { |
| 5329 fbBuilder.addOffset(10, offset_type); | 5463 fbBuilder.addOffset(10, offset_type); |
| 5330 } | 5464 } |
| 5465 if (_visibleLength != null && _visibleLength != 0) { |
| 5466 fbBuilder.addUint32(11, _visibleLength); |
| 5467 } |
| 5468 if (_visibleOffset != null && _visibleOffset != 0) { |
| 5469 fbBuilder.addUint32(12, _visibleOffset); |
| 5470 } |
| 5331 return fbBuilder.endTable(); | 5471 return fbBuilder.endTable(); |
| 5332 } | 5472 } |
| 5333 } | 5473 } |
| 5334 | 5474 |
| 5335 class _UnlinkedVariableReader extends fb.TableReader<_UnlinkedVariableImpl> { | 5475 class _UnlinkedVariableReader extends fb.TableReader<_UnlinkedVariableImpl> { |
| 5336 const _UnlinkedVariableReader(); | 5476 const _UnlinkedVariableReader(); |
| 5337 | 5477 |
| 5338 @override | 5478 @override |
| 5339 _UnlinkedVariableImpl createObject(fb.BufferPointer bp) => new _UnlinkedVariab
leImpl(bp); | 5479 _UnlinkedVariableImpl createObject(fb.BufferPointer bp) => new _UnlinkedVariab
leImpl(bp); |
| 5340 } | 5480 } |
| 5341 | 5481 |
| 5342 class _UnlinkedVariableImpl extends Object with _UnlinkedVariableMixin implement
s idl.UnlinkedVariable { | 5482 class _UnlinkedVariableImpl extends Object with _UnlinkedVariableMixin implement
s idl.UnlinkedVariable { |
| 5343 final fb.BufferPointer _bp; | 5483 final fb.BufferPointer _bp; |
| 5344 | 5484 |
| 5345 _UnlinkedVariableImpl(this._bp); | 5485 _UnlinkedVariableImpl(this._bp); |
| 5346 | 5486 |
| 5347 List<idl.UnlinkedConst> _annotations; | 5487 List<idl.UnlinkedConst> _annotations; |
| 5348 idl.UnlinkedConst _constExpr; | 5488 idl.UnlinkedConst _constExpr; |
| 5349 idl.UnlinkedDocumentationComment _documentationComment; | 5489 idl.UnlinkedDocumentationComment _documentationComment; |
| 5350 int _inferredTypeSlot; | 5490 int _inferredTypeSlot; |
| 5351 bool _isConst; | 5491 bool _isConst; |
| 5352 bool _isFinal; | 5492 bool _isFinal; |
| 5353 bool _isStatic; | 5493 bool _isStatic; |
| 5354 String _name; | 5494 String _name; |
| 5355 int _nameOffset; | 5495 int _nameOffset; |
| 5356 int _propagatedTypeSlot; | 5496 int _propagatedTypeSlot; |
| 5357 idl.EntityRef _type; | 5497 idl.EntityRef _type; |
| 5498 int _visibleLength; |
| 5499 int _visibleOffset; |
| 5358 | 5500 |
| 5359 @override | 5501 @override |
| 5360 List<idl.UnlinkedConst> get annotations { | 5502 List<idl.UnlinkedConst> get annotations { |
| 5361 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bp, 0, const <idl.UnlinkedConst>[]); | 5503 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bp, 0, const <idl.UnlinkedConst>[]); |
| 5362 return _annotations; | 5504 return _annotations; |
| 5363 } | 5505 } |
| 5364 | 5506 |
| 5365 @override | 5507 @override |
| 5366 idl.UnlinkedConst get constExpr { | 5508 idl.UnlinkedConst get constExpr { |
| 5367 _constExpr ??= const _UnlinkedConstReader().vTableGet(_bp, 1, null); | 5509 _constExpr ??= const _UnlinkedConstReader().vTableGet(_bp, 1, null); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5414 int get propagatedTypeSlot { | 5556 int get propagatedTypeSlot { |
| 5415 _propagatedTypeSlot ??= const fb.Uint32Reader().vTableGet(_bp, 9, 0); | 5557 _propagatedTypeSlot ??= const fb.Uint32Reader().vTableGet(_bp, 9, 0); |
| 5416 return _propagatedTypeSlot; | 5558 return _propagatedTypeSlot; |
| 5417 } | 5559 } |
| 5418 | 5560 |
| 5419 @override | 5561 @override |
| 5420 idl.EntityRef get type { | 5562 idl.EntityRef get type { |
| 5421 _type ??= const _EntityRefReader().vTableGet(_bp, 10, null); | 5563 _type ??= const _EntityRefReader().vTableGet(_bp, 10, null); |
| 5422 return _type; | 5564 return _type; |
| 5423 } | 5565 } |
| 5566 |
| 5567 @override |
| 5568 int get visibleLength { |
| 5569 _visibleLength ??= const fb.Uint32Reader().vTableGet(_bp, 11, 0); |
| 5570 return _visibleLength; |
| 5571 } |
| 5572 |
| 5573 @override |
| 5574 int get visibleOffset { |
| 5575 _visibleOffset ??= const fb.Uint32Reader().vTableGet(_bp, 12, 0); |
| 5576 return _visibleOffset; |
| 5577 } |
| 5424 } | 5578 } |
| 5425 | 5579 |
| 5426 abstract class _UnlinkedVariableMixin implements idl.UnlinkedVariable { | 5580 abstract class _UnlinkedVariableMixin implements idl.UnlinkedVariable { |
| 5427 @override | 5581 @override |
| 5428 Map<String, Object> toMap() => { | 5582 Map<String, Object> toMap() => { |
| 5429 "annotations": annotations, | 5583 "annotations": annotations, |
| 5430 "constExpr": constExpr, | 5584 "constExpr": constExpr, |
| 5431 "documentationComment": documentationComment, | 5585 "documentationComment": documentationComment, |
| 5432 "inferredTypeSlot": inferredTypeSlot, | 5586 "inferredTypeSlot": inferredTypeSlot, |
| 5433 "isConst": isConst, | 5587 "isConst": isConst, |
| 5434 "isFinal": isFinal, | 5588 "isFinal": isFinal, |
| 5435 "isStatic": isStatic, | 5589 "isStatic": isStatic, |
| 5436 "name": name, | 5590 "name": name, |
| 5437 "nameOffset": nameOffset, | 5591 "nameOffset": nameOffset, |
| 5438 "propagatedTypeSlot": propagatedTypeSlot, | 5592 "propagatedTypeSlot": propagatedTypeSlot, |
| 5439 "type": type, | 5593 "type": type, |
| 5594 "visibleLength": visibleLength, |
| 5595 "visibleOffset": visibleOffset, |
| 5440 }; | 5596 }; |
| 5441 } | 5597 } |
| 5442 | 5598 |
| OLD | NEW |