experimental: notnil

This commit is contained in:
majj 2018-08-18 10:43:52 +08:00 committed by flyx
parent 2328289dba
commit 51d33d4a05
2 changed files with 7 additions and 2 deletions

View File

@ -23,6 +23,8 @@ import tables, streams, hashes, sets, strutils
import stream, taglib, serialization, private/internal, parser, import stream, taglib, serialization, private/internal, parser,
presenter presenter
when defined(nimNoNil):
{.experimental: "notnil".}
type type
YamlNodeKind* = enum YamlNodeKind* = enum
yScalar, yMapping, ySequence yScalar, yMapping, ySequence

View File

@ -1,4 +1,4 @@
# NimYAML - YAML implementation in Nim # NimYAML - YAML implementation in Nim
# (c) Copyright 2016 Felix Krause # (c) Copyright 2016 Felix Krause
# #
# See the file "copying.txt", included in this # See the file "copying.txt", included in this
@ -15,6 +15,9 @@
import hashes import hashes
import private/internal, taglib import private/internal, taglib
when defined(nimNoNil):
{.experimental: "notnil".}
when defined(yamlScalarRepInd): when defined(yamlScalarRepInd):
type ScalarRepresentationIndicator* = enum type ScalarRepresentationIndicator* = enum
srPlain, srSingleQuoted, srDoubleQuoted, srLiteral, srFolded srPlain, srSingleQuoted, srDoubleQuoted, srLiteral, srFolded