public void OpenMethod(int token) { // Add this new method to the list of methods Method meth = new Method(); meth.Token = new SymbolToken(token); methods.Add(meth); // Set the current method currentMethod = meth; }