Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
SkSL::BreakStatement Class Referencefinal

#include <SkSLBreakStatement.h>

Inheritance diagram for SkSL::BreakStatement:
SkSL::Statement SkSL::IRNode SkSL::Poolable

Public Member Functions

 BreakStatement (Position pos)
 
std::string description () const override
 
- Public Member Functions inherited from SkSL::Statement
 Statement (Position pos, Kind kind)
 
Kind kind () const
 
virtual bool isEmpty () const
 
- Public Member Functions inherited from SkSL::IRNode
virtual ~IRNode ()
 
 IRNode (const IRNode &)=delete
 
IRNodeoperator= (const IRNode &)=delete
 
Position position () const
 
void setPosition (Position p)
 
template<typename T >
bool is () const
 
template<typename T >
const Tas () const
 
template<typename T >
Tas ()
 

Static Public Member Functions

static std::unique_ptr< StatementMake (Position pos)
 
- Static Public Member Functions inherited from SkSL::Poolable
static void * operator new (const size_t size)
 
static void operator delete (void *ptr)
 

Static Public Attributes

static constexpr Kind kIRNodeKind = Kind::kBreak
 

Additional Inherited Members

- Public Types inherited from SkSL::Statement
using Kind = StatementKind
 
- Public Attributes inherited from SkSL::IRNode
Position fPosition
 
- Protected Member Functions inherited from SkSL::IRNode
 IRNode (Position position, int kind)
 
- Protected Attributes inherited from SkSL::IRNode
int fKind
 

Detailed Description

A 'break' statement.

Definition at line 19 of file SkSLBreakStatement.h.

Constructor & Destructor Documentation

◆ BreakStatement()

SkSL::BreakStatement::BreakStatement ( Position  pos)
inline

Definition at line 23 of file SkSLBreakStatement.h.

24 : INHERITED(pos, kIRNodeKind) {}
SkPoint pos
static constexpr Kind kIRNodeKind

Member Function Documentation

◆ description()

std::string SkSL::BreakStatement::description ( ) const
inlineoverridevirtual

Implements SkSL::IRNode.

Definition at line 30 of file SkSLBreakStatement.h.

30 {
31 return "break;";
32 }

◆ Make()

static std::unique_ptr< Statement > SkSL::BreakStatement::Make ( Position  pos)
inlinestatic

Definition at line 26 of file SkSLBreakStatement.h.

26 {
27 return std::make_unique<BreakStatement>(pos);
28 }

Member Data Documentation

◆ kIRNodeKind

constexpr Kind SkSL::BreakStatement::kIRNodeKind = Kind::kBreak
inlinestaticconstexpr

Definition at line 21 of file SkSLBreakStatement.h.


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