فهرست منبع

also mention string interpolation limitation in Context.parse (see #3201)

Simon Krajewski 11 سال پیش
والد
کامیت
75de924aae
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      std/haxe/macro/Context.hx

+ 4 - 1
std/haxe/macro/Context.hx

@@ -200,7 +200,7 @@ class Context {
 	public static function getLocalTVars() : haxe.ds.StringMap<Type.TVar> {
 		return load("local_vars", 1)(true);
 	}
-	
+
 	/**
 		Tells if compiler directive `s` has been set.
 
@@ -254,6 +254,9 @@ class Context {
 	/**
 		Parses `expr` as haxe code, returning the corresponding AST.
 
+		String interpolation of single quote strings within `expr` is not
+		supported.
+
 		The provided `Position` `pos` is used for all generated inner AST nodes.
 	**/
 	public static function parse( expr : String, pos : Position ) : Expr {