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

Unified Diff: pkg/analyzer/lib/src/summary/fasta/model.dart

Issue 2746333008: Run dartfmt on dart2js codebase. (Closed)
Patch Set: Format all analyzer packages Created 3 years, 9 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
« no previous file with comments | « pkg/analyzer/lib/src/generated/workspace.dart ('k') | pkg/analyzer/lib/src/summary/format.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/fasta/model.dart
diff --git a/pkg/analyzer/lib/src/summary/fasta/model.dart b/pkg/analyzer/lib/src/summary/fasta/model.dart
index 499a40bcb9b3c5b2ba7cf2680377ce7a4635b70f..b954d9b81ab010261b9415f4cfaa97ff049e983b 100644
--- a/pkg/analyzer/lib/src/summary/fasta/model.dart
+++ b/pkg/analyzer/lib/src/summary/fasta/model.dart
@@ -137,6 +137,7 @@ class TopScope extends Scope {
references: [new UnlinkedReferenceBuilder()],
typedefs: [],
variables: []);
+
/// Stores publicly visible names exported from the unit.
final UnlinkedPublicNamespaceBuilder publicNamespace =
new UnlinkedPublicNamespaceBuilder(names: [], exports: [], parts: []);
@@ -160,6 +161,7 @@ class TopScope extends Scope {
void expandLazyReferences() {
_toExpand.forEach((r) => r.expand());
}
+
int serializeReference(int prefixIndex, String name) => nameToReference
.putIfAbsent(prefixIndex, () => <String, int>{})
.putIfAbsent(name, () {
« no previous file with comments | « pkg/analyzer/lib/src/generated/workspace.dart ('k') | pkg/analyzer/lib/src/summary/format.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698