webidl.binding.generator

Undocumented in source.

Members

Classes

CallbackNode
class CallbackNode
Undocumented in source.
ConstNode
class ConstNode
Undocumented in source.
EnumNode
class EnumNode
Undocumented in source.
ExposedConstructorNode
class ExposedConstructorNode
Undocumented in source.
FunctionNode
class FunctionNode
Undocumented in source.
IR
class IR
Undocumented in source.
MaplikeNode
class MaplikeNode
Undocumented in source.
MixinNode
class MixinNode
Undocumented in source.
Module
class Module
Undocumented in source.
ModuleNode
class ModuleNode
Undocumented in source.
Semantics
class Semantics
Undocumented in source.
StructIncludesNode
class StructIncludesNode
Undocumented in source.
StructNode
class StructNode
Undocumented in source.
Type
class Type
Undocumented in source.
TypedefNode
class TypedefNode
Undocumented in source.

Enums

FunctionType
enum FunctionType
Undocumented in source.

Functions

_toDBinding
void _toDBinding(Node node, Semantics semantics, IndentedStringAppender* a)
Undocumented in source. Be warned that the author may not have intended to support it.
_toDBinding
void _toDBinding(ModuleNode node, Semantics semantics, IndentedStringAppender* a)
Undocumented in source. Be warned that the author may not have intended to support it.
_toDBinding
void _toDBinding(StructNode node, Semantics semantics, IndentedStringAppender* a)
Undocumented in source. Be warned that the author may not have intended to support it.
_toDBinding
void _toDBinding(Node node, StructNode parent, Semantics semantics, IndentedStringAppender* a)
Undocumented in source. Be warned that the author may not have intended to support it.
_toDBinding
void _toDBinding(ConstNode node, StructNode parent, Semantics semantics, IndentedStringAppender* a)
Undocumented in source. Be warned that the author may not have intended to support it.
_toDBinding
void _toDBinding(StructIncludesNode node, StructNode parent, Semantics semantics, IndentedStringAppender* a)
Undocumented in source. Be warned that the author may not have intended to support it.
_toDBinding
void _toDBinding(FunctionNode node, StructNode parent, Semantics semantics, IndentedStringAppender* a)
Undocumented in source. Be warned that the author may not have intended to support it.
_toDBinding
void _toDBinding(ExposedConstructorNode node, StructNode parent, Semantics semantics, IndentedStringAppender* a)
Undocumented in source. Be warned that the author may not have intended to support it.
_toDBinding
void _toDBinding(TypedefNode node, Semantics semantics, IndentedStringAppender* a)
Undocumented in source. Be warned that the author may not have intended to support it.
_toDBinding
void _toDBinding(EnumNode node, Semantics semantics, IndentedStringAppender* a)
Undocumented in source. Be warned that the author may not have intended to support it.
_toDBinding
void _toDBinding(MaplikeNode node, StructNode parent, Semantics semantics, IndentedStringAppender* a)
Undocumented in source. Be warned that the author may not have intended to support it.
_toDBinding
void _toDBinding(CallbackNode node, Semantics semantics, IndentedStringAppender* a)
Undocumented in source. Be warned that the author may not have intended to support it.
_toDImport
void _toDImport(Node node, Semantics semantics, IndentedStringAppender* a)
Undocumented in source. Be warned that the author may not have intended to support it.
_toDImport
void _toDImport(ModuleNode node, Semantics semantics, IndentedStringAppender* a)
Undocumented in source. Be warned that the author may not have intended to support it.
_toDImport
void _toDImport(StructNode node, Semantics semantics, IndentedStringAppender* a)
Undocumented in source. Be warned that the author may not have intended to support it.
_toDImport
void _toDImport(MixinNode node, Semantics semantics, IndentedStringAppender* a)
Undocumented in source. Be warned that the author may not have intended to support it.
_toDImport
void _toDImport(Node node, StructNode parent, Semantics semantics, IndentedStringAppender* a)
Undocumented in source. Be warned that the author may not have intended to support it.
_toDImport
void _toDImport(StructIncludesNode node, StructNode parent, Semantics semantics, IndentedStringAppender* a)
Undocumented in source. Be warned that the author may not have intended to support it.
_toDImport
void _toDImport(FunctionNode node, StructNode parent, Semantics semantics, IndentedStringAppender* a)
Undocumented in source. Be warned that the author may not have intended to support it.
_toDImport
void _toDImport(ExposedConstructorNode node, StructNode parent, Semantics semantics, IndentedStringAppender* a)
Undocumented in source. Be warned that the author may not have intended to support it.
_toDImport
void _toDImport(MaplikeNode node, StructNode parent, Semantics semantics, IndentedStringAppender* a)
Undocumented in source. Be warned that the author may not have intended to support it.
_toJsExport
void _toJsExport(Node node, Semantics semantics, string[] filter, IndentedStringAppender* a)
Undocumented in source. Be warned that the author may not have intended to support it.
_toJsExport
void _toJsExport(ModuleNode node, Semantics semantics, string[] filter, IndentedStringAppender* a)
Undocumented in source. Be warned that the author may not have intended to support it.
_toJsExport
void _toJsExport(StructNode node, Semantics semantics, string[] filter, IndentedStringAppender* a)
Undocumented in source. Be warned that the author may not have intended to support it.
_toJsExport
void _toJsExport(Node node, StructNode parent, Semantics semantics, string[] filter, IndentedStringAppender* a)
Undocumented in source. Be warned that the author may not have intended to support it.
_toJsExport
void _toJsExport(MixinNode node, Semantics semantics, string[] filter, IndentedStringAppender* a)
Undocumented in source. Be warned that the author may not have intended to support it.
_toJsExport
void _toJsExport(FunctionNode node, StructNode parent, Semantics semantics, string[] filter, IndentedStringAppender* a)
Undocumented in source. Be warned that the author may not have intended to support it.
_toJsExport
void _toJsExport(ExposedConstructorNode node, StructNode parent, Semantics semantics, string[] filter, IndentedStringAppender* a)
Undocumented in source. Be warned that the author may not have intended to support it.
collectCallbacks
auto collectCallbacks(IR ir)
Undocumented in source. Be warned that the author may not have intended to support it.
collectFunctions
auto collectFunctions(IR ir, string[] filter)
Undocumented in source. Be warned that the author may not have intended to support it.
collectMethods
auto collectMethods(IR ir)
Undocumented in source. Be warned that the author may not have intended to support it.
collectUsedCallbackNames
auto collectUsedCallbackNames(IR ir, FunctionNode[] funcs)
Undocumented in source. Be warned that the author may not have intended to support it.
createOptionalOverloads
auto createOptionalOverloads(FunctionNode func)
Undocumented in source. Be warned that the author may not have intended to support it.
dump
void dump(Context context, JsExportFunction item, Appender a)
Undocumented in source. Be warned that the author may not have intended to support it.
dump
void dump(Semantics semantics, DImportFunction item, Appender a)
Undocumented in source. Be warned that the author may not have intended to support it.
dump
void dump(Semantics semantics, DBindingFunction item, Appender a, string[] locals)
Undocumented in source. Be warned that the author may not have intended to support it.
dumpDJsArgument
void dumpDJsArgument(Semantics semantics, Argument arg, Appender a, bool varargs, string[] locals)
Undocumented in source. Be warned that the author may not have intended to support it.
dumpDJsArguments
void dumpDJsArguments(Semantics semantics, Argument[] args, Appender a, bool varargs, string[] locals)
Undocumented in source. Be warned that the author may not have intended to support it.
dumpDParameter
void dumpDParameter(Semantics semantics, Argument arg, Appender a, string[] locals, size_t idx)
Undocumented in source. Be warned that the author may not have intended to support it.
dumpDParameters
void dumpDParameters(Semantics semantics, Argument[] args, Appender a, string[] locals)
Undocumented in source. Be warned that the author may not have intended to support it.
dumpJsArgument
void dumpJsArgument(Semantics semantics, Argument arg, Appender a)
Undocumented in source. Be warned that the author may not have intended to support it.
dumpJsArguments
void dumpJsArguments(Semantics semantics, Argument[] args, Appender a)
Undocumented in source. Be warned that the author may not have intended to support it.
extractArgument
auto extractArgument(ParseTree tree)
Undocumented in source. Be warned that the author may not have intended to support it.
extractArgumentRests
auto extractArgumentRests(ParseTree tree)
Undocumented in source. Be warned that the author may not have intended to support it.
extractArguments
auto extractArguments(ParseTree tree)
Undocumented in source. Be warned that the author may not have intended to support it.
extractDefault
auto extractDefault(ParseTree tree)
Undocumented in source. Be warned that the author may not have intended to support it.
extractDefaults
auto extractDefaults(ParseTree tree)
Undocumented in source. Be warned that the author may not have intended to support it.
extractType
auto extractType(ParseTree tree)
Undocumented in source. Be warned that the author may not have intended to support it.
extractTypeName
string extractTypeName(ParseTree tree)
Undocumented in source. Be warned that the author may not have intended to support it.
extractTypeNames
auto extractTypeNames(ParseTree tree)
Undocumented in source. Be warned that the author may not have intended to support it.
extractTypes
auto extractTypes(ParseTree tree)
Undocumented in source. Be warned that the author may not have intended to support it.
friendlyJsName
string friendlyJsName(string s)
Undocumented in source. Be warned that the author may not have intended to support it.
friendlyName
string friendlyName(string s)
Undocumented in source. Be warned that the author may not have intended to support it.
generateDBindings
string generateDBindings(IR ir, Module module_)
Undocumented in source. Be warned that the author may not have intended to support it.
generateDImports
string generateDImports(IR ir, Module module_)
Undocumented in source. Be warned that the author may not have intended to support it.
generateDImports
void generateDImports(ParseTree tree, Appender a, Context context)
Undocumented in source. Be warned that the author may not have intended to support it.
generateDImports
string generateDImports(ParseTree tree, Context context)
Undocumented in source. Be warned that the author may not have intended to support it.
generateDType
void generateDType(ParseTree tree, Appender a, Context context)
Undocumented in source. Be warned that the author may not have intended to support it.
generateDType
string generateDType(ParseTree tree, Context context)
Undocumented in source. Be warned that the author may not have intended to support it.
generateDecodedTypes
TypeDecoder[] generateDecodedTypes(IR ir, string[] filter)
Undocumented in source. Be warned that the author may not have intended to support it.
generateDecodedTypes
void generateDecodedTypes(IR ir, Appender!(ParseTree[]) a, string[] filter)
Undocumented in source. Be warned that the author may not have intended to support it.
generateEncodedTypes
TypeEncoder[] generateEncodedTypes(IR ir, string[] filter)
Undocumented in source. Be warned that the author may not have intended to support it.
generateEncodedTypes
void generateEncodedTypes(IR ir, Appender!(ParseTree[]) a, string[] filter)
Undocumented in source. Be warned that the author may not have intended to support it.
generateJsDecoder
void generateJsDecoder(Decoder decoder, IndentedStringAppender a, Semantics semantics, bool isVar)
Undocumented in source. Be warned that the author may not have intended to support it.
generateJsEncoder
void generateJsEncoder(Encoder encoder, IndentedStringAppender a, Semantics semantics, bool isVar)
Undocumented in source. Be warned that the author may not have intended to support it.
generateJsGlobalBindings
string generateJsGlobalBindings(IR ir, string[] jsExportFilters, IndentedStringAppender app)
Undocumented in source. Be warned that the author may not have intended to support it.
generateSingleJsBinding
string generateSingleJsBinding(IR ir, string[] filtered)
Undocumented in source. Be warned that the author may not have intended to support it.
getAliasedType
auto getAliasedType(Context context, string typeName)
Undocumented in source. Be warned that the author may not have intended to support it.
getAliasedType
auto getAliasedType(Semantics semantics, string typeName)
Undocumented in source. Be warned that the author may not have intended to support it.
getArgumentList
ParseTree getArgumentList(Semantics semantics, ParseTree tree)
Undocumented in source. Be warned that the author may not have intended to support it.
getChildrenOfSumType
string[] getChildrenOfSumType(T baseType, Semantics semantics, string[] locals)
Undocumented in source. Be warned that the author may not have intended to support it.
getImports
auto getImports(IR ir, Module module_)
Undocumented in source. Be warned that the author may not have intended to support it.
getMatchingPartials
auto getMatchingPartials(Context context, string name)
Undocumented in source. Be warned that the author may not have intended to support it.
getMatchingPartials
auto getMatchingPartials(Semantics semantics, string name)
Undocumented in source. Be warned that the author may not have intended to support it.
getSizeOf
uint getSizeOf(Semantics semantics, ParseTree tree)
Undocumented in source. Be warned that the author may not have intended to support it.
getSymbolInfo
auto getSymbolInfo(string symbol)
Undocumented in source. Be warned that the author may not have intended to support it.
getTemplatedTypeName
auto getTemplatedTypeName(size_t idx)
Undocumented in source. Be warned that the author may not have intended to support it.
getType
auto getType(Context context, string name)
Undocumented in source. Be warned that the author may not have intended to support it.
getType
auto getType(Semantics semantics, string name)
Undocumented in source. Be warned that the author may not have intended to support it.
getType
auto getType(Semantics semantics, ParseTree tree)
Undocumented in source. Be warned that the author may not have intended to support it.
getTypeName
string getTypeName(ParseTree tree)
Undocumented in source. Be warned that the author may not have intended to support it.
getUnionChildren
ParseTree[] getUnionChildren(Semantics semantics, ParseTree tree)
Undocumented in source. Be warned that the author may not have intended to support it.
indentToString
void indentToString(void delegate(const(char)[]) sink, Node[] children)
Undocumented in source. Be warned that the author may not have intended to support it.
isAny
bool isAny(Semantics semantics, ParseTree tree)
Undocumented in source. Be warned that the author may not have intended to support it.
isCallback
bool isCallback(Context context, string typeName)
Undocumented in source. Be warned that the author may not have intended to support it.
isCallback
bool isCallback(Semantics semantics, ParseTree tree)
Undocumented in source. Be warned that the author may not have intended to support it.
isCallback
bool isCallback(Semantics semantics, string typeName)
Undocumented in source. Be warned that the author may not have intended to support it.
isDKeyword
bool isDKeyword(string s)
Undocumented in source. Be warned that the author may not have intended to support it.
isEmpty
auto isEmpty(string s)
Undocumented in source. Be warned that the author may not have intended to support it.
isEmpty
auto isEmpty(string[] matches)
Undocumented in source. Be warned that the author may not have intended to support it.
isEnum
bool isEnum(Context context, ParseTree tree)
Undocumented in source. Be warned that the author may not have intended to support it.
isEnum
bool isEnum(Semantics semantics, ParseTree tree)
Undocumented in source. Be warned that the author may not have intended to support it.
isEnum
bool isEnum(Semantics semantics, string typeName)
Undocumented in source. Be warned that the author may not have intended to support it.
isJsKeyword
bool isJsKeyword(string s)
Undocumented in source. Be warned that the author may not have intended to support it.
isNullable
bool isNullable(Semantics semantics, ParseTree tree)
Undocumented in source. Be warned that the author may not have intended to support it.
isNullableTypedef
bool isNullableTypedef(Semantics semantics, ParseTree tree)
Undocumented in source. Be warned that the author may not have intended to support it.
isPartial
bool isPartial(Context context)
Undocumented in source. Be warned that the author may not have intended to support it.
isPrimitive
bool isPrimitive(Semantics semantics, ParseTree tree)
Undocumented in source. Be warned that the author may not have intended to support it.
isPrimitive
bool isPrimitive(Context context, ParseTree tree)
Undocumented in source. Be warned that the author may not have intended to support it.
isRawResultType
bool isRawResultType(Semantics semantics, ParseTree tree)
Undocumented in source. Be warned that the author may not have intended to support it.
isSequence
bool isSequence(Semantics semantics, ParseTree tree)
Undocumented in source. Be warned that the author may not have intended to support it.
isStringType
bool isStringType(Semantics semantics, ParseTree tree)
Undocumented in source. Be warned that the author may not have intended to support it.
isTypedef
bool isTypedef(Semantics semantics, string typeName)
Undocumented in source. Be warned that the author may not have intended to support it.
isTypedef
bool isTypedef(Context context, string typeName)
Undocumented in source. Be warned that the author may not have intended to support it.
isTypedef
bool isTypedef(Semantics semantics, ParseTree tree)
Undocumented in source. Be warned that the author may not have intended to support it.
isTypedef
bool isTypedef(Context context, ParseTree tree)
Undocumented in source. Be warned that the author may not have intended to support it.
isUnion
bool isUnion(Semantics semantics, ParseTree tree)
Undocumented in source. Be warned that the author may not have intended to support it.
isUnion
bool isUnion(Context context, ParseTree tree)
Undocumented in source. Be warned that the author may not have intended to support it.
iterate
void iterate(Module module_, Appender app, Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
mangleJsName
string mangleJsName(StructNode node, FunctionNode fun)
Undocumented in source. Be warned that the author may not have intended to support it.
mangleJsOverloads
auto mangleJsOverloads(IR ir, Semantics semantics)
Undocumented in source. Be warned that the author may not have intended to support it.
mangleName
string mangleName(string typeName, string name, string appendix)
Undocumented in source. Be warned that the author may not have intended to support it.
mangleTypeJs
string mangleTypeJs(ParseTree tree, Semantics semantics)
Undocumented in source. Be warned that the author may not have intended to support it.
mangleTypeJs
string mangleTypeJs(ParseTree tree, Semantics semantics, MangleTypeJsContext context)
Undocumented in source. Be warned that the author may not have intended to support it.
mangleTypeJs
void mangleTypeJs(ParseTree tree, Appender a, Semantics semantics)
Undocumented in source. Be warned that the author may not have intended to support it.
mangleTypeJsImpl
void mangleTypeJsImpl(ParseTree tree, Appender a, Semantics semantics, MangleTypeJsContext context)
Undocumented in source. Be warned that the author may not have intended to support it.
moveExposedConstructors
auto moveExposedConstructors(IR ir)
Undocumented in source. Be warned that the author may not have intended to support it.
orNone
string orNone(string s)
Undocumented in source. Be warned that the author may not have intended to support it.
putCamelCase
void putCamelCase(Appender a, string s)
Undocumented in source. Be warned that the author may not have intended to support it.
resolvePartialsAndIncludes
auto resolvePartialsAndIncludes(IR ir)
Undocumented in source. Be warned that the author may not have intended to support it.
setDParameter
auto setDParameter(Context c)
Undocumented in source. Be warned that the author may not have intended to support it.
stripNullable
auto stripNullable(ParseTree tree)
Undocumented in source. Be warned that the author may not have intended to support it.
toCamelCase
string toCamelCase(string s)
Undocumented in source. Be warned that the author may not have intended to support it.
toDBinding
void toDBinding(virtual!Node node, StructNode parent, Semantics semantics, IndentedStringAppender* a)
Undocumented in source.
toDBinding
void toDBinding(virtual!Node node, Semantics semantics, IndentedStringAppender* a)
Undocumented in source.
toDImport
void toDImport(virtual!Node node, StructNode parent, Semantics semantics, IndentedStringAppender* a)
Undocumented in source.
toDImport
void toDImport(virtual!Node node, Semantics semantics, IndentedStringAppender* a)
Undocumented in source.
toIr
IR toIr(Module module_)
Undocumented in source. Be warned that the author may not have intended to support it.
toIr
IR toIr(Semantics semantics)
Undocumented in source. Be warned that the author may not have intended to support it.
toIr
void toIr(ParseTree tree, Appender a, Context context)
Undocumented in source. Be warned that the author may not have intended to support it.
toJsExport
void toJsExport(virtual!Node node, StructNode parent, Semantics semantics, string[] filter, IndentedStringAppender* a)
Undocumented in source.
toJsExport
void toJsExport(virtual!Node node, Semantics semantics, string[] filter, IndentedStringAppender* a)
Undocumented in source.
withLocals
auto withLocals(Context c, string[] locals)
Undocumented in source. Be warned that the author may not have intended to support it.
withSkipOptional
auto withSkipOptional(Context c)
Undocumented in source. Be warned that the author may not have intended to support it.

Interfaces

Node
interface Node
Undocumented in source.

Manifest constants

dKeywords
enum dKeywords;
Undocumented in source.
is32Bit
enum is32Bit;
Undocumented in source.
jsKeywords
enum jsKeywords;
Undocumented in source.
nativeTypes
enum nativeTypes;
Undocumented in source.

Structs

Argument
struct Argument
Undocumented in source.
Context
struct Context
Undocumented in source.
DBindingFunction
struct DBindingFunction
Undocumented in source.
DImportFunction
struct DImportFunction
Undocumented in source.
IndentedStringAppender
struct IndentedStringAppender
Undocumented in source.
JsExportFunction
struct JsExportFunction
Undocumented in source.
MangleTypeJsContext
struct MangleTypeJsContext
Undocumented in source.
TypeDecoder
struct TypeDecoder
Undocumented in source.
TypeEncoder
struct TypeEncoder
Undocumented in source.

Templates

mapType
template mapType(T)
Undocumented in source.
putWithDelimiter
template putWithDelimiter(alias Generator)
Undocumented in source.
skipType
template skipType(T)
Undocumented in source.

Variables

isGeneric
bool[string] isGeneric;
Undocumented in source.

Meta