// ProgramVisitors take const types; ProgramWriters do not. struct ProgramVisitorTypes { using Program = const SkSL::Program; using Expression = const SkSL::Expression; using Statement = const SkSL::Statement; using ProgramElement = const SkSL::ProgramElement; using UniquePtrExpression = const std::unique_ptr<SkSL::Expression>; using UniquePtrStatement = const std::unique_ptr<SkSL::Statement>;
};
class ProgramVisitor : public TProgramVisitor<ProgramVisitorTypes> { public: bool visit(const Program& program);
private: // ProgramVisitors shouldn't need access to unique_ptrs, and marking these as final should help // these accessors inline away. Use ProgramWriter if you need the unique_ptrs. bool visitExpressionPtr(const std::unique_ptr<Expression>& e) final { returnthis->visitExpression(*e);
} bool visitStatementPtr(const std::unique_ptr<Statement>& s) final { returnthis->visitStatement(*s);
}
};
} // namespace SkSL
#endif
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.7 Sekunden
(vorverarbeitet am 2026-10-11)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.