Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Unified Diff: pkg/analyzer/lib/src/summary/format.dart

Issue 1685263003: Minor improvements to list representation in flatbuffers. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Add a test Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/lib/src/summary/format.dart
diff --git a/pkg/analyzer/lib/src/summary/format.dart b/pkg/analyzer/lib/src/summary/format.dart
index a595343127a9cdacfe3f0245f30e3d39c47adc69..435ec76de4c8947f18528750f054cb0072227027 100644
--- a/pkg/analyzer/lib/src/summary/format.dart
+++ b/pkg/analyzer/lib/src/summary/format.dart
@@ -243,7 +243,7 @@ class _EntityRefImpl extends Object with _EntityRefMixin implements idl.EntityRe
@override
List<int> get implicitFunctionTypeIndices {
- _implicitFunctionTypeIndices ??= const fb.ListReader<int>(const fb.Uint32Reader()).vTableGet(_bp, 0, const <int>[]);
+ _implicitFunctionTypeIndices ??= const fb.Uint32ListReader().vTableGet(_bp, 0, const <int>[]);
return _implicitFunctionTypeIndices;
}
@@ -696,7 +696,7 @@ class _LinkedLibraryImpl extends Object with _LinkedLibraryMixin implements idl.
@override
List<int> get importDependencies {
- _importDependencies ??= const fb.ListReader<int>(const fb.Uint32Reader()).vTableGet(_bp, 2, const <int>[]);
+ _importDependencies ??= const fb.Uint32ListReader().vTableGet(_bp, 2, const <int>[]);
return _importDependencies;
}
@@ -1827,7 +1827,7 @@ class _UnlinkedConstImpl extends Object with _UnlinkedConstMixin implements idl.
@override
List<int> get ints {
- _ints ??= const fb.ListReader<int>(const fb.Uint32Reader()).vTableGet(_bp, 1, const <int>[]);
+ _ints ??= const fb.Uint32ListReader().vTableGet(_bp, 1, const <int>[]);
return _ints;
}
« no previous file with comments | « pkg/analyzer/lib/src/summary/flat_buffers.dart ('k') | pkg/analyzer/test/src/summary/flat_buffers_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698