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