OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef TOOLS_GN_FUNCTIONS_H_ | 5 #ifndef TOOLS_GN_FUNCTIONS_H_ |
6 #define TOOLS_GN_FUNCTIONS_H_ | 6 #define TOOLS_GN_FUNCTIONS_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 | 215 |
216 extern const char kLoadableModule[]; | 216 extern const char kLoadableModule[]; |
217 extern const char kLoadableModule_HelpShort[]; | 217 extern const char kLoadableModule_HelpShort[]; |
218 extern const char kLoadableModule_Help[]; | 218 extern const char kLoadableModule_Help[]; |
219 Value RunLoadableModule(Scope* scope, | 219 Value RunLoadableModule(Scope* scope, |
220 const FunctionCallNode* function, | 220 const FunctionCallNode* function, |
221 const std::vector<Value>& args, | 221 const std::vector<Value>& args, |
222 BlockNode* block, | 222 BlockNode* block, |
223 Err* err); | 223 Err* err); |
224 | 224 |
| 225 extern const char kPool[]; |
| 226 extern const char kPool_HelpShort[]; |
| 227 extern const char kPool_Help[]; |
| 228 Value RunPool(const FunctionCallNode* function, |
| 229 const std::vector<Value>& args, |
| 230 Scope* block_scope, |
| 231 Err* err); |
| 232 |
225 extern const char kPrint[]; | 233 extern const char kPrint[]; |
226 extern const char kPrint_HelpShort[]; | 234 extern const char kPrint_HelpShort[]; |
227 extern const char kPrint_Help[]; | 235 extern const char kPrint_Help[]; |
228 Value RunPrint(Scope* scope, | 236 Value RunPrint(Scope* scope, |
229 const FunctionCallNode* function, | 237 const FunctionCallNode* function, |
230 const std::vector<Value>& args, | 238 const std::vector<Value>& args, |
231 Err* err); | 239 Err* err); |
232 | 240 |
233 extern const char kProcessFileTemplate[]; | 241 extern const char kProcessFileTemplate[]; |
234 extern const char kProcessFileTemplate_HelpShort[]; | 242 extern const char kProcessFileTemplate_HelpShort[]; |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 Scope* scope_; | 487 Scope* scope_; |
480 const FunctionCallNode* function_; | 488 const FunctionCallNode* function_; |
481 const char* type_description_; | 489 const char* type_description_; |
482 | 490 |
483 // Set to true when the key is added to the scope so we don't try to | 491 // Set to true when the key is added to the scope so we don't try to |
484 // delete nonexistant keys which will cause assertions. | 492 // delete nonexistant keys which will cause assertions. |
485 bool key_added_; | 493 bool key_added_; |
486 }; | 494 }; |
487 | 495 |
488 #endif // TOOLS_GN_FUNCTIONS_H_ | 496 #endif // TOOLS_GN_FUNCTIONS_H_ |
OLD | NEW |