top | up | prev | next

TextFileDeclaration Class

Definition at line 108 of Project.hpp

Constructors

TextFileDeclaration(const std::string& filePath_)

Member Functions

const std::string& FilePath() const
void Write(CodeFormatter& formatter) override

Member Variables

std::string filePath

Constructor Details

TextFileDeclaration Constructor

sngcm::ast::TextFileDeclaration::TextFileDeclaration(const std::string& filePath_)

Definition at line 273 of Project.cpp :
273 : ProjectDeclaration(ProjectDeclarationType::textFileDeclaration)filePath(filePath_)
274 {
275 }


Declaration at line 111 of Project.hpp


Member Function Details

FilePath Member Function

const std::string& sngcm::ast::TextFileDeclaration::FilePath() const

Definition at line 112 of Project.hpp :
112 { return filePath; }

Called by: sngcm::ast::Project::ResolveDeclarations


Write Member Function

void sngcm::ast::TextFileDeclaration::Write(CodeFormatter & formatter) override

Definition at line 277 of Project.cpp :
278 {
279     formatter.WriteLine("text <" + filePath + ">;");
280 }


Declaration at line 113 of Project.hpp

Base class overridden functions: sngcm::ast::ProjectDeclaration::Write

Calls: soulng::util::CodeFormatter::WriteLine


top | up | prev | next