#include <MainMethodDeclaration.hpp>
|
| MainMethodDeclaration (shptr< TypeIdent > return_type_and_name, shptr< vec< shptr< TypeIdent >>> parameters, shptr< stmt::Block > block) |
|
virtual void | toString (std::ostream &out, unsigned int indent, bool=false) const |
|
virtual void | collectDefinition (semantic::SemanticAnalysis &sa, shptr< semantic::symbol::SymbolTable > symbolTable, std::string const &class_name) const |
|
virtual shptr< vec< shptr
< ast::Type > > > | collectParameters (semantic::SemanticAnalysis &, shptr< semantic::symbol::SymbolTable > symbolTable) const |
|
void | analyze (semantic::SemanticAnalysis &sa, shptr< semantic::symbol::SymbolTable > symbolTable) const |
|
virtual void | accept (ASTVisitor &visitor) const |
|
virtual std::string | mangle () const |
|
virtual unsigned int | countVariableDeclarations () const |
|
virtual void | createVariablePositions () const |
|
| MethodDeclaration (shptr< TypeIdent > return_type_and_name, shptr< vec< shptr< TypeIdent >>> parameters, shptr< stmt::Block > block) |
|
virtual std::string | getName () const |
|
virtual std::string | getNameForSort () const |
|
shptr< vec< shptr< TypeIdent > > > | getParameters () const |
|
shptr< Type > | getReturnType () const |
|
shptr< stmt::Block > | getBlock () const |
|
void | setDeclaration (shptr< ClassDeclaration const > decl) |
|
shptr< ClassDeclaration const > | getDeclaration () const |
|
void ast::MainMethodDeclaration::accept |
( |
ASTVisitor & |
visitor | ) |
const |
|
virtual |
unsigned int ast::MainMethodDeclaration::countVariableDeclarations |
( |
| ) |
const |
|
virtual |
void ast::MainMethodDeclaration::createVariablePositions |
( |
| ) |
const |
|
virtual |
std::string ast::MainMethodDeclaration::mangle |
( |
| ) |
const |
|
virtual |
void ast::MainMethodDeclaration::toString |
( |
std::ostream & |
out, |
|
|
unsigned int |
indent, |
|
|
bool |
special = false |
|
) |
| const |
|
virtual |
writes a representation of the Node to out, including all children. special invokes "special" behavior for certain nodes MethodDeclaration: print static keyword Block & If: skip indentation Expression: don't print surrounding parens in addition Block doesn't print newline after trailing } if ~indent is passed instead of indent
Reimplemented from ast::MethodDeclaration.
The documentation for this class was generated from the following files: