[svn] r7716: nemerle/trunk/ncc/typing/Typer.n
VladD2
svnadmin at nemerle.org
Wed Jun 27 13:26:26 CEST 2007
Log:
Add IsMainPath property to Typer. You can check this property when output messages from macros.
Author: VladD2
Date: Wed Jun 27 13:26:23 2007
New Revision: 7716
Modified:
nemerle/trunk/ncc/typing/Typer.n
Modified: nemerle/trunk/ncc/typing/Typer.n
==============================================================================
--- nemerle/trunk/ncc/typing/Typer.n (original)
+++ nemerle/trunk/ncc/typing/Typer.n Wed Jun 27 13:26:23 2007
@@ -1123,10 +1123,16 @@
}
- public InErrorMode : bool {
+ public InErrorMode : bool
+ {
get { messenger.InErrorMode }
}
+ public IsMainPath : bool
+ {
+ get { !messenger.InErrorMode || Env.Manager.IsIntelliSenseMode }
+ }
+
DoExpect (expected : TyVar, actual : TyVar, place : string, is_subtyping : bool) : bool
{
if (messenger.InErrorMode) {
More information about the svn
mailing list