void	CCodeBlockNodeBase::DebugPrint( std::ostream& destStream, size_t indentLevel )
{
	INDENT_PREPARE(indentLevel);
	
	destStream << indentChars << "Code Block" << std::endl;
	
	DebugPrintInner( destStream, indentLevel );
}
void	CFunctionDefinitionNode::DebugPrint( std::ostream& destStream, size_t indentLevel )
{
	INDENT_PREPARE(indentLevel);
	
	destStream << indentChars << (mIsCommand ? "Command " : "Function ") << mName << std::endl;
	
	DebugPrintInner( destStream, indentLevel );
}
Beispiel #3
0
void	CDownloadCommandNode::DebugPrint( std::ostream& destStream, size_t indentLevel )
{
	EnsureBlockNameParamsAreSet();
	
	INDENT_PREPARE(indentLevel);
	
	CCommandNode::DebugPrint( destStream, indentLevel );
}
void	CCodeBlockNodeBase::DebugPrintInner( std::ostream& destStream, size_t indentLevel )
{
	INDENT_PREPARE(indentLevel);
	
	destStream << indentChars << "{" << std::endl;
	
	std::vector<CNode*>::iterator itty;
	
	for( itty = mCommands.begin(); itty != mCommands.end(); itty++ )
	{
		(*itty)->DebugPrint( destStream, indentLevel +1 );
	}
	
	destStream << indentChars << "}" << std::endl;
}
Beispiel #5
0
void	CObjectPropertyNode::DebugPrint( std::ostream& destStream, size_t indentLevel )
{
	INDENT_PREPARE(indentLevel);
	
	destStream << indentChars << "Property \"" << mSymbolName << "\"" << std::endl
				<< indentChars << "{" << std::endl;
	
	std::vector<CValueNode*>::iterator itty;
	
	for( itty = mParams.begin(); itty != mParams.end(); itty++ )
	{
		(*itty)->DebugPrint( destStream, indentLevel +1 );
	}
	
	destStream << indentChars << "}" << std::endl;
}
void	CGlobalPropertyNode::DebugPrint( std::ostream& destStream, size_t indentLevel )
{
    INDENT_PREPARE(indentLevel);

    destStream << indentChars << "Global Property \"" << gInstructionNames[mGetterInstructionID] << "\"" << std::endl
               << indentChars << "{" << std::endl;

    std::vector<CValueNode*>::iterator itty;

    for( itty = mParams.begin(); itty != mParams.end(); itty++ )
    {
        (*itty)->DebugPrint( destStream, indentLevel +1 );
    }

    destStream << indentChars << "}" << std::endl;
}