public void Read(MethodSymbols symbols) { MethodEntry entry = this.symbol_file.GetMethodByToken(symbols.MethodToken.ToInt32()); if (entry != null) { this.ReadLineNumbers(entry, symbols); MdbReader.ReadLocalVariables(entry, symbols); } }
public void Read(MethodBody body, InstructionMapper mapper) { MetadataToken method_token = body.Method.MetadataToken; MethodEntry entry = this.symbol_file.GetMethodByToken(method_token.ToInt32()); if (entry != null) { Scope[] scopes = MdbReader.ReadScopes(entry, body, mapper); this.ReadLineNumbers(entry, mapper); MdbReader.ReadLocalVariables(entry, body, scopes); } }