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

Unified Diff: runtime/vm/object.cc

Issue 1661413002: Improve regenerated source code. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 | runtime/vm/object_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index f5d5253bcc584f2a42acce3e5bc6e73fe4214da2..b7d6ead2191b67f513dcabb2e155638b8725aced 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -8144,6 +8144,16 @@ RawString* TokenStream::GenerateSource(TokenPosition start_pos,
separator = NULL;
} else if ((curr == Token::kSEMICOLON) && (next != Token::kNEWLINE)) {
separator = &Symbols::Blank();
+ } else if ((curr == Token::kIS) && (next == Token::kNOT)) {
+ separator = NULL;
+ } else if ((prev == Token::kIS) && (curr == Token::kNOT)) {
+ separator = &Symbols::Blank();
+ } else if ((curr == Token::kIDENT) &&
+ ((next == Token::kINCR) || (next == Token::kDECR))) {
+ separator = NULL;
+ } else if (((curr == Token::kINCR) || (curr == Token::kDECR)) &&
+ (next == Token::kIDENT)) {
+ separator = NULL;
}
// Add the separator.
« no previous file with comments | « no previous file | runtime/vm/object_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698