ENYO-2223: Code editor rejects "switch to designer" request if a method is defined out of a kind.

Enyo-DCO-1.1-Signed-off-by: Yves Del Medico <yves.del-medico@hp.com>