summary refs log tree commit diff stats
path: root/tests/lexer
ModeNameSize
-rw-r--r--tident.nim585log stats plain blame
-rw-r--r--tind1.nim319log stats plain blame
-rw-r--r--tindent1.nim680log stats plain blame
-rw-r--r--tintegerliterals.nim178log stats plain blame
-rw-r--r--tinvalidintegerliteral1.nim102log stats plain blame
-rw-r--r--tinvalidintegerliteral2.nim102log stats plain blame
-rw-r--r--tinvalidintegerliteral3.nim159log stats plain blame
-rw-r--r--tlexer.nim1417log stats plain blame
-rw-r--r--tlexermisc.nim293log stats plain blame
-rw-r--r--tmissingnl.nim159log stats plain blame
-rw-r--r--tstrlits.nim380log stats plain blame
-rw-r--r--tunderscores.nim203log stats plain blame
>verboseProcess(context: PPassContext, n: PNode): PNode = result = n if context != nil: internalError("logpass: context is not nil") if gVerbosity == 3: # system.nim deactivates all hints, for verbosity:3 we want the processing # messages nonetheless, so we activate them again unconditionally: incl(msgs.gNotes, hintProcessing) message(n.info, hintProcessing, $idgen.gBackendId) const verbosePass* = makePass(open = verboseOpen, process = verboseProcess) proc cleanUp(c: PPassContext, n: PNode): PNode = result = n # we cannot clean up if dead code elimination is activated if optDeadCodeElim in gGlobalOptions or n == nil: return case n.kind of nkStmtList: for i in countup(0, sonsLen(n) - 1): discard cleanUp(c, n.sons[i]) of nkProcDef, nkMethodDef: if n.sons[namePos].kind == nkSym: var s = n.sons[namePos].sym if sfDeadCodeElim notin getModule(s).flags and not astNeeded(s): s.ast.sons[bodyPos] = ast.emptyNode # free the memory else: discard const cleanupPass* = makePass(process = cleanUp, close = cleanUp)