Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
SkSLStatement.h
Go to the documentation of this file.
1/*
2 * Copyright 2016 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef SKSL_STATEMENT
9#define SKSL_STATEMENT
10
13
14namespace SkSL {
15
16/**
17 * Abstract supertype of all statements.
18 */
19class Statement : public IRNode {
20public:
22
24 : INHERITED(pos, (int) kind) {
25 SkASSERT(kind >= Kind::kFirst && kind <= Kind::kLast);
26 }
27
28 Kind kind() const {
29 return (Kind) fKind;
30 }
31
32 virtual bool isEmpty() const {
33 return false;
34 }
35
36private:
37 using INHERITED = IRNode;
38};
39
40} // namespace SkSL
41
42#endif
SkPoint pos
#define SkASSERT(cond)
Definition SkAssert.h:116
Type::kYUV Type::kRGBA() int(0.7 *637)
Kind kind() const
virtual bool isEmpty() const
Statement(Position pos, Kind kind)
StatementKind
Definition SkSLIRNode.h:43