MCPcopy Create free account
hub / github.com/SerenityOS/jakt / Function

Method Function

bootstrap/stage0/parser.cpp:16563–16574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16561return __jakt_uninit_enum;
16562}
16563[[nodiscard]] NonnullRefPtr<ParsedExpression> ParsedExpression::Function(JaktInternal::DynamicArray<Jakt::parser::ParsedCapture> captures, JaktInternal::DynamicArray<Jakt::parser::ParsedParameter> params, bool can_throw, bool is_fat_arrow, NonnullRefPtr<typename Jakt::parser::ParsedType> return_type, Jakt::parser::ParsedBlock block, Jakt::utility::Span span){
16564NonnullRefPtr<ParsedExpression> __jakt_uninit_enum = adopt_ref(*new ParsedExpression);
16565__jakt_uninit_enum->__jakt_variant_index = 26;
16566new (&__jakt_uninit_enum->as.Function.captures) (decltype(captures))(move(captures));
16567new (&__jakt_uninit_enum->as.Function.params) (decltype(params))(move(params));
16568new (&__jakt_uninit_enum->as.Function.can_throw) (decltype(can_throw))(move(can_throw));
16569new (&__jakt_uninit_enum->as.Function.is_fat_arrow) (decltype(is_fat_arrow))(move(is_fat_arrow));
16570new (&__jakt_uninit_enum->as.Function.return_type) (decltype(return_type))(move(return_type));
16571new (&__jakt_uninit_enum->as.Function.block) (decltype(block))(move(block));
16572new (&__jakt_uninit_enum->as.Function.span) (decltype(span))(move(span));
16573return __jakt_uninit_enum;
16574}
16575[[nodiscard]] NonnullRefPtr<ParsedExpression> ParsedExpression::Must(NonnullRefPtr<typename Jakt::parser::ParsedExpression> expr, Jakt::utility::Span span){
16576NonnullRefPtr<ParsedExpression> __jakt_uninit_enum = adopt_ref(*new ParsedExpression);
16577__jakt_uninit_enum->__jakt_variant_index = 27;

Callers

nothing calls this directly

Calls 1

adopt_refFunction · 0.85

Tested by

no test coverage detected