Browse Source

added @:noComplete to hide from completion

Nicolas Cannasse 13 years ago
parent
commit
259f7123d6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      typer.ml

+ 1 - 1
typer.ml

@@ -2301,7 +2301,7 @@ and type_expr ctx ?(need_val=true) (e,p) =
 		in
 		in
 		let use_methods = loop PMap.empty ctx.m.module_using in
 		let use_methods = loop PMap.empty ctx.m.module_using in
 		let fields = PMap.fold (fun f acc -> PMap.add f.cf_name f acc) fields use_methods in
 		let fields = PMap.fold (fun f acc -> PMap.add f.cf_name f acc) fields use_methods in
-		let fields = PMap.fold (fun f acc -> f :: acc) fields [] in
+		let fields = PMap.fold (fun f acc -> if has_meta ":noComplete" f.cf_meta then acc else f :: acc) fields [] in
 		let t = (if iscall then
 		let t = (if iscall then
 			match follow e.etype with
 			match follow e.etype with
 			| TFun _ -> e.etype
 			| TFun _ -> e.etype