Flutter Engine
The Flutter Engine
SkSLVariableReference.cpp
Go to the documentation of this file.
1/*
2 * Copyright 2018 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
9
11
12namespace SkSL {
13
15 : INHERITED(pos, kIRNodeKind, &variable->type())
16 , fVariable(variable)
17 , fRefKind(refKind) {
18 SkASSERT(this->variable());
19}
20
22 return std::string(this->variable()->name());
23}
24
26 fRefKind = refKind;
27}
28
30 fVariable = variable;
31}
32
33} // namespace SkSL
SkPoint pos
#define SkASSERT(cond)
Definition: SkAssert.h:116
GLenum type
std::string description() const final
const Variable * variable() const
void setRefKind(RefKind refKind)
void setVariable(const Variable *variable)
VariableReference(Position pos, const Variable *variable, RefKind refKind)
OperatorPrecedence
Definition: SkSLOperator.h:57
DEF_SWITCHES_START aot vmservice shared library name
Definition: switches.h:32