Reformat
This commit is contained in:
@@ -20,7 +20,10 @@ struct Object {
|
|||||||
Object() : type{ObjectType::NIL}, value{std::monostate{}} {};
|
Object() : type{ObjectType::NIL}, value{std::monostate{}} {};
|
||||||
Object(double number) : type{ObjectType::NUMBER}, value{number} {};
|
Object(double number) : type{ObjectType::NUMBER}, value{number} {};
|
||||||
Object(StringObjectType string_type, std::string value)
|
Object(StringObjectType string_type, std::string value)
|
||||||
: type{string_type == StringObjectType::IDENTIFIER ? ObjectType::IDENTIFIER : ObjectType::STRING_LIT},
|
: type{string_type == StringObjectType::IDENTIFIER ?
|
||||||
|
ObjectType::IDENTIFIER :
|
||||||
|
ObjectType::STRING_LIT
|
||||||
|
},
|
||||||
value{std::move(value)} {};
|
value{std::move(value)} {};
|
||||||
|
|
||||||
ObjectType type;
|
ObjectType type;
|
||||||
|
|||||||
Reference in New Issue
Block a user