Преглед изворни кода

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

Dan Korostelev пре 8 година
родитељ
комит
13112d7623
1 измењених фајлова са 1 додато и 1 уклоњено
  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?
 		}
 	}