@@ -42,10 +42,10 @@ class HiddenFieldCheck extends Check {
4242 }
4343
4444 function checkMethod (method : TokenTree , memberNames : Array <String >, ignoreFormatRE : EReg ) {
45- if (! method .hasChilds ()) throw " function has invalid structure!" ;
45+ if (! method .hasChildren ()) throw " function has invalid structure!" ;
4646
4747 // handle constructor and setters
48- var methodName : TokenTree = method .childs [0 ];
48+ var methodName : TokenTree = method .children [0 ];
4949 if (methodName .is (Kwd (KwdNew )) && ignoreConstructorParameter ) return ;
5050 if (ignoreSetter && isSetterFunction (methodName , memberNames )) return ;
5151 switch (methodName .tok ) {
@@ -81,15 +81,15 @@ class HiddenFieldCheck extends Check {
8181 if ((paramDef == null ) || (paramDef .length != 1 )) {
8282 throw " function parameters have invalid structure!" ;
8383 }
84- var paramList : Array <TokenTree > = paramDef [0 ].childs ;
84+ var paramList : Array <TokenTree > = paramDef [0 ].children ;
8585 for (param in paramList ) checkName (param , memberNames , " Parameter definition" );
8686 }
8787
8888 function checkVars (method : TokenTree , memberNames : Array <String >) {
8989 var vars : Array <TokenTree > = method .filter ([Kwd (KwdVar )], ALL );
9090 for (v in vars ) {
91- if (! v .hasChilds ()) throw " var has invalid structure!" ;
92- checkName (v .childs [0 ], memberNames , " Variable definition" );
91+ if (! v .hasChildren ()) throw " var has invalid structure!" ;
92+ checkName (v .children [0 ], memberNames , " Variable definition" );
9393 }
9494 }
9595
@@ -99,8 +99,8 @@ class HiddenFieldCheck extends Check {
9999 var popens : Array <TokenTree > = f .filter ([POpen ], FIRST , 2 );
100100 if (popens .length <= 0 ) continue ;
101101 var pOpen : TokenTree = popens [0 ];
102- if (! pOpen .hasChilds ()) continue ;
103- checkName (pOpen .childs [0 ], memberNames , " For loop definition" );
102+ if (! pOpen .hasChildren ()) continue ;
103+ checkName (pOpen .children [0 ], memberNames , " For loop definition" );
104104 }
105105 }
106106
@@ -124,8 +124,8 @@ class HiddenFieldCheck extends Check {
124124 // |- Kwd(KwdFunction)
125125 var varFields : Array <TokenTree > = clazz .filter ([Kwd (KwdVar )], FIRST , MAX_FIELD_LEVEL );
126126 for (member in varFields ) {
127- if (! member .hasChilds ()) continue ;
128- switch (member .childs [0 ].tok ) {
127+ if (! member .hasChildren ()) continue ;
128+ switch (member .children [0 ].tok ) {
129129 case Const (CIdent (name )): memberNames .push (name );
130130 default :
131131 }
0 commit comments