Exemplo n.º 1
0
 public Declaration(string name, string description, string filepath)
 {
     Name        = name;
     Description = description;
     FilePath    = filepath;
     Scope       = new ScopeSpan();
     Type        = LuaDeclarationType.Unknown;
     NameSpace   = null;
 }
Exemplo n.º 2
0
 public Declaration(string name, string description, string filepath, ScopeSpan scope, LuaDeclarationType type)
 {
     Name        = name;
     Description = description;
     FilePath    = filepath;
     Scope       = scope;
     Type        = type;
     NameSpace   = null;
 }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 4
0
        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));
        }