public Declaration(string name, string description, string filepath) { Name = name; Description = description; FilePath = filepath; Scope = new ScopeSpan(); Type = LuaDeclarationType.Unknown; NameSpace = null; }
public Declaration(string name, string description, string filepath, ScopeSpan scope, LuaDeclarationType type) { Name = name; Description = description; FilePath = filepath; Scope = scope; Type = type; NameSpace = null; }
public Declaration(string name, string description, string filepath, ScopeSpan scope, Declaration nameSpace) { Name = name; Description = description; FilePath = filepath; Scope = scope; Type = LuaDeclarationType.Unknown; NameSpace = nameSpace; }
public System.Windows.Media.ImageSource GetImageSource(LuaDeclarationType type) { StandardGlyphGroup group; StandardGlyphItem item = StandardGlyphItem.GlyphItemPublic; switch (type) { case LuaDeclarationType.Table: group = StandardGlyphGroup.GlyphGroupClass; break; case LuaDeclarationType.Function: group = StandardGlyphGroup.GlyphGroupMethod; break; case LuaDeclarationType.Unknown: group = StandardGlyphGroup.GlyphGroupField; break; default: group = StandardGlyphGroup.GlyphGroupVariable; break; } return(GlyphService.GetGlyph(group, item)); }