Пример #1
0
 /// <summary>
 /// Main constructor
 /// </summary>
 /// <param name="superBlock">Super block</param>
 /// <param name="name">Method name</param>
 /// <param name="returnType">Method return type</param>
 /// <param name="parameters">Method parameters</param>
 public Method(Block superBlock, string name, VariableType returnType, Parameter[] parameters) : base(superBlock)
 {
     Name = name;
     ReturnType = returnType;
     Parameters = parameters;
     ReturnValue = null;
 }
Пример #2
0
 /// <summary>
 /// Main constructor
 /// </summary>
 /// <param name="superBlock">Super block</param>
 /// <param name="parameters">Parameters</param>
 public Constructor(Block superBlock, Parameter[] parameters) : base(superBlock)
 {
     Parameters = parameters;
     if (superBlock is Class)
         ClassBlock = superBlock as Class;
 }