public void EnteringNode(object sender, XmlTraverseEventArgs e)
{
XmlNode node = e.Node;
TotalNodes++;
switch (node.LocalName)
{
case "Stmt_Echo":
EchoStatements++;
break;
case "#text":
StringLiteral(node);
break;
case AstConstants.Nodes.Stmt_Function:
Functions++;
break;
case AstConstants.Nodes.Stmt_ClassMethod:
Methods++;
break;
case AstConstants.Nodes.Stmt_Class:
Classes++;
break;
case "Expr_Include":
IncludeStatements++;
break;
case AstConstants.Nodes.Stmt_Goto:
Gotos++;
break;
}
}