Index: src/parsing/func-name-inferrer.h |
diff --git a/src/parsing/func-name-inferrer.h b/src/parsing/func-name-inferrer.h |
index d0e4cad429cdc0d0264162a9b82a5c67fce2f6e2..8eb5db4616cb9206bdb90aca5fcab9bc17884fee 100644 |
--- a/src/parsing/func-name-inferrer.h |
+++ b/src/parsing/func-name-inferrer.h |
@@ -37,9 +37,7 @@ class FuncNameInferrer : public ZoneObject { |
void PushEnclosingName(const AstRawString* name); |
// Enters name collection state. |
- void Enter() { |
- entries_stack_.Add(names_stack_.length(), zone()); |
- } |
+ void Enter() { entries_stack_.Add(names_stack_.length(), zone()); } |
// Pushes an encountered name onto names stack when in collection state. |
void PushLiteralName(const AstRawString* name); |
@@ -71,16 +69,11 @@ class FuncNameInferrer : public ZoneObject { |
void Leave() { |
DCHECK(IsOpen()); |
names_stack_.Rewind(entries_stack_.RemoveLast()); |
- if (entries_stack_.is_empty()) |
- funcs_to_infer_.Clear(); |
+ if (entries_stack_.is_empty()) funcs_to_infer_.Clear(); |
} |
private: |
- enum NameType { |
- kEnclosingConstructorName, |
- kLiteralName, |
- kVariableName |
- }; |
+ enum NameType { kEnclosingConstructorName, kLiteralName, kVariableName }; |
struct Name { |
Name(const AstRawString* name, NameType type) : name(name), type(type) {} |
const AstRawString* name; |
@@ -93,8 +86,7 @@ class FuncNameInferrer : public ZoneObject { |
const AstString* MakeNameFromStack(); |
// A helper function for MakeNameFromStack. |
- const AstString* MakeNameFromStackHelper(int pos, |
- const AstString* prev); |
+ const AstString* MakeNameFromStackHelper(int pos, const AstString* prev); |
// Performs name inferring for added functions. |
void InferFunctionsNames(); |