Add entity.FormatType()
This commit is contained in:
		
							parent
							
								
									f2f522645f
								
							
						
					
					
						commit
						3662bda3a8
					
				| @ -208,3 +208,13 @@ func TypesEqual (left, right Type) bool { | ||||
| 	if  left == nil                    { return true  } | ||||
| 	return left.Equals(right) | ||||
| } | ||||
| 
 | ||||
| // FormatType returns a string representing a type. If the type is nil, it | ||||
| // returns "Void". | ||||
| func FormatType (ty Type) string { | ||||
| 	if ty == nil { | ||||
| 		return "Void" | ||||
| 	} else { | ||||
| 		return ty.String() | ||||
| 	} | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user