bool Expression::isIncomplete(const Context& context) const { switch (this->kind()) { case Kind::kFunctionReference:
context.fErrors->error(fPosition.after(), "expected '(' to begin function call"); returntrue;
case Kind::kMethodReference:
context.fErrors->error(fPosition.after(), "expected '(' to begin method call"); returntrue;
case Kind::kTypeReference:
context.fErrors->error(fPosition.after(), "expected '(' to begin constructor invocation"); returntrue;
case Kind::kVariableReference:
if (this->type().matches(*context.fTypes.fSkCaps)) {
context.fErrors->error(fPosition, "invalid expression"); returntrue;
} return false;