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

Unified Diff: runtime/vm/token.cc

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 years, 5 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 | « runtime/vm/token.h ('k') | runtime/vm/token_position.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/token.cc
diff --git a/runtime/vm/token.cc b/runtime/vm/token.cc
index 5109177efba582f88d105bff3b5889f712122c73..303848612bdb754074a16e34df6a7f32c41aa8a5 100644
--- a/runtime/vm/token.cc
+++ b/runtime/vm/token.cc
@@ -28,7 +28,6 @@ const Token::Attribute Token::attributes_[] = {
DART_TOKEN_LIST(TOKEN_ATTRIBUTE) DART_KEYWORD_LIST(TOKEN_ATTRIBUTE)};
#undef TOKEN_ATTRIBUTE
-
bool Token::IsBinaryOperator(Token::Kind token) {
switch (token) {
case Token::kOR:
@@ -39,12 +38,10 @@ bool Token::IsBinaryOperator(Token::Kind token) {
}
}
-
bool Token::IsUnaryOperator(Token::Kind token) {
return (token == kNOT) || IsUnaryArithmeticOperator(token);
}
-
bool Token::IsBinaryArithmeticOperator(Token::Kind token) {
switch (token) {
case Token::kADD:
@@ -64,12 +61,10 @@ bool Token::IsBinaryArithmeticOperator(Token::Kind token) {
}
}
-
bool Token::IsUnaryArithmeticOperator(Token::Kind token) {
return (token == kBIT_NOT) || (token == kNEGATE);
}
-
bool Token::IsBinaryBitwiseOperator(Token::Kind token) {
switch (token) {
case Token::kBIT_OR:
« no previous file with comments | « runtime/vm/token.h ('k') | runtime/vm/token_position.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698