top | up | prev | next

SymbolWriter Class

Definition at line 17 of SymbolWriter.hpp

Constructors

SymbolWriter(const std::string& fileName_)

Member Functions

AstWriter& GetAstWriter()
BinaryWriter& GetBinaryWriter()
void SetLexers(std::vector<Lexer*>* lexers_)
void SetSpanConversionModuleId(const boost::uuids::uuid& spanConversionModuleId_)
void Write(Symbol* symbol)

Member Variables

AstWriter astWriter
std::vector<Lexer*>* lexers
boost::uuids::uuid spanConversionModuleId

Constructor Details

SymbolWriter Constructor

cmajor::symbols::SymbolWriter::SymbolWriter(const std::string& fileName_)

Definition at line 12 of SymbolWriter.cpp :
12 : astWriter(fileName_)spanConversionModuleId(boost::uuids::nil_uuid())lexers(nullptr)
13 {
14 }


Declaration at line 20 of SymbolWriter.hpp


Member Function Details

GetAstWriter Member Function

AstWriter & cmajor::symbols::SymbolWriter::GetAstWriter()

Definition at line 21 of SymbolWriter.hpp :
21 { return astWriter; }

Called by: cmajor::symbols::ClassTypeSymbol::Write , cmajor::symbols::ConceptSymbol::Write , cmajor::symbols::FunctionSymbol::Write , cmajor::symbols::Symbol::Write


GetBinaryWriter Member Function

BinaryWriter& cmajor::symbols::SymbolWriter::GetBinaryWriter()

Definition at line 22 of SymbolWriter.hpp :
22 { return astWriter.GetBinaryWriter(); }

Calls: sngcm::ast::AstWriter::GetBinaryWriter

Called by: cmajor::symbols::ArrayBeginFunction::Write , cmajor::symbols::ArrayCBeginFunction::Write , cmajor::symbols::ArrayCEndFunction::Write , cmajor::symbols::ArrayEndFunction::Write , cmajor::symbols::ArrayLengthFunction::Write , cmajor::symbols::ArrayTypeSymbol::Write , cmajor::symbols::BasicTypeConversion::Write , cmajor::symbols::BasicTypeSymbol::Write , cmajor::symbols::BoundTemplateParameterSymbol::Write , cmajor::symbols::ClassDelegateTypeDefaultConstructor::Write , cmajor::symbols::ClassDelegateTypeSymbol::Write , cmajor::symbols::ClassTemplateSpecializationSymbol::Write , cmajor::symbols::ClassTypeSymbol::Write , cmajor::symbols::ConceptSymbol::Write , cmajor::symbols::ConstantSymbol::Write , cmajor::symbols::ContainerSymbol::Write , cmajor::symbols::DelegateTypeDefaultConstructor::Write , cmajor::symbols::DelegateTypeSymbol::Write , cmajor::symbols::DerivedTypeSymbol::Write , cmajor::symbols::DestructorSymbol::Write , cmajor::symbols::EnumConstantSymbol::Write , cmajor::symbols::EnumTypeCopyAssignment::Write , cmajor::symbols::EnumTypeCopyConstructor::Write , cmajor::symbols::EnumTypeDefaultConstructor::Write , cmajor::symbols::EnumTypeEqualityOp::Write , cmajor::symbols::EnumTypeMoveAssignment::Write , cmajor::symbols::EnumTypeMoveConstructor::Write , cmajor::symbols::EnumTypeReturn::Write , cmajor::symbols::EnumTypeSymbol::Write , cmajor::symbols::EnumTypeToUnderlyingTypeConversion::Write , cmajor::symbols::FunctionSymbol::Write , cmajor::symbols::GlobalVariableSymbol::Write , cmajor::symbols::MemberVariableSymbol::Write , cmajor::symbols::Module::Write , cmajor::symbols::ModuleTag::Write , cmajor::symbols::ParameterSymbol::Write , cmajor::symbols::Symbol::Write , cmajor::symbols::SymbolTable::Write , cmajor::symbols::SymbolTable::WriteSymbolDefinitionMap , cmajor::symbols::TemplateParameterSymbol::Write , cmajor::symbols::TypeSymbol::Write , cmajor::symbols::TypedefSymbol::Write , cmajor::symbols::UnderlyingTypeToEnumTypeConversion::Write , cmajor::symbols::VariableSymbol::Write


SetLexers Member Function

void cmajor::symbols::SymbolWriter::SetLexers(std::vector<Lexer *>* lexers_)

Definition at line 33 of SymbolWriter.cpp :
34 {
35     lexers = lexers_;
36     astWriter.SetLexers(lexers);
37 }


Declaration at line 24 of SymbolWriter.hpp

Calls: sngcm::ast::AstWriter::SetLexers


SetSpanConversionModuleId Member Function

void cmajor::symbols::SymbolWriter::SetSpanConversionModuleId(const boost::uuids::uuid& spanConversionModuleId_)

Definition at line 39 of SymbolWriter.cpp :
40 {
41     spanConversionModuleId = spanConversionModuleId_;
42     astWriter.SetSpanConversionModuleId(spanConversionModuleId);
43 }


Declaration at line 25 of SymbolWriter.hpp

Calls: sngcm::ast::AstWriter::SetSpanConversionModuleId


Write Member Function

void cmajor::symbols::SymbolWriter::Write(Symbol * symbol)

Definition at line 16 of SymbolWriter.cpp
Declaration at line 23 of SymbolWriter.hpp

Calls: cmajor::symbols::Module::GetFlag , cmajor::symbols::Module::Id , cmajor::symbols::Symbol::GetSpan , cmajor::symbols::Symbol::GetSymbolType , cmajor::symbols::Symbol::Name , cmajor::symbols::Symbol::SourceModuleId , cmajor::symbols::Symbol::Write , sngcm::ast::AstWriter::GetBinaryWriter , sngcm::ast::AstWriter::Write , soulng::util::BinaryWriter::Write , soulng::util::BinaryWriter::Write

Called by: cmajor::symbols::ContainerSymbol::Write , cmajor::symbols::DelegateTypeSymbol::Write , cmajor::symbols::FunctionSymbol::Write , cmajor::symbols::SymbolTable::Write


top | up | prev | next