| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 @override | 108 @override |
| 109 int get size => 1; | 109 int get size => 1; |
| 110 | 110 |
| 111 @override | 111 @override |
| 112 idl.UnlinkedParamKind read(fb.BufferPointer bp) { | 112 idl.UnlinkedParamKind read(fb.BufferPointer bp) { |
| 113 int index = const fb.Uint8Reader().read(bp); | 113 int index = const fb.Uint8Reader().read(bp); |
| 114 return index < idl.UnlinkedParamKind.values.length ? idl.UnlinkedParamKind.v
alues[index] : idl.UnlinkedParamKind.required; | 114 return index < idl.UnlinkedParamKind.values.length ? idl.UnlinkedParamKind.v
alues[index] : idl.UnlinkedParamKind.required; |
| 115 } | 115 } |
| 116 } | 116 } |
| 117 | 117 |
| 118 class CacheLibraryUrisBuilder extends Object with _CacheLibraryUrisMixin impleme
nts idl.CacheLibraryUris { |
| 119 bool _finished = false; |
| 120 |
| 121 List<String> _exportedUris; |
| 122 List<String> _importedUris; |
| 123 List<String> _partUris; |
| 124 |
| 125 @override |
| 126 List<String> get exportedUris => _exportedUris ??= <String>[]; |
| 127 |
| 128 /** |
| 129 * The list of exported URIs, e.g. `dart:core`, or `foo/bar.dart`, |
| 130 * or `package:foo/bar.dart`. |
| 131 */ |
| 132 void set exportedUris(List<String> _value) { |
| 133 assert(!_finished); |
| 134 _exportedUris = _value; |
| 135 } |
| 136 |
| 137 @override |
| 138 List<String> get importedUris => _importedUris ??= <String>[]; |
| 139 |
| 140 /** |
| 141 * The list of explicitly imported URIs, e.g. `dart:core`, or `foo/bar.dart`, |
| 142 * or `package:foo/bar.dart`. |
| 143 */ |
| 144 void set importedUris(List<String> _value) { |
| 145 assert(!_finished); |
| 146 _importedUris = _value; |
| 147 } |
| 148 |
| 149 @override |
| 150 List<String> get partUris => _partUris ??= <String>[]; |
| 151 |
| 152 /** |
| 153 * The list of part URIs, e.g. `foo/bar.dart`. |
| 154 */ |
| 155 void set partUris(List<String> _value) { |
| 156 assert(!_finished); |
| 157 _partUris = _value; |
| 158 } |
| 159 |
| 160 CacheLibraryUrisBuilder({List<String> exportedUris, List<String> importedUris,
List<String> partUris}) |
| 161 : _exportedUris = exportedUris, |
| 162 _importedUris = importedUris, |
| 163 _partUris = partUris; |
| 164 |
| 165 List<int> toBuffer() { |
| 166 fb.Builder fbBuilder = new fb.Builder(); |
| 167 return fbBuilder.finish(finish(fbBuilder), "CaLU"); |
| 168 } |
| 169 |
| 170 fb.Offset finish(fb.Builder fbBuilder) { |
| 171 assert(!_finished); |
| 172 _finished = true; |
| 173 fb.Offset offset_exportedUris; |
| 174 fb.Offset offset_importedUris; |
| 175 fb.Offset offset_partUris; |
| 176 if (!(_exportedUris == null || _exportedUris.isEmpty)) { |
| 177 offset_exportedUris = fbBuilder.writeList(_exportedUris.map((b) => fbBuild
er.writeString(b)).toList()); |
| 178 } |
| 179 if (!(_importedUris == null || _importedUris.isEmpty)) { |
| 180 offset_importedUris = fbBuilder.writeList(_importedUris.map((b) => fbBuild
er.writeString(b)).toList()); |
| 181 } |
| 182 if (!(_partUris == null || _partUris.isEmpty)) { |
| 183 offset_partUris = fbBuilder.writeList(_partUris.map((b) => fbBuilder.write
String(b)).toList()); |
| 184 } |
| 185 fbBuilder.startTable(); |
| 186 if (offset_exportedUris != null) { |
| 187 fbBuilder.addOffset(1, offset_exportedUris); |
| 188 } |
| 189 if (offset_importedUris != null) { |
| 190 fbBuilder.addOffset(0, offset_importedUris); |
| 191 } |
| 192 if (offset_partUris != null) { |
| 193 fbBuilder.addOffset(2, offset_partUris); |
| 194 } |
| 195 return fbBuilder.endTable(); |
| 196 } |
| 197 } |
| 198 |
| 199 idl.CacheLibraryUris readCacheLibraryUris(List<int> buffer) { |
| 200 fb.BufferPointer rootRef = new fb.BufferPointer.fromBytes(buffer); |
| 201 return const _CacheLibraryUrisReader().read(rootRef); |
| 202 } |
| 203 |
| 204 class _CacheLibraryUrisReader extends fb.TableReader<_CacheLibraryUrisImpl> { |
| 205 const _CacheLibraryUrisReader(); |
| 206 |
| 207 @override |
| 208 _CacheLibraryUrisImpl createObject(fb.BufferPointer bp) => new _CacheLibraryUr
isImpl(bp); |
| 209 } |
| 210 |
| 211 class _CacheLibraryUrisImpl extends Object with _CacheLibraryUrisMixin implement
s idl.CacheLibraryUris { |
| 212 final fb.BufferPointer _bp; |
| 213 |
| 214 _CacheLibraryUrisImpl(this._bp); |
| 215 |
| 216 List<String> _exportedUris; |
| 217 List<String> _importedUris; |
| 218 List<String> _partUris; |
| 219 |
| 220 @override |
| 221 List<String> get exportedUris { |
| 222 _exportedUris ??= const fb.ListReader<String>(const fb.StringReader()).vTabl
eGet(_bp, 1, const <String>[]); |
| 223 return _exportedUris; |
| 224 } |
| 225 |
| 226 @override |
| 227 List<String> get importedUris { |
| 228 _importedUris ??= const fb.ListReader<String>(const fb.StringReader()).vTabl
eGet(_bp, 0, const <String>[]); |
| 229 return _importedUris; |
| 230 } |
| 231 |
| 232 @override |
| 233 List<String> get partUris { |
| 234 _partUris ??= const fb.ListReader<String>(const fb.StringReader()).vTableGet
(_bp, 2, const <String>[]); |
| 235 return _partUris; |
| 236 } |
| 237 } |
| 238 |
| 239 abstract class _CacheLibraryUrisMixin implements idl.CacheLibraryUris { |
| 240 @override |
| 241 Map<String, Object> toJson() { |
| 242 Map<String, Object> _result = <String, Object>{}; |
| 243 if (exportedUris.isNotEmpty) _result["exportedUris"] = exportedUris; |
| 244 if (importedUris.isNotEmpty) _result["importedUris"] = importedUris; |
| 245 if (partUris.isNotEmpty) _result["partUris"] = partUris; |
| 246 return _result; |
| 247 } |
| 248 |
| 249 @override |
| 250 Map<String, Object> toMap() => { |
| 251 "exportedUris": exportedUris, |
| 252 "importedUris": importedUris, |
| 253 "partUris": partUris, |
| 254 }; |
| 255 |
| 256 @override |
| 257 String toString() => convert.JSON.encode(toJson()); |
| 258 } |
| 259 |
| 118 class CodeRangeBuilder extends Object with _CodeRangeMixin implements idl.CodeRa
nge { | 260 class CodeRangeBuilder extends Object with _CodeRangeMixin implements idl.CodeRa
nge { |
| 119 bool _finished = false; | 261 bool _finished = false; |
| 120 | 262 |
| 121 int _length; | 263 int _length; |
| 122 int _offset; | 264 int _offset; |
| 123 | 265 |
| 124 @override | 266 @override |
| 125 int get length => _length ??= 0; | 267 int get length => _length ??= 0; |
| 126 | 268 |
| 127 /** | 269 /** |
| (...skipping 1770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1898 | 2040 |
| 1899 List<idl.IndexNameKind> _definedNameKinds; | 2041 List<idl.IndexNameKind> _definedNameKinds; |
| 1900 List<int> _definedNameOffsets; | 2042 List<int> _definedNameOffsets; |
| 1901 List<int> _definedNames; | 2043 List<int> _definedNames; |
| 1902 int _unit; | 2044 int _unit; |
| 1903 List<bool> _usedElementIsQualifiedFlags; | 2045 List<bool> _usedElementIsQualifiedFlags; |
| 1904 List<idl.IndexRelationKind> _usedElementKinds; | 2046 List<idl.IndexRelationKind> _usedElementKinds; |
| 1905 List<int> _usedElementLengths; | 2047 List<int> _usedElementLengths; |
| 1906 List<int> _usedElementOffsets; | 2048 List<int> _usedElementOffsets; |
| 1907 List<int> _usedElements; | 2049 List<int> _usedElements; |
| 2050 List<bool> _usedNameIsQualifiedFlags; |
| 1908 List<idl.IndexRelationKind> _usedNameKinds; | 2051 List<idl.IndexRelationKind> _usedNameKinds; |
| 1909 List<int> _usedNameOffsets; | 2052 List<int> _usedNameOffsets; |
| 1910 List<int> _usedNames; | 2053 List<int> _usedNames; |
| 1911 List<bool> _usedNameIsQualifiedFlags; | |
| 1912 | 2054 |
| 1913 @override | 2055 @override |
| 1914 List<idl.IndexNameKind> get definedNameKinds => _definedNameKinds ??= <idl.Ind
exNameKind>[]; | 2056 List<idl.IndexNameKind> get definedNameKinds => _definedNameKinds ??= <idl.Ind
exNameKind>[]; |
| 1915 | 2057 |
| 1916 /** | 2058 /** |
| 1917 * Each item of this list is the kind of an element defined in this unit. | 2059 * Each item of this list is the kind of an element defined in this unit. |
| 1918 */ | 2060 */ |
| 1919 void set definedNameKinds(List<idl.IndexNameKind> _value) { | 2061 void set definedNameKinds(List<idl.IndexNameKind> _value) { |
| 1920 assert(!_finished); | 2062 assert(!_finished); |
| 1921 _definedNameKinds = _value; | 2063 _definedNameKinds = _value; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2018 * [PackageIndex.elementOffsets]. The list is sorted in ascending order, so | 2160 * [PackageIndex.elementOffsets]. The list is sorted in ascending order, so |
| 2019 * that the client can quickly find element references in this [UnitIndex]. | 2161 * that the client can quickly find element references in this [UnitIndex]. |
| 2020 */ | 2162 */ |
| 2021 void set usedElements(List<int> _value) { | 2163 void set usedElements(List<int> _value) { |
| 2022 assert(!_finished); | 2164 assert(!_finished); |
| 2023 assert(_value == null || _value.every((e) => e >= 0)); | 2165 assert(_value == null || _value.every((e) => e >= 0)); |
| 2024 _usedElements = _value; | 2166 _usedElements = _value; |
| 2025 } | 2167 } |
| 2026 | 2168 |
| 2027 @override | 2169 @override |
| 2170 List<bool> get usedNameIsQualifiedFlags => _usedNameIsQualifiedFlags ??= <bool
>[]; |
| 2171 |
| 2172 /** |
| 2173 * Each item of this list is the `true` if the corresponding name usage |
| 2174 * is qualified with some prefix. |
| 2175 */ |
| 2176 void set usedNameIsQualifiedFlags(List<bool> _value) { |
| 2177 assert(!_finished); |
| 2178 _usedNameIsQualifiedFlags = _value; |
| 2179 } |
| 2180 |
| 2181 @override |
| 2028 List<idl.IndexRelationKind> get usedNameKinds => _usedNameKinds ??= <idl.Index
RelationKind>[]; | 2182 List<idl.IndexRelationKind> get usedNameKinds => _usedNameKinds ??= <idl.Index
RelationKind>[]; |
| 2029 | 2183 |
| 2030 /** | 2184 /** |
| 2031 * Each item of this list is the kind of the name usage. | 2185 * Each item of this list is the kind of the name usage. |
| 2032 */ | 2186 */ |
| 2033 void set usedNameKinds(List<idl.IndexRelationKind> _value) { | 2187 void set usedNameKinds(List<idl.IndexRelationKind> _value) { |
| 2034 assert(!_finished); | 2188 assert(!_finished); |
| 2035 _usedNameKinds = _value; | 2189 _usedNameKinds = _value; |
| 2036 } | 2190 } |
| 2037 | 2191 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 2055 * Each item of this list is the index into [PackageIndex.strings] for a | 2209 * Each item of this list is the index into [PackageIndex.strings] for a |
| 2056 * used name. The list is sorted in ascending order, so that the client can | 2210 * used name. The list is sorted in ascending order, so that the client can |
| 2057 * quickly find name uses in this [UnitIndex]. | 2211 * quickly find name uses in this [UnitIndex]. |
| 2058 */ | 2212 */ |
| 2059 void set usedNames(List<int> _value) { | 2213 void set usedNames(List<int> _value) { |
| 2060 assert(!_finished); | 2214 assert(!_finished); |
| 2061 assert(_value == null || _value.every((e) => e >= 0)); | 2215 assert(_value == null || _value.every((e) => e >= 0)); |
| 2062 _usedNames = _value; | 2216 _usedNames = _value; |
| 2063 } | 2217 } |
| 2064 | 2218 |
| 2065 @override | 2219 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<bool> usedNameIsQua
lifiedFlags, List<idl.IndexRelationKind> usedNameKinds, List<int> usedNameOffset
s, List<int> usedNames}) |
| 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}) | |
| 2078 : _definedNameKinds = definedNameKinds, | 2220 : _definedNameKinds = definedNameKinds, |
| 2079 _definedNameOffsets = definedNameOffsets, | 2221 _definedNameOffsets = definedNameOffsets, |
| 2080 _definedNames = definedNames, | 2222 _definedNames = definedNames, |
| 2081 _unit = unit, | 2223 _unit = unit, |
| 2082 _usedElementIsQualifiedFlags = usedElementIsQualifiedFlags, | 2224 _usedElementIsQualifiedFlags = usedElementIsQualifiedFlags, |
| 2083 _usedElementKinds = usedElementKinds, | 2225 _usedElementKinds = usedElementKinds, |
| 2084 _usedElementLengths = usedElementLengths, | 2226 _usedElementLengths = usedElementLengths, |
| 2085 _usedElementOffsets = usedElementOffsets, | 2227 _usedElementOffsets = usedElementOffsets, |
| 2086 _usedElements = usedElements, | 2228 _usedElements = usedElements, |
| 2229 _usedNameIsQualifiedFlags = usedNameIsQualifiedFlags, |
| 2087 _usedNameKinds = usedNameKinds, | 2230 _usedNameKinds = usedNameKinds, |
| 2088 _usedNameOffsets = usedNameOffsets, | 2231 _usedNameOffsets = usedNameOffsets, |
| 2089 _usedNames = usedNames, | 2232 _usedNames = usedNames; |
| 2090 _usedNameIsQualifiedFlags = usedNameIsQualifiedFlags; | |
| 2091 | 2233 |
| 2092 fb.Offset finish(fb.Builder fbBuilder) { | 2234 fb.Offset finish(fb.Builder fbBuilder) { |
| 2093 assert(!_finished); | 2235 assert(!_finished); |
| 2094 _finished = true; | 2236 _finished = true; |
| 2095 fb.Offset offset_definedNameKinds; | 2237 fb.Offset offset_definedNameKinds; |
| 2096 fb.Offset offset_definedNameOffsets; | 2238 fb.Offset offset_definedNameOffsets; |
| 2097 fb.Offset offset_definedNames; | 2239 fb.Offset offset_definedNames; |
| 2098 fb.Offset offset_usedElementIsQualifiedFlags; | 2240 fb.Offset offset_usedElementIsQualifiedFlags; |
| 2099 fb.Offset offset_usedElementKinds; | 2241 fb.Offset offset_usedElementKinds; |
| 2100 fb.Offset offset_usedElementLengths; | 2242 fb.Offset offset_usedElementLengths; |
| 2101 fb.Offset offset_usedElementOffsets; | 2243 fb.Offset offset_usedElementOffsets; |
| 2102 fb.Offset offset_usedElements; | 2244 fb.Offset offset_usedElements; |
| 2245 fb.Offset offset_usedNameIsQualifiedFlags; |
| 2103 fb.Offset offset_usedNameKinds; | 2246 fb.Offset offset_usedNameKinds; |
| 2104 fb.Offset offset_usedNameOffsets; | 2247 fb.Offset offset_usedNameOffsets; |
| 2105 fb.Offset offset_usedNames; | 2248 fb.Offset offset_usedNames; |
| 2106 fb.Offset offset_usedNameIsQualifiedFlags; | |
| 2107 if (!(_definedNameKinds == null || _definedNameKinds.isEmpty)) { | 2249 if (!(_definedNameKinds == null || _definedNameKinds.isEmpty)) { |
| 2108 offset_definedNameKinds = fbBuilder.writeListUint8(_definedNameKinds.map((
b) => b.index).toList()); | 2250 offset_definedNameKinds = fbBuilder.writeListUint8(_definedNameKinds.map((
b) => b.index).toList()); |
| 2109 } | 2251 } |
| 2110 if (!(_definedNameOffsets == null || _definedNameOffsets.isEmpty)) { | 2252 if (!(_definedNameOffsets == null || _definedNameOffsets.isEmpty)) { |
| 2111 offset_definedNameOffsets = fbBuilder.writeListUint32(_definedNameOffsets)
; | 2253 offset_definedNameOffsets = fbBuilder.writeListUint32(_definedNameOffsets)
; |
| 2112 } | 2254 } |
| 2113 if (!(_definedNames == null || _definedNames.isEmpty)) { | 2255 if (!(_definedNames == null || _definedNames.isEmpty)) { |
| 2114 offset_definedNames = fbBuilder.writeListUint32(_definedNames); | 2256 offset_definedNames = fbBuilder.writeListUint32(_definedNames); |
| 2115 } | 2257 } |
| 2116 if (!(_usedElementIsQualifiedFlags == null || _usedElementIsQualifiedFlags.i
sEmpty)) { | 2258 if (!(_usedElementIsQualifiedFlags == null || _usedElementIsQualifiedFlags.i
sEmpty)) { |
| 2117 offset_usedElementIsQualifiedFlags = fbBuilder.writeListBool(_usedElementI
sQualifiedFlags); | 2259 offset_usedElementIsQualifiedFlags = fbBuilder.writeListBool(_usedElementI
sQualifiedFlags); |
| 2118 } | 2260 } |
| 2119 if (!(_usedElementKinds == null || _usedElementKinds.isEmpty)) { | 2261 if (!(_usedElementKinds == null || _usedElementKinds.isEmpty)) { |
| 2120 offset_usedElementKinds = fbBuilder.writeListUint8(_usedElementKinds.map((
b) => b.index).toList()); | 2262 offset_usedElementKinds = fbBuilder.writeListUint8(_usedElementKinds.map((
b) => b.index).toList()); |
| 2121 } | 2263 } |
| 2122 if (!(_usedElementLengths == null || _usedElementLengths.isEmpty)) { | 2264 if (!(_usedElementLengths == null || _usedElementLengths.isEmpty)) { |
| 2123 offset_usedElementLengths = fbBuilder.writeListUint32(_usedElementLengths)
; | 2265 offset_usedElementLengths = fbBuilder.writeListUint32(_usedElementLengths)
; |
| 2124 } | 2266 } |
| 2125 if (!(_usedElementOffsets == null || _usedElementOffsets.isEmpty)) { | 2267 if (!(_usedElementOffsets == null || _usedElementOffsets.isEmpty)) { |
| 2126 offset_usedElementOffsets = fbBuilder.writeListUint32(_usedElementOffsets)
; | 2268 offset_usedElementOffsets = fbBuilder.writeListUint32(_usedElementOffsets)
; |
| 2127 } | 2269 } |
| 2128 if (!(_usedElements == null || _usedElements.isEmpty)) { | 2270 if (!(_usedElements == null || _usedElements.isEmpty)) { |
| 2129 offset_usedElements = fbBuilder.writeListUint32(_usedElements); | 2271 offset_usedElements = fbBuilder.writeListUint32(_usedElements); |
| 2130 } | 2272 } |
| 2273 if (!(_usedNameIsQualifiedFlags == null || _usedNameIsQualifiedFlags.isEmpty
)) { |
| 2274 offset_usedNameIsQualifiedFlags = fbBuilder.writeListBool(_usedNameIsQuali
fiedFlags); |
| 2275 } |
| 2131 if (!(_usedNameKinds == null || _usedNameKinds.isEmpty)) { | 2276 if (!(_usedNameKinds == null || _usedNameKinds.isEmpty)) { |
| 2132 offset_usedNameKinds = fbBuilder.writeListUint8(_usedNameKinds.map((b) =>
b.index).toList()); | 2277 offset_usedNameKinds = fbBuilder.writeListUint8(_usedNameKinds.map((b) =>
b.index).toList()); |
| 2133 } | 2278 } |
| 2134 if (!(_usedNameOffsets == null || _usedNameOffsets.isEmpty)) { | 2279 if (!(_usedNameOffsets == null || _usedNameOffsets.isEmpty)) { |
| 2135 offset_usedNameOffsets = fbBuilder.writeListUint32(_usedNameOffsets); | 2280 offset_usedNameOffsets = fbBuilder.writeListUint32(_usedNameOffsets); |
| 2136 } | 2281 } |
| 2137 if (!(_usedNames == null || _usedNames.isEmpty)) { | 2282 if (!(_usedNames == null || _usedNames.isEmpty)) { |
| 2138 offset_usedNames = fbBuilder.writeListUint32(_usedNames); | 2283 offset_usedNames = fbBuilder.writeListUint32(_usedNames); |
| 2139 } | 2284 } |
| 2140 if (!(_usedNameIsQualifiedFlags == null || _usedNameIsQualifiedFlags.isEmpty
)) { | |
| 2141 offset_usedNameIsQualifiedFlags = fbBuilder.writeListBool(_usedNameIsQuali
fiedFlags); | |
| 2142 } | |
| 2143 fbBuilder.startTable(); | 2285 fbBuilder.startTable(); |
| 2144 if (offset_definedNameKinds != null) { | 2286 if (offset_definedNameKinds != null) { |
| 2145 fbBuilder.addOffset(6, offset_definedNameKinds); | 2287 fbBuilder.addOffset(6, offset_definedNameKinds); |
| 2146 } | 2288 } |
| 2147 if (offset_definedNameOffsets != null) { | 2289 if (offset_definedNameOffsets != null) { |
| 2148 fbBuilder.addOffset(7, offset_definedNameOffsets); | 2290 fbBuilder.addOffset(7, offset_definedNameOffsets); |
| 2149 } | 2291 } |
| 2150 if (offset_definedNames != null) { | 2292 if (offset_definedNames != null) { |
| 2151 fbBuilder.addOffset(5, offset_definedNames); | 2293 fbBuilder.addOffset(5, offset_definedNames); |
| 2152 } | 2294 } |
| 2153 if (_unit != null && _unit != 0) { | 2295 if (_unit != null && _unit != 0) { |
| 2154 fbBuilder.addUint32(0, _unit); | 2296 fbBuilder.addUint32(0, _unit); |
| 2155 } | 2297 } |
| 2156 if (offset_usedElementIsQualifiedFlags != null) { | 2298 if (offset_usedElementIsQualifiedFlags != null) { |
| 2157 fbBuilder.addOffset(11, offset_usedElementIsQualifiedFlags); | 2299 fbBuilder.addOffset(11, offset_usedElementIsQualifiedFlags); |
| 2158 } | 2300 } |
| 2159 if (offset_usedElementKinds != null) { | 2301 if (offset_usedElementKinds != null) { |
| 2160 fbBuilder.addOffset(4, offset_usedElementKinds); | 2302 fbBuilder.addOffset(4, offset_usedElementKinds); |
| 2161 } | 2303 } |
| 2162 if (offset_usedElementLengths != null) { | 2304 if (offset_usedElementLengths != null) { |
| 2163 fbBuilder.addOffset(1, offset_usedElementLengths); | 2305 fbBuilder.addOffset(1, offset_usedElementLengths); |
| 2164 } | 2306 } |
| 2165 if (offset_usedElementOffsets != null) { | 2307 if (offset_usedElementOffsets != null) { |
| 2166 fbBuilder.addOffset(2, offset_usedElementOffsets); | 2308 fbBuilder.addOffset(2, offset_usedElementOffsets); |
| 2167 } | 2309 } |
| 2168 if (offset_usedElements != null) { | 2310 if (offset_usedElements != null) { |
| 2169 fbBuilder.addOffset(3, offset_usedElements); | 2311 fbBuilder.addOffset(3, offset_usedElements); |
| 2170 } | 2312 } |
| 2313 if (offset_usedNameIsQualifiedFlags != null) { |
| 2314 fbBuilder.addOffset(12, offset_usedNameIsQualifiedFlags); |
| 2315 } |
| 2171 if (offset_usedNameKinds != null) { | 2316 if (offset_usedNameKinds != null) { |
| 2172 fbBuilder.addOffset(10, offset_usedNameKinds); | 2317 fbBuilder.addOffset(10, offset_usedNameKinds); |
| 2173 } | 2318 } |
| 2174 if (offset_usedNameOffsets != null) { | 2319 if (offset_usedNameOffsets != null) { |
| 2175 fbBuilder.addOffset(9, offset_usedNameOffsets); | 2320 fbBuilder.addOffset(9, offset_usedNameOffsets); |
| 2176 } | 2321 } |
| 2177 if (offset_usedNames != null) { | 2322 if (offset_usedNames != null) { |
| 2178 fbBuilder.addOffset(8, offset_usedNames); | 2323 fbBuilder.addOffset(8, offset_usedNames); |
| 2179 } | 2324 } |
| 2180 if (offset_usedNameIsQualifiedFlags != null) { | |
| 2181 fbBuilder.addOffset(12, offset_usedNameIsQualifiedFlags); | |
| 2182 } | |
| 2183 return fbBuilder.endTable(); | 2325 return fbBuilder.endTable(); |
| 2184 } | 2326 } |
| 2185 } | 2327 } |
| 2186 | 2328 |
| 2187 class _UnitIndexReader extends fb.TableReader<_UnitIndexImpl> { | 2329 class _UnitIndexReader extends fb.TableReader<_UnitIndexImpl> { |
| 2188 const _UnitIndexReader(); | 2330 const _UnitIndexReader(); |
| 2189 | 2331 |
| 2190 @override | 2332 @override |
| 2191 _UnitIndexImpl createObject(fb.BufferPointer bp) => new _UnitIndexImpl(bp); | 2333 _UnitIndexImpl createObject(fb.BufferPointer bp) => new _UnitIndexImpl(bp); |
| 2192 } | 2334 } |
| 2193 | 2335 |
| 2194 class _UnitIndexImpl extends Object with _UnitIndexMixin implements idl.UnitInde
x { | 2336 class _UnitIndexImpl extends Object with _UnitIndexMixin implements idl.UnitInde
x { |
| 2195 final fb.BufferPointer _bp; | 2337 final fb.BufferPointer _bp; |
| 2196 | 2338 |
| 2197 _UnitIndexImpl(this._bp); | 2339 _UnitIndexImpl(this._bp); |
| 2198 | 2340 |
| 2199 List<idl.IndexNameKind> _definedNameKinds; | 2341 List<idl.IndexNameKind> _definedNameKinds; |
| 2200 List<int> _definedNameOffsets; | 2342 List<int> _definedNameOffsets; |
| 2201 List<int> _definedNames; | 2343 List<int> _definedNames; |
| 2202 int _unit; | 2344 int _unit; |
| 2203 List<bool> _usedElementIsQualifiedFlags; | 2345 List<bool> _usedElementIsQualifiedFlags; |
| 2204 List<idl.IndexRelationKind> _usedElementKinds; | 2346 List<idl.IndexRelationKind> _usedElementKinds; |
| 2205 List<int> _usedElementLengths; | 2347 List<int> _usedElementLengths; |
| 2206 List<int> _usedElementOffsets; | 2348 List<int> _usedElementOffsets; |
| 2207 List<int> _usedElements; | 2349 List<int> _usedElements; |
| 2350 List<bool> _usedNameIsQualifiedFlags; |
| 2208 List<idl.IndexRelationKind> _usedNameKinds; | 2351 List<idl.IndexRelationKind> _usedNameKinds; |
| 2209 List<int> _usedNameOffsets; | 2352 List<int> _usedNameOffsets; |
| 2210 List<int> _usedNames; | 2353 List<int> _usedNames; |
| 2211 List<bool> _usedNameIsQualifiedFlags; | |
| 2212 | 2354 |
| 2213 @override | 2355 @override |
| 2214 List<idl.IndexNameKind> get definedNameKinds { | 2356 List<idl.IndexNameKind> get definedNameKinds { |
| 2215 _definedNameKinds ??= const fb.ListReader<idl.IndexNameKind>(const _IndexNam
eKindReader()).vTableGet(_bp, 6, const <idl.IndexNameKind>[]); | 2357 _definedNameKinds ??= const fb.ListReader<idl.IndexNameKind>(const _IndexNam
eKindReader()).vTableGet(_bp, 6, const <idl.IndexNameKind>[]); |
| 2216 return _definedNameKinds; | 2358 return _definedNameKinds; |
| 2217 } | 2359 } |
| 2218 | 2360 |
| 2219 @override | 2361 @override |
| 2220 List<int> get definedNameOffsets { | 2362 List<int> get definedNameOffsets { |
| 2221 _definedNameOffsets ??= const fb.Uint32ListReader().vTableGet(_bp, 7, const
<int>[]); | 2363 _definedNameOffsets ??= const fb.Uint32ListReader().vTableGet(_bp, 7, const
<int>[]); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2258 return _usedElementOffsets; | 2400 return _usedElementOffsets; |
| 2259 } | 2401 } |
| 2260 | 2402 |
| 2261 @override | 2403 @override |
| 2262 List<int> get usedElements { | 2404 List<int> get usedElements { |
| 2263 _usedElements ??= const fb.Uint32ListReader().vTableGet(_bp, 3, const <int>[
]); | 2405 _usedElements ??= const fb.Uint32ListReader().vTableGet(_bp, 3, const <int>[
]); |
| 2264 return _usedElements; | 2406 return _usedElements; |
| 2265 } | 2407 } |
| 2266 | 2408 |
| 2267 @override | 2409 @override |
| 2410 List<bool> get usedNameIsQualifiedFlags { |
| 2411 _usedNameIsQualifiedFlags ??= const fb.BoolListReader().vTableGet(_bp, 12, c
onst <bool>[]); |
| 2412 return _usedNameIsQualifiedFlags; |
| 2413 } |
| 2414 |
| 2415 @override |
| 2268 List<idl.IndexRelationKind> get usedNameKinds { | 2416 List<idl.IndexRelationKind> get usedNameKinds { |
| 2269 _usedNameKinds ??= const fb.ListReader<idl.IndexRelationKind>(const _IndexRe
lationKindReader()).vTableGet(_bp, 10, const <idl.IndexRelationKind>[]); | 2417 _usedNameKinds ??= const fb.ListReader<idl.IndexRelationKind>(const _IndexRe
lationKindReader()).vTableGet(_bp, 10, const <idl.IndexRelationKind>[]); |
| 2270 return _usedNameKinds; | 2418 return _usedNameKinds; |
| 2271 } | 2419 } |
| 2272 | 2420 |
| 2273 @override | 2421 @override |
| 2274 List<int> get usedNameOffsets { | 2422 List<int> get usedNameOffsets { |
| 2275 _usedNameOffsets ??= const fb.Uint32ListReader().vTableGet(_bp, 9, const <in
t>[]); | 2423 _usedNameOffsets ??= const fb.Uint32ListReader().vTableGet(_bp, 9, const <in
t>[]); |
| 2276 return _usedNameOffsets; | 2424 return _usedNameOffsets; |
| 2277 } | 2425 } |
| 2278 | 2426 |
| 2279 @override | 2427 @override |
| 2280 List<int> get usedNames { | 2428 List<int> get usedNames { |
| 2281 _usedNames ??= const fb.Uint32ListReader().vTableGet(_bp, 8, const <int>[]); | 2429 _usedNames ??= const fb.Uint32ListReader().vTableGet(_bp, 8, const <int>[]); |
| 2282 return _usedNames; | 2430 return _usedNames; |
| 2283 } | 2431 } |
| 2284 | |
| 2285 @override | |
| 2286 List<bool> get usedNameIsQualifiedFlags { | |
| 2287 _usedNameIsQualifiedFlags ??= const fb.BoolListReader().vTableGet(_bp, 12, c
onst <bool>[]); | |
| 2288 return _usedNameIsQualifiedFlags; | |
| 2289 } | |
| 2290 } | 2432 } |
| 2291 | 2433 |
| 2292 abstract class _UnitIndexMixin implements idl.UnitIndex { | 2434 abstract class _UnitIndexMixin implements idl.UnitIndex { |
| 2293 @override | 2435 @override |
| 2294 Map<String, Object> toJson() { | 2436 Map<String, Object> toJson() { |
| 2295 Map<String, Object> _result = <String, Object>{}; | 2437 Map<String, Object> _result = <String, Object>{}; |
| 2296 if (definedNameKinds.isNotEmpty) _result["definedNameKinds"] = definedNameKi
nds.map((_value) => _value.toString().split('.')[1]).toList(); | 2438 if (definedNameKinds.isNotEmpty) _result["definedNameKinds"] = definedNameKi
nds.map((_value) => _value.toString().split('.')[1]).toList(); |
| 2297 if (definedNameOffsets.isNotEmpty) _result["definedNameOffsets"] = definedNa
meOffsets; | 2439 if (definedNameOffsets.isNotEmpty) _result["definedNameOffsets"] = definedNa
meOffsets; |
| 2298 if (definedNames.isNotEmpty) _result["definedNames"] = definedNames; | 2440 if (definedNames.isNotEmpty) _result["definedNames"] = definedNames; |
| 2299 if (unit != 0) _result["unit"] = unit; | 2441 if (unit != 0) _result["unit"] = unit; |
| 2300 if (usedElementIsQualifiedFlags.isNotEmpty) _result["usedElementIsQualifiedF
lags"] = usedElementIsQualifiedFlags; | 2442 if (usedElementIsQualifiedFlags.isNotEmpty) _result["usedElementIsQualifiedF
lags"] = usedElementIsQualifiedFlags; |
| 2301 if (usedElementKinds.isNotEmpty) _result["usedElementKinds"] = usedElementKi
nds.map((_value) => _value.toString().split('.')[1]).toList(); | 2443 if (usedElementKinds.isNotEmpty) _result["usedElementKinds"] = usedElementKi
nds.map((_value) => _value.toString().split('.')[1]).toList(); |
| 2302 if (usedElementLengths.isNotEmpty) _result["usedElementLengths"] = usedEleme
ntLengths; | 2444 if (usedElementLengths.isNotEmpty) _result["usedElementLengths"] = usedEleme
ntLengths; |
| 2303 if (usedElementOffsets.isNotEmpty) _result["usedElementOffsets"] = usedEleme
ntOffsets; | 2445 if (usedElementOffsets.isNotEmpty) _result["usedElementOffsets"] = usedEleme
ntOffsets; |
| 2304 if (usedElements.isNotEmpty) _result["usedElements"] = usedElements; | 2446 if (usedElements.isNotEmpty) _result["usedElements"] = usedElements; |
| 2447 if (usedNameIsQualifiedFlags.isNotEmpty) _result["usedNameIsQualifiedFlags"]
= usedNameIsQualifiedFlags; |
| 2305 if (usedNameKinds.isNotEmpty) _result["usedNameKinds"] = usedNameKinds.map((
_value) => _value.toString().split('.')[1]).toList(); | 2448 if (usedNameKinds.isNotEmpty) _result["usedNameKinds"] = usedNameKinds.map((
_value) => _value.toString().split('.')[1]).toList(); |
| 2306 if (usedNameOffsets.isNotEmpty) _result["usedNameOffsets"] = usedNameOffsets
; | 2449 if (usedNameOffsets.isNotEmpty) _result["usedNameOffsets"] = usedNameOffsets
; |
| 2307 if (usedNames.isNotEmpty) _result["usedNames"] = usedNames; | 2450 if (usedNames.isNotEmpty) _result["usedNames"] = usedNames; |
| 2308 if (usedNameIsQualifiedFlags.isNotEmpty) _result["usedNameIsQualifiedFlags"]
= usedNameIsQualifiedFlags; | |
| 2309 return _result; | 2451 return _result; |
| 2310 } | 2452 } |
| 2311 | 2453 |
| 2312 @override | 2454 @override |
| 2313 Map<String, Object> toMap() => { | 2455 Map<String, Object> toMap() => { |
| 2314 "definedNameKinds": definedNameKinds, | 2456 "definedNameKinds": definedNameKinds, |
| 2315 "definedNameOffsets": definedNameOffsets, | 2457 "definedNameOffsets": definedNameOffsets, |
| 2316 "definedNames": definedNames, | 2458 "definedNames": definedNames, |
| 2317 "unit": unit, | 2459 "unit": unit, |
| 2318 "usedElementIsQualifiedFlags": usedElementIsQualifiedFlags, | 2460 "usedElementIsQualifiedFlags": usedElementIsQualifiedFlags, |
| 2319 "usedElementKinds": usedElementKinds, | 2461 "usedElementKinds": usedElementKinds, |
| 2320 "usedElementLengths": usedElementLengths, | 2462 "usedElementLengths": usedElementLengths, |
| 2321 "usedElementOffsets": usedElementOffsets, | 2463 "usedElementOffsets": usedElementOffsets, |
| 2322 "usedElements": usedElements, | 2464 "usedElements": usedElements, |
| 2465 "usedNameIsQualifiedFlags": usedNameIsQualifiedFlags, |
| 2323 "usedNameKinds": usedNameKinds, | 2466 "usedNameKinds": usedNameKinds, |
| 2324 "usedNameOffsets": usedNameOffsets, | 2467 "usedNameOffsets": usedNameOffsets, |
| 2325 "usedNames": usedNames, | 2468 "usedNames": usedNames, |
| 2326 "usedNameIsQualifiedFlags": usedNameIsQualifiedFlags, | |
| 2327 }; | 2469 }; |
| 2328 | 2470 |
| 2329 @override | 2471 @override |
| 2330 String toString() => convert.JSON.encode(toJson()); | 2472 String toString() => convert.JSON.encode(toJson()); |
| 2331 } | 2473 } |
| 2332 | 2474 |
| 2333 class UnlinkedClassBuilder extends Object with _UnlinkedClassMixin implements id
l.UnlinkedClass { | 2475 class UnlinkedClassBuilder extends Object with _UnlinkedClassMixin implements id
l.UnlinkedClass { |
| 2334 bool _finished = false; | 2476 bool _finished = false; |
| 2335 | 2477 |
| 2336 List<UnlinkedConstBuilder> _annotations; | 2478 List<UnlinkedConstBuilder> _annotations; |
| (...skipping 5408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7745 "propagatedTypeSlot": propagatedTypeSlot, | 7887 "propagatedTypeSlot": propagatedTypeSlot, |
| 7746 "type": type, | 7888 "type": type, |
| 7747 "visibleLength": visibleLength, | 7889 "visibleLength": visibleLength, |
| 7748 "visibleOffset": visibleOffset, | 7890 "visibleOffset": visibleOffset, |
| 7749 }; | 7891 }; |
| 7750 | 7892 |
| 7751 @override | 7893 @override |
| 7752 String toString() => convert.JSON.encode(toJson()); | 7894 String toString() => convert.JSON.encode(toJson()); |
| 7753 } | 7895 } |
| 7754 | 7896 |
| OLD | NEW |