servo/components/script/dom/bindings/codegen
Corey Farwell 43429abce4 Avoid marking codegen method bodies as unsafe twice
`CGAbstractMethod` takes a couple boolean parameters, among others:

* `extern`: will mark the method as `unsafe` and `extern`
* `unsafe`: will wrap the method body in an `unsafe` block

Passing both as `True` should not mark it as `unsafe` twice.

Example from a generated `HTMLCollectionBinding.rs`:

Before:

```
unsafe extern fn get_length(..) -> u8 {
    unsafe {
        // code here
    }
}
```

After

```
unsafe extern fn get_length(..) -> u8 {
    // code here
}
```
2015-08-13 16:50:17 -04:00
..
parser Update the WebIDL parser. 2015-03-13 21:27:58 +01:00
ply Cargoify servo 2014-09-08 20:21:42 -06:00
BindingGen.py Remove tidy blacklist for 'script/dom/bindings/*' 2015-07-09 19:42:31 +09:00
Bindings.conf Upgrade to SM 39 2015-06-19 18:42:48 -04:00
CodegenRust.py Avoid marking codegen method bodies as unsafe twice 2015-08-13 16:50:17 -04:00
Configuration.py Remove dead Python code in binding generating code 2015-08-05 09:17:30 -04:00
GenerateCSS2PropertiesWebIDL.py Remove tidy blacklist for 'script/dom/bindings/*' 2015-07-09 19:42:31 +09:00
GlobalGen.py Remove tidy blacklist for 'script/dom/bindings/*' 2015-07-09 19:42:31 +09:00
pythonpath.py Remove tidy blacklist for 'script/dom/bindings/*' 2015-07-09 19:42:31 +09:00