forked from eden-emu/eden
		
	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
							
								
									4f14102a05
								
							
						
					
					
						commit
						3025e2110c
					
				
					 1 changed files with 9 additions and 9 deletions
				
			
		|  | @ -326,15 +326,6 @@ public: | ||||||
|         inner += fmt::format("{}({}) -> break;\n", Indent(), expr_parser.GetResult()); |         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) { |     void Visit(ASTNode& node) { | ||||||
|         std::visit(*this, *node->GetInnerData()); |         std::visit(*this, *node->GetInnerData()); | ||||||
|     } |     } | ||||||
|  | @ -344,6 +335,15 @@ public: | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
| private: | 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{}; |     std::string inner{}; | ||||||
|     u32 scope{}; |     u32 scope{}; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lioncash
						Lioncash