| 82 | |
| 83 | |
| 84 | ASTNode::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 |