Spicy
Public Attributes | List of all members
hilti::operator_::Signature Struct Reference

#include <operator.h>

Public Attributes

Type self
 
bool const_ = true
 
bool lhs = false
 
Priority priority = Priority::Low
 
ResultType result
 
ID id
 
std::vector< Operandargs
 
std::string doc
 

Detailed Description

Describes the signature of an operator method.

Todo:
For operands, we only use the type information so far. Instead of using type::Tuple to describe the 3rd parameter to a MethodCall operator, we should create a new type::ArgumentList that takes a list of Operand instances.

Member Data Documentation

◆ args

std::vector<Operand> hilti::operator_::Signature::args

operands the method receives

◆ doc

std::string hilti::operator_::Signature::doc

documentation string for the autogenerated reference manual

◆ id

ID hilti::operator_::Signature::id

name of the method

◆ lhs

bool hilti::operator_::Signature::lhs = false

true if operator's result can be assigned to

◆ priority

Priority hilti::operator_::Signature::priority = Priority::Low

operator priority

◆ result

ResultType hilti::operator_::Signature::result

result of the method; skipped if using {BEGIN/END}_METHOD_CUSTOM_RESULT}

◆ self

Type hilti::operator_::Signature::self

type the method operates on


The documentation for this struct was generated from the following file: