Skip to content

Commit

Permalink
ctaggart#35 PdbReader getters
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Taggart authored and Chet Husk committed Nov 25, 2014
1 parent 15cdf29 commit 21af5c2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
20 changes: 16 additions & 4 deletions SymbolStore/PdbReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,27 @@ public byte[] GetSymAttribute(SymbolToken parent, string name)
return this.symReader.GetSymAttribute(parent, name);
}

public ISymbolVariable[] GetVariables(SymbolToken parent)
// explicit to see what F# does
public ISymbolDocument[] ISymbolReader.GetDocuments()
{
return this.symReader.GetVariables(parent);
return this.symReader.GetDocuments();
}

public SymbolToken UserEntryPoint
// convenience getters

public ISymbolDocument[] Documents
{
get { return this.symReader.UserEntryPoint; }
get { return this.symReader.GetDocuments(); }
}

public ISymbolVariable[] GlobalVariables
{
get { return this.symReader.GetGlobalVariables(); }
}

public ISymbolNamespace[] Namespaces
{
get { return this.symReader.GetNamespaces(); }
}
}
}
2 changes: 1 addition & 1 deletion SymbolStore/SymbolCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public SymbolCache(string symbolCacheDir)
SrcSrv.Init(sessionCookie, symbolCacheDir);
}

public PdbReader ReadPdb(string filePath, Stream stream)
public PdbReader ReadPdb(Stream stream, string filePath)
{
return new PdbReader(stream, sessionCookie, filePath);
}
Expand Down

0 comments on commit 21af5c2

Please sign in to comment.