Creates method declaration related structures.
the node to create the AST structure from.
if true, will generate a type decl, type ref, and method ref. This is useful for lambda methods.
a method declaration with additional refs and types if specified.