summary refs log tree commit diff stats
path: root/compiler/ast.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/ast.nim')
-rwxr-xr-xcompiler/ast.nim8
1 files changed, 7 insertions, 1 deletions
diff --git a/compiler/ast.nim b/compiler/ast.nim
index 972ba7924..c6a2b32e7 100755
--- a/compiler/ast.nim
+++ b/compiler/ast.nim
@@ -243,8 +243,13 @@ const
   sfFakeConst* = sfDeadCodeElim  # const cannot be put into a data section
   sfDispatcher* = sfDeadCodeElim # copied method symbol is the dispatcher
   sfNoInit* = sfMainModule       # don't generate code to init the variable
+
   sfImmediate* = sfDeadCodeElim  # macro or template is immediately expanded
                                  # without considering any possible overloads
+  
+  sfAnon* = sfCompilerProc  # symbol name that was generated by the compiler
+                            # the compiler will avoid printing such names 
+                            # in user messages.
 
 const
   # getting ready for the future expr/stmt merge
@@ -358,7 +363,8 @@ const
 
 type
   TMagic* = enum # symbols that require compiler magic:
-    mNone, mDefined, mDefinedInScope, mLow, mHigh, mSizeOf, mIs, mOf,
+    mNone,
+    mDefined, mDefinedInScope, mLow, mHigh, mSizeOf, mTypeTrait, mIs, mOf,
     mEcho, mShallowCopy, mSlurp,
     mParseExprToAst, mParseStmtToAst, mExpandToAst,
     mUnaryLt, mSucc,