public SymbolReference(SymbolType symbolType, IScriptExtent scriptExtent, string symbolName, string filePath, string sourceLine) { // TODO: Verify params SymbolType = symbolType; ScriptRegion = ScriptRegion.Create(scriptExtent); SymbolName = symbolName; FilePath = filePath; SourceLine = sourceLine; // TODO: Make sure end column number usage is correct }
/// <summary> /// Constructs and instance of a SymbolReference /// </summary> /// <param name="symbolType">The higher level type of the symbol</param> /// <param name="symbolName">The name of the symbol</param> /// <param name="scriptExtent">The script extent of the symbol</param> /// <param name="filePath">The file path of the symbol</param> /// <param name="sourceLine">The line contents of the given symbol (defaults to empty string)</param> public SymbolReference( SymbolType symbolType, string symbolName, IScriptExtent scriptExtent, string filePath = "", string sourceLine = "") { // TODO: Verify params this.SymbolType = symbolType; this.SymbolName = symbolName; this.ScriptRegion = ScriptRegion.Create(scriptExtent); this.FilePath = filePath; this.SourceLine = sourceLine; // TODO: Make sure end column number usage is correct // Build the display string //this.DisplayString = // string.Format( // "{0} {1}") }