示例#1
0
 // For dummy declaration construct
 public Declaration(string name, Declaration nameSpace)
 {
     Name        = name;
     Description = "";
     FilePath    = "";
     Scope       = new ScopeSpan();
     NameSpace   = nameSpace;
 }
示例#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;
 }
示例#3
0
 public Declaration(string name, string description, string filepath)
 {
     Name        = name;
     Description = description;
     FilePath    = filepath;
     Scope       = new ScopeSpan();
     Type        = LuaDeclarationType.Unknown;
     NameSpace   = null;
 }
示例#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;
 }
示例#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)));
            }
        }
示例#6
0
 public RequiredDeclaration(string filePath, ScopeSpan scope)
 {
     FilePath = filePath;
     Scope    = scope;
 }