mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 13:40:20 +03:00
Merge remote-tracking branch 'upstream/stable' into merge_stable
This commit is contained in:
commit
1589503ca0
1 changed files with 14 additions and 10 deletions
24
std/json.d
24
std/json.d
|
@ -95,18 +95,22 @@ enum JSONType : byte
|
|||
object, /// ditto
|
||||
true_, /// ditto
|
||||
false_, /// ditto
|
||||
deprecated("Use .null_") NULL = null_,
|
||||
deprecated("Use .string") STRING = string,
|
||||
deprecated("Use .integer") INTEGER = integer,
|
||||
deprecated("Use .uinteger") UINTEGER = uinteger,
|
||||
deprecated("Use .float_") FLOAT = float_,
|
||||
deprecated("Use .array") ARRAY = array,
|
||||
deprecated("Use .object") OBJECT = object,
|
||||
deprecated("Use .true_") TRUE = true_,
|
||||
deprecated("Use .false_") FALSE = false_,
|
||||
// FIXME: Find some way to deprecate the enum members below, which does NOT
|
||||
// create lots of spam-like deprecation warnings, which can't be fixed
|
||||
// by the user. See discussion on this issue at
|
||||
// https://forum.dlang.org/post/feudrhtxkaxxscwhhhff@forum.dlang.org
|
||||
/* deprecated("Use .null_") */ NULL = null_,
|
||||
/* deprecated("Use .string") */ STRING = string,
|
||||
/* deprecated("Use .integer") */ INTEGER = integer,
|
||||
/* deprecated("Use .uinteger") */ UINTEGER = uinteger,
|
||||
/* deprecated("Use .float_") */ FLOAT = float_,
|
||||
/* deprecated("Use .array") */ ARRAY = array,
|
||||
/* deprecated("Use .object") */ OBJECT = object,
|
||||
/* deprecated("Use .true_") */ TRUE = true_,
|
||||
/* deprecated("Use .false_") */ FALSE = false_,
|
||||
}
|
||||
|
||||
deprecated("Use JSONType") alias JSON_TYPE = JSONType;
|
||||
deprecated("Use JSONType and the new enum member names") alias JSON_TYPE = JSONType;
|
||||
|
||||
/**
|
||||
JSON value node
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue