Reformat
This commit is contained in:
parent
8feb7204a0
commit
9cbb61939d
@ -20,9 +20,10 @@ struct Object {
|
||||
Object() : type{ObjectType::NIL}, value{std::monostate{}} {};
|
||||
Object(double number) : type{ObjectType::NUMBER}, value{number} {};
|
||||
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)} {};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user