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