public void CloseMethod() { currentMethod = null; }
public void OpenMethod(System.Diagnostics.SymbolStore.SymbolToken token, MethodBase mb) { Method method = new Method(); method.token = token.GetToken(); method.name = mb.Name; methods.Add(token.GetToken(), method); currentMethod = method; }
public void OpenMethod(SymbolToken method) { currentMethod = new Method(method.GetToken()); }
public void CloseMethod() { methods.Add(currentMethod); currentMethod = null; }
public void OpenMethod(System.Diagnostics.SymbolStore.SymbolToken token) { Method method = new Method(); method.token = token.GetToken(); // name doesn't appear to be used. We can look it up, but ModuleBuilder.ResolveMethod() is inefficient, // so if it isn't used, why bother? method.name = null; // moduleBuilder.ResolveMethod(token.GetToken()).Name; methods.Add(token.GetToken(), method); currentMethod = method; }
public void OpenMethod(SymbolToken method, MethodBase mb) { int token = method.GetToken(); currentMethod = new Method(token); methodMap.Add(token, mb); }