Home
last modified time | relevance | path

Searched refs:ReturnStatement (Results 1 – 25 of 101) sorted by relevance

12345

/third_party/skia/third_party/externals/tint/src/ast/
Dreturn_statement.cc19 TINT_INSTANTIATE_TYPEINFO(tint::ast::ReturnStatement);
24 ReturnStatement::ReturnStatement(ProgramID pid, const Source& src) in ReturnStatement() function in tint::ast::ReturnStatement
27 ReturnStatement::ReturnStatement(ProgramID pid, in ReturnStatement() function in tint::ast::ReturnStatement
34 ReturnStatement::ReturnStatement(ReturnStatement&&) = default;
36 ReturnStatement::~ReturnStatement() = default;
38 const ReturnStatement* ReturnStatement::Clone(CloneContext* ctx) const { in Clone()
42 return ctx->dst->create<ReturnStatement>(src, ret); in Clone()
Dreturn_statement.h25 class ReturnStatement : public Castable<ReturnStatement, Statement> {
30 ReturnStatement(ProgramID pid, const Source& src);
36 ReturnStatement(ProgramID pid, const Source& src, const Expression* value);
38 ReturnStatement(ReturnStatement&&);
39 ~ReturnStatement() override;
45 const ReturnStatement* Clone(CloneContext* ctx) const override;
Dreturn_statement_test.cc29 auto* r = create<ReturnStatement>(expr); in TEST_F()
34 auto* r = create<ReturnStatement>(Source{Source::Location{20, 2}}); in TEST_F()
41 auto* r = create<ReturnStatement>(); in TEST_F()
42 EXPECT_TRUE(r->Is<ReturnStatement>()); in TEST_F()
46 auto* r = create<ReturnStatement>(); in TEST_F()
52 auto* r = create<ReturnStatement>(expr); in TEST_F()
61 b1.create<ReturnStatement>(b2.Expr(true)); in TEST_F()
Dstatement.cc74 if (Is<ReturnStatement>()) { in Name()
/third_party/skia/src/sksl/ir/
DSkSLReturnStatement.h19 class ReturnStatement final : public Statement {
23 ReturnStatement(int line, std::unique_ptr<Expression> expression) in ReturnStatement() function
28 return std::make_unique<ReturnStatement>(line, std::move(expression)); in Make()
44 return std::make_unique<ReturnStatement>(fLine, this->expression()->clone()); in clone()
DSkSLFunctionDefinition.cpp174 ReturnStatement& returnStmt = stmt.as<ReturnStatement>(); in Convert()
/third_party/skia/third_party/externals/tint/src/reader/wgsl/
Dparser_impl_statement_test.cc31 ASSERT_TRUE(e->Is<ast::ReturnStatement>()); in TEST_F()
46 ASSERT_TRUE(e->Is<ast::ReturnStatement>()); in TEST_F()
47 auto* ret = e->As<ast::ReturnStatement>(); in TEST_F()
58 ASSERT_TRUE(e->Is<ast::ReturnStatement>()); in TEST_F()
59 auto* ret = e->As<ast::ReturnStatement>(); in TEST_F()
Dparser_impl_function_decl_test.cc48 EXPECT_TRUE(body->statements[0]->Is<ast::ReturnStatement>()); in TEST_F()
85 EXPECT_TRUE(body->statements[0]->Is<ast::ReturnStatement>()); in TEST_F()
128 EXPECT_TRUE(body->statements[0]->Is<ast::ReturnStatement>()); in TEST_F()
172 EXPECT_TRUE(body->statements[0]->Is<ast::ReturnStatement>()); in TEST_F()
203 EXPECT_TRUE(body->statements[0]->Is<ast::ReturnStatement>()); in TEST_F()
Dparser_impl_statements_test.cc30 EXPECT_TRUE(e.value[1]->Is<ast::ReturnStatement>()); in TEST_F()
Dparser_impl_body_stmt_test.cc33 EXPECT_TRUE(e->statements[1]->Is<ast::ReturnStatement>()); in TEST_F()
/third_party/skia/src/sksl/codegen/
DSkSLGLSLCodeGenerator.h37 class ReturnStatement; variable
164 virtual void writeReturnStatement(const ReturnStatement& r);
DSkSLMetalCodeGenerator.h40 class ReturnStatement; variable
251 void writeReturnStatement(const ReturnStatement& r);
DSkSLPipelineStageCodeGenerator.cpp102 void writeReturnStatement(const ReturnStatement& r);
269 void PipelineStageCodeGenerator::writeReturnStatement(const ReturnStatement& r) { in writeReturnStatement()
674 this->writeReturnStatement(s.as<ReturnStatement>()); in writeStatement()
DSkSLSPIRVCodeGenerator.h46 class ReturnStatement; variable
403 void writeReturnStatement(const ReturnStatement& r, OutputStream& out);
/third_party/skia/third_party/externals/tint/src/resolver/
Dresolver.h53 class ReturnStatement; variable
221 sem::Statement* ReturnStatement(const ast::ReturnStatement*);
267 bool ValidateReturn(const ast::ReturnStatement* ret);
/third_party/node/lib/internal/repl/
Dawait.js62 ReturnStatement(node, state, c) { method
64 walk.base.ReturnStatement(node, state, c);
/third_party/node/deps/v8/src/ast/
Dast.h67 V(ReturnStatement) \
622 class ReturnStatement final : public JumpStatement {
644 ReturnStatement(Expression* expression, Type type, int pos, int end_position) in ReturnStatement() function
2890 ReturnStatement* NewReturnStatement(
2892 int end_position = ReturnStatement::kFunctionLiteralReturnPosition) {
2893 return zone_->New<ReturnStatement>(expression, ReturnStatement::kNormal,
2897 ReturnStatement* NewAsyncReturnStatement(Expression* expression, int pos, in NewAsyncReturnStatement()
2899 return zone_->New<ReturnStatement>( in NewAsyncReturnStatement()
2900 expression, ReturnStatement::kAsyncReturn, pos, end_position); in NewAsyncReturnStatement()
2903 ReturnStatement* NewSyntheticAsyncReturnStatement(
[all …]
/third_party/skia/third_party/externals/tint/src/writer/hlsl/
Dgenerator_impl_case_test.cc60 Case(Expr(5), Block(create<ast::ReturnStatement>())), // in TEST_F()
/third_party/typescript/src/compiler/transformers/
Dgenerators.ts376 case SyntaxKind.ReturnStatement:
377 return visitReturnStatement(node as ReturnStatement);
1228 case SyntaxKind.ReturnStatement:
1229 return transformAndEmitReturnStatement(node as ReturnStatement);
1691 function transformAndEmitReturnStatement(node: ReturnStatement): void {
1698 function visitReturnStatement(node: ReturnStatement) {
2462 function createInlineBreak(label: Label, location?: TextRange): ReturnStatement {
2481 … function createInlineReturn(expression?: Expression, location?: TextRange): ReturnStatement {
/third_party/skia/third_party/externals/tint/src/writer/wgsl/
Dgenerator_impl.h149 bool EmitReturn(const ast::ReturnStatement* stmt);
/third_party/typescript/src/services/refactors/
DaddOrRemoveBracesToArrowFunction.ts25 returnStatement?: ReturnStatement;
/third_party/skia/third_party/externals/tint/src/
Dprogram_builder.h1884 const ast::ReturnStatement* Return(const Source& source) { in Return()
1885 return create<ast::ReturnStatement>(source); in Return()
1890 const ast::ReturnStatement* Return() { in Return()
1891 return create<ast::ReturnStatement>(); in Return()
1899 const ast::ReturnStatement* Return(const Source& source, EXPR&& val) { in Return()
1900 return create<ast::ReturnStatement>(source, Expr(std::forward<EXPR>(val))); in Return()
1907 const ast::ReturnStatement* Return(EXPR&& val) { in Return()
1908 return create<ast::ReturnStatement>(Expr(std::forward<EXPR>(val))); in Return()
/third_party/skia/third_party/externals/tint/src/sem/
Dfunction.h33 class ReturnStatement; variable
/third_party/skia/src/sksl/
DSkSLInliner.cpp533 const ReturnStatement& r = statement.as<ReturnStatement>(); in inlineStatement()
899 ReturnStatement& returnStmt = (*stmt)->as<ReturnStatement>(); in visitStatement()
/third_party/typescript/src/services/codefixes/
DconvertToAsyncFunction.ts110 …eturnStatementsWithPromiseHandlers(body: Block, checker: TypeChecker): readonly ReturnStatement[] {
111 const res: ReturnStatement[] = [];
722 …entWithFixablePromiseHandler(transformer: Transformer, innerRetStmt: ReturnStatement, hasContinuat…

12345