remove conditionals on nimHasUserErrors, nimNoNilSeqs2, nimNoNilSeqs (#16861)
* cleanup docs for type(nil) | type(nil); simplify nimHasUserErrors * simplify nimNoNilSeqs2 * simplify nimNoNilSeqs * fixup
This commit is contained in:
parent
4e1e231e29
commit
6e267d28b3
13 changed files with 29 additions and 93 deletions
|
|
@ -164,8 +164,6 @@ proc validInd(p: var Parser): bool {.inline.} =
|
|||
proc rawSkipComment(p: var Parser, node: PNode) =
|
||||
if p.tok.tokType == tkComment:
|
||||
if node != nil:
|
||||
when not defined(nimNoNilSeqs):
|
||||
if node.comment == nil: node.comment = ""
|
||||
when defined(nimpretty):
|
||||
if p.tok.commentOffsetB > p.tok.commentOffsetA:
|
||||
node.comment.add fileSection(p.lex.config, p.lex.fileIdx, p.tok.commentOffsetA, p.tok.commentOffsetB)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue