Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkSL::ProgramVisitor Class Reference

#include <SkSLProgramVisitor.h>

Inheritance diagram for SkSL::ProgramVisitor:
SkSL::TProgramVisitor< ProgramVisitorTypes > SkSL::CountReturnsWithLimit

Public Member Functions

bool visit (const Program &program)
 
- Public Member Functions inherited from SkSL::TProgramVisitor< ProgramVisitorTypes >
virtual ~TProgramVisitor ()=default
 

Additional Inherited Members

- Protected Member Functions inherited from SkSL::TProgramVisitor< ProgramVisitorTypes >
virtual bool visitExpression (typename T::Expression &expression)
 
virtual bool visitStatement (typename T::Statement &statement)
 
virtual bool visitProgramElement (typename T::ProgramElement &programElement)
 
virtual bool visitExpressionPtr (typename T::UniquePtrExpression &expr)=0
 
virtual bool visitStatementPtr (typename T::UniquePtrStatement &stmt)=0
 

Detailed Description

Definition at line 60 of file SkSLProgramVisitor.h.

Member Function Documentation

◆ visit()

bool SkSL::ProgramVisitor::visit ( const Program program)

Definition at line 533 of file SkSLAnalysis.cpp.

533 {
534 for (const ProgramElement* pe : program.elements()) {
535 if (this->visitProgramElement(*pe)) {
536 return true;
537 }
538 }
539 return false;
540}
virtual bool visitProgramElement(typename T::ProgramElement &programElement)

The documentation for this class was generated from the following files: