Gather.cxx File Reference

#include <stdint.h>
#include <stdlib.h>
#include <dirent.h>
#include <assert.h>
#include <fstream>
#include <iostream>
#include <string>
#include <sstream>
#include <gmp.h>
#include <errno.h>
#include "Version.hxx"
#include "UocInfo.hxx"
#include "Options.hxx"
#include "AST.hxx"
#include "Type.hxx"
#include "inter-pass.hxx"
#include "Special.hxx"

Go to the source code of this file.

Functions

static void fixWithFqns (AST *ast, string sname)
void getAllDefs (AST *last, AST *ast)
bool markPreludeDefs (AST *prelude)
bool FQNize ()
static bool reRandT (std::ostream &errStream, UocInfo *uoc)
bool buildLinkedAST (std::ostream &errStream, UocInfo *luoc)


Function Documentation

bool buildLinkedAST ( std::ostream &  errStream,
UocInfo luoc 
)

Definition at line 217 of file Gather.cxx.

References at_module, BITC_VERSION, AST::children, CHKERR, getAllDefs(), UocInfo::ifList, loc, AST::makeStringLit(), reRandT(), UocInfo::srcList, uoc, and UOC_IS_PRELUDE.

static void fixWithFqns ( AST ast,
string  sname 
) [static]

Definition at line 61 of file Gather.cxx.

References FQName::asString(), AST::astType, at_declares, at_field, at_ident, at_interface, at_module, at_select, AST::children, AST::fqn, ID_IS_GLOBAL, AST::isGlobal(), AST::s, and AST::symbolDef.

Referenced by FQNize().

bool FQNize (  ) 

Definition at line 187 of file Gather.cxx.

References fixWithFqns(), UocInfo::ifList, UocInfo::srcList, and uoc.

void getAllDefs ( AST last,
AST ast 
)

Definition at line 132 of file Gather.cxx.

References assert(), AST::astType, at_definstance, at_import, at_interface, at_module, at_provide, and AST::children.

Referenced by buildLinkedAST().

bool markPreludeDefs ( AST prelude  ) 

Definition at line 171 of file Gather.cxx.

References assert(), AST::astType, at_interface, and AST::children.

static bool reRandT ( std::ostream &  errStream,
UocInfo uoc 
) [static]

Definition at line 204 of file Gather.cxx.

References CHKERR, OP_SYM_FLAGS, OP_TYP_FLAGS, and uoc.

Referenced by buildLinkedAST(), removeAndReRandT(), and Specialize().


Generated on Sat Feb 4 23:59:29 2012 for BitC Compiler by  doxygen 1.4.7