6 #include <unordered_set> 10 #include <hilti/ast/location.h> 24 setLocation(std::move(location));
30 const Comments& comments()
const {
return _comments; }
33 return _location ? *_location : null;
36 void setLocation(
Location l) { _location = &*_cache()->insert(std::move(l)).first; }
37 void setComments(
Comments c) { _comments = std::move(c); }
43 explicit operator bool()
const {
return _location || _comments.size(); }
46 std::unordered_set<Location>* _cache();
Definition: location.h:17
Definition: location.h:93