class

WinMD::File

Inherits WinMD::Base < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

Constructors

Class methods

from_json(json_data, filename)
Source

Instance methods

==(other : WinMD::File) : Bool
Source
add_include(inc : WinMD::Include)

Add includes but only if its unique

Source
api=(api : String)
Source
com_interfaces
Source
constants
Source
constants=(constants : Array(WinMD::Constant))
Source
empty_shell?

True if this file would render as a bare module ... extend self end with no constants, types, functions, or unicode aliases. Produced by ensure_namespace_prefix_files when a namespace appears only as an intermediate prefix and never contributes real content.

Source
enums
Source
file_name
Source
file_name=(file_name : String)
Source
file_path
Source
file_path=(filename : String)
Source
find_com_interface(name : String)
Source
foreign?

True if this file lives outside the projected Win32 namespace tree — i.e. it was created for a Windows.Foundation.*, Windows.Storage.*, etc. WinRT type that was referenced from a Win32 type via ApiRef but has no metadata in Windows.Win32.winmd. The importer remaps these to a WinRT.* namespace, so the prefix check here matches the projected form, not the raw CLR namespace.

Source
functions
Source
functions=(functions : Array(WinMD::Function))
Source
get_includes
Source
get_kinds
Source
get_types
Source
has_kind?(str_kind : String)
Source
has_type?(str_type : String)
Source
includes
Source
namespace
Source
namespace=(namespace : String)
Source
native_typedefs
Source
orig_file_name
Source
orig_file_name=(orig_file_name : String)
Source
placeholder_only?

True if the file contains only placeholder NativeTypedef -> Void* entries (no real constants, functions, or richer types). These are emitted by Ecma335Importer#ensure_placeholder_types_for_missing_refs to keep ApiRefs resolvable.

Source
process_overrides
Source
qualified_path
Source
rel_path
Source
render
Source
set_file
Source
structs_and_unions
Source
types
Source
types=(types : Array(WinMD::Type))
Source
unicode_aliases
Source
unicode_aliases=(unicode_aliases : Array(String))
Source