/// <summary> /// This method prints the timeSecondNode /// </summary> /// <param name="timeSecondNode">The node to print.</param> /// <returns>Returns null</returns> public override object Visit(TimeSecondNode timeSecondNode) { Print("TimeSecondNode"); return(null); }
/// <summary> /// This method visits a time second node /// the result is multiplied by 1000 to convert it to milliseconds /// </summary> /// <param name="timeSecondNode">The name of the node</param> /// <returns>It returns the second in milliseconds</returns> public override object Visit(TimeSecondNode timeSecondNode) { return("*1000"); }
/// <summary> /// This method type checks the TimeSecondNode node in the AST. /// </summary> /// <param name="timeSecondNode">The node to check.</param> /// <returns>Returns null</returns> public override object Visit(TimeSecondNode timeSecondNode) { return(null); }
/// <summary> /// This visits a TimeSecond node /// </summary> /// <param name="timeSecondNode">The visited node</param> /// <returns></returns> public abstract object Visit(TimeSecondNode timeSecondNode);