public ConstructorStatement(CsType type, BlockStatement block) { AccessModifier = AccessModifier.Public; this.type = type; body = block; parameterList = new ParameterListStatement(); baseParameters = new List<Expression>(); }
public MethodStatement(string name, BlockStatement block) { AccessModifier = AccessModifier.Public; Modifier = Modifier.Virtual; ReturnType = CsType.Void; this.name = new NameElement(name); body = block; parameterList = new ParameterListStatement(); attributes = new List<AttributeStatement>(); }