private void suppressBehavior ( Node behaviorValue , Node reportNode ) { if ( behaviorValue == null ) { compiler . report ( JSError . make ( reportNode , PolymerPassErrors . POLYMER_UNQUALIFIED_BEHAVIOR ) ) ; return ; } if ( behaviorValue . isArrayLit ( ) ) { for ( Node child : behaviorValue . children ( ) ) { suppressBehavior ( child , behaviorValue ) ; } } else if ( behaviorValue . isObjectLit ( ) ) { stripPropertyTypes ( behaviorValue ) ; addBehaviorSuppressions ( behaviorValue ) ; } }
Strip property type annotations and add suppressions on functions .