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)));
            }
示例#3
0
 public bool IsInstance(MethodScopeType methodScopeType) => methodScopeType == MethodScopeType.Instance;
 public virtual string Format(CodeGenerationParameter parameter, MethodScopeType scope) => throw new NotImplementedException();
示例#5
0
 public bool IsStatic(MethodScopeType methodScopeType) => methodScopeType == MethodScopeType.Static;