MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenShadingLanguage / ASTNode

Method ASTNode

src/liboslcomp/ast.cpp:84–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82
83
84ASTNode::ASTNode (NodeType nodetype, OSLCompilerImpl *compiler)
85 : m_nodetype(nodetype), m_compiler(compiler),
86 m_sourcefile(compiler->filename()),
87 m_sourceline(compiler->lineno()), m_op(0), m_is_lvalue(false)
88{
89#ifndef NDEBUG
90 node_counts[nodetype] += 1;
91 node_counts_peak[nodetype] += 1;
92#endif
93}
94
95
96

Callers

nothing calls this directly

Calls 2

filenameMethod · 0.80
linenoMethod · 0.45

Tested by

no test coverage detected