mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-12-17 00:06:08 +00:00
video_core/shader/ast: Make Indent() private
It's never used outside of this class, so we can narrow its scope down.
This commit is contained in:
parent
7f6a8a33d4
commit
15d177a6ac
|
@ -326,15 +326,6 @@ public:
|
|||
inner += fmt::format("{}({}) -> break;\n", Indent(), expr_parser.GetResult());
|
||||
}
|
||||
|
||||
std::string& Indent() {
|
||||
if (memo_scope == scope) {
|
||||
return tabs_memo;
|
||||
}
|
||||
tabs_memo = tabs.substr(0, scope * 2);
|
||||
memo_scope = scope;
|
||||
return tabs_memo;
|
||||
}
|
||||
|
||||
void Visit(ASTNode& node) {
|
||||
std::visit(*this, *node->GetInnerData());
|
||||
}
|
||||
|
@ -344,6 +335,15 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
std::string& Indent() {
|
||||
if (memo_scope == scope) {
|
||||
return tabs_memo;
|
||||
}
|
||||
tabs_memo = tabs.substr(0, scope * 2);
|
||||
memo_scope = scope;
|
||||
return tabs_memo;
|
||||
}
|
||||
|
||||
std::string inner{};
|
||||
u32 scope{};
|
||||
|
||||
|
|
Loading…
Reference in a new issue