Skip to content

Commit 04de771

Browse files
scheglovCommit Queue
authored andcommitted
CQ. Remove remaining IDL declarations for available files.
Change-Id: If15663dbfa552e55f70b0f2e9e53427555b50cbf Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/402880 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
1 parent 7041cda commit 04de771

File tree

3 files changed

+0
-363
lines changed

3 files changed

+0
-363
lines changed

pkg/analyzer/lib/src/summary/format.dart

Lines changed: 0 additions & 312 deletions
Original file line numberDiff line numberDiff line change
@@ -1852,185 +1852,6 @@ mixin _AnalysisDriverUnitIndexMixin implements idl.AnalysisDriverUnitIndex {
18521852
String toString() => convert.json.encode(toJson());
18531853
}
18541854

1855-
class AvailableFileBuilder extends Object
1856-
with _AvailableFileMixin
1857-
implements idl.AvailableFile {
1858-
DirectiveInfoBuilder? _directiveInfo;
1859-
List<String>? _exports;
1860-
List<String>? _parts;
1861-
1862-
@override
1863-
DirectiveInfoBuilder? get directiveInfo => _directiveInfo;
1864-
1865-
/// The Dartdoc directives in the file.
1866-
set directiveInfo(DirectiveInfoBuilder? value) {
1867-
this._directiveInfo = value;
1868-
}
1869-
1870-
@override
1871-
List<String> get exports => _exports ??= <String>[];
1872-
1873-
/// Exports directives of the file.
1874-
set exports(List<String> value) {
1875-
this._exports = value;
1876-
}
1877-
1878-
@override
1879-
List<String> get parts => _parts ??= <String>[];
1880-
1881-
/// URIs of `part` directives.
1882-
set parts(List<String> value) {
1883-
this._parts = value;
1884-
}
1885-
1886-
AvailableFileBuilder(
1887-
{DirectiveInfoBuilder? directiveInfo,
1888-
List<String>? exports,
1889-
List<String>? parts})
1890-
: _directiveInfo = directiveInfo,
1891-
_exports = exports,
1892-
_parts = parts;
1893-
1894-
/// Flush [informative] data recursively.
1895-
void flushInformative() {
1896-
_directiveInfo?.flushInformative();
1897-
}
1898-
1899-
/// Accumulate non-[informative] data into [signature].
1900-
void collectApiSignature(api_sig.ApiSignature signatureSink) {
1901-
signatureSink.addBool(this._directiveInfo != null);
1902-
this._directiveInfo?.collectApiSignature(signatureSink);
1903-
var exports = this._exports;
1904-
if (exports == null) {
1905-
signatureSink.addInt(0);
1906-
} else {
1907-
signatureSink.addInt(exports.length);
1908-
for (var x in exports) {
1909-
signatureSink.addString(x);
1910-
}
1911-
}
1912-
var parts = this._parts;
1913-
if (parts == null) {
1914-
signatureSink.addInt(0);
1915-
} else {
1916-
signatureSink.addInt(parts.length);
1917-
for (var x in parts) {
1918-
signatureSink.addString(x);
1919-
}
1920-
}
1921-
}
1922-
1923-
typed_data.Uint8List toBuffer() {
1924-
fb.Builder fbBuilder = fb.Builder();
1925-
return fbBuilder.finish(finish(fbBuilder), "UICF");
1926-
}
1927-
1928-
fb.Offset finish(fb.Builder fbBuilder) {
1929-
fb.Offset? offset_directiveInfo;
1930-
fb.Offset? offset_exports;
1931-
fb.Offset? offset_parts;
1932-
var directiveInfo = _directiveInfo;
1933-
if (directiveInfo != null) {
1934-
offset_directiveInfo = directiveInfo.finish(fbBuilder);
1935-
}
1936-
var exports = _exports;
1937-
if (!(exports == null || exports.isEmpty)) {
1938-
offset_exports = fbBuilder
1939-
.writeList(exports.map((b) => fbBuilder.writeString(b)).toList());
1940-
}
1941-
var parts = _parts;
1942-
if (!(parts == null || parts.isEmpty)) {
1943-
offset_parts = fbBuilder
1944-
.writeList(parts.map((b) => fbBuilder.writeString(b)).toList());
1945-
}
1946-
fbBuilder.startTable();
1947-
if (offset_directiveInfo != null) {
1948-
fbBuilder.addOffset(0, offset_directiveInfo);
1949-
}
1950-
if (offset_exports != null) {
1951-
fbBuilder.addOffset(1, offset_exports);
1952-
}
1953-
if (offset_parts != null) {
1954-
fbBuilder.addOffset(2, offset_parts);
1955-
}
1956-
return fbBuilder.endTable();
1957-
}
1958-
}
1959-
1960-
idl.AvailableFile readAvailableFile(List<int> buffer) {
1961-
fb.BufferContext rootRef = fb.BufferContext.fromBytes(buffer);
1962-
return const _AvailableFileReader().read(rootRef, 0);
1963-
}
1964-
1965-
class _AvailableFileReader extends fb.TableReader<_AvailableFileImpl> {
1966-
const _AvailableFileReader();
1967-
1968-
@override
1969-
_AvailableFileImpl createObject(fb.BufferContext bc, int offset) =>
1970-
_AvailableFileImpl(bc, offset);
1971-
}
1972-
1973-
class _AvailableFileImpl extends Object
1974-
with _AvailableFileMixin
1975-
implements idl.AvailableFile {
1976-
final fb.BufferContext _bc;
1977-
final int _bcOffset;
1978-
1979-
_AvailableFileImpl(this._bc, this._bcOffset);
1980-
1981-
idl.DirectiveInfo? _directiveInfo;
1982-
List<String>? _exports;
1983-
List<String>? _parts;
1984-
1985-
@override
1986-
idl.DirectiveInfo? get directiveInfo {
1987-
return _directiveInfo ??=
1988-
const _DirectiveInfoReader().vTableGetOrNull(_bc, _bcOffset, 0);
1989-
}
1990-
1991-
@override
1992-
List<String> get exports {
1993-
return _exports ??= const fb.ListReader<String>(fb.StringReader())
1994-
.vTableGet(_bc, _bcOffset, 1, const <String>[]);
1995-
}
1996-
1997-
@override
1998-
List<String> get parts {
1999-
return _parts ??= const fb.ListReader<String>(fb.StringReader())
2000-
.vTableGet(_bc, _bcOffset, 2, const <String>[]);
2001-
}
2002-
}
2003-
2004-
mixin _AvailableFileMixin implements idl.AvailableFile {
2005-
@override
2006-
Map<String, Object> toJson() {
2007-
Map<String, Object> result = <String, Object>{};
2008-
var local_directiveInfo = directiveInfo;
2009-
if (local_directiveInfo != null) {
2010-
result["directiveInfo"] = local_directiveInfo.toJson();
2011-
}
2012-
var local_exports = exports;
2013-
if (local_exports.isNotEmpty) {
2014-
result["exports"] = local_exports;
2015-
}
2016-
var local_parts = parts;
2017-
if (local_parts.isNotEmpty) {
2018-
result["parts"] = local_parts;
2019-
}
2020-
return result;
2021-
}
2022-
2023-
@override
2024-
Map<String, Object?> toMap() => {
2025-
"directiveInfo": directiveInfo,
2026-
"exports": exports,
2027-
"parts": parts,
2028-
};
2029-
2030-
@override
2031-
String toString() => convert.json.encode(toJson());
2032-
}
2033-
20341855
class CiderUnitErrorsBuilder extends Object
20351856
with _CiderUnitErrorsMixin
20361857
implements idl.CiderUnitErrors {
@@ -2333,136 +2154,3 @@ mixin _DiagnosticMessageMixin implements idl.DiagnosticMessage {
23332154
@override
23342155
String toString() => convert.json.encode(toJson());
23352156
}
2336-
2337-
class DirectiveInfoBuilder extends Object
2338-
with _DirectiveInfoMixin
2339-
implements idl.DirectiveInfo {
2340-
List<String>? _templateNames;
2341-
List<String>? _templateValues;
2342-
2343-
@override
2344-
List<String> get templateNames => _templateNames ??= <String>[];
2345-
2346-
/// The names of the defined templates.
2347-
set templateNames(List<String> value) {
2348-
this._templateNames = value;
2349-
}
2350-
2351-
@override
2352-
List<String> get templateValues => _templateValues ??= <String>[];
2353-
2354-
/// The values of the defined templates.
2355-
set templateValues(List<String> value) {
2356-
this._templateValues = value;
2357-
}
2358-
2359-
DirectiveInfoBuilder(
2360-
{List<String>? templateNames, List<String>? templateValues})
2361-
: _templateNames = templateNames,
2362-
_templateValues = templateValues;
2363-
2364-
/// Flush [informative] data recursively.
2365-
void flushInformative() {}
2366-
2367-
/// Accumulate non-[informative] data into [signature].
2368-
void collectApiSignature(api_sig.ApiSignature signatureSink) {
2369-
var templateNames = this._templateNames;
2370-
if (templateNames == null) {
2371-
signatureSink.addInt(0);
2372-
} else {
2373-
signatureSink.addInt(templateNames.length);
2374-
for (var x in templateNames) {
2375-
signatureSink.addString(x);
2376-
}
2377-
}
2378-
var templateValues = this._templateValues;
2379-
if (templateValues == null) {
2380-
signatureSink.addInt(0);
2381-
} else {
2382-
signatureSink.addInt(templateValues.length);
2383-
for (var x in templateValues) {
2384-
signatureSink.addString(x);
2385-
}
2386-
}
2387-
}
2388-
2389-
fb.Offset finish(fb.Builder fbBuilder) {
2390-
fb.Offset? offset_templateNames;
2391-
fb.Offset? offset_templateValues;
2392-
var templateNames = _templateNames;
2393-
if (!(templateNames == null || templateNames.isEmpty)) {
2394-
offset_templateNames = fbBuilder.writeList(
2395-
templateNames.map((b) => fbBuilder.writeString(b)).toList());
2396-
}
2397-
var templateValues = _templateValues;
2398-
if (!(templateValues == null || templateValues.isEmpty)) {
2399-
offset_templateValues = fbBuilder.writeList(
2400-
templateValues.map((b) => fbBuilder.writeString(b)).toList());
2401-
}
2402-
fbBuilder.startTable();
2403-
if (offset_templateNames != null) {
2404-
fbBuilder.addOffset(0, offset_templateNames);
2405-
}
2406-
if (offset_templateValues != null) {
2407-
fbBuilder.addOffset(1, offset_templateValues);
2408-
}
2409-
return fbBuilder.endTable();
2410-
}
2411-
}
2412-
2413-
class _DirectiveInfoReader extends fb.TableReader<_DirectiveInfoImpl> {
2414-
const _DirectiveInfoReader();
2415-
2416-
@override
2417-
_DirectiveInfoImpl createObject(fb.BufferContext bc, int offset) =>
2418-
_DirectiveInfoImpl(bc, offset);
2419-
}
2420-
2421-
class _DirectiveInfoImpl extends Object
2422-
with _DirectiveInfoMixin
2423-
implements idl.DirectiveInfo {
2424-
final fb.BufferContext _bc;
2425-
final int _bcOffset;
2426-
2427-
_DirectiveInfoImpl(this._bc, this._bcOffset);
2428-
2429-
List<String>? _templateNames;
2430-
List<String>? _templateValues;
2431-
2432-
@override
2433-
List<String> get templateNames {
2434-
return _templateNames ??= const fb.ListReader<String>(fb.StringReader())
2435-
.vTableGet(_bc, _bcOffset, 0, const <String>[]);
2436-
}
2437-
2438-
@override
2439-
List<String> get templateValues {
2440-
return _templateValues ??= const fb.ListReader<String>(fb.StringReader())
2441-
.vTableGet(_bc, _bcOffset, 1, const <String>[]);
2442-
}
2443-
}
2444-
2445-
mixin _DirectiveInfoMixin implements idl.DirectiveInfo {
2446-
@override
2447-
Map<String, Object> toJson() {
2448-
Map<String, Object> result = <String, Object>{};
2449-
var local_templateNames = templateNames;
2450-
if (local_templateNames.isNotEmpty) {
2451-
result["templateNames"] = local_templateNames;
2452-
}
2453-
var local_templateValues = templateValues;
2454-
if (local_templateValues.isNotEmpty) {
2455-
result["templateValues"] = local_templateValues;
2456-
}
2457-
return result;
2458-
}
2459-
2460-
@override
2461-
Map<String, Object?> toMap() => {
2462-
"templateNames": templateNames,
2463-
"templateValues": templateValues,
2464-
};
2465-
2466-
@override
2467-
String toString() => convert.json.encode(toJson());
2468-
}

pkg/analyzer/lib/src/summary/format.fbs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -275,18 +275,6 @@ table AnalysisDriverUnitIndex {
275275
usedNames:[uint] (id: 14);
276276
}
277277

278-
/// Information about an available, even if not yet imported file.
279-
table AvailableFile {
280-
/// The Dartdoc directives in the file.
281-
directiveInfo:DirectiveInfo (id: 0);
282-
283-
/// Exports directives of the file.
284-
exports:[string] (id: 1);
285-
286-
/// URIs of `part` directives.
287-
parts:[string] (id: 2);
288-
}
289-
290278
/// Errors for a single unit.
291279
table CiderUnitErrors {
292280
errors:[AnalysisDriverUnitError] (id: 0);
@@ -310,15 +298,6 @@ table DiagnosticMessage {
310298
url:string (id: 4);
311299
}
312300

313-
/// Information about the Dartdoc directives in an [AvailableFile].
314-
table DirectiveInfo {
315-
/// The names of the defined templates.
316-
templateNames:[string] (id: 0);
317-
318-
/// The values of the defined templates.
319-
templateValues:[string] (id: 1);
320-
}
321-
322301
root_type AnalysisDriverResolvedUnit;
323302

324303
file_identifier "ADRU";

0 commit comments

Comments
 (0)