Skip to content

Commit

Permalink
Codestyle tweak.
Browse files Browse the repository at this point in the history
  • Loading branch information
aduros committed Feb 4, 2013
1 parent 96cb039 commit 4b5c7b8
Show file tree
Hide file tree
Showing 348 changed files with 1,186 additions and 1,186 deletions.
8 changes: 4 additions & 4 deletions bin/haxerenderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -666,9 +666,9 @@ def w_members(members):
attr_type = to_haxe_local(node.type.id)
if "HaxeOptional" in node.ext_attrs:
w("@:optional ")
w("var %s " % escaped)
w("var %s" % escaped)
if escaped != stripped:
wln("(get,%s) :%s;" % ("null" if node.is_read_only else "set", attr_type))
wln("(get,%s) : %s;" % ("null" if node.is_read_only else "set", attr_type))
wln("private inline function get_%s() : %s {" % (escaped, attr_type))
begin_indent()
wln("return untyped this[\"%s\"];" % stripped)
Expand All @@ -682,8 +682,8 @@ def w_members(members):
wln("}")
else:
if node.is_read_only:
w("(default,null) ")
wln(": %s;" % to_haxe_local(node.type.id))
w("(default,null)")
wln(" : %s;" % to_haxe_local(node.type.id))

elif isinstance(node, IDLConstant):
wln("static inline var %s : %s = %s;" % (escape_keyword(strip_vendor(node.id)),
Expand Down
4 changes: 2 additions & 2 deletions generated/js/html/AnchorElement.hx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ extern class AnchorElement extends Element
<span><a rel="custom" href="https://developer.mozilla.org/en/HTML/HTML5">HTML5</a></span> */
var name : String;

var origin (default,null) : String;
var origin(default,null) : String;

/** The path name component, if any, of the referenced URL. */
var pathname : String;
Expand Down Expand Up @@ -110,7 +110,7 @@ extern class AnchorElement extends Element
var target : String;

/** Same as the <strong><a title="https://developer.mozilla.org/En/DOM/Node.textContent" rel="internal" href="https://developer.mozilla.org/En/DOM/Node.textContent">textContent</a></strong> property. */
var text (default,null) : String;
var text(default,null) : String;

/** Reflects the
Expand Down
16 changes: 8 additions & 8 deletions generated/js/html/Animation.hx
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,23 @@ extern class Animation

static inline var FILL_NONE : Int = 0;

var delay (default,null) : Float;
var delay(default,null) : Float;

var direction (default,null) : Int;
var direction(default,null) : Int;

var duration (default,null) : Float;
var duration(default,null) : Float;

var elapsedTime : Float;

var ended (default,null) : Bool;
var ended(default,null) : Bool;

var fillMode (default,null) : Int;
var fillMode(default,null) : Int;

var iterationCount (default,null) : Int;
var iterationCount(default,null) : Int;

var name (default,null) : String;
var name(default,null) : String;

var paused (default,null) : Bool;
var paused(default,null) : Bool;

function pause() : Void;

Expand Down
4 changes: 2 additions & 2 deletions generated/js/html/AnimationEvent.hx
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ Documentation for this class was provided by <a href="https://developer.mozilla.
extern class AnimationEvent extends Event
{
/** The name of the animation on which the animation event occurred. */
var animationName (default,null) : String;
var animationName(default,null) : String;

/** The amount of time, in seconds, the animation had been running at the time the event occurred. */
var elapsedTime (default,null) : Float;
var elapsedTime(default,null) : Float;

function new(type : String, canBubble : Bool = true, cancelable : Bool = true) : Void;

Expand Down
2 changes: 1 addition & 1 deletion generated/js/html/AnimationList.hx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ package js.html;
@:native("AnimationList")
extern class AnimationList implements ArrayAccess<Animation>
{
var length (default,null) : Int;
var length(default,null) : Int;

function item( index : Int ) : Animation;

Expand Down
14 changes: 7 additions & 7 deletions generated/js/html/AreaElement.hx
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ extern class AreaElement extends Element
var coords : String;

/** The fragment identifier (including the leading hash mark (#)), if any, in the referenced URL. */
var hash (default,null) : String;
var hash(default,null) : String;

/** The hostname and port (if it's not the default port) in the referenced URL. */
var host (default,null) : String;
var host(default,null) : String;

/** The hostname in the referenced URL. */
var hostname (default,null) : String;
var hostname(default,null) : String;

/** Reflects the
Expand All @@ -63,18 +63,18 @@ extern class AreaElement extends Element
var noHref : Bool;

/** The path name component, if any, of the referenced URL. */
var pathname (default,null) : String;
var pathname(default,null) : String;

var ping : String;

/** The port component, if any, of the referenced URL. */
var port (default,null) : String;
var port(default,null) : String;

/** The protocol component (including trailing colon (:)), of the referenced URL. */
var protocol (default,null) : String;
var protocol(default,null) : String;

/** The search element (including leading question mark (?)), if any, of the referenced URL */
var search (default,null) : String;
var search(default,null) : String;

/** Reflects the
Expand Down
2 changes: 1 addition & 1 deletion generated/js/html/ArrayBuffer.hx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Documentation for this class was provided by <a href="https://developer.mozilla.
extern class ArrayBuffer
{
/** The size, in bytes, of the array. This is established when the array is constructed and cannot be changed. <strong>Read only.</strong> */
var byteLength (default,null) : Int;
var byteLength(default,null) : Int;

function new(?arg0 : Dynamic) : Void;

Expand Down
6 changes: 3 additions & 3 deletions generated/js/html/ArrayBufferView.hx
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ Documentation for this class was provided by <a href="https://developer.mozilla.
extern class ArrayBufferView
{
/** The buffer this view references. <strong>Read only.</strong> */
var buffer (default,null) : ArrayBuffer;
var buffer(default,null) : ArrayBuffer;

/** The length, in bytes, of the view. <strong>Read only.</strong> */
var byteLength (default,null) : Int;
var byteLength(default,null) : Int;

/** The offset, in bytes, to the first byte of the view within the <a title="en/JavaScript typed arrays/ArrayBuffer" rel="internal" href="https://developer.mozilla.org/en/JavaScript_typed_arrays/ArrayBuffer"><code>ArrayBuffer</code></a>. */
var byteOffset (default,null) : Int;
var byteOffset(default,null) : Int;

}
8 changes: 4 additions & 4 deletions generated/js/html/Attr.hx
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ Documentation for this class was provided by <a href="https://developer.mozilla.
extern class Attr extends Node
{
/** Indicates whether the attribute is an "ID attribute". An "ID attribute" being an attribute which value is expected to be unique across a DOM Document. In HTML DOM, "id" is the only ID attribute, but XML documents could define others. Whether or not an attribute is unique is often determined by a DTD or other schema description. */
var isId (default,null) : Bool;
var isId(default,null) : Bool;

/** The attribute's name. */
var name (default,null) : String;
var name(default,null) : String;

/** This property has been deprecated and will be removed in the future. Since you can only get Attr objects from elements, you should already know th */
var ownerElement (default,null) : Element;
var ownerElement(default,null) : Element;

/** This property has been deprecated and will be removed in the future; it now always returns <code>true</code>. */
var specified (default,null) : Bool;
var specified(default,null) : Bool;

/** The attribute's value. Setter throws DOMException. */
var value : String;
Expand Down
2 changes: 1 addition & 1 deletion generated/js/html/BarInfo.hx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ package js.html;
@:native("BarInfo")
extern class BarInfo
{
var visible (default,null) : Bool;
var visible(default,null) : Bool;

}
8 changes: 4 additions & 4 deletions generated/js/html/BatteryManager.hx
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ package js.html;
@:native("BatteryManager")
extern class BatteryManager extends EventTarget
{
var charging (default,null) : Bool;
var charging(default,null) : Bool;

var chargingTime (default,null) : Float;
var chargingTime(default,null) : Float;

var dischargingTime (default,null) : Float;
var dischargingTime(default,null) : Float;

var level (default,null) : Float;
var level(default,null) : Float;

var onchargingchange : EventListener;

Expand Down
2 changes: 1 addition & 1 deletion generated/js/html/BeforeLoadEvent.hx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ package js.html;
@:native("BeforeLoadEvent")
extern class BeforeLoadEvent extends Event
{
var url (default,null) : String;
var url(default,null) : String;

function new(type : String, canBubble : Bool = true, cancelable : Bool = true) : Void;

Expand Down
4 changes: 2 additions & 2 deletions generated/js/html/Blob.hx
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ Documentation for this class was provided by <a href="https://developer.mozilla.
extern class Blob
{
/** The size, in bytes, of the data contained in the <code>Blob</code> object. <strong>Read only.</strong> */
var size (default,null) : Int;
var size(default,null) : Int;

/** An ASCII-encoded string, in all lower case, indicating the MIME&nbsp;type of the data contained in the <code>Blob</code>. If the type is unknown, this string is empty. <strong>Read only.</strong> */
var type (default,null) : String;
var type(default,null) : String;

function new(?arg0 : Dynamic, ?arg1 : Dynamic) : Void;

Expand Down
10 changes: 5 additions & 5 deletions generated/js/html/ButtonElement.hx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ extern class ButtonElement extends Element
/** <p>The form that this button is associated with. If the button is a descendant of a form element, then this attribute is the ID of that form element.</p> <p>If the button is not a descendant of a form element, then:</p> <ul> <li>
<span><a rel="custom" href="https://developer.mozilla.org/en/HTML/HTML5">HTML5</a></span> The attribute can be the ID of any form element in the same document.</li> <li>
<span><a rel="custom" href="https://developer.mozilla.org/en/HTML">HTML 4</a></span> The attribute is null.</li> </ul> */
var form (default,null) : FormElement;
var form(default,null) : FormElement;

/** The URI&nbsp;of a program that processes information submitted by the button. If specified, this attribute overrides the
Expand Down Expand Up @@ -73,7 +73,7 @@ extern class ButtonElement extends Element

/** A list of <code><a rel="custom" href="https://developer.mozilla.org/en/HTML/Element/label">&lt;label&gt;</a></code>
elements that are labels for this button. */
var labels (default,null) : NodeList;
var labels(default,null) : NodeList;

/** The name of the object when submitted with a form.
<span><a rel="custom" href="https://developer.mozilla.org/en/HTML/HTML5">HTML5</a></span> If specified, it must not be the empty string. */
Expand All @@ -84,16 +84,16 @@ extern class ButtonElement extends Element
var type : String;

/** A localized message that describes the validation constraints that the control does not satisfy (if any). This attribute is the empty string if the control is not a candidate for constraint validation (<strong>willValidate</strong> is false), or it satisfies its constraints. */
var validationMessage (default,null) : String;
var validationMessage(default,null) : String;

/** The validity states that this button is in. */
var validity (default,null) : ValidityState;
var validity(default,null) : ValidityState;

/** The current form control value of the button.&nbsp; */
var value : String;

/** Indicates whether the button is a candidate for constraint validation. It is false if any conditions bar it from constraint validation. */
var willValidate (default,null) : Bool;
var willValidate(default,null) : Bool;

function checkValidity() : Bool;

Expand Down
2 changes: 1 addition & 1 deletion generated/js/html/CSSFilterValue.hx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ extern class CSSFilterValue extends CSSValueList

static inline var CSS_FILTER_SEPIA : Int = 3;

var operationType (default,null) : Int;
var operationType(default,null) : Int;

}
2 changes: 1 addition & 1 deletion generated/js/html/CSSFontFaceRule.hx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ package js.html;
@:native("CSSFontFaceRule")
extern class CSSFontFaceRule extends CSSRule
{
var style (default,null) : CSSStyleDeclaration;
var style(default,null) : CSSStyleDeclaration;

}
6 changes: 3 additions & 3 deletions generated/js/html/CSSImportRule.hx
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ package js.html;
@:native("CSSImportRule")
extern class CSSImportRule extends CSSRule
{
var href (default,null) : String;
var href(default,null) : String;

var media (default,null) : MediaList;
var media(default,null) : MediaList;

var styleSheet (default,null) : CSSStyleSheet;
var styleSheet(default,null) : CSSStyleSheet;

}
2 changes: 1 addition & 1 deletion generated/js/html/CSSKeyframeRule.hx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ extern class CSSKeyframeRule extends CSSRule
{
var keyText : String;

var style (default,null) : CSSStyleDeclaration;
var style(default,null) : CSSStyleDeclaration;

}
2 changes: 1 addition & 1 deletion generated/js/html/CSSKeyframesRule.hx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ package js.html;
@:native("CSSKeyframesRule")
extern class CSSKeyframesRule extends CSSRule
{
var cssRules (default,null) : CSSRuleList;
var cssRules(default,null) : CSSRuleList;

var name : String;

Expand Down
4 changes: 2 additions & 2 deletions generated/js/html/CSSMediaRule.hx
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ Documentation for this class was provided by <a href="https://developer.mozilla.
extern class CSSMediaRule extends CSSRule
{
/** Returns a <code><a title="en/DOM/CSSRuleList" rel="internal" href="https://developer.mozilla.org/en/DOM/CSSRuleList">CSSRuleList</a></code> of the CSS rules in the media rule. */
var cssRules (default,null) : CSSRuleList;
var cssRules(default,null) : CSSRuleList;

/** Specifies the intended destination medium for style information. */
var media (default,null) : MediaList;
var media(default,null) : MediaList;

function deleteRule( index : Int ) : Void;

Expand Down
2 changes: 1 addition & 1 deletion generated/js/html/CSSPageRule.hx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ extern class CSSPageRule extends CSSRule
{
var selectorText : String;

var style (default,null) : CSSStyleDeclaration;
var style(default,null) : CSSStyleDeclaration;

}
2 changes: 1 addition & 1 deletion generated/js/html/CSSPrimitiveValue.hx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ extern class CSSPrimitiveValue extends CSSValue

static inline var CSS_VW : Int = 26;

var primitiveType (default,null) : Int;
var primitiveType(default,null) : Int;

function getCounterValue() : Counter;

Expand Down
6 changes: 3 additions & 3 deletions generated/js/html/CSSRule.hx
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ extern class CSSRule
var cssText : String;

/** Returns the containing rule, otherwise <code>null</code>. E.g. if this rule is a style rule inside an <code><a title="en/CSS/@media" rel="internal" href="https://developer.mozilla.org/en/CSS/@media">@media</a></code> block, the parent rule would be that <code><a title="en/DOM/CSSMediaRule" rel="internal" href="https://developer.mozilla.org/en/DOM/CSSMediaRule">CSSMediaRule</a></code>. */
var parentRule (default,null) : CSSRule;
var parentRule(default,null) : CSSRule;

/** Returns the <code><a title="en/DOM/CSSStyleSheet" rel="internal" href="https://developer.mozilla.org/en/DOM/CSSStyleSheet">CSSStyleSheet</a></code> object for the style sheet that contains this rule */
var parentStyleSheet (default,null) : CSSStyleSheet;
var parentStyleSheet(default,null) : CSSStyleSheet;

/** One of the <a rel="custom" href="https://developer.mozilla.org/en/DOM/cssRule#Type_constants">Type constants</a>&nbsp;indicating the type of CSS&nbsp;rule. */
var type (default,null) : Int;
var type(default,null) : Int;

}
2 changes: 1 addition & 1 deletion generated/js/html/CSSRuleList.hx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Documentation for this class was provided by <a href="https://developer.mozilla.
@:native("CSSRuleList")
extern class CSSRuleList implements ArrayAccess<CSSRule>
{
var length (default,null) : Int;
var length(default,null) : Int;

function item( index : Int ) : CSSRule;

Expand Down
4 changes: 2 additions & 2 deletions generated/js/html/CSSStyleDeclaration.hx
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ extern class CSSStyleDeclaration implements ArrayAccess<String>
var cssText : String;

/** The number of properties. See the <strong>item</strong> method below. */
var length (default,null) : Int;
var length(default,null) : Int;

/** The containing <code><a href="https://developer.mozilla.org/en/DOM/cssRule" rel="internal" title="en/DOM/cssRule">cssRule</a>.</code> */
var parentRule (default,null) : CSSRule;
var parentRule(default,null) : CSSRule;

/** The <code>animation</code> <a title="CSS" rel="internal" href="https://developer.mozilla.org/en/CSS">CSS</a> property is a shorthand property for <code><a rel="custom" href="https://developer.mozilla.org/en/CSS/animation-name">animation-name</a></code>
, <code><a rel="custom" href="https://developer.mozilla.org/en/CSS/animation-duration">animation-duration</a></code>
Expand Down
2 changes: 1 addition & 1 deletion generated/js/html/CSSStyleRule.hx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ extern class CSSStyleRule extends CSSRule
var selectorText : String;

/** Returns the <code><a title="en/DOM/CSSStyleDeclaration" rel="internal" href="https://developer.mozilla.org/en/DOM/CSSStyleDeclaration">CSSStyleDeclaration</a></code> object for the rule. <strong>Read only.</strong> */
var style (default,null) : CSSStyleDeclaration;
var style(default,null) : CSSStyleDeclaration;

}
Loading

0 comments on commit 4b5c7b8

Please sign in to comment.