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;
		}
Example #3
0
 public void OpenMethod(SymbolToken method)
 {
     currentMethod = new Method(method.GetToken());
 }
Example #4
0
 public void CloseMethod()
 {
     methods.Add(currentMethod);
     currentMethod = null;
 }
Example #5
0
		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);
		}