Exemplo n.º 1
0
 // For dummy declaration construct
 public Declaration(string name, Declaration nameSpace)
 {
     Name        = name;
     Description = "";
     FilePath    = "";
     Scope       = new ScopeSpan();
     NameSpace   = nameSpace;
 }
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)
 {
     Name        = name;
     Description = description;
     FilePath    = filepath;
     Scope       = new ScopeSpan();
     Type        = LuaDeclarationType.Unknown;
     NameSpace   = null;
 }
Exemplo n.º 4
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.º 5
0
        public static Declaration BuildDeclaration(string name, ScopeSpan span)
        {
            int index = name.LastIndexOf('.');

            if (index == -1)
            {
                return(new Declaration(name, String.Empty, String.Empty, span));
            }
            else
            {
                return(new Declaration(name.Substring(index + 1), String.Empty, String.Empty, span, BuildDeclaration(name.Substring(0, index), span)));
            }
        }
Exemplo n.º 6
0
 public RequiredDeclaration(string filePath, ScopeSpan scope)
 {
     FilePath = filePath;
     Scope    = scope;
 }