Explorar o código

ObjectField.quotes is optional, so handle that in haxe.macro.Printer

Dan Korostelev %!s(int64=8) %!d(string=hai) anos
pai
achega
13112d7623
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      std/haxe/macro/Printer.hx

+ 1 - 1
std/haxe/macro/Printer.hx

@@ -174,7 +174,7 @@ class Printer {
 
 	public function printObjectFieldKey(of:ObjectField) {
 		return switch (of.quotes) {
-			case Unquoted: of.field;
+			case null | Unquoted: of.field;
 			case Quoted: '"${of.field}"'; // TODO: Have to escape that?
 		}
 	}