فهرست منبع

[std] rename NoQuotes/DoubleQuotes to Unquoted/Quoted (closes #6668)

Simon Krajewski 8 سال پیش
والد
کامیت
b6e5d6645d
3فایلهای تغییر یافته به همراه6 افزوده شده و 6 حذف شده
  1. 2 2
      src/syntax/reification.ml
  2. 2 2
      std/haxe/macro/Expr.hx
  3. 2 2
      std/haxe/macro/Printer.hx

+ 2 - 2
src/syntax/reification.ml

@@ -245,8 +245,8 @@ let reify in_macro =
 		| EObjectDecl fl ->
 			let quote_kind kk p =
 				let n = match kk with
-					| NoQuotes -> "NoQuotes"
-					| DoubleQuotes -> "DoubleQuotes"
+					| NoQuotes -> "Unquoted"
+					| DoubleQuotes -> "Quoted"
 				in
 				mk_enum "QuoteStatus" n [] p
 			in

+ 2 - 2
std/haxe/macro/Expr.hx

@@ -343,12 +343,12 @@ enum QuoteStatus {
 	/**
 		No quotes
 	**/
-	NoQuotes;
+	Unquoted;
 
 	/**
 		Double quotes `"`
 	**/
-	DoubleQuotes;
+	Quoted;
 }
 
 /**

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

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