Home
last modified time | relevance | path

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

1234567

/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/flutter/skia/src/sksl/ir/
DSkSLReturnStatement.h19 struct ReturnStatement : public Statement { struct
20 ReturnStatement(int offset) in ReturnStatement() argument
23 ReturnStatement(std::unique_ptr<Expression> expression) in ReturnStatement() argument
29 return std::unique_ptr<Statement>(new ReturnStatement(fExpression->clone())); in clone() argument
31 return std::unique_ptr<Statement>(new ReturnStatement(fOffset)); in clone()
/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/typescript_eslint/packages/eslint-plugin/typings/
Deslint-rules.d.ts178 ReturnStatement: RuleFunction<TSESTree.ReturnStatement>;
533 ReturnStatement(node: TSESTree.ReturnStatement): void;
565 ReturnStatement(node: TSESTree.ReturnStatement): void;
/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);
/third_party/typescript_eslint/packages/eslint-plugin/src/rules/
Dno-confusing-void-expression.ts147 if (invalidAncestor.type === AST_NODE_TYPES.ReturnStatement) {
276 function isFinalReturn(node: TSESTree.ReturnStatement): boolean {
Dexplicit-module-boundary-types.ts259 if (current.type === AST_NODE_TYPES.ReturnStatement) {
395 ancestor?.type === AST_NODE_TYPES.ReturnStatement;
Dclass-literal-property-style.ts72 if (statement.type !== AST_NODE_TYPES.ReturnStatement) {
Dno-unsafe-return.ts144 ReturnStatement(node): void {
/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.js63 ReturnStatement(node, state, c) { method
65 walk.base.ReturnStatement(node, state, c);
/third_party/typescript_eslint/packages/typescript-estree/tests/snapshots/javascript/globalReturn/
Dreturn-no-arg.src.js.shot22 "type": "ReturnStatement",
Dreturn-identifier.src.js.shot39 "type": "ReturnStatement",
Dreturn-true.src.js.shot40 "type": "ReturnStatement",
/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/flutter/skia/src/sksl/
DSkSLCPPCodeGenerator.h54 void writeReturnStatement(const ReturnStatement& s) override;

1234567