Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
		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;
		}
Exemplo n.º 3
0
		//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;
		}
Exemplo n.º 4
0
        //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);
        }