mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 14:32:46 +00:00 
			
		
		
		
	JSSpecCompiler: Allow storing NullableTrees in nodes
				
					
				
			And use this in ElseIfBranch node.
This commit is contained in:
		
							parent
							
								
									4eede5282c
								
							
						
					
					
						commit
						092ed1cc8a
					
				
					 7 changed files with 56 additions and 18 deletions
				
			
		|  | @ -91,9 +91,9 @@ void IfBranch::dump_tree(StringBuilder& builder) | |||
| 
 | ||||
| void ElseIfBranch::dump_tree(StringBuilder& builder) | ||||
| { | ||||
|     dump_node(builder, "ElseIfBranch {}", m_condition.has_value() ? "ElseIf" : "Else"); | ||||
|     if (m_condition.has_value()) | ||||
|         (*m_condition)->format_tree(builder); | ||||
|     dump_node(builder, "ElseIfBranch {}", m_condition ? "ElseIf" : "Else"); | ||||
|     if (m_condition) | ||||
|         m_condition->format_tree(builder); | ||||
|     m_branch->format_tree(builder); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Dan Klishch
						Dan Klishch