| 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 1789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1800 String toString() => convert.JSON.encode(toJson()); | 1800 String toString() => convert.JSON.encode(toJson()); |
| 1801 } | 1801 } |
| 1802 | 1802 |
| 1803 class EntityRefBuilder extends Object with _EntityRefMixin implements idl.Entity
Ref { | 1803 class EntityRefBuilder extends Object with _EntityRefMixin implements idl.Entity
Ref { |
| 1804 List<int> _implicitFunctionTypeIndices; | 1804 List<int> _implicitFunctionTypeIndices; |
| 1805 int _paramReference; | 1805 int _paramReference; |
| 1806 int _reference; | 1806 int _reference; |
| 1807 int _slot; | 1807 int _slot; |
| 1808 List<UnlinkedParamBuilder> _syntheticParams; | 1808 List<UnlinkedParamBuilder> _syntheticParams; |
| 1809 EntityRefBuilder _syntheticReturnType; | 1809 EntityRefBuilder _syntheticReturnType; |
| 1810 List<TopLevelInferenceErrorBuilder> _topLevelInferenceErrors; |
| 1810 List<EntityRefBuilder> _typeArguments; | 1811 List<EntityRefBuilder> _typeArguments; |
| 1811 List<UnlinkedTypeParamBuilder> _typeParameters; | 1812 List<UnlinkedTypeParamBuilder> _typeParameters; |
| 1812 | 1813 |
| 1813 @override | 1814 @override |
| 1814 List<int> get implicitFunctionTypeIndices => _implicitFunctionTypeIndices ??=
<int>[]; | 1815 List<int> get implicitFunctionTypeIndices => _implicitFunctionTypeIndices ??=
<int>[]; |
| 1815 | 1816 |
| 1816 /** | 1817 /** |
| 1817 * If this is a reference to a function type implicitly defined by a | 1818 * If this is a reference to a function type implicitly defined by a |
| 1818 * function-typed parameter, a list of zero-based indices indicating the path | 1819 * function-typed parameter, a list of zero-based indices indicating the path |
| 1819 * from the entity referred to by [reference] to the appropriate type | 1820 * from the entity referred to by [reference] to the appropriate type |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1914 * If this [EntityRef] is a reference to a function type whose | 1915 * If this [EntityRef] is a reference to a function type whose |
| 1915 * [FunctionElement] is not in any library (e.g. a function type that was | 1916 * [FunctionElement] is not in any library (e.g. a function type that was |
| 1916 * synthesized by a LUB computation), the return type of the function. | 1917 * synthesized by a LUB computation), the return type of the function. |
| 1917 * Otherwise `null`. | 1918 * Otherwise `null`. |
| 1918 */ | 1919 */ |
| 1919 void set syntheticReturnType(EntityRefBuilder value) { | 1920 void set syntheticReturnType(EntityRefBuilder value) { |
| 1920 this._syntheticReturnType = value; | 1921 this._syntheticReturnType = value; |
| 1921 } | 1922 } |
| 1922 | 1923 |
| 1923 @override | 1924 @override |
| 1925 List<TopLevelInferenceErrorBuilder> get topLevelInferenceErrors => _topLevelIn
ferenceErrors ??= <TopLevelInferenceErrorBuilder>[]; |
| 1926 |
| 1927 /** |
| 1928 * If this [EntityRef] is a result of type inference, and so contained within |
| 1929 * [LinkedUnit.types], and was computed as a result of top-level type |
| 1930 * inference, which failed for this target, contains the list of one or more |
| 1931 * errors describing the failure. The [reference] must point at `dynamic` in |
| 1932 * this case. |
| 1933 */ |
| 1934 void set topLevelInferenceErrors(List<TopLevelInferenceErrorBuilder> value) { |
| 1935 this._topLevelInferenceErrors = value; |
| 1936 } |
| 1937 |
| 1938 @override |
| 1924 List<EntityRefBuilder> get typeArguments => _typeArguments ??= <EntityRefBuild
er>[]; | 1939 List<EntityRefBuilder> get typeArguments => _typeArguments ??= <EntityRefBuild
er>[]; |
| 1925 | 1940 |
| 1926 /** | 1941 /** |
| 1927 * If this is an instantiation of a generic type or generic executable, the | 1942 * If this is an instantiation of a generic type or generic executable, the |
| 1928 * type arguments used to instantiate it (if any). | 1943 * type arguments used to instantiate it (if any). |
| 1929 */ | 1944 */ |
| 1930 void set typeArguments(List<EntityRefBuilder> value) { | 1945 void set typeArguments(List<EntityRefBuilder> value) { |
| 1931 this._typeArguments = value; | 1946 this._typeArguments = value; |
| 1932 } | 1947 } |
| 1933 | 1948 |
| 1934 @override | 1949 @override |
| 1935 List<UnlinkedTypeParamBuilder> get typeParameters => _typeParameters ??= <Unli
nkedTypeParamBuilder>[]; | 1950 List<UnlinkedTypeParamBuilder> get typeParameters => _typeParameters ??= <Unli
nkedTypeParamBuilder>[]; |
| 1936 | 1951 |
| 1937 /** | 1952 /** |
| 1938 * If this is a function type, the type parameters defined for the function | 1953 * If this is a function type, the type parameters defined for the function |
| 1939 * type (if any). | 1954 * type (if any). |
| 1940 */ | 1955 */ |
| 1941 void set typeParameters(List<UnlinkedTypeParamBuilder> value) { | 1956 void set typeParameters(List<UnlinkedTypeParamBuilder> value) { |
| 1942 this._typeParameters = value; | 1957 this._typeParameters = value; |
| 1943 } | 1958 } |
| 1944 | 1959 |
| 1945 EntityRefBuilder({List<int> implicitFunctionTypeIndices, int paramReference, i
nt reference, int slot, List<UnlinkedParamBuilder> syntheticParams, EntityRefBui
lder syntheticReturnType, List<EntityRefBuilder> typeArguments, List<UnlinkedTyp
eParamBuilder> typeParameters}) | 1960 EntityRefBuilder({List<int> implicitFunctionTypeIndices, int paramReference, i
nt reference, int slot, List<UnlinkedParamBuilder> syntheticParams, EntityRefBui
lder syntheticReturnType, List<TopLevelInferenceErrorBuilder> topLevelInferenceE
rrors, List<EntityRefBuilder> typeArguments, List<UnlinkedTypeParamBuilder> type
Parameters}) |
| 1946 : _implicitFunctionTypeIndices = implicitFunctionTypeIndices, | 1961 : _implicitFunctionTypeIndices = implicitFunctionTypeIndices, |
| 1947 _paramReference = paramReference, | 1962 _paramReference = paramReference, |
| 1948 _reference = reference, | 1963 _reference = reference, |
| 1949 _slot = slot, | 1964 _slot = slot, |
| 1950 _syntheticParams = syntheticParams, | 1965 _syntheticParams = syntheticParams, |
| 1951 _syntheticReturnType = syntheticReturnType, | 1966 _syntheticReturnType = syntheticReturnType, |
| 1967 _topLevelInferenceErrors = topLevelInferenceErrors, |
| 1952 _typeArguments = typeArguments, | 1968 _typeArguments = typeArguments, |
| 1953 _typeParameters = typeParameters; | 1969 _typeParameters = typeParameters; |
| 1954 | 1970 |
| 1955 /** | 1971 /** |
| 1956 * Flush [informative] data recursively. | 1972 * Flush [informative] data recursively. |
| 1957 */ | 1973 */ |
| 1958 void flushInformative() { | 1974 void flushInformative() { |
| 1959 _syntheticParams?.forEach((b) => b.flushInformative()); | 1975 _syntheticParams?.forEach((b) => b.flushInformative()); |
| 1960 _syntheticReturnType?.flushInformative(); | 1976 _syntheticReturnType?.flushInformative(); |
| 1977 _topLevelInferenceErrors?.forEach((b) => b.flushInformative()); |
| 1961 _typeArguments?.forEach((b) => b.flushInformative()); | 1978 _typeArguments?.forEach((b) => b.flushInformative()); |
| 1962 _typeParameters?.forEach((b) => b.flushInformative()); | 1979 _typeParameters?.forEach((b) => b.flushInformative()); |
| 1963 } | 1980 } |
| 1964 | 1981 |
| 1965 /** | 1982 /** |
| 1966 * Accumulate non-[informative] data into [signature]. | 1983 * Accumulate non-[informative] data into [signature]. |
| 1967 */ | 1984 */ |
| 1968 void collectApiSignature(api_sig.ApiSignature signature) { | 1985 void collectApiSignature(api_sig.ApiSignature signature) { |
| 1969 signature.addInt(this._reference ?? 0); | 1986 signature.addInt(this._reference ?? 0); |
| 1970 if (this._typeArguments == null) { | 1987 if (this._typeArguments == null) { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1996 } | 2013 } |
| 1997 } | 2014 } |
| 1998 if (this._typeParameters == null) { | 2015 if (this._typeParameters == null) { |
| 1999 signature.addInt(0); | 2016 signature.addInt(0); |
| 2000 } else { | 2017 } else { |
| 2001 signature.addInt(this._typeParameters.length); | 2018 signature.addInt(this._typeParameters.length); |
| 2002 for (var x in this._typeParameters) { | 2019 for (var x in this._typeParameters) { |
| 2003 x?.collectApiSignature(signature); | 2020 x?.collectApiSignature(signature); |
| 2004 } | 2021 } |
| 2005 } | 2022 } |
| 2023 if (this._topLevelInferenceErrors == null) { |
| 2024 signature.addInt(0); |
| 2025 } else { |
| 2026 signature.addInt(this._topLevelInferenceErrors.length); |
| 2027 for (var x in this._topLevelInferenceErrors) { |
| 2028 x?.collectApiSignature(signature); |
| 2029 } |
| 2030 } |
| 2006 } | 2031 } |
| 2007 | 2032 |
| 2008 fb.Offset finish(fb.Builder fbBuilder) { | 2033 fb.Offset finish(fb.Builder fbBuilder) { |
| 2009 fb.Offset offset_implicitFunctionTypeIndices; | 2034 fb.Offset offset_implicitFunctionTypeIndices; |
| 2010 fb.Offset offset_syntheticParams; | 2035 fb.Offset offset_syntheticParams; |
| 2011 fb.Offset offset_syntheticReturnType; | 2036 fb.Offset offset_syntheticReturnType; |
| 2037 fb.Offset offset_topLevelInferenceErrors; |
| 2012 fb.Offset offset_typeArguments; | 2038 fb.Offset offset_typeArguments; |
| 2013 fb.Offset offset_typeParameters; | 2039 fb.Offset offset_typeParameters; |
| 2014 if (!(_implicitFunctionTypeIndices == null || _implicitFunctionTypeIndices.i
sEmpty)) { | 2040 if (!(_implicitFunctionTypeIndices == null || _implicitFunctionTypeIndices.i
sEmpty)) { |
| 2015 offset_implicitFunctionTypeIndices = fbBuilder.writeListUint32(_implicitFu
nctionTypeIndices); | 2041 offset_implicitFunctionTypeIndices = fbBuilder.writeListUint32(_implicitFu
nctionTypeIndices); |
| 2016 } | 2042 } |
| 2017 if (!(_syntheticParams == null || _syntheticParams.isEmpty)) { | 2043 if (!(_syntheticParams == null || _syntheticParams.isEmpty)) { |
| 2018 offset_syntheticParams = fbBuilder.writeList(_syntheticParams.map((b) => b
.finish(fbBuilder)).toList()); | 2044 offset_syntheticParams = fbBuilder.writeList(_syntheticParams.map((b) => b
.finish(fbBuilder)).toList()); |
| 2019 } | 2045 } |
| 2020 if (_syntheticReturnType != null) { | 2046 if (_syntheticReturnType != null) { |
| 2021 offset_syntheticReturnType = _syntheticReturnType.finish(fbBuilder); | 2047 offset_syntheticReturnType = _syntheticReturnType.finish(fbBuilder); |
| 2022 } | 2048 } |
| 2049 if (!(_topLevelInferenceErrors == null || _topLevelInferenceErrors.isEmpty))
{ |
| 2050 offset_topLevelInferenceErrors = fbBuilder.writeList(_topLevelInferenceErr
ors.map((b) => b.finish(fbBuilder)).toList()); |
| 2051 } |
| 2023 if (!(_typeArguments == null || _typeArguments.isEmpty)) { | 2052 if (!(_typeArguments == null || _typeArguments.isEmpty)) { |
| 2024 offset_typeArguments = fbBuilder.writeList(_typeArguments.map((b) => b.fin
ish(fbBuilder)).toList()); | 2053 offset_typeArguments = fbBuilder.writeList(_typeArguments.map((b) => b.fin
ish(fbBuilder)).toList()); |
| 2025 } | 2054 } |
| 2026 if (!(_typeParameters == null || _typeParameters.isEmpty)) { | 2055 if (!(_typeParameters == null || _typeParameters.isEmpty)) { |
| 2027 offset_typeParameters = fbBuilder.writeList(_typeParameters.map((b) => b.f
inish(fbBuilder)).toList()); | 2056 offset_typeParameters = fbBuilder.writeList(_typeParameters.map((b) => b.f
inish(fbBuilder)).toList()); |
| 2028 } | 2057 } |
| 2029 fbBuilder.startTable(); | 2058 fbBuilder.startTable(); |
| 2030 if (offset_implicitFunctionTypeIndices != null) { | 2059 if (offset_implicitFunctionTypeIndices != null) { |
| 2031 fbBuilder.addOffset(4, offset_implicitFunctionTypeIndices); | 2060 fbBuilder.addOffset(4, offset_implicitFunctionTypeIndices); |
| 2032 } | 2061 } |
| 2033 if (_paramReference != null && _paramReference != 0) { | 2062 if (_paramReference != null && _paramReference != 0) { |
| 2034 fbBuilder.addUint32(3, _paramReference); | 2063 fbBuilder.addUint32(3, _paramReference); |
| 2035 } | 2064 } |
| 2036 if (_reference != null && _reference != 0) { | 2065 if (_reference != null && _reference != 0) { |
| 2037 fbBuilder.addUint32(0, _reference); | 2066 fbBuilder.addUint32(0, _reference); |
| 2038 } | 2067 } |
| 2039 if (_slot != null && _slot != 0) { | 2068 if (_slot != null && _slot != 0) { |
| 2040 fbBuilder.addUint32(2, _slot); | 2069 fbBuilder.addUint32(2, _slot); |
| 2041 } | 2070 } |
| 2042 if (offset_syntheticParams != null) { | 2071 if (offset_syntheticParams != null) { |
| 2043 fbBuilder.addOffset(6, offset_syntheticParams); | 2072 fbBuilder.addOffset(6, offset_syntheticParams); |
| 2044 } | 2073 } |
| 2045 if (offset_syntheticReturnType != null) { | 2074 if (offset_syntheticReturnType != null) { |
| 2046 fbBuilder.addOffset(5, offset_syntheticReturnType); | 2075 fbBuilder.addOffset(5, offset_syntheticReturnType); |
| 2047 } | 2076 } |
| 2077 if (offset_topLevelInferenceErrors != null) { |
| 2078 fbBuilder.addOffset(8, offset_topLevelInferenceErrors); |
| 2079 } |
| 2048 if (offset_typeArguments != null) { | 2080 if (offset_typeArguments != null) { |
| 2049 fbBuilder.addOffset(1, offset_typeArguments); | 2081 fbBuilder.addOffset(1, offset_typeArguments); |
| 2050 } | 2082 } |
| 2051 if (offset_typeParameters != null) { | 2083 if (offset_typeParameters != null) { |
| 2052 fbBuilder.addOffset(7, offset_typeParameters); | 2084 fbBuilder.addOffset(7, offset_typeParameters); |
| 2053 } | 2085 } |
| 2054 return fbBuilder.endTable(); | 2086 return fbBuilder.endTable(); |
| 2055 } | 2087 } |
| 2056 } | 2088 } |
| 2057 | 2089 |
| 2058 class _EntityRefReader extends fb.TableReader<_EntityRefImpl> { | 2090 class _EntityRefReader extends fb.TableReader<_EntityRefImpl> { |
| 2059 const _EntityRefReader(); | 2091 const _EntityRefReader(); |
| 2060 | 2092 |
| 2061 @override | 2093 @override |
| 2062 _EntityRefImpl createObject(fb.BufferContext bc, int offset) => new _EntityRef
Impl(bc, offset); | 2094 _EntityRefImpl createObject(fb.BufferContext bc, int offset) => new _EntityRef
Impl(bc, offset); |
| 2063 } | 2095 } |
| 2064 | 2096 |
| 2065 class _EntityRefImpl extends Object with _EntityRefMixin implements idl.EntityRe
f { | 2097 class _EntityRefImpl extends Object with _EntityRefMixin implements idl.EntityRe
f { |
| 2066 final fb.BufferContext _bc; | 2098 final fb.BufferContext _bc; |
| 2067 final int _bcOffset; | 2099 final int _bcOffset; |
| 2068 | 2100 |
| 2069 _EntityRefImpl(this._bc, this._bcOffset); | 2101 _EntityRefImpl(this._bc, this._bcOffset); |
| 2070 | 2102 |
| 2071 List<int> _implicitFunctionTypeIndices; | 2103 List<int> _implicitFunctionTypeIndices; |
| 2072 int _paramReference; | 2104 int _paramReference; |
| 2073 int _reference; | 2105 int _reference; |
| 2074 int _slot; | 2106 int _slot; |
| 2075 List<idl.UnlinkedParam> _syntheticParams; | 2107 List<idl.UnlinkedParam> _syntheticParams; |
| 2076 idl.EntityRef _syntheticReturnType; | 2108 idl.EntityRef _syntheticReturnType; |
| 2109 List<idl.TopLevelInferenceError> _topLevelInferenceErrors; |
| 2077 List<idl.EntityRef> _typeArguments; | 2110 List<idl.EntityRef> _typeArguments; |
| 2078 List<idl.UnlinkedTypeParam> _typeParameters; | 2111 List<idl.UnlinkedTypeParam> _typeParameters; |
| 2079 | 2112 |
| 2080 @override | 2113 @override |
| 2081 List<int> get implicitFunctionTypeIndices { | 2114 List<int> get implicitFunctionTypeIndices { |
| 2082 _implicitFunctionTypeIndices ??= const fb.Uint32ListReader().vTableGet(_bc,
_bcOffset, 4, const <int>[]); | 2115 _implicitFunctionTypeIndices ??= const fb.Uint32ListReader().vTableGet(_bc,
_bcOffset, 4, const <int>[]); |
| 2083 return _implicitFunctionTypeIndices; | 2116 return _implicitFunctionTypeIndices; |
| 2084 } | 2117 } |
| 2085 | 2118 |
| 2086 @override | 2119 @override |
| (...skipping 20 matching lines...) Expand all Loading... |
| 2107 return _syntheticParams; | 2140 return _syntheticParams; |
| 2108 } | 2141 } |
| 2109 | 2142 |
| 2110 @override | 2143 @override |
| 2111 idl.EntityRef get syntheticReturnType { | 2144 idl.EntityRef get syntheticReturnType { |
| 2112 _syntheticReturnType ??= const _EntityRefReader().vTableGet(_bc, _bcOffset,
5, null); | 2145 _syntheticReturnType ??= const _EntityRefReader().vTableGet(_bc, _bcOffset,
5, null); |
| 2113 return _syntheticReturnType; | 2146 return _syntheticReturnType; |
| 2114 } | 2147 } |
| 2115 | 2148 |
| 2116 @override | 2149 @override |
| 2150 List<idl.TopLevelInferenceError> get topLevelInferenceErrors { |
| 2151 _topLevelInferenceErrors ??= const fb.ListReader<idl.TopLevelInferenceError>
(const _TopLevelInferenceErrorReader()).vTableGet(_bc, _bcOffset, 8, const <idl.
TopLevelInferenceError>[]); |
| 2152 return _topLevelInferenceErrors; |
| 2153 } |
| 2154 |
| 2155 @override |
| 2117 List<idl.EntityRef> get typeArguments { | 2156 List<idl.EntityRef> get typeArguments { |
| 2118 _typeArguments ??= const fb.ListReader<idl.EntityRef>(const _EntityRefReader
()).vTableGet(_bc, _bcOffset, 1, const <idl.EntityRef>[]); | 2157 _typeArguments ??= const fb.ListReader<idl.EntityRef>(const _EntityRefReader
()).vTableGet(_bc, _bcOffset, 1, const <idl.EntityRef>[]); |
| 2119 return _typeArguments; | 2158 return _typeArguments; |
| 2120 } | 2159 } |
| 2121 | 2160 |
| 2122 @override | 2161 @override |
| 2123 List<idl.UnlinkedTypeParam> get typeParameters { | 2162 List<idl.UnlinkedTypeParam> get typeParameters { |
| 2124 _typeParameters ??= const fb.ListReader<idl.UnlinkedTypeParam>(const _Unlink
edTypeParamReader()).vTableGet(_bc, _bcOffset, 7, const <idl.UnlinkedTypeParam>[
]); | 2163 _typeParameters ??= const fb.ListReader<idl.UnlinkedTypeParam>(const _Unlink
edTypeParamReader()).vTableGet(_bc, _bcOffset, 7, const <idl.UnlinkedTypeParam>[
]); |
| 2125 return _typeParameters; | 2164 return _typeParameters; |
| 2126 } | 2165 } |
| 2127 } | 2166 } |
| 2128 | 2167 |
| 2129 abstract class _EntityRefMixin implements idl.EntityRef { | 2168 abstract class _EntityRefMixin implements idl.EntityRef { |
| 2130 @override | 2169 @override |
| 2131 Map<String, Object> toJson() { | 2170 Map<String, Object> toJson() { |
| 2132 Map<String, Object> _result = <String, Object>{}; | 2171 Map<String, Object> _result = <String, Object>{}; |
| 2133 if (implicitFunctionTypeIndices.isNotEmpty) _result["implicitFunctionTypeInd
ices"] = implicitFunctionTypeIndices; | 2172 if (implicitFunctionTypeIndices.isNotEmpty) _result["implicitFunctionTypeInd
ices"] = implicitFunctionTypeIndices; |
| 2134 if (paramReference != 0) _result["paramReference"] = paramReference; | 2173 if (paramReference != 0) _result["paramReference"] = paramReference; |
| 2135 if (reference != 0) _result["reference"] = reference; | 2174 if (reference != 0) _result["reference"] = reference; |
| 2136 if (slot != 0) _result["slot"] = slot; | 2175 if (slot != 0) _result["slot"] = slot; |
| 2137 if (syntheticParams.isNotEmpty) _result["syntheticParams"] = syntheticParams
.map((_value) => _value.toJson()).toList(); | 2176 if (syntheticParams.isNotEmpty) _result["syntheticParams"] = syntheticParams
.map((_value) => _value.toJson()).toList(); |
| 2138 if (syntheticReturnType != null) _result["syntheticReturnType"] = syntheticR
eturnType.toJson(); | 2177 if (syntheticReturnType != null) _result["syntheticReturnType"] = syntheticR
eturnType.toJson(); |
| 2178 if (topLevelInferenceErrors.isNotEmpty) _result["topLevelInferenceErrors"] =
topLevelInferenceErrors.map((_value) => _value.toJson()).toList(); |
| 2139 if (typeArguments.isNotEmpty) _result["typeArguments"] = typeArguments.map((
_value) => _value.toJson()).toList(); | 2179 if (typeArguments.isNotEmpty) _result["typeArguments"] = typeArguments.map((
_value) => _value.toJson()).toList(); |
| 2140 if (typeParameters.isNotEmpty) _result["typeParameters"] = typeParameters.ma
p((_value) => _value.toJson()).toList(); | 2180 if (typeParameters.isNotEmpty) _result["typeParameters"] = typeParameters.ma
p((_value) => _value.toJson()).toList(); |
| 2141 return _result; | 2181 return _result; |
| 2142 } | 2182 } |
| 2143 | 2183 |
| 2144 @override | 2184 @override |
| 2145 Map<String, Object> toMap() => { | 2185 Map<String, Object> toMap() => { |
| 2146 "implicitFunctionTypeIndices": implicitFunctionTypeIndices, | 2186 "implicitFunctionTypeIndices": implicitFunctionTypeIndices, |
| 2147 "paramReference": paramReference, | 2187 "paramReference": paramReference, |
| 2148 "reference": reference, | 2188 "reference": reference, |
| 2149 "slot": slot, | 2189 "slot": slot, |
| 2150 "syntheticParams": syntheticParams, | 2190 "syntheticParams": syntheticParams, |
| 2151 "syntheticReturnType": syntheticReturnType, | 2191 "syntheticReturnType": syntheticReturnType, |
| 2192 "topLevelInferenceErrors": topLevelInferenceErrors, |
| 2152 "typeArguments": typeArguments, | 2193 "typeArguments": typeArguments, |
| 2153 "typeParameters": typeParameters, | 2194 "typeParameters": typeParameters, |
| 2154 }; | 2195 }; |
| 2155 | 2196 |
| 2156 @override | 2197 @override |
| 2157 String toString() => convert.JSON.encode(toJson()); | 2198 String toString() => convert.JSON.encode(toJson()); |
| 2158 } | 2199 } |
| 2159 | 2200 |
| 2160 class LinkedDependencyBuilder extends Object with _LinkedDependencyMixin impleme
nts idl.LinkedDependency { | 2201 class LinkedDependencyBuilder extends Object with _LinkedDependencyMixin impleme
nts idl.LinkedDependency { |
| 2161 List<String> _parts; | 2202 List<String> _parts; |
| (...skipping 2016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4178 "strings": strings, | 4219 "strings": strings, |
| 4179 "unitLibraryUris": unitLibraryUris, | 4220 "unitLibraryUris": unitLibraryUris, |
| 4180 "units": units, | 4221 "units": units, |
| 4181 "unitUnitUris": unitUnitUris, | 4222 "unitUnitUris": unitUnitUris, |
| 4182 }; | 4223 }; |
| 4183 | 4224 |
| 4184 @override | 4225 @override |
| 4185 String toString() => convert.JSON.encode(toJson()); | 4226 String toString() => convert.JSON.encode(toJson()); |
| 4186 } | 4227 } |
| 4187 | 4228 |
| 4229 class TopLevelInferenceErrorBuilder extends Object with _TopLevelInferenceErrorM
ixin implements idl.TopLevelInferenceError { |
| 4230 String _message; |
| 4231 |
| 4232 @override |
| 4233 String get message => _message ??= ''; |
| 4234 |
| 4235 /** |
| 4236 * The message describing the error. |
| 4237 */ |
| 4238 void set message(String value) { |
| 4239 this._message = value; |
| 4240 } |
| 4241 |
| 4242 TopLevelInferenceErrorBuilder({String message}) |
| 4243 : _message = message; |
| 4244 |
| 4245 /** |
| 4246 * Flush [informative] data recursively. |
| 4247 */ |
| 4248 void flushInformative() { |
| 4249 } |
| 4250 |
| 4251 /** |
| 4252 * Accumulate non-[informative] data into [signature]. |
| 4253 */ |
| 4254 void collectApiSignature(api_sig.ApiSignature signature) { |
| 4255 signature.addString(this._message ?? ''); |
| 4256 } |
| 4257 |
| 4258 fb.Offset finish(fb.Builder fbBuilder) { |
| 4259 fb.Offset offset_message; |
| 4260 if (_message != null) { |
| 4261 offset_message = fbBuilder.writeString(_message); |
| 4262 } |
| 4263 fbBuilder.startTable(); |
| 4264 if (offset_message != null) { |
| 4265 fbBuilder.addOffset(0, offset_message); |
| 4266 } |
| 4267 return fbBuilder.endTable(); |
| 4268 } |
| 4269 } |
| 4270 |
| 4271 class _TopLevelInferenceErrorReader extends fb.TableReader<_TopLevelInferenceErr
orImpl> { |
| 4272 const _TopLevelInferenceErrorReader(); |
| 4273 |
| 4274 @override |
| 4275 _TopLevelInferenceErrorImpl createObject(fb.BufferContext bc, int offset) => n
ew _TopLevelInferenceErrorImpl(bc, offset); |
| 4276 } |
| 4277 |
| 4278 class _TopLevelInferenceErrorImpl extends Object with _TopLevelInferenceErrorMix
in implements idl.TopLevelInferenceError { |
| 4279 final fb.BufferContext _bc; |
| 4280 final int _bcOffset; |
| 4281 |
| 4282 _TopLevelInferenceErrorImpl(this._bc, this._bcOffset); |
| 4283 |
| 4284 String _message; |
| 4285 |
| 4286 @override |
| 4287 String get message { |
| 4288 _message ??= const fb.StringReader().vTableGet(_bc, _bcOffset, 0, ''); |
| 4289 return _message; |
| 4290 } |
| 4291 } |
| 4292 |
| 4293 abstract class _TopLevelInferenceErrorMixin implements idl.TopLevelInferenceErro
r { |
| 4294 @override |
| 4295 Map<String, Object> toJson() { |
| 4296 Map<String, Object> _result = <String, Object>{}; |
| 4297 if (message != '') _result["message"] = message; |
| 4298 return _result; |
| 4299 } |
| 4300 |
| 4301 @override |
| 4302 Map<String, Object> toMap() => { |
| 4303 "message": message, |
| 4304 }; |
| 4305 |
| 4306 @override |
| 4307 String toString() => convert.JSON.encode(toJson()); |
| 4308 } |
| 4309 |
| 4188 class UnitIndexBuilder extends Object with _UnitIndexMixin implements idl.UnitIn
dex { | 4310 class UnitIndexBuilder extends Object with _UnitIndexMixin implements idl.UnitIn
dex { |
| 4189 List<idl.IndexNameKind> _definedNameKinds; | 4311 List<idl.IndexNameKind> _definedNameKinds; |
| 4190 List<int> _definedNameOffsets; | 4312 List<int> _definedNameOffsets; |
| 4191 List<int> _definedNames; | 4313 List<int> _definedNames; |
| 4192 int _unit; | 4314 int _unit; |
| 4193 List<bool> _usedElementIsQualifiedFlags; | 4315 List<bool> _usedElementIsQualifiedFlags; |
| 4194 List<idl.IndexRelationKind> _usedElementKinds; | 4316 List<idl.IndexRelationKind> _usedElementKinds; |
| 4195 List<int> _usedElementLengths; | 4317 List<int> _usedElementLengths; |
| 4196 List<int> _usedElementOffsets; | 4318 List<int> _usedElementOffsets; |
| 4197 List<int> _usedElements; | 4319 List<int> _usedElements; |
| (...skipping 7024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11222 "propagatedTypeSlot": propagatedTypeSlot, | 11344 "propagatedTypeSlot": propagatedTypeSlot, |
| 11223 "type": type, | 11345 "type": type, |
| 11224 "visibleLength": visibleLength, | 11346 "visibleLength": visibleLength, |
| 11225 "visibleOffset": visibleOffset, | 11347 "visibleOffset": visibleOffset, |
| 11226 }; | 11348 }; |
| 11227 | 11349 |
| 11228 @override | 11350 @override |
| 11229 String toString() => convert.JSON.encode(toJson()); | 11351 String toString() => convert.JSON.encode(toJson()); |
| 11230 } | 11352 } |
| 11231 | 11353 |
| OLD | NEW |