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

Unified Diff: runtime/vm/kernel_reader.cc

Issue 2481873005: clang-format runtime/vm (Closed)
Patch Set: Merge Created 4 years, 1 month 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 | « runtime/vm/kernel_reader.h ('k') | runtime/vm/kernel_to_il.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/kernel_reader.cc
diff --git a/runtime/vm/kernel_reader.cc b/runtime/vm/kernel_reader.cc
index d9d767975ec4df9d6c4c2588315508368e96cf8e..f9f22777b7ae86993842f9d91b210ed5645c5efc 100644
--- a/runtime/vm/kernel_reader.cc
+++ b/runtime/vm/kernel_reader.cc
@@ -181,8 +181,9 @@ void KernelReader::ReadLibrary(Library* kernel_library) {
Script::New(H.DartString(""), H.DartString(""), RawScript::kScriptTag));
script.SetLocationOffset(0, 0);
script.Tokenize(H.DartString("nop() {}"));
- dart::Class& toplevel_class = dart::Class::Handle(Z, dart::Class::New(
- library, Symbols::TopLevel(), script, TokenPosition::kNoSource));
+ dart::Class& toplevel_class = dart::Class::Handle(
+ Z, dart::Class::New(library, Symbols::TopLevel(), script,
+ TokenPosition::kNoSource));
toplevel_class.set_is_cycle_free();
library.set_toplevel_class(toplevel_class);
if (bootstrapping_) {
@@ -273,8 +274,8 @@ void KernelReader::ReadPreliminaryClass(dart::Class* klass,
// Set super type. Some classes (e.g., Object) do not have one.
if (kernel_normal_class->super_class() != NULL) {
- AbstractType& super_type = T.TranslateTypeWithoutFinalization(
- kernel_normal_class->super_class());
+ AbstractType& super_type =
+ T.TranslateTypeWithoutFinalization(kernel_normal_class->super_class());
if (super_type.IsMalformed()) H.ReportError("Malformed super type");
klass->set_super_type(super_type);
}
@@ -527,7 +528,8 @@ void KernelReader::SetupFunctionParameters(TranslationHelper translation_helper,
DartTypeTranslator type_translator,
const dart::Class& klass,
const dart::Function& function,
- FunctionNode* node, bool is_method,
+ FunctionNode* node,
+ bool is_method,
bool is_closure) {
dart::Zone* zone = translation_helper.zone();
« no previous file with comments | « runtime/vm/kernel_reader.h ('k') | runtime/vm/kernel_to_il.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698