MCPcopy Create free account
hub / github.com/covscript/covscript / dump_ast

Method dump_ast

sources/instance/instance.cpp:174–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172 }
173
174 void instance_type::dump_ast(std::ostream &stream)
175 {
176 stream << "< Covariant Script AST Dump >\n< BeginMetaData >\n< Version: " << current_process->version
177 << " >\n< Standard Version: "
178 << current_process->std_version
179 << " >\n< Import Path: \""
180 << current_process->import_path
181 << "\" >\n";
182#ifdef COVSCRIPT_PLATFORM_WIN32
183 stream << "< Platform: Win32 >\n";
184#else
185 stream << "< Platform: Unix >\n";
186#endif
187 stream << "< EndMetaData >\n";
188 for (auto &ptr : statements)
189 ptr->dump(stream);
190 stream << std::flush;
191 }
192
193 void instance_type::check_declar_var(tree_type<token_base *>::iterator it, bool regist)
194 {

Callers 1

covscript_mainFunction · 0.80

Calls 1

dumpMethod · 0.45

Tested by

no test coverage detected