8#ifndef SKSL_FUNCTIONDEFINITION
9#define SKSL_FUNCTIONDEFINITION
35 std::unique_ptr<Statement>
body)
54 static std::unique_ptr<FunctionDefinition>
Convert(
const Context& context,
57 std::unique_ptr<Statement>
body,
60 static std::unique_ptr<FunctionDefinition>
Make(
const Context& context,
63 std::unique_ptr<Statement>
body,
74 std::unique_ptr<Statement>&
body() {
78 const std::unique_ptr<Statement>&
body()
const {
89 std::unique_ptr<Statement> fBody;
std::string description() const override
std::unique_ptr< Statement > & body()
static std::unique_ptr< FunctionDefinition > Make(const Context &context, Position pos, const FunctionDeclaration &function, std::unique_ptr< Statement > body, bool builtin)
static constexpr Kind kIRNodeKind
const FunctionDeclaration & declaration() const
FunctionDefinition(Position pos, const FunctionDeclaration *declaration, bool builtin, std::unique_ptr< Statement > body)
const std::unique_ptr< Statement > & body() const
static std::unique_ptr< FunctionDefinition > Convert(const Context &context, Position pos, const FunctionDeclaration &function, std::unique_ptr< Statement > body, bool builtin)
std::string description() const override
ProgramElement(Position pos, Kind kind)
Dart_NativeFunction function