瀏覽代碼

document isFormatExpr limitation (closes #3201)

Simon Krajewski 11 年之前
父節點
當前提交
4619c77717
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      std/haxe/macro/MacroStringTools.hx

+ 4 - 0
std/haxe/macro/MacroStringTools.hx

@@ -46,6 +46,10 @@ class MacroStringTools {
 		Tells if `e` is a format string, i.e. uses single quotes `'` as
 		delimiters.
 
+		This only works if `e` has a position which the compiler can find. While
+		this is true for any expressions appearing in real Haxe code (i.e. some
+		.hx file), it might not work for expressions generated by macros.
+
 		This operation depends on the position of `e`.
 	**/
 	static public function isFormatExpr(e:ExprOf<String>) {