diff --git a/SymbolStore/PdbReader.cs b/SymbolStore/PdbReader.cs index 7f304b0..a0253c6 100644 --- a/SymbolStore/PdbReader.cs +++ b/SymbolStore/PdbReader.cs @@ -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(); } + } } } diff --git a/SymbolStore/SymbolCache.cs b/SymbolStore/SymbolCache.cs index f18115f..6bede07 100644 --- a/SymbolStore/SymbolCache.cs +++ b/SymbolStore/SymbolCache.cs @@ -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); }