public override string Format(CodeGenerationParameter method, MethodScopeType scope) { var args = scope == MethodScopeType.Static ? new List <string>() { _stageVariableName } : new List <string>(); return(string.Join(", ", new List <List <string> >() { args, FormatMethodParameters(method) }.SelectMany(x => x))); }
public string Format(CodeGenerationParameter parameter, MethodScopeType scope) { var args = scope == MethodScopeType.Static ? new List <string>() { _stateArgument } : new List <string>(); return(string.Join(", ", new List <List <string> >() { args, FormatMethodParameters(parameter) }.SelectMany(x => x))); }
public bool IsInstance(MethodScopeType methodScopeType) => methodScopeType == MethodScopeType.Instance;
public virtual string Format(CodeGenerationParameter parameter, MethodScopeType scope) => throw new NotImplementedException();
public bool IsStatic(MethodScopeType methodScopeType) => methodScopeType == MethodScopeType.Static;