private def or protected def style method definitions are not parsed.
private def len(input: String): Integer
input.length
end
In the above code, the type annotation is not recognized.
Method definitions with visibility modifiers should be parsed correctly:
private def foo(x: String): Integer
protected def bar(y: Integer): String
public def baz(z: Boolean): Void