Lines Matching defs:context
38 std::unique_ptr<Statement> IfStatement::Convert(const Context& context, int line, bool isStatic,
42 test = context.fTypes.fBool->coerceExpression(std::move(test), context);
47 if (Analysis::DetectVarDeclarationWithoutScope(*ifTrue, context.fErrors)) {
50 if (ifFalse && Analysis::DetectVarDeclarationWithoutScope(*ifFalse, context.fErrors)) {
53 return IfStatement::Make(context, line, isStatic, std::move(test),
63 std::unique_ptr<Statement> IfStatement::Make(const Context& context, int line, bool isStatic,
67 SkASSERT(test->type() == *context.fTypes.fBool);
71 const bool optimize = context.fConfig->fSettings.fOptimize;
80 return ExpressionStatement::Make(context, std::move(test));