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

Method ASTstructselect

src/liboslcomp/ast.cpp:609–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

607
608
609ASTstructselect::ASTstructselect (OSLCompilerImpl *comp, ASTNode *expr,
610 ustring field)
611 : ASTNode (structselect_node, comp, 0, expr), m_field(field),
612 m_structid(-1), m_fieldid(-1), m_fieldsym(NULL)
613{
614 m_fieldsym = find_fieldsym (m_structid, m_fieldid);
615 if (m_fieldsym) {
616 m_fieldname = m_fieldsym->name();
617 m_typespec = m_fieldsym->typespec();
618 }
619}
620
621
622

Callers

nothing calls this directly

Calls 1

nameMethod · 0.45

Tested by

no test coverage detected