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