visitLetFunctionDeclaration method
Implementation
@override
List<Method> visitLetFunctionDeclaration(LetFunctionDeclaration node) {
final method = Method((builder) {
builder.returns = _typeReferenceFromType(
node.type.returnType,
position: _ParameterPosition.contravariant,
);
builder.name = node.name;
// We currently ignore the parameter as we still don't have it properly defined
builder.lambda = true;
final [expression] = node.body.accept(this) as List<Expression>;
builder.body = expression.code;
});
return [method];
}