Bindgen::Parser::Document
Inherits JSON::Serializable < Reference < Object
Document as returned by the clang tool.
Constants
FORMAT_VERSION = 12
Version of the format this bindgen understands. Has to match
BG_FORMAT_VERSION of the clang tool.
Constructors
new(pull : JSON::PullParser)
Sourcenew(enums : Hash(String, Bindgen::Parser::Enum) = Enum::Collection.new, classes : Hash(String, Bindgen::Parser::Class) = Class::Collection.new, macros : Array(Bindgen::Parser::Macro) = Macro::Collection.new, functions : Array(Bindgen::Parser::Method) = Method::Collection.new, format_version : Int32 = FORMAT_VERSION)
For testing purposes.
new(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceClass methods
check_format_version!(version) : Nil
Raises if version isn't the one this bindgen understands.
Instance methods
classes
Sourceenums
Sourcefunctions
Sourcemacros
Source