public ParseTimeFunction(string name, bool isMethod, bool isContructor, bool isStatic, ParseTimeFunction next) { Name = name; IsMethod = isMethod; IsContructor = isContructor; IsStatic = isStatic; Next = next; PushBlock(); }
/// <summary> /// Pops a function from the functions hierarchy. /// </summary> protected void PopFunction() { CurrentFunction = CurrentFunction.Next; }
/// <summary> /// Registers a function on top of the functions hierarchy. /// </summary> /// <param name="name">The name of the function to register</param> /// <param name="isMethod">Tells if the function is a method</param> /// <param name="isContructor">Tells if the method is a constructor</param> /// <param name="isStatic">Tells if the method is static or not</param> protected void PushFunction(string name, bool isMethod, bool isContructor, bool isStatic) { CurrentFunction = new ParseTimeFunction(name, isMethod, isContructor, isStatic, CurrentFunction); }