Esempio n. 1
0
        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(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;
        }