public void Visit(ExpressionStatement expression) { Indent(); expression.Expression.Accept(this); Builder.AppendLine(";"); }
void Analyze(ExpressionStatement Stmt) { SetCurrentLineAndCharNos(Stmt); if (Stmt.Expression != null) Analyze(Stmt.Expression); }
public void Visit(ExpressionStatement statement) { statement.Expression.Accept(this); }
void Analyze(ExpressionStatement Stmt) { SetCurrentLineAndCharNos(Stmt); if (Stmt.Expression != null) Analyze(Stmt.Expression); if (TraceKeyword) { if(Stmt.Expression.GetType().Name.Equals("Identifier")) { Identifier Id = (Identifier)Stmt.Expression; if(Id.Text.Equals(KeywordToTrace, StringComparison.OrdinalIgnoreCase)) { KeywordContexts.Add("Expression"); } } } }