7 #include <unordered_set> 11 #include <hilti/ast/location.h> 25 setLocation(std::move(location));
31 const Comments& comments()
const {
return _comments; }
34 return _location ? *_location : null;
37 void setLocation(
Location l) { _location = std::move(l); }
38 void setComments(
Comments c) { _comments = std::move(c); }
44 explicit operator bool()
const {
return _location || _comments.size(); }
47 static std::unordered_set<Location> _cache;
49 std::optional<Location> _location;
Definition: location.h:18
Definition: location.h:94