Spicy
Public Types | Public Member Functions | List of all members
hilti::Meta Class Reference

#include <meta.h>

Public Types

using Comments = std::vector< std::string >
 

Public Member Functions

 Meta (Location location, Comments comments={})
 
 Meta (Comments comments={})
 
const Commentscomments () const
 
const Locationlocation () const
 
void setLocation (Location l)
 
void setComments (Comments c)
 
 operator bool () const
 

Detailed Description

Meta information associated with AST nodes. The meta data can include a source code location, source code comments, and an error message.

Member Typedef Documentation

◆ Comments

using hilti::Meta::Comments = std::vector<std::string>

List of comments.

Constructor & Destructor Documentation

◆ Meta()

hilti::Meta::Meta ( Comments  comments = {})
inline

Constructor that leaves location unset.

Member Function Documentation

◆ operator bool()

hilti::Meta::operator bool ( ) const
inlineexplicit

Returns true if the location does not equal a default constructed instance.


The documentation for this class was generated from the following files: