Пример #1
0
 public ParseTimeFunction(string name, bool isMethod, bool isContructor, bool isStatic, ParseTimeFunction next)
 {
     Name         = name;
     IsMethod     = isMethod;
     IsContructor = isContructor;
     IsStatic     = isStatic;
     Next         = next;
     PushBlock();
 }
Пример #2
0
 /// <summary>
 /// Pops a function from the functions hierarchy.
 /// </summary>
 protected void PopFunction()
 {
     CurrentFunction = CurrentFunction.Next;
 }
Пример #3
0
 /// <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);
 }