remove {.compileTime.} for procs with NimNode: redundant because of tfTriggersCompileTime (#17463)

This commit is contained in:
Timothee Cour 2021-03-23 02:51:21 -07:00 • committed by GitHub
commit c27cd83265
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 106 additions and 112 deletions

View file

@ -56,7 +56,7 @@ const
ariaAttr* = " role " ## HTML DOM Aria Attributes
commonAttr* = coreAttr & eventAttr & ariaAttr ## HTML DOM Common Attributes
proc getIdent(e: NimNode): string {.compileTime.} =
proc getIdent(e: NimNode): string =
case e.kind
of nnkIdent:
result = e.strVal.normalize
@ -75,7 +75,7 @@ proc delete[T](s: var seq[T], attr: T): bool =
result = true
proc xmlCheckedTag*(argsList: NimNode, tag: string, optAttr = "", reqAttr = "",
isLeaf = false): NimNode {.compileTime.} =
isLeaf = false): NimNode =
## use this procedure to define a new XML tag
# copy the attributes; when iterating over them these lists