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 177 matching lines...) Loading... |
188 Err* err); | 188 Err* err); |
189 | 189 |
190 extern const char kImport[]; | 190 extern const char kImport[]; |
191 extern const char kImport_HelpShort[]; | 191 extern const char kImport_HelpShort[]; |
192 extern const char kImport_Help[]; | 192 extern const char kImport_Help[]; |
193 Value RunImport(Scope* scope, | 193 Value RunImport(Scope* scope, |
194 const FunctionCallNode* function, | 194 const FunctionCallNode* function, |
195 const std::vector<Value>& args, | 195 const std::vector<Value>& args, |
196 Err* err); | 196 Err* err); |
197 | 197 |
| 198 extern const char kLoadableModule[]; |
| 199 extern const char kLoadableModule_HelpShort[]; |
| 200 extern const char kLoadableModule_Help[]; |
| 201 Value RunLoadableModule(Scope* scope, |
| 202 const FunctionCallNode* function, |
| 203 const std::vector<Value>& args, |
| 204 BlockNode* block, |
| 205 Err* err); |
| 206 |
198 extern const char kPrint[]; | 207 extern const char kPrint[]; |
199 extern const char kPrint_HelpShort[]; | 208 extern const char kPrint_HelpShort[]; |
200 extern const char kPrint_Help[]; | 209 extern const char kPrint_Help[]; |
201 Value RunPrint(Scope* scope, | 210 Value RunPrint(Scope* scope, |
202 const FunctionCallNode* function, | 211 const FunctionCallNode* function, |
203 const std::vector<Value>& args, | 212 const std::vector<Value>& args, |
204 Err* err); | 213 Err* err); |
205 | 214 |
206 extern const char kProcessFileTemplate[]; | 215 extern const char kProcessFileTemplate[]; |
207 extern const char kProcessFileTemplate_HelpShort[]; | 216 extern const char kProcessFileTemplate_HelpShort[]; |
(...skipping 244 matching lines...) Loading... |
452 Scope* scope_; | 461 Scope* scope_; |
453 const FunctionCallNode* function_; | 462 const FunctionCallNode* function_; |
454 const char* type_description_; | 463 const char* type_description_; |
455 | 464 |
456 // Set to true when the key is added to the scope so we don't try to | 465 // Set to true when the key is added to the scope so we don't try to |
457 // delete nonexistant keys which will cause assertions. | 466 // delete nonexistant keys which will cause assertions. |
458 bool key_added_; | 467 bool key_added_; |
459 }; | 468 }; |
460 | 469 |
461 #endif // TOOLS_GN_FUNCTIONS_H_ | 470 #endif // TOOLS_GN_FUNCTIONS_H_ |
OLD | NEW |