Implemented variable type requirement checking.
This commit is contained in:
@@ -36,16 +36,11 @@ class PrimitiveType: public Expression
|
||||
const std::string &name() const;
|
||||
const std::vector<const PrimitiveType *> &parentTypes() const;
|
||||
|
||||
bool isDeclared() const;
|
||||
|
||||
private:
|
||||
void setDirty(bool isDirty = true);
|
||||
bool isDirty() const;
|
||||
|
||||
void setDeclared();
|
||||
|
||||
bool m_isDirty;
|
||||
bool m_isDeclared;
|
||||
|
||||
std::string m_name;
|
||||
|
||||
|
@@ -20,8 +20,10 @@ class Variable: public Expression
|
||||
{
|
||||
public:
|
||||
static void parseTypedDeclaration(Context &context, ExpressionContext &expressionContext);
|
||||
static void parseTypedDeclarations(Context &context, ExpressionContext &expressionContext);
|
||||
|
||||
static const Variable *parseAndFind(Context &context, const ExpressionContext &expressionContext);
|
||||
static const Variable *parseAndFind(Context &context,
|
||||
const ExpressionContext &expressionContext);
|
||||
|
||||
public:
|
||||
void accept(ExpressionVisitor &expressionVisitor) const override;
|
||||
|
Reference in New Issue
Block a user