mirror of
				https://github.com/Ed94/gencpp.git
				synced 2025-10-31 06:50:53 -07:00 
			
		
		
		
	WIP : AST serialization improvements
Code untestd its an initial draft
This commit is contained in:
		| @@ -379,16 +379,16 @@ CodeBody gen_ast_inlines() | ||||
|  | ||||
| 			rcast(AST*, ast)->Parent = Code::Global.ast; | ||||
| 		} | ||||
| 		String <typename>::to_string() | ||||
| 		{ | ||||
| 			if ( ast == nullptr ) | ||||
| 			{ | ||||
| 			log_failure("Code::to_string: Cannot convert code to string, AST is null!"); | ||||
| 			return { nullptr }; | ||||
| 			} | ||||
|  | ||||
| 			return rcast(AST*, ast)->to_string(); | ||||
| 		} | ||||
| //		String <typename>::to_string() | ||||
| //		{ | ||||
| //			if ( ast == nullptr ) | ||||
| //			{ | ||||
| //			log_failure("Code::to_string: Cannot convert code to string, AST is null!"); | ||||
| //			return { nullptr }; | ||||
| //			} | ||||
| // | ||||
| //			return rcast(AST*, ast)->to_string(); | ||||
| //		} | ||||
| 		<typename>& <typename>::operator =( Code other ) | ||||
| 		{ | ||||
| 			if ( other.ast && other->Parent ) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user