MCPcopy Create free account
hub / github.com/devosoft/avida / VisitObjectAssignment

Method VisitObjectAssignment

avida-core/source/script/cSemanticASTVisitor.cc:106–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104
105
106void cSemanticASTVisitor::VisitObjectAssignment(cASTObjectAssignment& node)
107{
108 m_obj_assign = true;
109 node.GetTarget()->Accept(*this);
110 m_obj_assign = false;
111
112 if (node.GetTarget()->GetType().type != TYPE(OBJECT_REF)) SEMANTIC_ERROR(INVALID_ASSIGNMENT_TARGET);
113
114 node.GetExpression()->Accept(*this);
115}
116
117
118

Callers

nothing calls this directly

Calls 4

AcceptMethod · 0.80
GetTargetMethod · 0.45
GetTypeMethod · 0.45
GetExpressionMethod · 0.45

Tested by

no test coverage detected