@@ -907,7 +907,7 @@ struct JSONLexerRange(Input, LexOptions options = LexOptions.init, String = stri
907
907
{
908
908
assert (! kind.among! (Kind.string , Kind.boolean, Kind.number));
909
909
}
910
- body
910
+ do
911
911
{
912
912
_kind = kind;
913
913
}
@@ -937,12 +937,12 @@ struct JSONLexerRange(Input, LexOptions options = LexOptions.init, String = stri
937
937
// / ditto
938
938
@property Kind kind(Kind value) nothrow @nogc
939
939
in { assert (! value.among! (Kind.boolean, Kind.number, Kind.string )); }
940
- body { return _kind = value; }
940
+ do { return _kind = value; }
941
941
942
942
// / Gets/sets the boolean value of the token.
943
943
@property bool boolean() const pure nothrow @trusted @nogc
944
944
in { assert (_kind == Kind.boolean, " Token is not a boolean." ); }
945
- body { return _boolean; }
945
+ do { return _boolean; }
946
946
// / ditto
947
947
@property bool boolean(bool value) pure nothrow @nogc
948
948
{
@@ -954,7 +954,7 @@ struct JSONLexerRange(Input, LexOptions options = LexOptions.init, String = stri
954
954
// / Gets/sets the numeric value of the token.
955
955
@property JSONNumber number() const pure nothrow @trusted @nogc
956
956
in { assert (_kind == Kind.number, " Token is not a number." ); }
957
- body { return _number; }
957
+ do { return _number; }
958
958
// / ditto
959
959
@property JSONNumber number(JSONNumber value) nothrow @nogc
960
960
{
@@ -972,7 +972,7 @@ struct JSONLexerRange(Input, LexOptions options = LexOptions.init, String = stri
972
972
// / Gets/sets the string value of the token.
973
973
@property const (JSONString! String) string () const pure nothrow @trusted @nogc
974
974
in { assert (_kind == Kind.string , " Token is not a string." ); }
975
- body { return _kind == Kind.string ? _string : JSONString! String.init; }
975
+ do { return _kind == Kind.string ? _string : JSONString! String.init; }
976
976
// / ditto
977
977
@property JSONString! String string (JSONString! String value) pure nothrow @nogc
978
978
{
0 commit comments