class SyntaxTree::Parser
def find_next_statement_start(position)
Experimental RBS support (using type sampling data from the type_fusion project).
def find_next_statement_start: (Integer position) -> untyped
This signature was generated using 19 samples from 1 application.
By finding the next non-space character, we can make sure that the bounds
end
...
class Foo # :nodoc:
attached to the class node and not the statement node:
preceding comment. For example, we want the following comment to be
is used to bind statements lists and make sure they don't include a
Finds the next position in the source string that begins a statement. This
def find_next_statement_start(position) maximum = source.length position.upto(maximum) do |pound_index| case source[pound_index] when "#" return source.index("\n", pound_index + 1) || maximum when " " # continue else return position end end end