public static TooltipInformation Create(DNode dn, ColorScheme st, bool templateParamCompletion = false, int currentMethodParam = -1) { var markupGen = new TooltipMarkupGen(st); var tti = new TooltipInformation { SignatureMarkup = markupGen.GenTooltipSignature(dn, templateParamCompletion, currentMethodParam) }; CreateTooltipBody(markupGen, dn, tti); return(tti); }
static void CreateTooltipBody(TooltipMarkupGen markupGen, DNode dn, TooltipInformation tti) { string summary; Dictionary<string,string> categories; markupGen.GenToolTipBody (dn, out summary, out categories); tti.SummaryMarkup = summary; if (categories != null) foreach (var kv in categories) tti.AddCategory (kv.Key, kv.Value); }
public static TooltipInformation Create(DNode dn, ColorScheme st, bool templateParamCompletion = false, int currentMethodParam = -1) { var markupGen = new TooltipMarkupGen (st); var tti = new TooltipInformation { SignatureMarkup = markupGen.GenTooltipSignature(dn, templateParamCompletion, currentMethodParam) }; CreateTooltipBody (markupGen, dn, tti); return tti; }
//TODO: Für semantisches Highlighting den TypeRefFinder benutzen und einfach pauschal alle Ids entsprechend highlighten public static TooltipInformation Create(AbstractType t, ColorScheme st, bool templateParamCompletion = false, int currentMethodParam = -1) { var markupGen = new TooltipMarkupGen (st); var tti = new TooltipInformation { SignatureMarkup = markupGen.GenTooltipSignature (t, templateParamCompletion, currentMethodParam) }; var ds = t as DSymbol; DNode n; if (ds != null && (n = ds.Definition) != null) CreateTooltipBody (markupGen, n, tti); return tti; }
static void CreateTooltipBody(TooltipMarkupGen markupGen, DNode dn, TooltipInformation tti) { string summary; Dictionary <string, string> categories; markupGen.GenToolTipBody(dn, out summary, out categories); tti.SummaryMarkup = summary; if (categories != null) { foreach (var kv in categories) { tti.AddCategory(kv.Key, kv.Value); } } }
//TODO: Für semantisches Highlighting den TypeRefFinder benutzen und einfach pauschal alle Ids entsprechend highlighten public static TooltipInformation Create(AbstractType t, ColorScheme st, bool templateParamCompletion = false, int currentMethodParam = -1) { var markupGen = new TooltipMarkupGen(st); var tti = new TooltipInformation { SignatureMarkup = markupGen.GenTooltipSignature(t, templateParamCompletion, currentMethodParam) }; var ds = t as DSymbol; DNode n; if (ds != null && (n = ds.Definition) != null) { CreateTooltipBody(markupGen, n, tti); } return(tti); }