public MarkupBuilder GetLabel(DeltinScript deltinScript, LabelInfo labelInfo) { var builder = new MarkupBuilder().StartCodeLine().Add("new " + Type.GetName()); builder.Add(CodeParameter.GetLabels(deltinScript, labelInfo.AnonymousLabelInfo, Parameters)).EndCodeLine(); if (labelInfo.IncludeDocumentation) { builder.NewSection().Add(Documentation); } return(builder); }
public MarkupBuilder GetLabel(DeltinScript deltinScript, LabelInfo labelInfo) => labelInfo.MakeFunctionLabel(deltinScript, ReturnType, Name, ParameterProviders, GenericTypes);
public MarkupBuilder GetLabel(DeltinScript deltinScript, LabelInfo labelInfo) => ChosenFunction.GetLabel(deltinScript, labelInfo);
public MarkupBuilder GetLabel(DeltinScript deltinScript, LabelInfo labelInfo) => labelInfo.MakeVariableLabel(CodeType, Name);