| 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 2641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2652 bool _isConst; | 2652 bool _isConst; |
| 2653 bool _isExternal; | 2653 bool _isExternal; |
| 2654 bool _isFactory; | 2654 bool _isFactory; |
| 2655 bool _isRedirectedConstructor; | 2655 bool _isRedirectedConstructor; |
| 2656 bool _isStatic; | 2656 bool _isStatic; |
| 2657 idl.UnlinkedExecutableKind _kind; | 2657 idl.UnlinkedExecutableKind _kind; |
| 2658 List<UnlinkedExecutableBuilder> _localFunctions; | 2658 List<UnlinkedExecutableBuilder> _localFunctions; |
| 2659 List<UnlinkedLabelBuilder> _localLabels; | 2659 List<UnlinkedLabelBuilder> _localLabels; |
| 2660 List<UnlinkedVariableBuilder> _localVariables; | 2660 List<UnlinkedVariableBuilder> _localVariables; |
| 2661 String _name; | 2661 String _name; |
| 2662 int _nameEnd; |
| 2662 int _nameOffset; | 2663 int _nameOffset; |
| 2663 List<UnlinkedParamBuilder> _parameters; | 2664 List<UnlinkedParamBuilder> _parameters; |
| 2665 int _periodOffset; |
| 2664 EntityRefBuilder _redirectedConstructor; | 2666 EntityRefBuilder _redirectedConstructor; |
| 2665 String _redirectedConstructorName; | 2667 String _redirectedConstructorName; |
| 2666 EntityRefBuilder _returnType; | 2668 EntityRefBuilder _returnType; |
| 2667 List<UnlinkedTypeParamBuilder> _typeParameters; | 2669 List<UnlinkedTypeParamBuilder> _typeParameters; |
| 2668 int _visibleLength; | 2670 int _visibleLength; |
| 2669 int _visibleOffset; | 2671 int _visibleOffset; |
| 2670 | 2672 |
| 2671 @override | 2673 @override |
| 2672 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; | 2674 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; |
| 2673 | 2675 |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2841 * Name of the executable. For setters, this includes the trailing "=". For | 2843 * Name of the executable. For setters, this includes the trailing "=". For |
| 2842 * named constructors, this excludes the class name and excludes the ".". | 2844 * named constructors, this excludes the class name and excludes the ".". |
| 2843 * For unnamed constructors, this is the empty string. | 2845 * For unnamed constructors, this is the empty string. |
| 2844 */ | 2846 */ |
| 2845 void set name(String _value) { | 2847 void set name(String _value) { |
| 2846 assert(!_finished); | 2848 assert(!_finished); |
| 2847 _name = _value; | 2849 _name = _value; |
| 2848 } | 2850 } |
| 2849 | 2851 |
| 2850 @override | 2852 @override |
| 2853 int get nameEnd => _nameEnd ??= 0; |
| 2854 |
| 2855 /** |
| 2856 * If [kind] is [UnlinkedExecutableKind.constructor] and [name] is not empty, |
| 2857 * the offset of the end of the constructor name. Otherwise zero. |
| 2858 */ |
| 2859 void set nameEnd(int _value) { |
| 2860 assert(!_finished); |
| 2861 assert(_value == null || _value >= 0); |
| 2862 _nameEnd = _value; |
| 2863 } |
| 2864 |
| 2865 @override |
| 2851 int get nameOffset => _nameOffset ??= 0; | 2866 int get nameOffset => _nameOffset ??= 0; |
| 2852 | 2867 |
| 2853 /** | 2868 /** |
| 2854 * Offset of the executable name relative to the beginning of the file. For | 2869 * Offset of the executable name relative to the beginning of the file. For |
| 2855 * named constructors, this excludes the class name and excludes the ".". | 2870 * named constructors, this excludes the class name and excludes the ".". |
| 2856 * For unnamed constructors, this is the offset of the class name (i.e. the | 2871 * For unnamed constructors, this is the offset of the class name (i.e. the |
| 2857 * offset of the second "C" in "class C { C(); }"). | 2872 * offset of the second "C" in "class C { C(); }"). |
| 2858 */ | 2873 */ |
| 2859 void set nameOffset(int _value) { | 2874 void set nameOffset(int _value) { |
| 2860 assert(!_finished); | 2875 assert(!_finished); |
| 2861 assert(_value == null || _value >= 0); | 2876 assert(_value == null || _value >= 0); |
| 2862 _nameOffset = _value; | 2877 _nameOffset = _value; |
| 2863 } | 2878 } |
| 2864 | 2879 |
| 2865 @override | 2880 @override |
| 2866 List<UnlinkedParamBuilder> get parameters => _parameters ??= <UnlinkedParamBui
lder>[]; | 2881 List<UnlinkedParamBuilder> get parameters => _parameters ??= <UnlinkedParamBui
lder>[]; |
| 2867 | 2882 |
| 2868 /** | 2883 /** |
| 2869 * Parameters of the executable, if any. Note that getters have no | 2884 * Parameters of the executable, if any. Note that getters have no |
| 2870 * parameters (hence this will be the empty list), and setters have a single | 2885 * parameters (hence this will be the empty list), and setters have a single |
| 2871 * parameter. | 2886 * parameter. |
| 2872 */ | 2887 */ |
| 2873 void set parameters(List<UnlinkedParamBuilder> _value) { | 2888 void set parameters(List<UnlinkedParamBuilder> _value) { |
| 2874 assert(!_finished); | 2889 assert(!_finished); |
| 2875 _parameters = _value; | 2890 _parameters = _value; |
| 2876 } | 2891 } |
| 2877 | 2892 |
| 2878 @override | 2893 @override |
| 2894 int get periodOffset => _periodOffset ??= 0; |
| 2895 |
| 2896 /** |
| 2897 * If [kind] is [UnlinkedExecutableKind.constructor] and [name] is not empty, |
| 2898 * the offset of the period before the constructor name. Otherwise zero. |
| 2899 */ |
| 2900 void set periodOffset(int _value) { |
| 2901 assert(!_finished); |
| 2902 assert(_value == null || _value >= 0); |
| 2903 _periodOffset = _value; |
| 2904 } |
| 2905 |
| 2906 @override |
| 2879 EntityRefBuilder get redirectedConstructor => _redirectedConstructor; | 2907 EntityRefBuilder get redirectedConstructor => _redirectedConstructor; |
| 2880 | 2908 |
| 2881 /** | 2909 /** |
| 2882 * If [isRedirectedConstructor] and [isFactory] are both `true`, the | 2910 * If [isRedirectedConstructor] and [isFactory] are both `true`, the |
| 2883 * constructor to which this constructor redirects; otherwise empty. | 2911 * constructor to which this constructor redirects; otherwise empty. |
| 2884 */ | 2912 */ |
| 2885 void set redirectedConstructor(EntityRefBuilder _value) { | 2913 void set redirectedConstructor(EntityRefBuilder _value) { |
| 2886 assert(!_finished); | 2914 assert(!_finished); |
| 2887 _redirectedConstructor = _value; | 2915 _redirectedConstructor = _value; |
| 2888 } | 2916 } |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2944 | 2972 |
| 2945 /** | 2973 /** |
| 2946 * If a local function, the beginning of the visible range; zero otherwise. | 2974 * If a local function, the beginning of the visible range; zero otherwise. |
| 2947 */ | 2975 */ |
| 2948 void set visibleOffset(int _value) { | 2976 void set visibleOffset(int _value) { |
| 2949 assert(!_finished); | 2977 assert(!_finished); |
| 2950 assert(_value == null || _value >= 0); | 2978 assert(_value == null || _value >= 0); |
| 2951 _visibleOffset = _value; | 2979 _visibleOffset = _value; |
| 2952 } | 2980 } |
| 2953 | 2981 |
| 2954 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}) | 2982 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 nameEnd, int nameOffset, List<UnlinkedParamBui
lder> parameters, int periodOffset, EntityRefBuilder redirectedConstructor, Stri
ng redirectedConstructorName, EntityRefBuilder returnType, List<UnlinkedTypePara
mBuilder> typeParameters, int visibleLength, int visibleOffset}) |
| 2955 : _annotations = annotations, | 2983 : _annotations = annotations, |
| 2956 _constantInitializers = constantInitializers, | 2984 _constantInitializers = constantInitializers, |
| 2957 _documentationComment = documentationComment, | 2985 _documentationComment = documentationComment, |
| 2958 _inferredReturnTypeSlot = inferredReturnTypeSlot, | 2986 _inferredReturnTypeSlot = inferredReturnTypeSlot, |
| 2959 _isAbstract = isAbstract, | 2987 _isAbstract = isAbstract, |
| 2960 _isConst = isConst, | 2988 _isConst = isConst, |
| 2961 _isExternal = isExternal, | 2989 _isExternal = isExternal, |
| 2962 _isFactory = isFactory, | 2990 _isFactory = isFactory, |
| 2963 _isRedirectedConstructor = isRedirectedConstructor, | 2991 _isRedirectedConstructor = isRedirectedConstructor, |
| 2964 _isStatic = isStatic, | 2992 _isStatic = isStatic, |
| 2965 _kind = kind, | 2993 _kind = kind, |
| 2966 _localFunctions = localFunctions, | 2994 _localFunctions = localFunctions, |
| 2967 _localLabels = localLabels, | 2995 _localLabels = localLabels, |
| 2968 _localVariables = localVariables, | 2996 _localVariables = localVariables, |
| 2969 _name = name, | 2997 _name = name, |
| 2998 _nameEnd = nameEnd, |
| 2970 _nameOffset = nameOffset, | 2999 _nameOffset = nameOffset, |
| 2971 _parameters = parameters, | 3000 _parameters = parameters, |
| 3001 _periodOffset = periodOffset, |
| 2972 _redirectedConstructor = redirectedConstructor, | 3002 _redirectedConstructor = redirectedConstructor, |
| 2973 _redirectedConstructorName = redirectedConstructorName, | 3003 _redirectedConstructorName = redirectedConstructorName, |
| 2974 _returnType = returnType, | 3004 _returnType = returnType, |
| 2975 _typeParameters = typeParameters, | 3005 _typeParameters = typeParameters, |
| 2976 _visibleLength = visibleLength, | 3006 _visibleLength = visibleLength, |
| 2977 _visibleOffset = visibleOffset; | 3007 _visibleOffset = visibleOffset; |
| 2978 | 3008 |
| 2979 fb.Offset finish(fb.Builder fbBuilder) { | 3009 fb.Offset finish(fb.Builder fbBuilder) { |
| 2980 assert(!_finished); | 3010 assert(!_finished); |
| 2981 _finished = true; | 3011 _finished = true; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3066 } | 3096 } |
| 3067 if (offset_localLabels != null) { | 3097 if (offset_localLabels != null) { |
| 3068 fbBuilder.addOffset(22, offset_localLabels); | 3098 fbBuilder.addOffset(22, offset_localLabels); |
| 3069 } | 3099 } |
| 3070 if (offset_localVariables != null) { | 3100 if (offset_localVariables != null) { |
| 3071 fbBuilder.addOffset(19, offset_localVariables); | 3101 fbBuilder.addOffset(19, offset_localVariables); |
| 3072 } | 3102 } |
| 3073 if (offset_name != null) { | 3103 if (offset_name != null) { |
| 3074 fbBuilder.addOffset(1, offset_name); | 3104 fbBuilder.addOffset(1, offset_name); |
| 3075 } | 3105 } |
| 3106 if (_nameEnd != null && _nameEnd != 0) { |
| 3107 fbBuilder.addUint32(23, _nameEnd); |
| 3108 } |
| 3076 if (_nameOffset != null && _nameOffset != 0) { | 3109 if (_nameOffset != null && _nameOffset != 0) { |
| 3077 fbBuilder.addUint32(0, _nameOffset); | 3110 fbBuilder.addUint32(0, _nameOffset); |
| 3078 } | 3111 } |
| 3079 if (offset_parameters != null) { | 3112 if (offset_parameters != null) { |
| 3080 fbBuilder.addOffset(2, offset_parameters); | 3113 fbBuilder.addOffset(2, offset_parameters); |
| 3081 } | 3114 } |
| 3115 if (_periodOffset != null && _periodOffset != 0) { |
| 3116 fbBuilder.addUint32(24, _periodOffset); |
| 3117 } |
| 3082 if (offset_redirectedConstructor != null) { | 3118 if (offset_redirectedConstructor != null) { |
| 3083 fbBuilder.addOffset(15, offset_redirectedConstructor); | 3119 fbBuilder.addOffset(15, offset_redirectedConstructor); |
| 3084 } | 3120 } |
| 3085 if (offset_redirectedConstructorName != null) { | 3121 if (offset_redirectedConstructorName != null) { |
| 3086 fbBuilder.addOffset(17, offset_redirectedConstructorName); | 3122 fbBuilder.addOffset(17, offset_redirectedConstructorName); |
| 3087 } | 3123 } |
| 3088 if (offset_returnType != null) { | 3124 if (offset_returnType != null) { |
| 3089 fbBuilder.addOffset(3, offset_returnType); | 3125 fbBuilder.addOffset(3, offset_returnType); |
| 3090 } | 3126 } |
| 3091 if (offset_typeParameters != null) { | 3127 if (offset_typeParameters != null) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 3121 bool _isConst; | 3157 bool _isConst; |
| 3122 bool _isExternal; | 3158 bool _isExternal; |
| 3123 bool _isFactory; | 3159 bool _isFactory; |
| 3124 bool _isRedirectedConstructor; | 3160 bool _isRedirectedConstructor; |
| 3125 bool _isStatic; | 3161 bool _isStatic; |
| 3126 idl.UnlinkedExecutableKind _kind; | 3162 idl.UnlinkedExecutableKind _kind; |
| 3127 List<idl.UnlinkedExecutable> _localFunctions; | 3163 List<idl.UnlinkedExecutable> _localFunctions; |
| 3128 List<idl.UnlinkedLabel> _localLabels; | 3164 List<idl.UnlinkedLabel> _localLabels; |
| 3129 List<idl.UnlinkedVariable> _localVariables; | 3165 List<idl.UnlinkedVariable> _localVariables; |
| 3130 String _name; | 3166 String _name; |
| 3167 int _nameEnd; |
| 3131 int _nameOffset; | 3168 int _nameOffset; |
| 3132 List<idl.UnlinkedParam> _parameters; | 3169 List<idl.UnlinkedParam> _parameters; |
| 3170 int _periodOffset; |
| 3133 idl.EntityRef _redirectedConstructor; | 3171 idl.EntityRef _redirectedConstructor; |
| 3134 String _redirectedConstructorName; | 3172 String _redirectedConstructorName; |
| 3135 idl.EntityRef _returnType; | 3173 idl.EntityRef _returnType; |
| 3136 List<idl.UnlinkedTypeParam> _typeParameters; | 3174 List<idl.UnlinkedTypeParam> _typeParameters; |
| 3137 int _visibleLength; | 3175 int _visibleLength; |
| 3138 int _visibleOffset; | 3176 int _visibleOffset; |
| 3139 | 3177 |
| 3140 @override | 3178 @override |
| 3141 List<idl.UnlinkedConst> get annotations { | 3179 List<idl.UnlinkedConst> get annotations { |
| 3142 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bp, 6, const <idl.UnlinkedConst>[]); | 3180 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bp, 6, const <idl.UnlinkedConst>[]); |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3221 return _localVariables; | 3259 return _localVariables; |
| 3222 } | 3260 } |
| 3223 | 3261 |
| 3224 @override | 3262 @override |
| 3225 String get name { | 3263 String get name { |
| 3226 _name ??= const fb.StringReader().vTableGet(_bp, 1, ''); | 3264 _name ??= const fb.StringReader().vTableGet(_bp, 1, ''); |
| 3227 return _name; | 3265 return _name; |
| 3228 } | 3266 } |
| 3229 | 3267 |
| 3230 @override | 3268 @override |
| 3269 int get nameEnd { |
| 3270 _nameEnd ??= const fb.Uint32Reader().vTableGet(_bp, 23, 0); |
| 3271 return _nameEnd; |
| 3272 } |
| 3273 |
| 3274 @override |
| 3231 int get nameOffset { | 3275 int get nameOffset { |
| 3232 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 0, 0); | 3276 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 0, 0); |
| 3233 return _nameOffset; | 3277 return _nameOffset; |
| 3234 } | 3278 } |
| 3235 | 3279 |
| 3236 @override | 3280 @override |
| 3237 List<idl.UnlinkedParam> get parameters { | 3281 List<idl.UnlinkedParam> get parameters { |
| 3238 _parameters ??= const fb.ListReader<idl.UnlinkedParam>(const _UnlinkedParamR
eader()).vTableGet(_bp, 2, const <idl.UnlinkedParam>[]); | 3282 _parameters ??= const fb.ListReader<idl.UnlinkedParam>(const _UnlinkedParamR
eader()).vTableGet(_bp, 2, const <idl.UnlinkedParam>[]); |
| 3239 return _parameters; | 3283 return _parameters; |
| 3240 } | 3284 } |
| 3241 | 3285 |
| 3242 @override | 3286 @override |
| 3287 int get periodOffset { |
| 3288 _periodOffset ??= const fb.Uint32Reader().vTableGet(_bp, 24, 0); |
| 3289 return _periodOffset; |
| 3290 } |
| 3291 |
| 3292 @override |
| 3243 idl.EntityRef get redirectedConstructor { | 3293 idl.EntityRef get redirectedConstructor { |
| 3244 _redirectedConstructor ??= const _EntityRefReader().vTableGet(_bp, 15, null)
; | 3294 _redirectedConstructor ??= const _EntityRefReader().vTableGet(_bp, 15, null)
; |
| 3245 return _redirectedConstructor; | 3295 return _redirectedConstructor; |
| 3246 } | 3296 } |
| 3247 | 3297 |
| 3248 @override | 3298 @override |
| 3249 String get redirectedConstructorName { | 3299 String get redirectedConstructorName { |
| 3250 _redirectedConstructorName ??= const fb.StringReader().vTableGet(_bp, 17, ''
); | 3300 _redirectedConstructorName ??= const fb.StringReader().vTableGet(_bp, 17, ''
); |
| 3251 return _redirectedConstructorName; | 3301 return _redirectedConstructorName; |
| 3252 } | 3302 } |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3288 if (isConst != false) _result["isConst"] = isConst; | 3338 if (isConst != false) _result["isConst"] = isConst; |
| 3289 if (isExternal != false) _result["isExternal"] = isExternal; | 3339 if (isExternal != false) _result["isExternal"] = isExternal; |
| 3290 if (isFactory != false) _result["isFactory"] = isFactory; | 3340 if (isFactory != false) _result["isFactory"] = isFactory; |
| 3291 if (isRedirectedConstructor != false) _result["isRedirectedConstructor"] = i
sRedirectedConstructor; | 3341 if (isRedirectedConstructor != false) _result["isRedirectedConstructor"] = i
sRedirectedConstructor; |
| 3292 if (isStatic != false) _result["isStatic"] = isStatic; | 3342 if (isStatic != false) _result["isStatic"] = isStatic; |
| 3293 if (kind != idl.UnlinkedExecutableKind.functionOrMethod) _result["kind"] = k
ind.toString().split('.')[1]; | 3343 if (kind != idl.UnlinkedExecutableKind.functionOrMethod) _result["kind"] = k
ind.toString().split('.')[1]; |
| 3294 if (localFunctions.isNotEmpty) _result["localFunctions"] = localFunctions.ma
p((_value) => _value.toJson()).toList(); | 3344 if (localFunctions.isNotEmpty) _result["localFunctions"] = localFunctions.ma
p((_value) => _value.toJson()).toList(); |
| 3295 if (localLabels.isNotEmpty) _result["localLabels"] = localLabels.map((_value
) => _value.toJson()).toList(); | 3345 if (localLabels.isNotEmpty) _result["localLabels"] = localLabels.map((_value
) => _value.toJson()).toList(); |
| 3296 if (localVariables.isNotEmpty) _result["localVariables"] = localVariables.ma
p((_value) => _value.toJson()).toList(); | 3346 if (localVariables.isNotEmpty) _result["localVariables"] = localVariables.ma
p((_value) => _value.toJson()).toList(); |
| 3297 if (name != '') _result["name"] = name; | 3347 if (name != '') _result["name"] = name; |
| 3348 if (nameEnd != 0) _result["nameEnd"] = nameEnd; |
| 3298 if (nameOffset != 0) _result["nameOffset"] = nameOffset; | 3349 if (nameOffset != 0) _result["nameOffset"] = nameOffset; |
| 3299 if (parameters.isNotEmpty) _result["parameters"] = parameters.map((_value) =
> _value.toJson()).toList(); | 3350 if (parameters.isNotEmpty) _result["parameters"] = parameters.map((_value) =
> _value.toJson()).toList(); |
| 3351 if (periodOffset != 0) _result["periodOffset"] = periodOffset; |
| 3300 if (redirectedConstructor != null) _result["redirectedConstructor"] = redire
ctedConstructor.toJson(); | 3352 if (redirectedConstructor != null) _result["redirectedConstructor"] = redire
ctedConstructor.toJson(); |
| 3301 if (redirectedConstructorName != '') _result["redirectedConstructorName"] =
redirectedConstructorName; | 3353 if (redirectedConstructorName != '') _result["redirectedConstructorName"] =
redirectedConstructorName; |
| 3302 if (returnType != null) _result["returnType"] = returnType.toJson(); | 3354 if (returnType != null) _result["returnType"] = returnType.toJson(); |
| 3303 if (typeParameters.isNotEmpty) _result["typeParameters"] = typeParameters.ma
p((_value) => _value.toJson()).toList(); | 3355 if (typeParameters.isNotEmpty) _result["typeParameters"] = typeParameters.ma
p((_value) => _value.toJson()).toList(); |
| 3304 if (visibleLength != 0) _result["visibleLength"] = visibleLength; | 3356 if (visibleLength != 0) _result["visibleLength"] = visibleLength; |
| 3305 if (visibleOffset != 0) _result["visibleOffset"] = visibleOffset; | 3357 if (visibleOffset != 0) _result["visibleOffset"] = visibleOffset; |
| 3306 return _result; | 3358 return _result; |
| 3307 } | 3359 } |
| 3308 | 3360 |
| 3309 @override | 3361 @override |
| 3310 Map<String, Object> toMap() => { | 3362 Map<String, Object> toMap() => { |
| 3311 "annotations": annotations, | 3363 "annotations": annotations, |
| 3312 "constantInitializers": constantInitializers, | 3364 "constantInitializers": constantInitializers, |
| 3313 "documentationComment": documentationComment, | 3365 "documentationComment": documentationComment, |
| 3314 "inferredReturnTypeSlot": inferredReturnTypeSlot, | 3366 "inferredReturnTypeSlot": inferredReturnTypeSlot, |
| 3315 "isAbstract": isAbstract, | 3367 "isAbstract": isAbstract, |
| 3316 "isConst": isConst, | 3368 "isConst": isConst, |
| 3317 "isExternal": isExternal, | 3369 "isExternal": isExternal, |
| 3318 "isFactory": isFactory, | 3370 "isFactory": isFactory, |
| 3319 "isRedirectedConstructor": isRedirectedConstructor, | 3371 "isRedirectedConstructor": isRedirectedConstructor, |
| 3320 "isStatic": isStatic, | 3372 "isStatic": isStatic, |
| 3321 "kind": kind, | 3373 "kind": kind, |
| 3322 "localFunctions": localFunctions, | 3374 "localFunctions": localFunctions, |
| 3323 "localLabels": localLabels, | 3375 "localLabels": localLabels, |
| 3324 "localVariables": localVariables, | 3376 "localVariables": localVariables, |
| 3325 "name": name, | 3377 "name": name, |
| 3378 "nameEnd": nameEnd, |
| 3326 "nameOffset": nameOffset, | 3379 "nameOffset": nameOffset, |
| 3327 "parameters": parameters, | 3380 "parameters": parameters, |
| 3381 "periodOffset": periodOffset, |
| 3328 "redirectedConstructor": redirectedConstructor, | 3382 "redirectedConstructor": redirectedConstructor, |
| 3329 "redirectedConstructorName": redirectedConstructorName, | 3383 "redirectedConstructorName": redirectedConstructorName, |
| 3330 "returnType": returnType, | 3384 "returnType": returnType, |
| 3331 "typeParameters": typeParameters, | 3385 "typeParameters": typeParameters, |
| 3332 "visibleLength": visibleLength, | 3386 "visibleLength": visibleLength, |
| 3333 "visibleOffset": visibleOffset, | 3387 "visibleOffset": visibleOffset, |
| 3334 }; | 3388 }; |
| 3335 | 3389 |
| 3336 @override | 3390 @override |
| 3337 String toString() => convert.JSON.encode(toJson()); | 3391 String toString() => convert.JSON.encode(toJson()); |
| (...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4054 | 4108 |
| 4055 @override | 4109 @override |
| 4056 String toString() => convert.JSON.encode(toJson()); | 4110 String toString() => convert.JSON.encode(toJson()); |
| 4057 } | 4111 } |
| 4058 | 4112 |
| 4059 class UnlinkedParamBuilder extends Object with _UnlinkedParamMixin implements id
l.UnlinkedParam { | 4113 class UnlinkedParamBuilder extends Object with _UnlinkedParamMixin implements id
l.UnlinkedParam { |
| 4060 bool _finished = false; | 4114 bool _finished = false; |
| 4061 | 4115 |
| 4062 List<UnlinkedConstBuilder> _annotations; | 4116 List<UnlinkedConstBuilder> _annotations; |
| 4063 UnlinkedConstBuilder _defaultValue; | 4117 UnlinkedConstBuilder _defaultValue; |
| 4118 String _defaultValueCode; |
| 4064 int _inferredTypeSlot; | 4119 int _inferredTypeSlot; |
| 4065 UnlinkedExecutableBuilder _initializer; | 4120 UnlinkedExecutableBuilder _initializer; |
| 4066 bool _isFunctionTyped; | 4121 bool _isFunctionTyped; |
| 4067 bool _isInitializingFormal; | 4122 bool _isInitializingFormal; |
| 4068 idl.UnlinkedParamKind _kind; | 4123 idl.UnlinkedParamKind _kind; |
| 4069 String _name; | 4124 String _name; |
| 4070 int _nameOffset; | 4125 int _nameOffset; |
| 4071 String _defaultValueCode; | |
| 4072 List<UnlinkedParamBuilder> _parameters; | 4126 List<UnlinkedParamBuilder> _parameters; |
| 4073 EntityRefBuilder _type; | 4127 EntityRefBuilder _type; |
| 4074 int _visibleLength; | 4128 int _visibleLength; |
| 4075 int _visibleOffset; | 4129 int _visibleOffset; |
| 4076 | 4130 |
| 4077 @override | 4131 @override |
| 4078 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; | 4132 List<UnlinkedConstBuilder> get annotations => _annotations ??= <UnlinkedConstB
uilder>[]; |
| 4079 | 4133 |
| 4080 /** | 4134 /** |
| 4081 * Annotations for this parameter. | 4135 * Annotations for this parameter. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 4092 * If the parameter has a default value, the constant expression in the | 4146 * If the parameter has a default value, the constant expression in the |
| 4093 * default value. Note that the presence of this expression does not mean | 4147 * default value. Note that the presence of this expression does not mean |
| 4094 * that it is a valid, check [UnlinkedConst.isInvalid]. | 4148 * that it is a valid, check [UnlinkedConst.isInvalid]. |
| 4095 */ | 4149 */ |
| 4096 void set defaultValue(UnlinkedConstBuilder _value) { | 4150 void set defaultValue(UnlinkedConstBuilder _value) { |
| 4097 assert(!_finished); | 4151 assert(!_finished); |
| 4098 _defaultValue = _value; | 4152 _defaultValue = _value; |
| 4099 } | 4153 } |
| 4100 | 4154 |
| 4101 @override | 4155 @override |
| 4156 String get defaultValueCode => _defaultValueCode ??= ''; |
| 4157 |
| 4158 /** |
| 4159 * If the parameter has a default value, the source text of the constant |
| 4160 * expression in the default value. Otherwise the empty string. |
| 4161 */ |
| 4162 void set defaultValueCode(String _value) { |
| 4163 assert(!_finished); |
| 4164 _defaultValueCode = _value; |
| 4165 } |
| 4166 |
| 4167 @override |
| 4102 int get inferredTypeSlot => _inferredTypeSlot ??= 0; | 4168 int get inferredTypeSlot => _inferredTypeSlot ??= 0; |
| 4103 | 4169 |
| 4104 /** | 4170 /** |
| 4105 * If this parameter's type is inferable, nonzero slot id identifying which | 4171 * If this parameter's type is inferable, nonzero slot id identifying which |
| 4106 * entry in [LinkedLibrary.types] contains the inferred type. If there is no | 4172 * entry in [LinkedLibrary.types] contains the inferred type. If there is no |
| 4107 * matching entry in [LinkedLibrary.types], then no type was inferred for | 4173 * matching entry in [LinkedLibrary.types], then no type was inferred for |
| 4108 * this variable, so its static type is `dynamic`. | 4174 * this variable, so its static type is `dynamic`. |
| 4109 * | 4175 * |
| 4110 * Note that although strong mode considers initializing formals to be | 4176 * Note that although strong mode considers initializing formals to be |
| 4111 * inferable, they are not marked as such in the summary; if their type is | 4177 * inferable, they are not marked as such in the summary; if their type is |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4181 /** | 4247 /** |
| 4182 * Offset of the parameter name relative to the beginning of the file. | 4248 * Offset of the parameter name relative to the beginning of the file. |
| 4183 */ | 4249 */ |
| 4184 void set nameOffset(int _value) { | 4250 void set nameOffset(int _value) { |
| 4185 assert(!_finished); | 4251 assert(!_finished); |
| 4186 assert(_value == null || _value >= 0); | 4252 assert(_value == null || _value >= 0); |
| 4187 _nameOffset = _value; | 4253 _nameOffset = _value; |
| 4188 } | 4254 } |
| 4189 | 4255 |
| 4190 @override | 4256 @override |
| 4191 String get defaultValueCode => _defaultValueCode ??= ''; | |
| 4192 | |
| 4193 /** | |
| 4194 * If the parameter has a default value, the source text of the constant | |
| 4195 * expression in the default value. Otherwise the empty string. | |
| 4196 */ | |
| 4197 void set defaultValueCode(String _value) { | |
| 4198 assert(!_finished); | |
| 4199 _defaultValueCode = _value; | |
| 4200 } | |
| 4201 | |
| 4202 @override | |
| 4203 List<UnlinkedParamBuilder> get parameters => _parameters ??= <UnlinkedParamBui
lder>[]; | 4257 List<UnlinkedParamBuilder> get parameters => _parameters ??= <UnlinkedParamBui
lder>[]; |
| 4204 | 4258 |
| 4205 /** | 4259 /** |
| 4206 * If [isFunctionTyped] is `true`, the parameters of the function type. | 4260 * If [isFunctionTyped] is `true`, the parameters of the function type. |
| 4207 */ | 4261 */ |
| 4208 void set parameters(List<UnlinkedParamBuilder> _value) { | 4262 void set parameters(List<UnlinkedParamBuilder> _value) { |
| 4209 assert(!_finished); | 4263 assert(!_finished); |
| 4210 _parameters = _value; | 4264 _parameters = _value; |
| 4211 } | 4265 } |
| 4212 | 4266 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 4240 | 4294 |
| 4241 /** | 4295 /** |
| 4242 * The beginning of the visible range. | 4296 * The beginning of the visible range. |
| 4243 */ | 4297 */ |
| 4244 void set visibleOffset(int _value) { | 4298 void set visibleOffset(int _value) { |
| 4245 assert(!_finished); | 4299 assert(!_finished); |
| 4246 assert(_value == null || _value >= 0); | 4300 assert(_value == null || _value >= 0); |
| 4247 _visibleOffset = _value; | 4301 _visibleOffset = _value; |
| 4248 } | 4302 } |
| 4249 | 4303 |
| 4250 UnlinkedParamBuilder({List<UnlinkedConstBuilder> annotations, UnlinkedConstBui
lder defaultValue, int inferredTypeSlot, UnlinkedExecutableBuilder initializer,
bool isFunctionTyped, bool isInitializingFormal, idl.UnlinkedParamKind kind, Str
ing name, int nameOffset, String defaultValueCode, List<UnlinkedParamBuilder> pa
rameters, EntityRefBuilder type, int visibleLength, int visibleOffset}) | 4304 UnlinkedParamBuilder({List<UnlinkedConstBuilder> annotations, UnlinkedConstBui
lder defaultValue, String defaultValueCode, int inferredTypeSlot, UnlinkedExecut
ableBuilder initializer, bool isFunctionTyped, bool isInitializingFormal, idl.Un
linkedParamKind kind, String name, int nameOffset, List<UnlinkedParamBuilder> pa
rameters, EntityRefBuilder type, int visibleLength, int visibleOffset}) |
| 4251 : _annotations = annotations, | 4305 : _annotations = annotations, |
| 4252 _defaultValue = defaultValue, | 4306 _defaultValue = defaultValue, |
| 4307 _defaultValueCode = defaultValueCode, |
| 4253 _inferredTypeSlot = inferredTypeSlot, | 4308 _inferredTypeSlot = inferredTypeSlot, |
| 4254 _initializer = initializer, | 4309 _initializer = initializer, |
| 4255 _isFunctionTyped = isFunctionTyped, | 4310 _isFunctionTyped = isFunctionTyped, |
| 4256 _isInitializingFormal = isInitializingFormal, | 4311 _isInitializingFormal = isInitializingFormal, |
| 4257 _kind = kind, | 4312 _kind = kind, |
| 4258 _name = name, | 4313 _name = name, |
| 4259 _nameOffset = nameOffset, | 4314 _nameOffset = nameOffset, |
| 4260 _defaultValueCode = defaultValueCode, | |
| 4261 _parameters = parameters, | 4315 _parameters = parameters, |
| 4262 _type = type, | 4316 _type = type, |
| 4263 _visibleLength = visibleLength, | 4317 _visibleLength = visibleLength, |
| 4264 _visibleOffset = visibleOffset; | 4318 _visibleOffset = visibleOffset; |
| 4265 | 4319 |
| 4266 fb.Offset finish(fb.Builder fbBuilder) { | 4320 fb.Offset finish(fb.Builder fbBuilder) { |
| 4267 assert(!_finished); | 4321 assert(!_finished); |
| 4268 _finished = true; | 4322 _finished = true; |
| 4269 fb.Offset offset_annotations; | 4323 fb.Offset offset_annotations; |
| 4270 fb.Offset offset_defaultValue; | 4324 fb.Offset offset_defaultValue; |
| 4325 fb.Offset offset_defaultValueCode; |
| 4271 fb.Offset offset_initializer; | 4326 fb.Offset offset_initializer; |
| 4272 fb.Offset offset_name; | 4327 fb.Offset offset_name; |
| 4273 fb.Offset offset_defaultValueCode; | |
| 4274 fb.Offset offset_parameters; | 4328 fb.Offset offset_parameters; |
| 4275 fb.Offset offset_type; | 4329 fb.Offset offset_type; |
| 4276 if (!(_annotations == null || _annotations.isEmpty)) { | 4330 if (!(_annotations == null || _annotations.isEmpty)) { |
| 4277 offset_annotations = fbBuilder.writeList(_annotations.map((b) => b.finish(
fbBuilder)).toList()); | 4331 offset_annotations = fbBuilder.writeList(_annotations.map((b) => b.finish(
fbBuilder)).toList()); |
| 4278 } | 4332 } |
| 4279 if (_defaultValue != null) { | 4333 if (_defaultValue != null) { |
| 4280 offset_defaultValue = _defaultValue.finish(fbBuilder); | 4334 offset_defaultValue = _defaultValue.finish(fbBuilder); |
| 4281 } | 4335 } |
| 4336 if (_defaultValueCode != null) { |
| 4337 offset_defaultValueCode = fbBuilder.writeString(_defaultValueCode); |
| 4338 } |
| 4282 if (_initializer != null) { | 4339 if (_initializer != null) { |
| 4283 offset_initializer = _initializer.finish(fbBuilder); | 4340 offset_initializer = _initializer.finish(fbBuilder); |
| 4284 } | 4341 } |
| 4285 if (_name != null) { | 4342 if (_name != null) { |
| 4286 offset_name = fbBuilder.writeString(_name); | 4343 offset_name = fbBuilder.writeString(_name); |
| 4287 } | 4344 } |
| 4288 if (_defaultValueCode != null) { | |
| 4289 offset_defaultValueCode = fbBuilder.writeString(_defaultValueCode); | |
| 4290 } | |
| 4291 if (!(_parameters == null || _parameters.isEmpty)) { | 4345 if (!(_parameters == null || _parameters.isEmpty)) { |
| 4292 offset_parameters = fbBuilder.writeList(_parameters.map((b) => b.finish(fb
Builder)).toList()); | 4346 offset_parameters = fbBuilder.writeList(_parameters.map((b) => b.finish(fb
Builder)).toList()); |
| 4293 } | 4347 } |
| 4294 if (_type != null) { | 4348 if (_type != null) { |
| 4295 offset_type = _type.finish(fbBuilder); | 4349 offset_type = _type.finish(fbBuilder); |
| 4296 } | 4350 } |
| 4297 fbBuilder.startTable(); | 4351 fbBuilder.startTable(); |
| 4298 if (offset_annotations != null) { | 4352 if (offset_annotations != null) { |
| 4299 fbBuilder.addOffset(9, offset_annotations); | 4353 fbBuilder.addOffset(9, offset_annotations); |
| 4300 } | 4354 } |
| 4301 if (offset_defaultValue != null) { | 4355 if (offset_defaultValue != null) { |
| 4302 fbBuilder.addOffset(7, offset_defaultValue); | 4356 fbBuilder.addOffset(7, offset_defaultValue); |
| 4303 } | 4357 } |
| 4358 if (offset_defaultValueCode != null) { |
| 4359 fbBuilder.addOffset(13, offset_defaultValueCode); |
| 4360 } |
| 4304 if (_inferredTypeSlot != null && _inferredTypeSlot != 0) { | 4361 if (_inferredTypeSlot != null && _inferredTypeSlot != 0) { |
| 4305 fbBuilder.addUint32(2, _inferredTypeSlot); | 4362 fbBuilder.addUint32(2, _inferredTypeSlot); |
| 4306 } | 4363 } |
| 4307 if (offset_initializer != null) { | 4364 if (offset_initializer != null) { |
| 4308 fbBuilder.addOffset(12, offset_initializer); | 4365 fbBuilder.addOffset(12, offset_initializer); |
| 4309 } | 4366 } |
| 4310 if (_isFunctionTyped == true) { | 4367 if (_isFunctionTyped == true) { |
| 4311 fbBuilder.addBool(5, true); | 4368 fbBuilder.addBool(5, true); |
| 4312 } | 4369 } |
| 4313 if (_isInitializingFormal == true) { | 4370 if (_isInitializingFormal == true) { |
| 4314 fbBuilder.addBool(6, true); | 4371 fbBuilder.addBool(6, true); |
| 4315 } | 4372 } |
| 4316 if (_kind != null && _kind != idl.UnlinkedParamKind.required) { | 4373 if (_kind != null && _kind != idl.UnlinkedParamKind.required) { |
| 4317 fbBuilder.addUint8(4, _kind.index); | 4374 fbBuilder.addUint8(4, _kind.index); |
| 4318 } | 4375 } |
| 4319 if (offset_name != null) { | 4376 if (offset_name != null) { |
| 4320 fbBuilder.addOffset(0, offset_name); | 4377 fbBuilder.addOffset(0, offset_name); |
| 4321 } | 4378 } |
| 4322 if (_nameOffset != null && _nameOffset != 0) { | 4379 if (_nameOffset != null && _nameOffset != 0) { |
| 4323 fbBuilder.addUint32(1, _nameOffset); | 4380 fbBuilder.addUint32(1, _nameOffset); |
| 4324 } | 4381 } |
| 4325 if (offset_defaultValueCode != null) { | |
| 4326 fbBuilder.addOffset(13, offset_defaultValueCode); | |
| 4327 } | |
| 4328 if (offset_parameters != null) { | 4382 if (offset_parameters != null) { |
| 4329 fbBuilder.addOffset(8, offset_parameters); | 4383 fbBuilder.addOffset(8, offset_parameters); |
| 4330 } | 4384 } |
| 4331 if (offset_type != null) { | 4385 if (offset_type != null) { |
| 4332 fbBuilder.addOffset(3, offset_type); | 4386 fbBuilder.addOffset(3, offset_type); |
| 4333 } | 4387 } |
| 4334 if (_visibleLength != null && _visibleLength != 0) { | 4388 if (_visibleLength != null && _visibleLength != 0) { |
| 4335 fbBuilder.addUint32(10, _visibleLength); | 4389 fbBuilder.addUint32(10, _visibleLength); |
| 4336 } | 4390 } |
| 4337 if (_visibleOffset != null && _visibleOffset != 0) { | 4391 if (_visibleOffset != null && _visibleOffset != 0) { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 4348 _UnlinkedParamImpl createObject(fb.BufferPointer bp) => new _UnlinkedParamImpl
(bp); | 4402 _UnlinkedParamImpl createObject(fb.BufferPointer bp) => new _UnlinkedParamImpl
(bp); |
| 4349 } | 4403 } |
| 4350 | 4404 |
| 4351 class _UnlinkedParamImpl extends Object with _UnlinkedParamMixin implements idl.
UnlinkedParam { | 4405 class _UnlinkedParamImpl extends Object with _UnlinkedParamMixin implements idl.
UnlinkedParam { |
| 4352 final fb.BufferPointer _bp; | 4406 final fb.BufferPointer _bp; |
| 4353 | 4407 |
| 4354 _UnlinkedParamImpl(this._bp); | 4408 _UnlinkedParamImpl(this._bp); |
| 4355 | 4409 |
| 4356 List<idl.UnlinkedConst> _annotations; | 4410 List<idl.UnlinkedConst> _annotations; |
| 4357 idl.UnlinkedConst _defaultValue; | 4411 idl.UnlinkedConst _defaultValue; |
| 4412 String _defaultValueCode; |
| 4358 int _inferredTypeSlot; | 4413 int _inferredTypeSlot; |
| 4359 idl.UnlinkedExecutable _initializer; | 4414 idl.UnlinkedExecutable _initializer; |
| 4360 bool _isFunctionTyped; | 4415 bool _isFunctionTyped; |
| 4361 bool _isInitializingFormal; | 4416 bool _isInitializingFormal; |
| 4362 idl.UnlinkedParamKind _kind; | 4417 idl.UnlinkedParamKind _kind; |
| 4363 String _name; | 4418 String _name; |
| 4364 int _nameOffset; | 4419 int _nameOffset; |
| 4365 String _defaultValueCode; | |
| 4366 List<idl.UnlinkedParam> _parameters; | 4420 List<idl.UnlinkedParam> _parameters; |
| 4367 idl.EntityRef _type; | 4421 idl.EntityRef _type; |
| 4368 int _visibleLength; | 4422 int _visibleLength; |
| 4369 int _visibleOffset; | 4423 int _visibleOffset; |
| 4370 | 4424 |
| 4371 @override | 4425 @override |
| 4372 List<idl.UnlinkedConst> get annotations { | 4426 List<idl.UnlinkedConst> get annotations { |
| 4373 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bp, 9, const <idl.UnlinkedConst>[]); | 4427 _annotations ??= const fb.ListReader<idl.UnlinkedConst>(const _UnlinkedConst
Reader()).vTableGet(_bp, 9, const <idl.UnlinkedConst>[]); |
| 4374 return _annotations; | 4428 return _annotations; |
| 4375 } | 4429 } |
| 4376 | 4430 |
| 4377 @override | 4431 @override |
| 4378 idl.UnlinkedConst get defaultValue { | 4432 idl.UnlinkedConst get defaultValue { |
| 4379 _defaultValue ??= const _UnlinkedConstReader().vTableGet(_bp, 7, null); | 4433 _defaultValue ??= const _UnlinkedConstReader().vTableGet(_bp, 7, null); |
| 4380 return _defaultValue; | 4434 return _defaultValue; |
| 4381 } | 4435 } |
| 4382 | 4436 |
| 4383 @override | 4437 @override |
| 4438 String get defaultValueCode { |
| 4439 _defaultValueCode ??= const fb.StringReader().vTableGet(_bp, 13, ''); |
| 4440 return _defaultValueCode; |
| 4441 } |
| 4442 |
| 4443 @override |
| 4384 int get inferredTypeSlot { | 4444 int get inferredTypeSlot { |
| 4385 _inferredTypeSlot ??= const fb.Uint32Reader().vTableGet(_bp, 2, 0); | 4445 _inferredTypeSlot ??= const fb.Uint32Reader().vTableGet(_bp, 2, 0); |
| 4386 return _inferredTypeSlot; | 4446 return _inferredTypeSlot; |
| 4387 } | 4447 } |
| 4388 | 4448 |
| 4389 @override | 4449 @override |
| 4390 idl.UnlinkedExecutable get initializer { | 4450 idl.UnlinkedExecutable get initializer { |
| 4391 _initializer ??= const _UnlinkedExecutableReader().vTableGet(_bp, 12, null); | 4451 _initializer ??= const _UnlinkedExecutableReader().vTableGet(_bp, 12, null); |
| 4392 return _initializer; | 4452 return _initializer; |
| 4393 } | 4453 } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 4416 return _name; | 4476 return _name; |
| 4417 } | 4477 } |
| 4418 | 4478 |
| 4419 @override | 4479 @override |
| 4420 int get nameOffset { | 4480 int get nameOffset { |
| 4421 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); | 4481 _nameOffset ??= const fb.Uint32Reader().vTableGet(_bp, 1, 0); |
| 4422 return _nameOffset; | 4482 return _nameOffset; |
| 4423 } | 4483 } |
| 4424 | 4484 |
| 4425 @override | 4485 @override |
| 4426 String get defaultValueCode { | |
| 4427 _defaultValueCode ??= const fb.StringReader().vTableGet(_bp, 13, ''); | |
| 4428 return _defaultValueCode; | |
| 4429 } | |
| 4430 | |
| 4431 @override | |
| 4432 List<idl.UnlinkedParam> get parameters { | 4486 List<idl.UnlinkedParam> get parameters { |
| 4433 _parameters ??= const fb.ListReader<idl.UnlinkedParam>(const _UnlinkedParamR
eader()).vTableGet(_bp, 8, const <idl.UnlinkedParam>[]); | 4487 _parameters ??= const fb.ListReader<idl.UnlinkedParam>(const _UnlinkedParamR
eader()).vTableGet(_bp, 8, const <idl.UnlinkedParam>[]); |
| 4434 return _parameters; | 4488 return _parameters; |
| 4435 } | 4489 } |
| 4436 | 4490 |
| 4437 @override | 4491 @override |
| 4438 idl.EntityRef get type { | 4492 idl.EntityRef get type { |
| 4439 _type ??= const _EntityRefReader().vTableGet(_bp, 3, null); | 4493 _type ??= const _EntityRefReader().vTableGet(_bp, 3, null); |
| 4440 return _type; | 4494 return _type; |
| 4441 } | 4495 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 4452 return _visibleOffset; | 4506 return _visibleOffset; |
| 4453 } | 4507 } |
| 4454 } | 4508 } |
| 4455 | 4509 |
| 4456 abstract class _UnlinkedParamMixin implements idl.UnlinkedParam { | 4510 abstract class _UnlinkedParamMixin implements idl.UnlinkedParam { |
| 4457 @override | 4511 @override |
| 4458 Map<String, Object> toJson() { | 4512 Map<String, Object> toJson() { |
| 4459 Map<String, Object> _result = <String, Object>{}; | 4513 Map<String, Object> _result = <String, Object>{}; |
| 4460 if (annotations.isNotEmpty) _result["annotations"] = annotations.map((_value
) => _value.toJson()).toList(); | 4514 if (annotations.isNotEmpty) _result["annotations"] = annotations.map((_value
) => _value.toJson()).toList(); |
| 4461 if (defaultValue != null) _result["defaultValue"] = defaultValue.toJson(); | 4515 if (defaultValue != null) _result["defaultValue"] = defaultValue.toJson(); |
| 4516 if (defaultValueCode != '') _result["defaultValueCode"] = defaultValueCode; |
| 4462 if (inferredTypeSlot != 0) _result["inferredTypeSlot"] = inferredTypeSlot; | 4517 if (inferredTypeSlot != 0) _result["inferredTypeSlot"] = inferredTypeSlot; |
| 4463 if (initializer != null) _result["initializer"] = initializer.toJson(); | 4518 if (initializer != null) _result["initializer"] = initializer.toJson(); |
| 4464 if (isFunctionTyped != false) _result["isFunctionTyped"] = isFunctionTyped; | 4519 if (isFunctionTyped != false) _result["isFunctionTyped"] = isFunctionTyped; |
| 4465 if (isInitializingFormal != false) _result["isInitializingFormal"] = isIniti
alizingFormal; | 4520 if (isInitializingFormal != false) _result["isInitializingFormal"] = isIniti
alizingFormal; |
| 4466 if (kind != idl.UnlinkedParamKind.required) _result["kind"] = kind.toString(
).split('.')[1]; | 4521 if (kind != idl.UnlinkedParamKind.required) _result["kind"] = kind.toString(
).split('.')[1]; |
| 4467 if (name != '') _result["name"] = name; | 4522 if (name != '') _result["name"] = name; |
| 4468 if (nameOffset != 0) _result["nameOffset"] = nameOffset; | 4523 if (nameOffset != 0) _result["nameOffset"] = nameOffset; |
| 4469 if (defaultValueCode != '') _result["defaultValueCode"] = defaultValueCode; | |
| 4470 if (parameters.isNotEmpty) _result["parameters"] = parameters.map((_value) =
> _value.toJson()).toList(); | 4524 if (parameters.isNotEmpty) _result["parameters"] = parameters.map((_value) =
> _value.toJson()).toList(); |
| 4471 if (type != null) _result["type"] = type.toJson(); | 4525 if (type != null) _result["type"] = type.toJson(); |
| 4472 if (visibleLength != 0) _result["visibleLength"] = visibleLength; | 4526 if (visibleLength != 0) _result["visibleLength"] = visibleLength; |
| 4473 if (visibleOffset != 0) _result["visibleOffset"] = visibleOffset; | 4527 if (visibleOffset != 0) _result["visibleOffset"] = visibleOffset; |
| 4474 return _result; | 4528 return _result; |
| 4475 } | 4529 } |
| 4476 | 4530 |
| 4477 @override | 4531 @override |
| 4478 Map<String, Object> toMap() => { | 4532 Map<String, Object> toMap() => { |
| 4479 "annotations": annotations, | 4533 "annotations": annotations, |
| 4480 "defaultValue": defaultValue, | 4534 "defaultValue": defaultValue, |
| 4535 "defaultValueCode": defaultValueCode, |
| 4481 "inferredTypeSlot": inferredTypeSlot, | 4536 "inferredTypeSlot": inferredTypeSlot, |
| 4482 "initializer": initializer, | 4537 "initializer": initializer, |
| 4483 "isFunctionTyped": isFunctionTyped, | 4538 "isFunctionTyped": isFunctionTyped, |
| 4484 "isInitializingFormal": isInitializingFormal, | 4539 "isInitializingFormal": isInitializingFormal, |
| 4485 "kind": kind, | 4540 "kind": kind, |
| 4486 "name": name, | 4541 "name": name, |
| 4487 "nameOffset": nameOffset, | 4542 "nameOffset": nameOffset, |
| 4488 "defaultValueCode": defaultValueCode, | |
| 4489 "parameters": parameters, | 4543 "parameters": parameters, |
| 4490 "type": type, | 4544 "type": type, |
| 4491 "visibleLength": visibleLength, | 4545 "visibleLength": visibleLength, |
| 4492 "visibleOffset": visibleOffset, | 4546 "visibleOffset": visibleOffset, |
| 4493 }; | 4547 }; |
| 4494 | 4548 |
| 4495 @override | 4549 @override |
| 4496 String toString() => convert.JSON.encode(toJson()); | 4550 String toString() => convert.JSON.encode(toJson()); |
| 4497 } | 4551 } |
| 4498 | 4552 |
| (...skipping 1852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6351 "propagatedTypeSlot": propagatedTypeSlot, | 6405 "propagatedTypeSlot": propagatedTypeSlot, |
| 6352 "type": type, | 6406 "type": type, |
| 6353 "visibleLength": visibleLength, | 6407 "visibleLength": visibleLength, |
| 6354 "visibleOffset": visibleOffset, | 6408 "visibleOffset": visibleOffset, |
| 6355 }; | 6409 }; |
| 6356 | 6410 |
| 6357 @override | 6411 @override |
| 6358 String toString() => convert.JSON.encode(toJson()); | 6412 String toString() => convert.JSON.encode(toJson()); |
| 6359 } | 6413 } |
| 6360 | 6414 |
| OLD | NEW |