private void doPercentTypedAccounting ( Node n ) { JSType type = n . getJSType ( ) ; if ( type == null ) { nullCount ++ ; } else if ( type . isUnknownType ( ) ) { if ( reportUnknownTypes ) { compiler . report ( JSError . make ( n , UNKNOWN_EXPR_TYPE ) ) ; } unknownCount ++ ; } else { typedCount ++ ; } }
Counts the given node in the typed statistics .