public OverrideCompletionData(IMethod method)
     : base(GetName(method, ConversionFlags.None),
            "override " + GetName(method, ConversionFlags.ShowReturnType
                                  | ConversionFlags.ShowAccessibility)
            + "\n\n" + method.Documentation,
            ScriptControl.GetIcon(method))
 {
     this.member = method;
 }
Ejemplo n.º 2
0
 public CodeCompletionData(IEvent e)
 {
     member   = e;
     ambience = Parser.ProjectParser.CurrentAmbience;
     ambience.ConversionFlags = ConversionFlags.ShowReturnType | ConversionFlags.ShowParameterNames | ConversionFlags.ShowModifiers;
     imageIndex    = ScriptControl.GetIcon(e);
     text          = e.Name;
     description   = ambience.Convert(e);
     documentation = e.Documentation;
     GetPriority(e.DotNetName);
 }
Ejemplo n.º 3
0
 public CodeCompletionData(IProperty property)
 {
     _member   = property;
     _ambience = Parser.ProjectParser.CurrentAmbience;
     _ambience.ConversionFlags = ConversionFlags.ShowReturnType | ConversionFlags.ShowParameterNames | ConversionFlags.ShowModifiers;
     _imageIndex    = ScriptControl.GetIcon(property);
     _text          = property.Name;
     _description   = _ambience.Convert(property);
     _documentation = property.Documentation;
     GetPriority(property.DotNetName);
 }
Ejemplo n.º 4
0
 public CodeCompletionData(IClass c)
 {
     ambience = Parser.ProjectParser.CurrentAmbience;
     // save class (for the delegate description shortcut)
     this.c     = c;
     imageIndex = ScriptControl.GetIcon(c);
     ambience.ConversionFlags = ConversionFlags.None;
     text = ambience.Convert(c);
     ambience.ConversionFlags = ConversionFlags.UseFullyQualifiedNames | ConversionFlags.ShowReturnType | ConversionFlags.ShowModifiers;
     description   = ambience.Convert(c);
     documentation = c.Documentation;
     GetPriority(c.DotNetName);
 }
 public OverrideCompletionData(IProperty property)
     : base(property.Name, "override " + property.Name + "\n\n" + property.Documentation,
            ScriptControl.GetIcon(property))
 {
     this.member = property;
 }