MethDecl.cxx File Reference

#include <assert.h>
#include <stdint.h>
#include <stdlib.h>
#include <dirent.h>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <libsherpa/UExcept.hxx>
#include "AST.hxx"
#include "inter-pass.hxx"

Go to the source code of this file.

Functions

static void insertMethDecls (shared_ptr< AST > ast, std::ostream &errStream, bool &errFree)
 Insert function proclamations for structure and object methods.


Function Documentation

static void insertMethDecls ( shared_ptr< AST ast,
std::ostream &  errStream,
bool &  errFree 
) [static]

Insert function proclamations for structure and object methods.

This pass examines structure and object definitions. For every method m in structure/object type S, it introduces a proclaim for a function named S.m that accepts an instance of S as an argument.

Definition at line 68 of file MethDecl.cxx.

References assert(), at_byRefType, at_defobject, at_defstruct, at_fn, at_interface, at_methdecl, at_module, at_proclaim, at_qualType, at_tvlist, at_typeapp, at_unboxedCat, at_usesel, AST::make(), pf_IMPLIED, and PROCLAIM_IS_INTERNAL.


Generated on Thu May 17 23:59:16 2012 for BitC Compiler by  doxygen 1.4.7