No date comment

This commit is contained in:
Emery Hemingway 2021-09-06 16:11:35 +02:00
parent 3c39f54962
commit cb4f4df4f1
1 changed files with 1 additions and 4 deletions

View File

@ -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