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 2009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2020 }; | 2020 }; |
2021 | 2021 |
2022 @override | 2022 @override |
2023 String toString() => convert.JSON.encode(toJson()); | 2023 String toString() => convert.JSON.encode(toJson()); |
2024 } | 2024 } |
2025 | 2025 |
2026 class LinkedLibraryBuilder extends Object with _LinkedLibraryMixin implements id
l.LinkedLibrary { | 2026 class LinkedLibraryBuilder extends Object with _LinkedLibraryMixin implements id
l.LinkedLibrary { |
2027 List<LinkedDependencyBuilder> _dependencies; | 2027 List<LinkedDependencyBuilder> _dependencies; |
2028 List<int> _exportDependencies; | 2028 List<int> _exportDependencies; |
2029 List<LinkedExportNameBuilder> _exportNames; | 2029 List<LinkedExportNameBuilder> _exportNames; |
2030 bool _fallbackMode; | |
2031 List<int> _importDependencies; | 2030 List<int> _importDependencies; |
2032 int _numPrelinkedDependencies; | 2031 int _numPrelinkedDependencies; |
2033 List<LinkedUnitBuilder> _units; | 2032 List<LinkedUnitBuilder> _units; |
2034 | 2033 |
2035 @override | 2034 @override |
2036 List<LinkedDependencyBuilder> get dependencies => _dependencies ??= <LinkedDep
endencyBuilder>[]; | 2035 List<LinkedDependencyBuilder> get dependencies => _dependencies ??= <LinkedDep
endencyBuilder>[]; |
2037 | 2036 |
2038 /** | 2037 /** |
2039 * The libraries that this library depends on (either via an explicit import | 2038 * The libraries that this library depends on (either via an explicit import |
2040 * statement or via the implicit dependencies on `dart:core` and | 2039 * statement or via the implicit dependencies on `dart:core` and |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2075 * not in the public namespace of the library (that is, entities that are | 2074 * not in the public namespace of the library (that is, entities that are |
2076 * brought into the namespace via `export` directives). | 2075 * brought into the namespace via `export` directives). |
2077 * | 2076 * |
2078 * Sorted by name. | 2077 * Sorted by name. |
2079 */ | 2078 */ |
2080 void set exportNames(List<LinkedExportNameBuilder> value) { | 2079 void set exportNames(List<LinkedExportNameBuilder> value) { |
2081 this._exportNames = value; | 2080 this._exportNames = value; |
2082 } | 2081 } |
2083 | 2082 |
2084 @override | 2083 @override |
2085 bool get fallbackMode => _fallbackMode ??= false; | 2084 bool get fallbackMode => throw new UnimplementedError('attempt to access depre
cated field'); |
2086 | |
2087 /** | |
2088 * Indicates whether this library was summarized in "fallback mode". If | |
2089 * true, all other fields in the data structure have their default values. | |
2090 */ | |
2091 void set fallbackMode(bool value) { | |
2092 this._fallbackMode = value; | |
2093 } | |
2094 | 2085 |
2095 @override | 2086 @override |
2096 List<int> get importDependencies => _importDependencies ??= <int>[]; | 2087 List<int> get importDependencies => _importDependencies ??= <int>[]; |
2097 | 2088 |
2098 /** | 2089 /** |
2099 * For each import in [UnlinkedUnit.imports], an index into [dependencies] | 2090 * For each import in [UnlinkedUnit.imports], an index into [dependencies] |
2100 * of the library being imported. | 2091 * of the library being imported. |
2101 */ | 2092 */ |
2102 void set importDependencies(List<int> value) { | 2093 void set importDependencies(List<int> value) { |
2103 assert(value == null || value.every((e) => e >= 0)); | 2094 assert(value == null || value.every((e) => e >= 0)); |
(...skipping 19 matching lines...) Expand all Loading... |
2123 /** | 2114 /** |
2124 * The linked summary of all the compilation units constituting the | 2115 * The linked summary of all the compilation units constituting the |
2125 * library. The summary of the defining compilation unit is listed first, | 2116 * library. The summary of the defining compilation unit is listed first, |
2126 * followed by the summary of each part, in the order of the `part` | 2117 * followed by the summary of each part, in the order of the `part` |
2127 * declarations in the defining compilation unit. | 2118 * declarations in the defining compilation unit. |
2128 */ | 2119 */ |
2129 void set units(List<LinkedUnitBuilder> value) { | 2120 void set units(List<LinkedUnitBuilder> value) { |
2130 this._units = value; | 2121 this._units = value; |
2131 } | 2122 } |
2132 | 2123 |
2133 LinkedLibraryBuilder({List<LinkedDependencyBuilder> dependencies, List<int> ex
portDependencies, List<LinkedExportNameBuilder> exportNames, bool fallbackMode,
List<int> importDependencies, int numPrelinkedDependencies, List<LinkedUnitBuild
er> units}) | 2124 LinkedLibraryBuilder({List<LinkedDependencyBuilder> dependencies, List<int> ex
portDependencies, List<LinkedExportNameBuilder> exportNames, List<int> importDep
endencies, int numPrelinkedDependencies, List<LinkedUnitBuilder> units}) |
2134 : _dependencies = dependencies, | 2125 : _dependencies = dependencies, |
2135 _exportDependencies = exportDependencies, | 2126 _exportDependencies = exportDependencies, |
2136 _exportNames = exportNames, | 2127 _exportNames = exportNames, |
2137 _fallbackMode = fallbackMode, | |
2138 _importDependencies = importDependencies, | 2128 _importDependencies = importDependencies, |
2139 _numPrelinkedDependencies = numPrelinkedDependencies, | 2129 _numPrelinkedDependencies = numPrelinkedDependencies, |
2140 _units = units; | 2130 _units = units; |
2141 | 2131 |
2142 /** | 2132 /** |
2143 * Flush [informative] data recursively. | 2133 * Flush [informative] data recursively. |
2144 */ | 2134 */ |
2145 void flushInformative() { | 2135 void flushInformative() { |
2146 _dependencies?.forEach((b) => b.flushInformative()); | 2136 _dependencies?.forEach((b) => b.flushInformative()); |
2147 _exportNames?.forEach((b) => b.flushInformative()); | 2137 _exportNames?.forEach((b) => b.flushInformative()); |
(...skipping 30 matching lines...) Expand all Loading... |
2178 } | 2168 } |
2179 } | 2169 } |
2180 if (this._exportNames == null) { | 2170 if (this._exportNames == null) { |
2181 signature.addInt(0); | 2171 signature.addInt(0); |
2182 } else { | 2172 } else { |
2183 signature.addInt(this._exportNames.length); | 2173 signature.addInt(this._exportNames.length); |
2184 for (var x in this._exportNames) { | 2174 for (var x in this._exportNames) { |
2185 x?.collectApiSignature(signature); | 2175 x?.collectApiSignature(signature); |
2186 } | 2176 } |
2187 } | 2177 } |
2188 signature.addBool(this._fallbackMode == true); | |
2189 if (this._exportDependencies == null) { | 2178 if (this._exportDependencies == null) { |
2190 signature.addInt(0); | 2179 signature.addInt(0); |
2191 } else { | 2180 } else { |
2192 signature.addInt(this._exportDependencies.length); | 2181 signature.addInt(this._exportDependencies.length); |
2193 for (var x in this._exportDependencies) { | 2182 for (var x in this._exportDependencies) { |
2194 signature.addInt(x); | 2183 signature.addInt(x); |
2195 } | 2184 } |
2196 } | 2185 } |
2197 } | 2186 } |
2198 | 2187 |
(...skipping 26 matching lines...) Expand all Loading... |
2225 fbBuilder.startTable(); | 2214 fbBuilder.startTable(); |
2226 if (offset_dependencies != null) { | 2215 if (offset_dependencies != null) { |
2227 fbBuilder.addOffset(0, offset_dependencies); | 2216 fbBuilder.addOffset(0, offset_dependencies); |
2228 } | 2217 } |
2229 if (offset_exportDependencies != null) { | 2218 if (offset_exportDependencies != null) { |
2230 fbBuilder.addOffset(6, offset_exportDependencies); | 2219 fbBuilder.addOffset(6, offset_exportDependencies); |
2231 } | 2220 } |
2232 if (offset_exportNames != null) { | 2221 if (offset_exportNames != null) { |
2233 fbBuilder.addOffset(4, offset_exportNames); | 2222 fbBuilder.addOffset(4, offset_exportNames); |
2234 } | 2223 } |
2235 if (_fallbackMode == true) { | |
2236 fbBuilder.addBool(5, true); | |
2237 } | |
2238 if (offset_importDependencies != null) { | 2224 if (offset_importDependencies != null) { |
2239 fbBuilder.addOffset(1, offset_importDependencies); | 2225 fbBuilder.addOffset(1, offset_importDependencies); |
2240 } | 2226 } |
2241 if (_numPrelinkedDependencies != null && _numPrelinkedDependencies != 0) { | 2227 if (_numPrelinkedDependencies != null && _numPrelinkedDependencies != 0) { |
2242 fbBuilder.addUint32(2, _numPrelinkedDependencies); | 2228 fbBuilder.addUint32(2, _numPrelinkedDependencies); |
2243 } | 2229 } |
2244 if (offset_units != null) { | 2230 if (offset_units != null) { |
2245 fbBuilder.addOffset(3, offset_units); | 2231 fbBuilder.addOffset(3, offset_units); |
2246 } | 2232 } |
2247 return fbBuilder.endTable(); | 2233 return fbBuilder.endTable(); |
(...skipping 14 matching lines...) Expand all Loading... |
2262 | 2248 |
2263 class _LinkedLibraryImpl extends Object with _LinkedLibraryMixin implements idl.
LinkedLibrary { | 2249 class _LinkedLibraryImpl extends Object with _LinkedLibraryMixin implements idl.
LinkedLibrary { |
2264 final fb.BufferContext _bc; | 2250 final fb.BufferContext _bc; |
2265 final int _bcOffset; | 2251 final int _bcOffset; |
2266 | 2252 |
2267 _LinkedLibraryImpl(this._bc, this._bcOffset); | 2253 _LinkedLibraryImpl(this._bc, this._bcOffset); |
2268 | 2254 |
2269 List<idl.LinkedDependency> _dependencies; | 2255 List<idl.LinkedDependency> _dependencies; |
2270 List<int> _exportDependencies; | 2256 List<int> _exportDependencies; |
2271 List<idl.LinkedExportName> _exportNames; | 2257 List<idl.LinkedExportName> _exportNames; |
2272 bool _fallbackMode; | |
2273 List<int> _importDependencies; | 2258 List<int> _importDependencies; |
2274 int _numPrelinkedDependencies; | 2259 int _numPrelinkedDependencies; |
2275 List<idl.LinkedUnit> _units; | 2260 List<idl.LinkedUnit> _units; |
2276 | 2261 |
2277 @override | 2262 @override |
2278 List<idl.LinkedDependency> get dependencies { | 2263 List<idl.LinkedDependency> get dependencies { |
2279 _dependencies ??= const fb.ListReader<idl.LinkedDependency>(const _LinkedDep
endencyReader()).vTableGet(_bc, _bcOffset, 0, const <idl.LinkedDependency>[]); | 2264 _dependencies ??= const fb.ListReader<idl.LinkedDependency>(const _LinkedDep
endencyReader()).vTableGet(_bc, _bcOffset, 0, const <idl.LinkedDependency>[]); |
2280 return _dependencies; | 2265 return _dependencies; |
2281 } | 2266 } |
2282 | 2267 |
2283 @override | 2268 @override |
2284 List<int> get exportDependencies { | 2269 List<int> get exportDependencies { |
2285 _exportDependencies ??= const fb.Uint32ListReader().vTableGet(_bc, _bcOffset
, 6, const <int>[]); | 2270 _exportDependencies ??= const fb.Uint32ListReader().vTableGet(_bc, _bcOffset
, 6, const <int>[]); |
2286 return _exportDependencies; | 2271 return _exportDependencies; |
2287 } | 2272 } |
2288 | 2273 |
2289 @override | 2274 @override |
2290 List<idl.LinkedExportName> get exportNames { | 2275 List<idl.LinkedExportName> get exportNames { |
2291 _exportNames ??= const fb.ListReader<idl.LinkedExportName>(const _LinkedExpo
rtNameReader()).vTableGet(_bc, _bcOffset, 4, const <idl.LinkedExportName>[]); | 2276 _exportNames ??= const fb.ListReader<idl.LinkedExportName>(const _LinkedExpo
rtNameReader()).vTableGet(_bc, _bcOffset, 4, const <idl.LinkedExportName>[]); |
2292 return _exportNames; | 2277 return _exportNames; |
2293 } | 2278 } |
2294 | 2279 |
2295 @override | 2280 @override |
2296 bool get fallbackMode { | 2281 bool get fallbackMode => throw new UnimplementedError('attempt to access depre
cated field'); |
2297 _fallbackMode ??= const fb.BoolReader().vTableGet(_bc, _bcOffset, 5, false); | |
2298 return _fallbackMode; | |
2299 } | |
2300 | 2282 |
2301 @override | 2283 @override |
2302 List<int> get importDependencies { | 2284 List<int> get importDependencies { |
2303 _importDependencies ??= const fb.Uint32ListReader().vTableGet(_bc, _bcOffset
, 1, const <int>[]); | 2285 _importDependencies ??= const fb.Uint32ListReader().vTableGet(_bc, _bcOffset
, 1, const <int>[]); |
2304 return _importDependencies; | 2286 return _importDependencies; |
2305 } | 2287 } |
2306 | 2288 |
2307 @override | 2289 @override |
2308 int get numPrelinkedDependencies { | 2290 int get numPrelinkedDependencies { |
2309 _numPrelinkedDependencies ??= const fb.Uint32Reader().vTableGet(_bc, _bcOffs
et, 2, 0); | 2291 _numPrelinkedDependencies ??= const fb.Uint32Reader().vTableGet(_bc, _bcOffs
et, 2, 0); |
2310 return _numPrelinkedDependencies; | 2292 return _numPrelinkedDependencies; |
2311 } | 2293 } |
2312 | 2294 |
2313 @override | 2295 @override |
2314 List<idl.LinkedUnit> get units { | 2296 List<idl.LinkedUnit> get units { |
2315 _units ??= const fb.ListReader<idl.LinkedUnit>(const _LinkedUnitReader()).vT
ableGet(_bc, _bcOffset, 3, const <idl.LinkedUnit>[]); | 2297 _units ??= const fb.ListReader<idl.LinkedUnit>(const _LinkedUnitReader()).vT
ableGet(_bc, _bcOffset, 3, const <idl.LinkedUnit>[]); |
2316 return _units; | 2298 return _units; |
2317 } | 2299 } |
2318 } | 2300 } |
2319 | 2301 |
2320 abstract class _LinkedLibraryMixin implements idl.LinkedLibrary { | 2302 abstract class _LinkedLibraryMixin implements idl.LinkedLibrary { |
2321 @override | 2303 @override |
2322 Map<String, Object> toJson() { | 2304 Map<String, Object> toJson() { |
2323 Map<String, Object> _result = <String, Object>{}; | 2305 Map<String, Object> _result = <String, Object>{}; |
2324 if (dependencies.isNotEmpty) _result["dependencies"] = dependencies.map((_va
lue) => _value.toJson()).toList(); | 2306 if (dependencies.isNotEmpty) _result["dependencies"] = dependencies.map((_va
lue) => _value.toJson()).toList(); |
2325 if (exportDependencies.isNotEmpty) _result["exportDependencies"] = exportDep
endencies; | 2307 if (exportDependencies.isNotEmpty) _result["exportDependencies"] = exportDep
endencies; |
2326 if (exportNames.isNotEmpty) _result["exportNames"] = exportNames.map((_value
) => _value.toJson()).toList(); | 2308 if (exportNames.isNotEmpty) _result["exportNames"] = exportNames.map((_value
) => _value.toJson()).toList(); |
2327 if (fallbackMode != false) _result["fallbackMode"] = fallbackMode; | |
2328 if (importDependencies.isNotEmpty) _result["importDependencies"] = importDep
endencies; | 2309 if (importDependencies.isNotEmpty) _result["importDependencies"] = importDep
endencies; |
2329 if (numPrelinkedDependencies != 0) _result["numPrelinkedDependencies"] = num
PrelinkedDependencies; | 2310 if (numPrelinkedDependencies != 0) _result["numPrelinkedDependencies"] = num
PrelinkedDependencies; |
2330 if (units.isNotEmpty) _result["units"] = units.map((_value) => _value.toJson
()).toList(); | 2311 if (units.isNotEmpty) _result["units"] = units.map((_value) => _value.toJson
()).toList(); |
2331 return _result; | 2312 return _result; |
2332 } | 2313 } |
2333 | 2314 |
2334 @override | 2315 @override |
2335 Map<String, Object> toMap() => { | 2316 Map<String, Object> toMap() => { |
2336 "dependencies": dependencies, | 2317 "dependencies": dependencies, |
2337 "exportDependencies": exportDependencies, | 2318 "exportDependencies": exportDependencies, |
2338 "exportNames": exportNames, | 2319 "exportNames": exportNames, |
2339 "fallbackMode": fallbackMode, | |
2340 "importDependencies": importDependencies, | 2320 "importDependencies": importDependencies, |
2341 "numPrelinkedDependencies": numPrelinkedDependencies, | 2321 "numPrelinkedDependencies": numPrelinkedDependencies, |
2342 "units": units, | 2322 "units": units, |
2343 }; | 2323 }; |
2344 | 2324 |
2345 @override | 2325 @override |
2346 String toString() => convert.JSON.encode(toJson()); | 2326 String toString() => convert.JSON.encode(toJson()); |
2347 } | 2327 } |
2348 | 2328 |
2349 class LinkedReferenceBuilder extends Object with _LinkedReferenceMixin implement
s idl.LinkedReference { | 2329 class LinkedReferenceBuilder extends Object with _LinkedReferenceMixin implement
s idl.LinkedReference { |
(...skipping 7206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9556 String toString() => convert.JSON.encode(toJson()); | 9536 String toString() => convert.JSON.encode(toJson()); |
9557 } | 9537 } |
9558 | 9538 |
9559 class UnlinkedUnitBuilder extends Object with _UnlinkedUnitMixin implements idl.
UnlinkedUnit { | 9539 class UnlinkedUnitBuilder extends Object with _UnlinkedUnitMixin implements idl.
UnlinkedUnit { |
9560 List<int> _apiSignature; | 9540 List<int> _apiSignature; |
9561 List<UnlinkedClassBuilder> _classes; | 9541 List<UnlinkedClassBuilder> _classes; |
9562 CodeRangeBuilder _codeRange; | 9542 CodeRangeBuilder _codeRange; |
9563 List<UnlinkedEnumBuilder> _enums; | 9543 List<UnlinkedEnumBuilder> _enums; |
9564 List<UnlinkedExecutableBuilder> _executables; | 9544 List<UnlinkedExecutableBuilder> _executables; |
9565 List<UnlinkedExportNonPublicBuilder> _exports; | 9545 List<UnlinkedExportNonPublicBuilder> _exports; |
9566 String _fallbackModePath; | |
9567 List<UnlinkedImportBuilder> _imports; | 9546 List<UnlinkedImportBuilder> _imports; |
9568 bool _isPartOf; | 9547 bool _isPartOf; |
9569 List<UnlinkedExprBuilder> _libraryAnnotations; | 9548 List<UnlinkedExprBuilder> _libraryAnnotations; |
9570 UnlinkedDocumentationCommentBuilder _libraryDocumentationComment; | 9549 UnlinkedDocumentationCommentBuilder _libraryDocumentationComment; |
9571 String _libraryName; | 9550 String _libraryName; |
9572 int _libraryNameLength; | 9551 int _libraryNameLength; |
9573 int _libraryNameOffset; | 9552 int _libraryNameOffset; |
9574 List<int> _lineStarts; | 9553 List<int> _lineStarts; |
9575 List<UnlinkedPartBuilder> _parts; | 9554 List<UnlinkedPartBuilder> _parts; |
9576 UnlinkedPublicNamespaceBuilder _publicNamespace; | 9555 UnlinkedPublicNamespaceBuilder _publicNamespace; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9636 List<UnlinkedExportNonPublicBuilder> get exports => _exports ??= <UnlinkedExpo
rtNonPublicBuilder>[]; | 9615 List<UnlinkedExportNonPublicBuilder> get exports => _exports ??= <UnlinkedExpo
rtNonPublicBuilder>[]; |
9637 | 9616 |
9638 /** | 9617 /** |
9639 * Export declarations in the compilation unit. | 9618 * Export declarations in the compilation unit. |
9640 */ | 9619 */ |
9641 void set exports(List<UnlinkedExportNonPublicBuilder> value) { | 9620 void set exports(List<UnlinkedExportNonPublicBuilder> value) { |
9642 this._exports = value; | 9621 this._exports = value; |
9643 } | 9622 } |
9644 | 9623 |
9645 @override | 9624 @override |
9646 String get fallbackModePath => _fallbackModePath ??= ''; | 9625 String get fallbackModePath => throw new UnimplementedError('attempt to access
deprecated field'); |
9647 | |
9648 /** | |
9649 * If this compilation unit was summarized in fallback mode, the path where | |
9650 * the compilation unit may be found on disk. Otherwise empty. | |
9651 * | |
9652 * When this field is non-empty, all other fields in the data structure have | |
9653 * their default values. | |
9654 */ | |
9655 void set fallbackModePath(String value) { | |
9656 this._fallbackModePath = value; | |
9657 } | |
9658 | 9626 |
9659 @override | 9627 @override |
9660 List<UnlinkedImportBuilder> get imports => _imports ??= <UnlinkedImportBuilder
>[]; | 9628 List<UnlinkedImportBuilder> get imports => _imports ??= <UnlinkedImportBuilder
>[]; |
9661 | 9629 |
9662 /** | 9630 /** |
9663 * Import declarations in the compilation unit. | 9631 * Import declarations in the compilation unit. |
9664 */ | 9632 */ |
9665 void set imports(List<UnlinkedImportBuilder> value) { | 9633 void set imports(List<UnlinkedImportBuilder> value) { |
9666 this._imports = value; | 9634 this._imports = value; |
9667 } | 9635 } |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9790 @override | 9758 @override |
9791 List<UnlinkedVariableBuilder> get variables => _variables ??= <UnlinkedVariabl
eBuilder>[]; | 9759 List<UnlinkedVariableBuilder> get variables => _variables ??= <UnlinkedVariabl
eBuilder>[]; |
9792 | 9760 |
9793 /** | 9761 /** |
9794 * Top level variables declared in the compilation unit. | 9762 * Top level variables declared in the compilation unit. |
9795 */ | 9763 */ |
9796 void set variables(List<UnlinkedVariableBuilder> value) { | 9764 void set variables(List<UnlinkedVariableBuilder> value) { |
9797 this._variables = value; | 9765 this._variables = value; |
9798 } | 9766 } |
9799 | 9767 |
9800 UnlinkedUnitBuilder({List<int> apiSignature, List<UnlinkedClassBuilder> classe
s, CodeRangeBuilder codeRange, List<UnlinkedEnumBuilder> enums, List<UnlinkedExe
cutableBuilder> executables, List<UnlinkedExportNonPublicBuilder> exports, Strin
g fallbackModePath, List<UnlinkedImportBuilder> imports, bool isPartOf, List<Unl
inkedExprBuilder> libraryAnnotations, UnlinkedDocumentationCommentBuilder librar
yDocumentationComment, String libraryName, int libraryNameLength, int libraryNam
eOffset, List<int> lineStarts, List<UnlinkedPartBuilder> parts, UnlinkedPublicNa
mespaceBuilder publicNamespace, List<UnlinkedReferenceBuilder> references, List<
UnlinkedTypedefBuilder> typedefs, List<UnlinkedVariableBuilder> variables}) | 9768 UnlinkedUnitBuilder({List<int> apiSignature, List<UnlinkedClassBuilder> classe
s, CodeRangeBuilder codeRange, List<UnlinkedEnumBuilder> enums, List<UnlinkedExe
cutableBuilder> executables, List<UnlinkedExportNonPublicBuilder> exports, List<
UnlinkedImportBuilder> imports, bool isPartOf, List<UnlinkedExprBuilder> library
Annotations, UnlinkedDocumentationCommentBuilder libraryDocumentationComment, St
ring libraryName, int libraryNameLength, int libraryNameOffset, List<int> lineSt
arts, List<UnlinkedPartBuilder> parts, UnlinkedPublicNamespaceBuilder publicName
space, List<UnlinkedReferenceBuilder> references, List<UnlinkedTypedefBuilder> t
ypedefs, List<UnlinkedVariableBuilder> variables}) |
9801 : _apiSignature = apiSignature, | 9769 : _apiSignature = apiSignature, |
9802 _classes = classes, | 9770 _classes = classes, |
9803 _codeRange = codeRange, | 9771 _codeRange = codeRange, |
9804 _enums = enums, | 9772 _enums = enums, |
9805 _executables = executables, | 9773 _executables = executables, |
9806 _exports = exports, | 9774 _exports = exports, |
9807 _fallbackModePath = fallbackModePath, | |
9808 _imports = imports, | 9775 _imports = imports, |
9809 _isPartOf = isPartOf, | 9776 _isPartOf = isPartOf, |
9810 _libraryAnnotations = libraryAnnotations, | 9777 _libraryAnnotations = libraryAnnotations, |
9811 _libraryDocumentationComment = libraryDocumentationComment, | 9778 _libraryDocumentationComment = libraryDocumentationComment, |
9812 _libraryName = libraryName, | 9779 _libraryName = libraryName, |
9813 _libraryNameLength = libraryNameLength, | 9780 _libraryNameLength = libraryNameLength, |
9814 _libraryNameOffset = libraryNameOffset, | 9781 _libraryNameOffset = libraryNameOffset, |
9815 _lineStarts = lineStarts, | 9782 _lineStarts = lineStarts, |
9816 _parts = parts, | 9783 _parts = parts, |
9817 _publicNamespace = publicNamespace, | 9784 _publicNamespace = publicNamespace, |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9921 } | 9888 } |
9922 } | 9889 } |
9923 if (this._libraryAnnotations == null) { | 9890 if (this._libraryAnnotations == null) { |
9924 signature.addInt(0); | 9891 signature.addInt(0); |
9925 } else { | 9892 } else { |
9926 signature.addInt(this._libraryAnnotations.length); | 9893 signature.addInt(this._libraryAnnotations.length); |
9927 for (var x in this._libraryAnnotations) { | 9894 for (var x in this._libraryAnnotations) { |
9928 x?.collectApiSignature(signature); | 9895 x?.collectApiSignature(signature); |
9929 } | 9896 } |
9930 } | 9897 } |
9931 signature.addString(this._fallbackModePath ?? ''); | |
9932 signature.addBool(this._isPartOf == true); | 9898 signature.addBool(this._isPartOf == true); |
9933 if (this._apiSignature == null) { | 9899 if (this._apiSignature == null) { |
9934 signature.addInt(0); | 9900 signature.addInt(0); |
9935 } else { | 9901 } else { |
9936 signature.addInt(this._apiSignature.length); | 9902 signature.addInt(this._apiSignature.length); |
9937 for (var x in this._apiSignature) { | 9903 for (var x in this._apiSignature) { |
9938 signature.addInt(x); | 9904 signature.addInt(x); |
9939 } | 9905 } |
9940 } | 9906 } |
9941 } | 9907 } |
9942 | 9908 |
9943 List<int> toBuffer() { | 9909 List<int> toBuffer() { |
9944 fb.Builder fbBuilder = new fb.Builder(); | 9910 fb.Builder fbBuilder = new fb.Builder(); |
9945 return fbBuilder.finish(finish(fbBuilder), "UUnt"); | 9911 return fbBuilder.finish(finish(fbBuilder), "UUnt"); |
9946 } | 9912 } |
9947 | 9913 |
9948 fb.Offset finish(fb.Builder fbBuilder) { | 9914 fb.Offset finish(fb.Builder fbBuilder) { |
9949 fb.Offset offset_apiSignature; | 9915 fb.Offset offset_apiSignature; |
9950 fb.Offset offset_classes; | 9916 fb.Offset offset_classes; |
9951 fb.Offset offset_codeRange; | 9917 fb.Offset offset_codeRange; |
9952 fb.Offset offset_enums; | 9918 fb.Offset offset_enums; |
9953 fb.Offset offset_executables; | 9919 fb.Offset offset_executables; |
9954 fb.Offset offset_exports; | 9920 fb.Offset offset_exports; |
9955 fb.Offset offset_fallbackModePath; | |
9956 fb.Offset offset_imports; | 9921 fb.Offset offset_imports; |
9957 fb.Offset offset_libraryAnnotations; | 9922 fb.Offset offset_libraryAnnotations; |
9958 fb.Offset offset_libraryDocumentationComment; | 9923 fb.Offset offset_libraryDocumentationComment; |
9959 fb.Offset offset_libraryName; | 9924 fb.Offset offset_libraryName; |
9960 fb.Offset offset_lineStarts; | 9925 fb.Offset offset_lineStarts; |
9961 fb.Offset offset_parts; | 9926 fb.Offset offset_parts; |
9962 fb.Offset offset_publicNamespace; | 9927 fb.Offset offset_publicNamespace; |
9963 fb.Offset offset_references; | 9928 fb.Offset offset_references; |
9964 fb.Offset offset_typedefs; | 9929 fb.Offset offset_typedefs; |
9965 fb.Offset offset_variables; | 9930 fb.Offset offset_variables; |
9966 if (!(_apiSignature == null || _apiSignature.isEmpty)) { | 9931 if (!(_apiSignature == null || _apiSignature.isEmpty)) { |
9967 offset_apiSignature = fbBuilder.writeListUint32(_apiSignature); | 9932 offset_apiSignature = fbBuilder.writeListUint32(_apiSignature); |
9968 } | 9933 } |
9969 if (!(_classes == null || _classes.isEmpty)) { | 9934 if (!(_classes == null || _classes.isEmpty)) { |
9970 offset_classes = fbBuilder.writeList(_classes.map((b) => b.finish(fbBuilde
r)).toList()); | 9935 offset_classes = fbBuilder.writeList(_classes.map((b) => b.finish(fbBuilde
r)).toList()); |
9971 } | 9936 } |
9972 if (_codeRange != null) { | 9937 if (_codeRange != null) { |
9973 offset_codeRange = _codeRange.finish(fbBuilder); | 9938 offset_codeRange = _codeRange.finish(fbBuilder); |
9974 } | 9939 } |
9975 if (!(_enums == null || _enums.isEmpty)) { | 9940 if (!(_enums == null || _enums.isEmpty)) { |
9976 offset_enums = fbBuilder.writeList(_enums.map((b) => b.finish(fbBuilder)).
toList()); | 9941 offset_enums = fbBuilder.writeList(_enums.map((b) => b.finish(fbBuilder)).
toList()); |
9977 } | 9942 } |
9978 if (!(_executables == null || _executables.isEmpty)) { | 9943 if (!(_executables == null || _executables.isEmpty)) { |
9979 offset_executables = fbBuilder.writeList(_executables.map((b) => b.finish(
fbBuilder)).toList()); | 9944 offset_executables = fbBuilder.writeList(_executables.map((b) => b.finish(
fbBuilder)).toList()); |
9980 } | 9945 } |
9981 if (!(_exports == null || _exports.isEmpty)) { | 9946 if (!(_exports == null || _exports.isEmpty)) { |
9982 offset_exports = fbBuilder.writeList(_exports.map((b) => b.finish(fbBuilde
r)).toList()); | 9947 offset_exports = fbBuilder.writeList(_exports.map((b) => b.finish(fbBuilde
r)).toList()); |
9983 } | 9948 } |
9984 if (_fallbackModePath != null) { | |
9985 offset_fallbackModePath = fbBuilder.writeString(_fallbackModePath); | |
9986 } | |
9987 if (!(_imports == null || _imports.isEmpty)) { | 9949 if (!(_imports == null || _imports.isEmpty)) { |
9988 offset_imports = fbBuilder.writeList(_imports.map((b) => b.finish(fbBuilde
r)).toList()); | 9950 offset_imports = fbBuilder.writeList(_imports.map((b) => b.finish(fbBuilde
r)).toList()); |
9989 } | 9951 } |
9990 if (!(_libraryAnnotations == null || _libraryAnnotations.isEmpty)) { | 9952 if (!(_libraryAnnotations == null || _libraryAnnotations.isEmpty)) { |
9991 offset_libraryAnnotations = fbBuilder.writeList(_libraryAnnotations.map((b
) => b.finish(fbBuilder)).toList()); | 9953 offset_libraryAnnotations = fbBuilder.writeList(_libraryAnnotations.map((b
) => b.finish(fbBuilder)).toList()); |
9992 } | 9954 } |
9993 if (_libraryDocumentationComment != null) { | 9955 if (_libraryDocumentationComment != null) { |
9994 offset_libraryDocumentationComment = _libraryDocumentationComment.finish(f
bBuilder); | 9956 offset_libraryDocumentationComment = _libraryDocumentationComment.finish(f
bBuilder); |
9995 } | 9957 } |
9996 if (_libraryName != null) { | 9958 if (_libraryName != null) { |
(...skipping 29 matching lines...) Expand all Loading... |
10026 } | 9988 } |
10027 if (offset_enums != null) { | 9989 if (offset_enums != null) { |
10028 fbBuilder.addOffset(12, offset_enums); | 9990 fbBuilder.addOffset(12, offset_enums); |
10029 } | 9991 } |
10030 if (offset_executables != null) { | 9992 if (offset_executables != null) { |
10031 fbBuilder.addOffset(4, offset_executables); | 9993 fbBuilder.addOffset(4, offset_executables); |
10032 } | 9994 } |
10033 if (offset_exports != null) { | 9995 if (offset_exports != null) { |
10034 fbBuilder.addOffset(13, offset_exports); | 9996 fbBuilder.addOffset(13, offset_exports); |
10035 } | 9997 } |
10036 if (offset_fallbackModePath != null) { | |
10037 fbBuilder.addOffset(16, offset_fallbackModePath); | |
10038 } | |
10039 if (offset_imports != null) { | 9998 if (offset_imports != null) { |
10040 fbBuilder.addOffset(5, offset_imports); | 9999 fbBuilder.addOffset(5, offset_imports); |
10041 } | 10000 } |
10042 if (_isPartOf == true) { | 10001 if (_isPartOf == true) { |
10043 fbBuilder.addBool(18, true); | 10002 fbBuilder.addBool(18, true); |
10044 } | 10003 } |
10045 if (offset_libraryAnnotations != null) { | 10004 if (offset_libraryAnnotations != null) { |
10046 fbBuilder.addOffset(14, offset_libraryAnnotations); | 10005 fbBuilder.addOffset(14, offset_libraryAnnotations); |
10047 } | 10006 } |
10048 if (offset_libraryDocumentationComment != null) { | 10007 if (offset_libraryDocumentationComment != null) { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10096 final int _bcOffset; | 10055 final int _bcOffset; |
10097 | 10056 |
10098 _UnlinkedUnitImpl(this._bc, this._bcOffset); | 10057 _UnlinkedUnitImpl(this._bc, this._bcOffset); |
10099 | 10058 |
10100 List<int> _apiSignature; | 10059 List<int> _apiSignature; |
10101 List<idl.UnlinkedClass> _classes; | 10060 List<idl.UnlinkedClass> _classes; |
10102 idl.CodeRange _codeRange; | 10061 idl.CodeRange _codeRange; |
10103 List<idl.UnlinkedEnum> _enums; | 10062 List<idl.UnlinkedEnum> _enums; |
10104 List<idl.UnlinkedExecutable> _executables; | 10063 List<idl.UnlinkedExecutable> _executables; |
10105 List<idl.UnlinkedExportNonPublic> _exports; | 10064 List<idl.UnlinkedExportNonPublic> _exports; |
10106 String _fallbackModePath; | |
10107 List<idl.UnlinkedImport> _imports; | 10065 List<idl.UnlinkedImport> _imports; |
10108 bool _isPartOf; | 10066 bool _isPartOf; |
10109 List<idl.UnlinkedExpr> _libraryAnnotations; | 10067 List<idl.UnlinkedExpr> _libraryAnnotations; |
10110 idl.UnlinkedDocumentationComment _libraryDocumentationComment; | 10068 idl.UnlinkedDocumentationComment _libraryDocumentationComment; |
10111 String _libraryName; | 10069 String _libraryName; |
10112 int _libraryNameLength; | 10070 int _libraryNameLength; |
10113 int _libraryNameOffset; | 10071 int _libraryNameOffset; |
10114 List<int> _lineStarts; | 10072 List<int> _lineStarts; |
10115 List<idl.UnlinkedPart> _parts; | 10073 List<idl.UnlinkedPart> _parts; |
10116 idl.UnlinkedPublicNamespace _publicNamespace; | 10074 idl.UnlinkedPublicNamespace _publicNamespace; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10148 return _executables; | 10106 return _executables; |
10149 } | 10107 } |
10150 | 10108 |
10151 @override | 10109 @override |
10152 List<idl.UnlinkedExportNonPublic> get exports { | 10110 List<idl.UnlinkedExportNonPublic> get exports { |
10153 _exports ??= const fb.ListReader<idl.UnlinkedExportNonPublic>(const _Unlinke
dExportNonPublicReader()).vTableGet(_bc, _bcOffset, 13, const <idl.UnlinkedExpor
tNonPublic>[]); | 10111 _exports ??= const fb.ListReader<idl.UnlinkedExportNonPublic>(const _Unlinke
dExportNonPublicReader()).vTableGet(_bc, _bcOffset, 13, const <idl.UnlinkedExpor
tNonPublic>[]); |
10154 return _exports; | 10112 return _exports; |
10155 } | 10113 } |
10156 | 10114 |
10157 @override | 10115 @override |
10158 String get fallbackModePath { | 10116 String get fallbackModePath => throw new UnimplementedError('attempt to access
deprecated field'); |
10159 _fallbackModePath ??= const fb.StringReader().vTableGet(_bc, _bcOffset, 16,
''); | |
10160 return _fallbackModePath; | |
10161 } | |
10162 | 10117 |
10163 @override | 10118 @override |
10164 List<idl.UnlinkedImport> get imports { | 10119 List<idl.UnlinkedImport> get imports { |
10165 _imports ??= const fb.ListReader<idl.UnlinkedImport>(const _UnlinkedImportRe
ader()).vTableGet(_bc, _bcOffset, 5, const <idl.UnlinkedImport>[]); | 10120 _imports ??= const fb.ListReader<idl.UnlinkedImport>(const _UnlinkedImportRe
ader()).vTableGet(_bc, _bcOffset, 5, const <idl.UnlinkedImport>[]); |
10166 return _imports; | 10121 return _imports; |
10167 } | 10122 } |
10168 | 10123 |
10169 @override | 10124 @override |
10170 bool get isPartOf { | 10125 bool get isPartOf { |
10171 _isPartOf ??= const fb.BoolReader().vTableGet(_bc, _bcOffset, 18, false); | 10126 _isPartOf ??= const fb.BoolReader().vTableGet(_bc, _bcOffset, 18, false); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10242 abstract class _UnlinkedUnitMixin implements idl.UnlinkedUnit { | 10197 abstract class _UnlinkedUnitMixin implements idl.UnlinkedUnit { |
10243 @override | 10198 @override |
10244 Map<String, Object> toJson() { | 10199 Map<String, Object> toJson() { |
10245 Map<String, Object> _result = <String, Object>{}; | 10200 Map<String, Object> _result = <String, Object>{}; |
10246 if (apiSignature.isNotEmpty) _result["apiSignature"] = apiSignature; | 10201 if (apiSignature.isNotEmpty) _result["apiSignature"] = apiSignature; |
10247 if (classes.isNotEmpty) _result["classes"] = classes.map((_value) => _value.
toJson()).toList(); | 10202 if (classes.isNotEmpty) _result["classes"] = classes.map((_value) => _value.
toJson()).toList(); |
10248 if (codeRange != null) _result["codeRange"] = codeRange.toJson(); | 10203 if (codeRange != null) _result["codeRange"] = codeRange.toJson(); |
10249 if (enums.isNotEmpty) _result["enums"] = enums.map((_value) => _value.toJson
()).toList(); | 10204 if (enums.isNotEmpty) _result["enums"] = enums.map((_value) => _value.toJson
()).toList(); |
10250 if (executables.isNotEmpty) _result["executables"] = executables.map((_value
) => _value.toJson()).toList(); | 10205 if (executables.isNotEmpty) _result["executables"] = executables.map((_value
) => _value.toJson()).toList(); |
10251 if (exports.isNotEmpty) _result["exports"] = exports.map((_value) => _value.
toJson()).toList(); | 10206 if (exports.isNotEmpty) _result["exports"] = exports.map((_value) => _value.
toJson()).toList(); |
10252 if (fallbackModePath != '') _result["fallbackModePath"] = fallbackModePath; | |
10253 if (imports.isNotEmpty) _result["imports"] = imports.map((_value) => _value.
toJson()).toList(); | 10207 if (imports.isNotEmpty) _result["imports"] = imports.map((_value) => _value.
toJson()).toList(); |
10254 if (isPartOf != false) _result["isPartOf"] = isPartOf; | 10208 if (isPartOf != false) _result["isPartOf"] = isPartOf; |
10255 if (libraryAnnotations.isNotEmpty) _result["libraryAnnotations"] = libraryAn
notations.map((_value) => _value.toJson()).toList(); | 10209 if (libraryAnnotations.isNotEmpty) _result["libraryAnnotations"] = libraryAn
notations.map((_value) => _value.toJson()).toList(); |
10256 if (libraryDocumentationComment != null) _result["libraryDocumentationCommen
t"] = libraryDocumentationComment.toJson(); | 10210 if (libraryDocumentationComment != null) _result["libraryDocumentationCommen
t"] = libraryDocumentationComment.toJson(); |
10257 if (libraryName != '') _result["libraryName"] = libraryName; | 10211 if (libraryName != '') _result["libraryName"] = libraryName; |
10258 if (libraryNameLength != 0) _result["libraryNameLength"] = libraryNameLength
; | 10212 if (libraryNameLength != 0) _result["libraryNameLength"] = libraryNameLength
; |
10259 if (libraryNameOffset != 0) _result["libraryNameOffset"] = libraryNameOffset
; | 10213 if (libraryNameOffset != 0) _result["libraryNameOffset"] = libraryNameOffset
; |
10260 if (lineStarts.isNotEmpty) _result["lineStarts"] = lineStarts; | 10214 if (lineStarts.isNotEmpty) _result["lineStarts"] = lineStarts; |
10261 if (parts.isNotEmpty) _result["parts"] = parts.map((_value) => _value.toJson
()).toList(); | 10215 if (parts.isNotEmpty) _result["parts"] = parts.map((_value) => _value.toJson
()).toList(); |
10262 if (publicNamespace != null) _result["publicNamespace"] = publicNamespace.to
Json(); | 10216 if (publicNamespace != null) _result["publicNamespace"] = publicNamespace.to
Json(); |
10263 if (references.isNotEmpty) _result["references"] = references.map((_value) =
> _value.toJson()).toList(); | 10217 if (references.isNotEmpty) _result["references"] = references.map((_value) =
> _value.toJson()).toList(); |
10264 if (typedefs.isNotEmpty) _result["typedefs"] = typedefs.map((_value) => _val
ue.toJson()).toList(); | 10218 if (typedefs.isNotEmpty) _result["typedefs"] = typedefs.map((_value) => _val
ue.toJson()).toList(); |
10265 if (variables.isNotEmpty) _result["variables"] = variables.map((_value) => _
value.toJson()).toList(); | 10219 if (variables.isNotEmpty) _result["variables"] = variables.map((_value) => _
value.toJson()).toList(); |
10266 return _result; | 10220 return _result; |
10267 } | 10221 } |
10268 | 10222 |
10269 @override | 10223 @override |
10270 Map<String, Object> toMap() => { | 10224 Map<String, Object> toMap() => { |
10271 "apiSignature": apiSignature, | 10225 "apiSignature": apiSignature, |
10272 "classes": classes, | 10226 "classes": classes, |
10273 "codeRange": codeRange, | 10227 "codeRange": codeRange, |
10274 "enums": enums, | 10228 "enums": enums, |
10275 "executables": executables, | 10229 "executables": executables, |
10276 "exports": exports, | 10230 "exports": exports, |
10277 "fallbackModePath": fallbackModePath, | |
10278 "imports": imports, | 10231 "imports": imports, |
10279 "isPartOf": isPartOf, | 10232 "isPartOf": isPartOf, |
10280 "libraryAnnotations": libraryAnnotations, | 10233 "libraryAnnotations": libraryAnnotations, |
10281 "libraryDocumentationComment": libraryDocumentationComment, | 10234 "libraryDocumentationComment": libraryDocumentationComment, |
10282 "libraryName": libraryName, | 10235 "libraryName": libraryName, |
10283 "libraryNameLength": libraryNameLength, | 10236 "libraryNameLength": libraryNameLength, |
10284 "libraryNameOffset": libraryNameOffset, | 10237 "libraryNameOffset": libraryNameOffset, |
10285 "lineStarts": lineStarts, | 10238 "lineStarts": lineStarts, |
10286 "parts": parts, | 10239 "parts": parts, |
10287 "publicNamespace": publicNamespace, | 10240 "publicNamespace": publicNamespace, |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10744 "propagatedTypeSlot": propagatedTypeSlot, | 10697 "propagatedTypeSlot": propagatedTypeSlot, |
10745 "type": type, | 10698 "type": type, |
10746 "visibleLength": visibleLength, | 10699 "visibleLength": visibleLength, |
10747 "visibleOffset": visibleOffset, | 10700 "visibleOffset": visibleOffset, |
10748 }; | 10701 }; |
10749 | 10702 |
10750 @override | 10703 @override |
10751 String toString() => convert.JSON.encode(toJson()); | 10704 String toString() => convert.JSON.encode(toJson()); |
10752 } | 10705 } |
10753 | 10706 |
OLD | NEW |