![]() |
Spicy
|
#include <meta.h>
Public Types | |
using | Comments = std::vector< std::string > |
Public Member Functions | |
Meta (Location location, Comments comments={}) | |
Meta (Comments comments={}) | |
const Comments & | comments () const |
const Location & | location () const |
void | setLocation (Location l) |
void | setComments (Comments c) |
operator bool () const | |
Meta information associated with AST nodes. The meta data can include a source code location, source code comments, and an error message.
using hilti::Meta::Comments = std::vector<std::string> |
List of comments.
|
inline |
Constructor that leaves location unset.
|
inlineexplicit |
Returns true if the location does not equal a default constructed instance.