Data statements contains expressions but they are not wrapped in one of
the kinds of parse tree nodes that are analyzed, like parser::Expr.
So potential errors were not discovered.
Change ExprChecker to handle DataStmtConstant and analyze any
expressions that are contained in it. Note that the analyzed form of
the expression is not yet saved in the parse tree.
Data statements contains expressions but they are not wrapped in one of the kinds of parse tree nodes that are analyzed, like
parser::Expr
. So potential errors were not discovered.Change
ExprChecker
to handleDataStmtConstant
and analyze any expressions that are contained in it. Note that the analyzed form of the expression is not yet saved in the parse tree.