Lines Matching refs:ThreadContext
28 if (!ThreadContext::IsModule()) {
32 if (ThreadContext::Settings().fForceNoInline) {
43 ThreadContext::ReportError("parameter has already been used in another function");
55 fDecl = SkSL::FunctionDeclaration::Convert(ThreadContext::Context(),
56 *ThreadContext::SymbolTable(),
58 ThreadContext::Modifiers(modifiers.fModifiers),
61 ThreadContext::ReportErrors(pos);
70 ThreadContext::ProgramElements().push_back(std::make_unique<SkSL::FunctionPrototype>(
71 pos.line(), fDecl, ThreadContext::IsModule()));
82 if (!ThreadContext::ProgramElements().empty()) {
85 const SkSL::ProgramElement& last = *ThreadContext::ProgramElements().back();
89 ThreadContext::ProgramElements().pop_back();
94 ThreadContext::ReportError(String::printf("function '%s' was already defined",
100 ThreadContext::Context(),
105 ThreadContext::ReportErrors(fPosition);
107 ThreadContext::ProgramElements().push_back(std::move(function));
120 std::unique_ptr<SkSL::Expression> result = SkSL::FunctionCall::Convert(ThreadContext::Context(),