Sha256: e393e83edb614ed62825201bf278438320c034c518105a5044c41d151e200640

Contents?: true

Size: 354 Bytes

Versions: 3

Compression:

Stored size: 354 Bytes

Contents

# Keeps track of function bodies for symbol lookup during Ruby method declarations
class YARD::Handlers::C::SymbolHandler < YARD::Handlers::C::Base
  MATCH = %r{\A\s*(?:(?:static|SWIGINTERN)\s+)?(?:intern\s+)?VALUE\s+(\w+)\s*\(}
  handles MATCH
  statement_class ToplevelStatement
  process { symbols[statement.source[MATCH, 1]] = statement }
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
deg-yard-0.8.7.4 lib/yard/handlers/c/symbol_handler.rb
deg-yard-0.8.7.3 lib/yard/handlers/c/symbol_handler.rb
deg-yard-0.8.7.1 lib/yard/handlers/c/symbol_handler.rb