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 1890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1901 List<int> _definedNames; | 1901 List<int> _definedNames; |
1902 int _unit; | 1902 int _unit; |
1903 List<bool> _usedElementIsQualifiedFlags; | 1903 List<bool> _usedElementIsQualifiedFlags; |
1904 List<idl.IndexRelationKind> _usedElementKinds; | 1904 List<idl.IndexRelationKind> _usedElementKinds; |
1905 List<int> _usedElementLengths; | 1905 List<int> _usedElementLengths; |
1906 List<int> _usedElementOffsets; | 1906 List<int> _usedElementOffsets; |
1907 List<int> _usedElements; | 1907 List<int> _usedElements; |
1908 List<idl.IndexRelationKind> _usedNameKinds; | 1908 List<idl.IndexRelationKind> _usedNameKinds; |
1909 List<int> _usedNameOffsets; | 1909 List<int> _usedNameOffsets; |
1910 List<int> _usedNames; | 1910 List<int> _usedNames; |
| 1911 List<bool> _usedNameIsQualifiedFlags; |
1911 | 1912 |
1912 @override | 1913 @override |
1913 List<idl.IndexNameKind> get definedNameKinds => _definedNameKinds ??= <idl.Ind
exNameKind>[]; | 1914 List<idl.IndexNameKind> get definedNameKinds => _definedNameKinds ??= <idl.Ind
exNameKind>[]; |
1914 | 1915 |
1915 /** | 1916 /** |
1916 * Each item of this list is the kind of an element defined in this unit. | 1917 * Each item of this list is the kind of an element defined in this unit. |
1917 */ | 1918 */ |
1918 void set definedNameKinds(List<idl.IndexNameKind> _value) { | 1919 void set definedNameKinds(List<idl.IndexNameKind> _value) { |
1919 assert(!_finished); | 1920 assert(!_finished); |
1920 _definedNameKinds = _value; | 1921 _definedNameKinds = _value; |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2054 * Each item of this list is the index into [PackageIndex.strings] for a | 2055 * Each item of this list is the index into [PackageIndex.strings] for a |
2055 * used name. The list is sorted in ascending order, so that the client can | 2056 * used name. The list is sorted in ascending order, so that the client can |
2056 * quickly find name uses in this [UnitIndex]. | 2057 * quickly find name uses in this [UnitIndex]. |
2057 */ | 2058 */ |
2058 void set usedNames(List<int> _value) { | 2059 void set usedNames(List<int> _value) { |
2059 assert(!_finished); | 2060 assert(!_finished); |
2060 assert(_value == null || _value.every((e) => e >= 0)); | 2061 assert(_value == null || _value.every((e) => e >= 0)); |
2061 _usedNames = _value; | 2062 _usedNames = _value; |
2062 } | 2063 } |
2063 | 2064 |
2064 UnitIndexBuilder({List<idl.IndexNameKind> definedNameKinds, List<int> definedN
ameOffsets, List<int> definedNames, int unit, List<bool> usedElementIsQualifiedF
lags, List<idl.IndexRelationKind> usedElementKinds, List<int> usedElementLengths
, List<int> usedElementOffsets, List<int> usedElements, List<idl.IndexRelationKi
nd> usedNameKinds, List<int> usedNameOffsets, List<int> usedNames}) | 2065 @override |
| 2066 List<bool> get usedNameIsQualifiedFlags => _usedNameIsQualifiedFlags ??= <bool
>[]; |
| 2067 |
| 2068 /** |
| 2069 * Each item of this list is the `true` if the corresponding name usage |
| 2070 * is qualified with some prefix. |
| 2071 */ |
| 2072 void set usedNameIsQualifiedFlags(List<bool> _value) { |
| 2073 assert(!_finished); |
| 2074 _usedNameIsQualifiedFlags = _value; |
| 2075 } |
| 2076 |
| 2077 UnitIndexBuilder({List<idl.IndexNameKind> definedNameKinds, List<int> definedN
ameOffsets, List<int> definedNames, int unit, List<bool> usedElementIsQualifiedF
lags, List<idl.IndexRelationKind> usedElementKinds, List<int> usedElementLengths
, List<int> usedElementOffsets, List<int> usedElements, List<idl.IndexRelationKi
nd> usedNameKinds, List<int> usedNameOffsets, List<int> usedNames, List<bool> us
edNameIsQualifiedFlags}) |
2065 : _definedNameKinds = definedNameKinds, | 2078 : _definedNameKinds = definedNameKinds, |
2066 _definedNameOffsets = definedNameOffsets, | 2079 _definedNameOffsets = definedNameOffsets, |
2067 _definedNames = definedNames, | 2080 _definedNames = definedNames, |
2068 _unit = unit, | 2081 _unit = unit, |
2069 _usedElementIsQualifiedFlags = usedElementIsQualifiedFlags, | 2082 _usedElementIsQualifiedFlags = usedElementIsQualifiedFlags, |
2070 _usedElementKinds = usedElementKinds, | 2083 _usedElementKinds = usedElementKinds, |
2071 _usedElementLengths = usedElementLengths, | 2084 _usedElementLengths = usedElementLengths, |
2072 _usedElementOffsets = usedElementOffsets, | 2085 _usedElementOffsets = usedElementOffsets, |
2073 _usedElements = usedElements, | 2086 _usedElements = usedElements, |
2074 _usedNameKinds = usedNameKinds, | 2087 _usedNameKinds = usedNameKinds, |
2075 _usedNameOffsets = usedNameOffsets, | 2088 _usedNameOffsets = usedNameOffsets, |
2076 _usedNames = usedNames; | 2089 _usedNames = usedNames, |
| 2090 _usedNameIsQualifiedFlags = usedNameIsQualifiedFlags; |
2077 | 2091 |
2078 fb.Offset finish(fb.Builder fbBuilder) { | 2092 fb.Offset finish(fb.Builder fbBuilder) { |
2079 assert(!_finished); | 2093 assert(!_finished); |
2080 _finished = true; | 2094 _finished = true; |
2081 fb.Offset offset_definedNameKinds; | 2095 fb.Offset offset_definedNameKinds; |
2082 fb.Offset offset_definedNameOffsets; | 2096 fb.Offset offset_definedNameOffsets; |
2083 fb.Offset offset_definedNames; | 2097 fb.Offset offset_definedNames; |
2084 fb.Offset offset_usedElementIsQualifiedFlags; | 2098 fb.Offset offset_usedElementIsQualifiedFlags; |
2085 fb.Offset offset_usedElementKinds; | 2099 fb.Offset offset_usedElementKinds; |
2086 fb.Offset offset_usedElementLengths; | 2100 fb.Offset offset_usedElementLengths; |
2087 fb.Offset offset_usedElementOffsets; | 2101 fb.Offset offset_usedElementOffsets; |
2088 fb.Offset offset_usedElements; | 2102 fb.Offset offset_usedElements; |
2089 fb.Offset offset_usedNameKinds; | 2103 fb.Offset offset_usedNameKinds; |
2090 fb.Offset offset_usedNameOffsets; | 2104 fb.Offset offset_usedNameOffsets; |
2091 fb.Offset offset_usedNames; | 2105 fb.Offset offset_usedNames; |
| 2106 fb.Offset offset_usedNameIsQualifiedFlags; |
2092 if (!(_definedNameKinds == null || _definedNameKinds.isEmpty)) { | 2107 if (!(_definedNameKinds == null || _definedNameKinds.isEmpty)) { |
2093 offset_definedNameKinds = fbBuilder.writeListUint8(_definedNameKinds.map((
b) => b.index).toList()); | 2108 offset_definedNameKinds = fbBuilder.writeListUint8(_definedNameKinds.map((
b) => b.index).toList()); |
2094 } | 2109 } |
2095 if (!(_definedNameOffsets == null || _definedNameOffsets.isEmpty)) { | 2110 if (!(_definedNameOffsets == null || _definedNameOffsets.isEmpty)) { |
2096 offset_definedNameOffsets = fbBuilder.writeListUint32(_definedNameOffsets)
; | 2111 offset_definedNameOffsets = fbBuilder.writeListUint32(_definedNameOffsets)
; |
2097 } | 2112 } |
2098 if (!(_definedNames == null || _definedNames.isEmpty)) { | 2113 if (!(_definedNames == null || _definedNames.isEmpty)) { |
2099 offset_definedNames = fbBuilder.writeListUint32(_definedNames); | 2114 offset_definedNames = fbBuilder.writeListUint32(_definedNames); |
2100 } | 2115 } |
2101 if (!(_usedElementIsQualifiedFlags == null || _usedElementIsQualifiedFlags.i
sEmpty)) { | 2116 if (!(_usedElementIsQualifiedFlags == null || _usedElementIsQualifiedFlags.i
sEmpty)) { |
(...skipping 13 matching lines...) Expand all Loading... |
2115 } | 2130 } |
2116 if (!(_usedNameKinds == null || _usedNameKinds.isEmpty)) { | 2131 if (!(_usedNameKinds == null || _usedNameKinds.isEmpty)) { |
2117 offset_usedNameKinds = fbBuilder.writeListUint8(_usedNameKinds.map((b) =>
b.index).toList()); | 2132 offset_usedNameKinds = fbBuilder.writeListUint8(_usedNameKinds.map((b) =>
b.index).toList()); |
2118 } | 2133 } |
2119 if (!(_usedNameOffsets == null || _usedNameOffsets.isEmpty)) { | 2134 if (!(_usedNameOffsets == null || _usedNameOffsets.isEmpty)) { |
2120 offset_usedNameOffsets = fbBuilder.writeListUint32(_usedNameOffsets); | 2135 offset_usedNameOffsets = fbBuilder.writeListUint32(_usedNameOffsets); |
2121 } | 2136 } |
2122 if (!(_usedNames == null || _usedNames.isEmpty)) { | 2137 if (!(_usedNames == null || _usedNames.isEmpty)) { |
2123 offset_usedNames = fbBuilder.writeListUint32(_usedNames); | 2138 offset_usedNames = fbBuilder.writeListUint32(_usedNames); |
2124 } | 2139 } |
| 2140 if (!(_usedNameIsQualifiedFlags == null || _usedNameIsQualifiedFlags.isEmpty
)) { |
| 2141 offset_usedNameIsQualifiedFlags = fbBuilder.writeListBool(_usedNameIsQuali
fiedFlags); |
| 2142 } |
2125 fbBuilder.startTable(); | 2143 fbBuilder.startTable(); |
2126 if (offset_definedNameKinds != null) { | 2144 if (offset_definedNameKinds != null) { |
2127 fbBuilder.addOffset(6, offset_definedNameKinds); | 2145 fbBuilder.addOffset(6, offset_definedNameKinds); |
2128 } | 2146 } |
2129 if (offset_definedNameOffsets != null) { | 2147 if (offset_definedNameOffsets != null) { |
2130 fbBuilder.addOffset(7, offset_definedNameOffsets); | 2148 fbBuilder.addOffset(7, offset_definedNameOffsets); |
2131 } | 2149 } |
2132 if (offset_definedNames != null) { | 2150 if (offset_definedNames != null) { |
2133 fbBuilder.addOffset(5, offset_definedNames); | 2151 fbBuilder.addOffset(5, offset_definedNames); |
2134 } | 2152 } |
(...skipping 17 matching lines...) Expand all Loading... |
2152 } | 2170 } |
2153 if (offset_usedNameKinds != null) { | 2171 if (offset_usedNameKinds != null) { |
2154 fbBuilder.addOffset(10, offset_usedNameKinds); | 2172 fbBuilder.addOffset(10, offset_usedNameKinds); |
2155 } | 2173 } |
2156 if (offset_usedNameOffsets != null) { | 2174 if (offset_usedNameOffsets != null) { |
2157 fbBuilder.addOffset(9, offset_usedNameOffsets); | 2175 fbBuilder.addOffset(9, offset_usedNameOffsets); |
2158 } | 2176 } |
2159 if (offset_usedNames != null) { | 2177 if (offset_usedNames != null) { |
2160 fbBuilder.addOffset(8, offset_usedNames); | 2178 fbBuilder.addOffset(8, offset_usedNames); |
2161 } | 2179 } |
| 2180 if (offset_usedNameIsQualifiedFlags != null) { |
| 2181 fbBuilder.addOffset(12, offset_usedNameIsQualifiedFlags); |
| 2182 } |
2162 return fbBuilder.endTable(); | 2183 return fbBuilder.endTable(); |
2163 } | 2184 } |
2164 } | 2185 } |
2165 | 2186 |
2166 class _UnitIndexReader extends fb.TableReader<_UnitIndexImpl> { | 2187 class _UnitIndexReader extends fb.TableReader<_UnitIndexImpl> { |
2167 const _UnitIndexReader(); | 2188 const _UnitIndexReader(); |
2168 | 2189 |
2169 @override | 2190 @override |
2170 _UnitIndexImpl createObject(fb.BufferPointer bp) => new _UnitIndexImpl(bp); | 2191 _UnitIndexImpl createObject(fb.BufferPointer bp) => new _UnitIndexImpl(bp); |
2171 } | 2192 } |
2172 | 2193 |
2173 class _UnitIndexImpl extends Object with _UnitIndexMixin implements idl.UnitInde
x { | 2194 class _UnitIndexImpl extends Object with _UnitIndexMixin implements idl.UnitInde
x { |
2174 final fb.BufferPointer _bp; | 2195 final fb.BufferPointer _bp; |
2175 | 2196 |
2176 _UnitIndexImpl(this._bp); | 2197 _UnitIndexImpl(this._bp); |
2177 | 2198 |
2178 List<idl.IndexNameKind> _definedNameKinds; | 2199 List<idl.IndexNameKind> _definedNameKinds; |
2179 List<int> _definedNameOffsets; | 2200 List<int> _definedNameOffsets; |
2180 List<int> _definedNames; | 2201 List<int> _definedNames; |
2181 int _unit; | 2202 int _unit; |
2182 List<bool> _usedElementIsQualifiedFlags; | 2203 List<bool> _usedElementIsQualifiedFlags; |
2183 List<idl.IndexRelationKind> _usedElementKinds; | 2204 List<idl.IndexRelationKind> _usedElementKinds; |
2184 List<int> _usedElementLengths; | 2205 List<int> _usedElementLengths; |
2185 List<int> _usedElementOffsets; | 2206 List<int> _usedElementOffsets; |
2186 List<int> _usedElements; | 2207 List<int> _usedElements; |
2187 List<idl.IndexRelationKind> _usedNameKinds; | 2208 List<idl.IndexRelationKind> _usedNameKinds; |
2188 List<int> _usedNameOffsets; | 2209 List<int> _usedNameOffsets; |
2189 List<int> _usedNames; | 2210 List<int> _usedNames; |
| 2211 List<bool> _usedNameIsQualifiedFlags; |
2190 | 2212 |
2191 @override | 2213 @override |
2192 List<idl.IndexNameKind> get definedNameKinds { | 2214 List<idl.IndexNameKind> get definedNameKinds { |
2193 _definedNameKinds ??= const fb.ListReader<idl.IndexNameKind>(const _IndexNam
eKindReader()).vTableGet(_bp, 6, const <idl.IndexNameKind>[]); | 2215 _definedNameKinds ??= const fb.ListReader<idl.IndexNameKind>(const _IndexNam
eKindReader()).vTableGet(_bp, 6, const <idl.IndexNameKind>[]); |
2194 return _definedNameKinds; | 2216 return _definedNameKinds; |
2195 } | 2217 } |
2196 | 2218 |
2197 @override | 2219 @override |
2198 List<int> get definedNameOffsets { | 2220 List<int> get definedNameOffsets { |
2199 _definedNameOffsets ??= const fb.Uint32ListReader().vTableGet(_bp, 7, const
<int>[]); | 2221 _definedNameOffsets ??= const fb.Uint32ListReader().vTableGet(_bp, 7, const
<int>[]); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2252 List<int> get usedNameOffsets { | 2274 List<int> get usedNameOffsets { |
2253 _usedNameOffsets ??= const fb.Uint32ListReader().vTableGet(_bp, 9, const <in
t>[]); | 2275 _usedNameOffsets ??= const fb.Uint32ListReader().vTableGet(_bp, 9, const <in
t>[]); |
2254 return _usedNameOffsets; | 2276 return _usedNameOffsets; |
2255 } | 2277 } |
2256 | 2278 |
2257 @override | 2279 @override |
2258 List<int> get usedNames { | 2280 List<int> get usedNames { |
2259 _usedNames ??= const fb.Uint32ListReader().vTableGet(_bp, 8, const <int>[]); | 2281 _usedNames ??= const fb.Uint32ListReader().vTableGet(_bp, 8, const <int>[]); |
2260 return _usedNames; | 2282 return _usedNames; |
2261 } | 2283 } |
| 2284 |
| 2285 @override |
| 2286 List<bool> get usedNameIsQualifiedFlags { |
| 2287 _usedNameIsQualifiedFlags ??= const fb.BoolListReader().vTableGet(_bp, 12, c
onst <bool>[]); |
| 2288 return _usedNameIsQualifiedFlags; |
| 2289 } |
2262 } | 2290 } |
2263 | 2291 |
2264 abstract class _UnitIndexMixin implements idl.UnitIndex { | 2292 abstract class _UnitIndexMixin implements idl.UnitIndex { |
2265 @override | 2293 @override |
2266 Map<String, Object> toJson() { | 2294 Map<String, Object> toJson() { |
2267 Map<String, Object> _result = <String, Object>{}; | 2295 Map<String, Object> _result = <String, Object>{}; |
2268 if (definedNameKinds.isNotEmpty) _result["definedNameKinds"] = definedNameKi
nds.map((_value) => _value.toString().split('.')[1]).toList(); | 2296 if (definedNameKinds.isNotEmpty) _result["definedNameKinds"] = definedNameKi
nds.map((_value) => _value.toString().split('.')[1]).toList(); |
2269 if (definedNameOffsets.isNotEmpty) _result["definedNameOffsets"] = definedNa
meOffsets; | 2297 if (definedNameOffsets.isNotEmpty) _result["definedNameOffsets"] = definedNa
meOffsets; |
2270 if (definedNames.isNotEmpty) _result["definedNames"] = definedNames; | 2298 if (definedNames.isNotEmpty) _result["definedNames"] = definedNames; |
2271 if (unit != 0) _result["unit"] = unit; | 2299 if (unit != 0) _result["unit"] = unit; |
2272 if (usedElementIsQualifiedFlags.isNotEmpty) _result["usedElementIsQualifiedF
lags"] = usedElementIsQualifiedFlags; | 2300 if (usedElementIsQualifiedFlags.isNotEmpty) _result["usedElementIsQualifiedF
lags"] = usedElementIsQualifiedFlags; |
2273 if (usedElementKinds.isNotEmpty) _result["usedElementKinds"] = usedElementKi
nds.map((_value) => _value.toString().split('.')[1]).toList(); | 2301 if (usedElementKinds.isNotEmpty) _result["usedElementKinds"] = usedElementKi
nds.map((_value) => _value.toString().split('.')[1]).toList(); |
2274 if (usedElementLengths.isNotEmpty) _result["usedElementLengths"] = usedEleme
ntLengths; | 2302 if (usedElementLengths.isNotEmpty) _result["usedElementLengths"] = usedEleme
ntLengths; |
2275 if (usedElementOffsets.isNotEmpty) _result["usedElementOffsets"] = usedEleme
ntOffsets; | 2303 if (usedElementOffsets.isNotEmpty) _result["usedElementOffsets"] = usedEleme
ntOffsets; |
2276 if (usedElements.isNotEmpty) _result["usedElements"] = usedElements; | 2304 if (usedElements.isNotEmpty) _result["usedElements"] = usedElements; |
2277 if (usedNameKinds.isNotEmpty) _result["usedNameKinds"] = usedNameKinds.map((
_value) => _value.toString().split('.')[1]).toList(); | 2305 if (usedNameKinds.isNotEmpty) _result["usedNameKinds"] = usedNameKinds.map((
_value) => _value.toString().split('.')[1]).toList(); |
2278 if (usedNameOffsets.isNotEmpty) _result["usedNameOffsets"] = usedNameOffsets
; | 2306 if (usedNameOffsets.isNotEmpty) _result["usedNameOffsets"] = usedNameOffsets
; |
2279 if (usedNames.isNotEmpty) _result["usedNames"] = usedNames; | 2307 if (usedNames.isNotEmpty) _result["usedNames"] = usedNames; |
| 2308 if (usedNameIsQualifiedFlags.isNotEmpty) _result["usedNameIsQualifiedFlags"]
= usedNameIsQualifiedFlags; |
2280 return _result; | 2309 return _result; |
2281 } | 2310 } |
2282 | 2311 |
2283 @override | 2312 @override |
2284 Map<String, Object> toMap() => { | 2313 Map<String, Object> toMap() => { |
2285 "definedNameKinds": definedNameKinds, | 2314 "definedNameKinds": definedNameKinds, |
2286 "definedNameOffsets": definedNameOffsets, | 2315 "definedNameOffsets": definedNameOffsets, |
2287 "definedNames": definedNames, | 2316 "definedNames": definedNames, |
2288 "unit": unit, | 2317 "unit": unit, |
2289 "usedElementIsQualifiedFlags": usedElementIsQualifiedFlags, | 2318 "usedElementIsQualifiedFlags": usedElementIsQualifiedFlags, |
2290 "usedElementKinds": usedElementKinds, | 2319 "usedElementKinds": usedElementKinds, |
2291 "usedElementLengths": usedElementLengths, | 2320 "usedElementLengths": usedElementLengths, |
2292 "usedElementOffsets": usedElementOffsets, | 2321 "usedElementOffsets": usedElementOffsets, |
2293 "usedElements": usedElements, | 2322 "usedElements": usedElements, |
2294 "usedNameKinds": usedNameKinds, | 2323 "usedNameKinds": usedNameKinds, |
2295 "usedNameOffsets": usedNameOffsets, | 2324 "usedNameOffsets": usedNameOffsets, |
2296 "usedNames": usedNames, | 2325 "usedNames": usedNames, |
| 2326 "usedNameIsQualifiedFlags": usedNameIsQualifiedFlags, |
2297 }; | 2327 }; |
2298 | 2328 |
2299 @override | 2329 @override |
2300 String toString() => convert.JSON.encode(toJson()); | 2330 String toString() => convert.JSON.encode(toJson()); |
2301 } | 2331 } |
2302 | 2332 |
2303 class UnlinkedClassBuilder extends Object with _UnlinkedClassMixin implements id
l.UnlinkedClass { | 2333 class UnlinkedClassBuilder extends Object with _UnlinkedClassMixin implements id
l.UnlinkedClass { |
2304 bool _finished = false; | 2334 bool _finished = false; |
2305 | 2335 |
2306 List<UnlinkedConstBuilder> _annotations; | 2336 List<UnlinkedConstBuilder> _annotations; |
(...skipping 5408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7715 "propagatedTypeSlot": propagatedTypeSlot, | 7745 "propagatedTypeSlot": propagatedTypeSlot, |
7716 "type": type, | 7746 "type": type, |
7717 "visibleLength": visibleLength, | 7747 "visibleLength": visibleLength, |
7718 "visibleOffset": visibleOffset, | 7748 "visibleOffset": visibleOffset, |
7719 }; | 7749 }; |
7720 | 7750 |
7721 @override | 7751 @override |
7722 String toString() => convert.JSON.encode(toJson()); | 7752 String toString() => convert.JSON.encode(toJson()); |
7723 } | 7753 } |
7724 | 7754 |
OLD | NEW |