simplify Resolver initialization a bit
This commit is contained in:
parent
9d83c6a478
commit
780f406e92
|
@ -33,11 +33,11 @@ final class Resolver
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
// Default tag to use for scalars.
|
// Default tag to use for scalars.
|
||||||
string defaultScalarTag_;
|
string defaultScalarTag_ = "tag:yaml.org,2002:str";
|
||||||
// Default tag to use for sequences.
|
// Default tag to use for sequences.
|
||||||
string defaultSequenceTag_;
|
string defaultSequenceTag_ = "tag:yaml.org,2002:seq";
|
||||||
// Default tag to use for mappings.
|
// Default tag to use for mappings.
|
||||||
string defaultMappingTag_;
|
string defaultMappingTag_ = "tag:yaml.org,2002:map";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Arrays of scalar resolver tuples indexed by starting character of a scalar.
|
* Arrays of scalar resolver tuples indexed by starting character of a scalar.
|
||||||
|
@ -62,9 +62,6 @@ final class Resolver
|
||||||
this(Flag!"useDefaultImplicitResolvers" defaultImplicitResolvers = Yes.useDefaultImplicitResolvers)
|
this(Flag!"useDefaultImplicitResolvers" defaultImplicitResolvers = Yes.useDefaultImplicitResolvers)
|
||||||
@safe
|
@safe
|
||||||
{
|
{
|
||||||
defaultScalarTag_ = "tag:yaml.org,2002:str";
|
|
||||||
defaultSequenceTag_ = "tag:yaml.org,2002:seq";
|
|
||||||
defaultMappingTag_ = "tag:yaml.org,2002:map";
|
|
||||||
if(defaultImplicitResolvers){addImplicitResolvers();}
|
if(defaultImplicitResolvers){addImplicitResolvers();}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue