Index: tools/gn/script_target_generator.cc |
diff --git a/tools/gn/script_target_generator.cc b/tools/gn/script_target_generator.cc |
index 272061c488be588e66ae98043c974c6ff80c323f..8f414f4956471fc050ef9a6efbbbf6fa0111d04b 100644 |
--- a/tools/gn/script_target_generator.cc |
+++ b/tools/gn/script_target_generator.cc |
@@ -7,16 +7,18 @@ |
#include "tools/gn/build_settings.h" |
#include "tools/gn/err.h" |
#include "tools/gn/filesystem_utils.h" |
+#include "tools/gn/parse_tree.h" |
#include "tools/gn/scope.h" |
#include "tools/gn/value.h" |
#include "tools/gn/value_extractors.h" |
#include "tools/gn/variables.h" |
-ScriptTargetGenerator::ScriptTargetGenerator(Target* target, |
- Scope* scope, |
- const Token& function_token, |
- Err* err) |
- : TargetGenerator(target, scope, function_token, err) { |
+ScriptTargetGenerator::ScriptTargetGenerator( |
+ Target* target, |
+ Scope* scope, |
+ const FunctionCallNode* function_call, |
+ Err* err) |
+ : TargetGenerator(target, scope, function_call, err) { |
} |
ScriptTargetGenerator::~ScriptTargetGenerator() { |
@@ -62,7 +64,7 @@ void ScriptTargetGenerator::FillScript() { |
// if it doesn't have one. |
const Value* value = scope_->GetValue(variables::kScript, true); |
if (!value) { |
- *err_ = Err(function_token_, "This target type requires a \"script\"."); |
+ *err_ = Err(function_call_, "This target type requires a \"script\"."); |
return; |
} |
if (!value->VerifyTypeIs(Value::STRING, err_)) |