No date comment
This commit is contained in:
parent
3c39f54962
commit
cb4f4df4f1
|
@ -1,7 +1,7 @@
|
|||
# SPDX-FileCopyrightText: 2021 ☭ Emery Hemingway
|
||||
# SPDX-License-Identifier: Unlicense
|
||||
|
||||
import std/[os, strutils, tables, times]
|
||||
import std/[os, strutils, tables]
|
||||
|
||||
import compiler/[ast, idents, renderer, lineinfos]
|
||||
|
||||
|
@ -438,13 +438,10 @@ proc generateNimFile*(scm: Schema; path: string) =
|
|||
for typeDef in knownTypes.values:
|
||||
typeSection.add typeDef
|
||||
var
|
||||
dateComment = PNode(kind: nkCommentStmt, comment:
|
||||
"Date of generation: " & now().format("yyyy-MM-dd HH:mm"))
|
||||
imports = nkImportStmt.newNode.add(
|
||||
ident"std/typetraits",
|
||||
ident"preserves")
|
||||
module = newNode(nkStmtList).add(
|
||||
dateComment,
|
||||
imports,
|
||||
typeSection,
|
||||
constSection
|
||||
|
|
Loading…
Reference in New Issue