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

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

Issue 1914073003: Add a "raw" mode to the summary inspector (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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 | « no previous file | pkg/analyzer/tool/summary/inspect.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/inspect.dart
diff --git a/pkg/analyzer/lib/src/summary/inspect.dart b/pkg/analyzer/lib/src/summary/inspect.dart
index ba4e18f3fb4c67307fa50652cdebf5b333f0e49f..799c15eb7798faa70b8d1b21791b6aec56147c96 100644
--- a/pkg/analyzer/lib/src/summary/inspect.dart
+++ b/pkg/analyzer/lib/src/summary/inspect.dart
@@ -155,11 +155,21 @@ class SummaryInspector {
List<ReferenceWrapper> _references;
/**
+ * Indicates whether summary inspection should operate in "raw" mode. In this
+ * mode, the structure of the summary file is not altered for easier
+ * readability; everything is output in exactly the form in which it appears
+ * in the file.
+ */
+ final bool raw;
+
+ SummaryInspector(this.raw);
+
+ /**
* Decode the object [obj], which was reached by examining [key] inside
* another object.
*/
DecodedEntity decode(Object obj, String key) {
- if (obj is PackageBundle) {
+ if (!raw && obj is PackageBundle) {
return decodePackageBundle(obj);
}
if (obj is LibraryWrapper) {
« no previous file with comments | « no previous file | pkg/analyzer/tool/summary/inspect.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698