OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 bool set_after_body = is_set_; | 205 bool set_after_body = is_set_; |
206 Visit(node->statement()); | 206 Visit(node->statement()); |
207 is_set_ = is_set_ && set_after_body; | 207 is_set_ = is_set_ && set_after_body; |
208 } | 208 } |
209 | 209 |
210 | 210 |
211 // Do nothing: | 211 // Do nothing: |
212 void Processor::VisitVariableDeclaration(VariableDeclaration* node) {} | 212 void Processor::VisitVariableDeclaration(VariableDeclaration* node) {} |
213 void Processor::VisitFunctionDeclaration(FunctionDeclaration* node) {} | 213 void Processor::VisitFunctionDeclaration(FunctionDeclaration* node) {} |
214 void Processor::VisitModuleDeclaration(ModuleDeclaration* node) {} | 214 void Processor::VisitModuleDeclaration(ModuleDeclaration* node) {} |
| 215 void Processor::VisitImportDeclaration(ImportDeclaration* node) {} |
| 216 void Processor::VisitExportDeclaration(ExportDeclaration* node) {} |
215 void Processor::VisitModuleLiteral(ModuleLiteral* node) {} | 217 void Processor::VisitModuleLiteral(ModuleLiteral* node) {} |
216 void Processor::VisitModuleVariable(ModuleVariable* node) {} | 218 void Processor::VisitModuleVariable(ModuleVariable* node) {} |
217 void Processor::VisitModulePath(ModulePath* node) {} | 219 void Processor::VisitModulePath(ModulePath* node) {} |
218 void Processor::VisitModuleUrl(ModuleUrl* node) {} | 220 void Processor::VisitModuleUrl(ModuleUrl* node) {} |
219 void Processor::VisitEmptyStatement(EmptyStatement* node) {} | 221 void Processor::VisitEmptyStatement(EmptyStatement* node) {} |
220 void Processor::VisitReturnStatement(ReturnStatement* node) {} | 222 void Processor::VisitReturnStatement(ReturnStatement* node) {} |
221 void Processor::VisitDebuggerStatement(DebuggerStatement* node) {} | 223 void Processor::VisitDebuggerStatement(DebuggerStatement* node) {} |
222 | 224 |
223 | 225 |
224 // Expressions are never visited yet. | 226 // Expressions are never visited yet. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 result_statement->set_statement_pos(position); | 264 result_statement->set_statement_pos(position); |
263 body->Add(result_statement); | 265 body->Add(result_statement); |
264 } | 266 } |
265 } | 267 } |
266 | 268 |
267 return true; | 269 return true; |
268 } | 270 } |
269 | 271 |
270 | 272 |
271 } } // namespace v8::internal | 273 } } // namespace v8::internal |
OLD | NEW |