top | up | prev | next

ResourceFileDeclaration Class

Definition at line 98 of Project.hpp

Constructors

ResourceFileDeclaration(const std::string& filePath_)

Member Functions

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

Member Variables

std::string filePath

Constructor Details

ResourceFileDeclaration Constructor

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

Definition at line 264 of Project.cpp :
264 : ProjectDeclaration(ProjectDeclarationType::resourceFileDeclaration)filePath(filePath_)
265 {
266 }


Declaration at line 101 of Project.hpp


Member Function Details

FilePath Member Function

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

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

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


Write Member Function

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

Definition at line 268 of Project.cpp :
269 {
270     formatter.WriteLine("resource <" + filePath + ">;");
271 }


Declaration at line 103 of Project.hpp

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

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


top | up | prev | next