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

Unified Diff: tool/patch_sdk.dart

Issue 1778623002: DDC: remove dumpInfo flag (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 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 | « test/codegen_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/patch_sdk.dart
diff --git a/tool/patch_sdk.dart b/tool/patch_sdk.dart
index e8bc7409ef59495f084ba5790cf062e86ac397de..59a3672834bb8b76174a9a2c74395220670e4645 100755
--- a/tool/patch_sdk.dart
+++ b/tool/patch_sdk.dart
@@ -188,7 +188,8 @@ class PatchApplier extends GeneralizingAstVisitor {
PatchApplier(this.edits, this.patch);
- @override visitCompilationUnit(CompilationUnit node) {
+ @override
+ visitCompilationUnit(CompilationUnit node) {
super.visitCompilationUnit(node);
if (_isLibrary) _mergeUnpatched(node);
}
@@ -224,16 +225,19 @@ class PatchApplier extends GeneralizingAstVisitor {
}
}
- @override visitPartOfDirective(PartOfDirective node) {
+ @override
+ visitPartOfDirective(PartOfDirective node) {
_isLibrary = false;
}
- @override visitFunctionDeclaration(FunctionDeclaration node) {
+ @override
+ visitFunctionDeclaration(FunctionDeclaration node) {
_maybePatch(node);
}
/// Merge patches and extensions into the class
- @override visitClassDeclaration(ClassDeclaration node) {
+ @override
+ visitClassDeclaration(ClassDeclaration node) {
node.members.forEach(_maybePatch);
var mergeMembers = patch.mergeMembers[_qualifiedName(node)];
@@ -285,11 +289,13 @@ class PatchFinder extends GeneralizingAstVisitor {
visitCompilationUnit(unit);
}
- @override visitCompilationUnitMember(CompilationUnitMember node) {
+ @override
+ visitCompilationUnitMember(CompilationUnitMember node) {
mergeDeclarations.add(node);
}
- @override visitClassDeclaration(ClassDeclaration node) {
+ @override
+ visitClassDeclaration(ClassDeclaration node) {
if (_isPatch(node)) {
var members = <ClassMember>[];
for (var member in node.members) {
@@ -307,7 +313,8 @@ class PatchFinder extends GeneralizingAstVisitor {
}
}
- @override visitFunctionDeclaration(FunctionDeclaration node) {
+ @override
+ visitFunctionDeclaration(FunctionDeclaration node) {
if (_isPatch(node)) {
patches[_qualifiedName(node)] = node;
} else {
@@ -315,7 +322,8 @@ class PatchFinder extends GeneralizingAstVisitor {
}
}
- @override visitFunctionBody(node) {} // skip method bodies
+ @override
+ visitFunctionBody(node) {} // skip method bodies
}
String _qualifiedName(Declaration node) {
« no previous file with comments | « test/codegen_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698