Method: YARD::Parser::C::CParser#initialize

Defined in:
lib/yard/parser/c/c_parser.rb

#initialize(source, file = '(stdin)') ⇒ CParser

Returns a new instance of CParser.



6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/yard/parser/c/c_parser.rb', line 6

def initialize(source, file = '(stdin)')
  @file = file
  @namespaces = {}
  @content = source
  @index = 0
  @line = 1
  @state = nil
  @newline = true
  @statements = []
  @last_comment = nil
  @last_statement = nil
end