protected CodeConstruct(GeneratorScope scope, CodeConstruct from, object[] parameters) { Scope = scope; From = from; Parameters = parameters; scope.Codes.Add(this); }
public static ICodeConstruct TryNavigate(this CodeConstruct from, MethodInfo method, object[] parameters) { if (method.Name.StartsWith("set_")) { return(new PropertySetter(from.Scope, from, method, parameters)); } else if (method.Name.StartsWith("get_")) { return(new PropertyGetter(from.Scope, from, method, parameters)); } else { return(new Method(from.Scope, from, method, parameters)); } return(null); }
public PropertyGetter(GeneratorScope scope, CodeConstruct from, MethodInfo method, object[] parameters) : base(scope, from, parameters) { Method = method; }
public Method(GeneratorScope generatorScope, CodeConstruct parent, MethodInfo method, object[] paramaters) : base(generatorScope, parent, paramaters) { InterfaceMethod = method; }
public PropertySetter(GeneratorScope scope, CodeConstruct from, MethodInfo method, object[] parameters) : base(scope, from, parameters) { Method = method; //parameterName = Method.Name.Replace("set_", ""); }