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

Side by Side Diff: runtime/vm/ast_transformer.h

Issue 511483003: Revert "Fix scope/context behavior in await transformer." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/ast_transformer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_AST_TRANSFORMER_H_ 5 #ifndef VM_AST_TRANSFORMER_H_
6 #define VM_AST_TRANSFORMER_H_ 6 #define VM_AST_TRANSFORMER_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/ast.h" 9 #include "vm/ast.h"
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 AstNode* Transform(AstNode* expr); 63 AstNode* Transform(AstNode* expr);
64 64
65 private: 65 private:
66 LocalVariable* EnsureCurrentTempVar(); 66 LocalVariable* EnsureCurrentTempVar();
67 LocalVariable* AddToPreambleNewTempVar(AstNode* node); 67 LocalVariable* AddToPreambleNewTempVar(AstNode* node);
68 ArgumentListNode* TransformArguments(ArgumentListNode* node); 68 ArgumentListNode* TransformArguments(ArgumentListNode* node);
69 AstNode* LazyTransform(const Token::Kind kind, 69 AstNode* LazyTransform(const Token::Kind kind,
70 AstNode* new_left, 70 AstNode* new_left,
71 AstNode* right); 71 AstNode* right);
72 LocalScope* NewScope(LocalScope* parent);
73 72
74 void NextTempVar() { temp_cnt_++; } 73 void NextTempVar() { temp_cnt_++; }
75 74
76 Isolate* isolate() const { return isolate_; } 75 Isolate* isolate() const { return isolate_; }
77 76
78 SequenceNode* preamble_; 77 SequenceNode* preamble_;
79 int32_t temp_cnt_; 78 int32_t temp_cnt_;
80 AstNode* result_; 79 AstNode* result_;
81 const Library& library_; 80 const Library& library_;
82 ParsedFunction* const parsed_function_; 81 ParsedFunction* const parsed_function_;
83 82
84 Isolate* isolate_; 83 Isolate* isolate_;
85 84
86 DISALLOW_COPY_AND_ASSIGN(AwaitTransformer); 85 DISALLOW_COPY_AND_ASSIGN(AwaitTransformer);
87 }; 86 };
88 87
89 } // namespace dart 88 } // namespace dart
90 89
91 #endif // VM_AST_TRANSFORMER_H_ 90 #endif // VM_AST_TRANSFORMER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/ast_transformer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698