summaryrefslogtreecommitdiff
path: root/src/duk-libdom-interface.c
Commit message (Collapse)AuthorAgeFilesLines
* Add automatic generation of property getters and settersVincent Sanders2015-10-081-47/+215
| | | | | | | | | | | This allows the binding to omit specifying code for class property getters and setters. The omitted code will be generated by genbind to directly call suitable libdom accessors. The type of the property (string, boolean etc.) is derived from the IDL. If this type is incorrect, or is a type the generator cannot automatically produce, then the property will be treated like it has no binding implementation and generate unimplemented warnings.
* make interface operations with elipsis parameters output line directivesVincent Sanders2015-10-011-4/+1
|
* Implement putforwards processing.Vincent Sanders2015-09-301-16/+86
| | | | | | | | | interface attributes with the putforwards extended attribute call the setter specified in that extended attribute. The WebIDL is supposed to ensure the attribute is readonly before allowing a putforwards but we only warn about this as there are several examples where readonly is omitted.
* annotates binding AST with source linenumber and fileVincent Sanders2015-09-281-10/+4
| | | | | Uses annotated AST to put line directives in the generated source so any code errors in the binding can be easily located.
* Simplify genbind AST handling of preface, prologue, epilogue and postfaceVincent Sanders2015-09-261-16/+24
|
* Make the binding parser understand c typesVincent Sanders2015-09-251-19/+43
| | | | | | Instead of c types being opaque strings this makes the bindig parser understand them. This is necessary for extended attribute parsing in future but also makes the binding more easily understandable.
* Cause string arguments to operations to be coerced.Vincent Sanders2015-09-071-2/+3
| | | | | | It appears that string parameters to operations must be coerced from other types instead of throwing a type error to conform to expected behaviour.
* Change dictionary generation to produce C accessors.Vincent Sanders2015-08-301-1/+44
| | | | | | This generates routines which correctly handle reading a member from a dictionary and returning it as the correct c type. Currently the types "any", "user" and "sequence" remain unhandled.
* only publicly export initialisors and finalisors if necessaryVincent Sanders2015-08-211-0/+7
|
* split up duk-libdom generation source as it had grown unweildyVincent Sanders2015-08-211-0/+1334