Program: 85739
Project: 85739
Buggy source:
public boolean switchOnType(ASTCssNode node){
switch (node.getType()) {
case RULE_SET:
    return appendRuleset((RuleSet)node);
case CSS_CLASS:
  return appendCssClass((CssClass)node);
case PSEUDO_CLASS:
return appendPseudoClass((PseudoClass)node);
case PSEUDO_ELEMENT:
return appendPseudoElement((PseudoElement)node);
case NTH:
return appendNth((Nth)node);
case SELECTOR:
return appendSelector((Selector)node);
case SIMPLE_SELECTOR:
return appendSimpleSelector((SimpleSelector)node);
case SELECTOR_OPERATOR:
return appendSelectorOperator((SelectorOperator)node);
case SELECTOR_COMBINATOR:
return appendSelectorCombinator((SelectorCombinator)node);
case SELECTOR_ATTRIBUTE:
return appendSelectorAttribute((SelectorAttribute)node);
case ID_SELECTOR:
return appendIdSelector((IdSelector)node);
case CHARSET_DECLARATION:
return appendCharsetDeclaration((CharsetDeclaration)node);
case FONT_FACE:
return appendFontFace((FontFace)node);
case NAMED_EXPRESSION:
return appendNamedExpression((NamedExpression)node);
case BINARY_EXPRESSION:
return appendComposedExpression((BinaryExpression)node);
case BINARY_EXPRESSION_OPERATOR:
return appendBinaryExpressionOperator((BinaryExpressionOperator)node);
case LIST_EXPRESSION:
return appendListExpression((ListExpression)node);
case LIST_EXPRESSION_OPERATOR:
return appendListExpressionOperator((ListExpressionOperator)node);
case STRING_EXPRESSION:
return appendCssString((CssString)node);
case EMPTY_EXPRESSION:
return appendEmptyExpression((EmptyExpression)node);
case NUMBER:
return appendNumberExpression((NumberExpression)node);
case IDENTIFIER_EXPRESSION:
return appendIdentifierExpression((IdentifierExpression)node);
case UNICODE_RANGE_EXPRESSION:
return appendUnicodeRangeExpression((UnicodeRangeExpression)node);
case COLOR_EXPRESSION:
return appendColorExpression((ColorExpression)node);
case FUNCTION:
return appendFunctionExpression((FunctionExpression)node);
case DECLARATION:
return appendDeclaration((Declaration)node);
case MEDIA:
return appendMedia((Media)node);
case MEDIA_QUERY:
return appendMediaQuery((MediaQuery)node);
case MEDIUM:
return appendMedium((Medium)node);
case MEDIUM_MODIFIER:
return appendMediumModifier((MediumModifier)node);
case MEDIUM_TYPE:
return appendMediumType((MediumType)node);
case FIXED_MEDIA_EXPRESSION:
return appendMediaExpression((FixedMediaExpression)node);
case INTERPOLATED_MEDIA_EXPRESSION:
return appendInterpolatedMediaExpression((InterpolatedMediaExpression)node);
case MEDIUM_EX_FEATURE:
return appendMediaExpressionFeature((MediaExpressionFeature)node);
case STYLE_SHEET:
return appendStyleSheet((StyleSheet)node);
case FAULTY_EXPRESSION:
return appendFaultyExpression((FaultyExpression)node);
case FAULTY_NODE:
return appendFaultyNode((FaultyNode)node);
case ESCAPED_VALUE:
return appendEscapedValue((EscapedValue)node);
case EMBEDDED_SCRIPT:
return appendEmbeddedScript((EmbeddedScript)node);
case KEYFRAMES:
return appendKeyframes((Keyframes)node);
case KEYFRAMES_NAME:
return appendKeyframesName((KeyframesName)node);
case UNKNOWN_AT_RULE:
return appendUnknownAtRule((UnknownAtRule)node);
case DOCUMENT:
return appendDocument((Document)node);
case VIEWPORT:
return appendViewport((Viewport)node);
case GENERAL_BODY:
return appendBodyOptimizeDuplicates((GeneralBody)node);
case PAGE:
return appendPage((Page)node);
case PAGE_MARGIN_BOX:
return appendPageMarginBox((PageMarginBox)node);
case NAME:
return appendName((Name)node);
case IMPORT:
return appendImport((Import)node);
case ANONYMOUS:
return appendAnonymous((AnonymousExpression)node);
case SYNTAX_ONLY_ELEMENT:
return appendSyntaxOnlyElement((SyntaxOnlyElement)node);
case SUPPORTS:
return appendSupports((Supports)node);
case SUPPORTS_QUERY:
return appendSupportsQuery((SupportsQuery)node);
case SUPPORTS_CONDITION_NEGATION:
return appendSupportsConditionNegation((SupportsConditionNegation)node);
case SUPPORTS_CONDITION_PARENTHESES:
return appendSupportsConditionParentheses((SupportsConditionInParentheses)node);
case SUPPORTS_CONDITION_LOGICAL:
return appendSupportsConditionLogical((SupportsLogicalCondition)node);
case SUPPORTS_LOGICAL_OPERATOR:
return appendSupportsLogicalOperator((SupportsLogicalOperator)node);
case INLINE_CONTENT:
return appendInlineContent((InlineContent)node);
case ESCAPED_SELECTOR:
case PARENTHESES_EXPRESSION:
case SIGNED_EXPRESSION:
case VARIABLE:
case DETACHED_RULESET:
case DETACHED_RULESET_REFERENCE:
case INDIRECT_VARIABLE:
case VARIABLE_DECLARATION:
throw new NotACssException(node);
default :
throw new IllegalStateException("String_Node_Str" + node.getType() + "String_Node_Str"+ node.getSourceLine()+ "String_Node_Str"+ node.getSourceColumn());
}
}

Fixed version (ground truth):
public boolean switchOnType(ASTCssNode node){
switch (node.getType()) {
case RULE_SET:
    return appendRuleset((RuleSet)node);
case CSS_CLASS:
  return appendCssClass((CssClass)node);
case PSEUDO_CLASS:
return appendPseudoClass((PseudoClass)node);
case PSEUDO_ELEMENT:
return appendPseudoElement((PseudoElement)node);
case NTH:
return appendNth((Nth)node);
case SELECTOR:
return appendSelector((Selector)node);
case SIMPLE_SELECTOR:
return appendSimpleSelector((SimpleSelector)node);
case SELECTOR_OPERATOR:
return appendSelectorOperator((SelectorOperator)node);
case SELECTOR_COMBINATOR:
return appendSelectorCombinator((SelectorCombinator)node);
case SELECTOR_ATTRIBUTE:
return appendSelectorAttribute((SelectorAttribute)node);
case ID_SELECTOR:
return appendIdSelector((IdSelector)node);
case CHARSET_DECLARATION:
return appendCharsetDeclaration((CharsetDeclaration)node);
case FONT_FACE:
return appendFontFace((FontFace)node);
case NAMED_EXPRESSION:
return appendNamedExpression((NamedExpression)node);
case BINARY_EXPRESSION:
return appendComposedExpression((BinaryExpression)node);
case BINARY_EXPRESSION_OPERATOR:
return appendBinaryExpressionOperator((BinaryExpressionOperator)node);
case LIST_EXPRESSION:
return appendListExpression((ListExpression)node);
case LIST_EXPRESSION_OPERATOR:
return appendListExpressionOperator((ListExpressionOperator)node);
case STRING_EXPRESSION:
return appendCssString((CssString)node);
case EMPTY_EXPRESSION:
return appendEmptyExpression((EmptyExpression)node);
case NUMBER:
return appendNumberExpression((NumberExpression)node);
case IDENTIFIER_EXPRESSION:
return appendIdentifierExpression((IdentifierExpression)node);
case UNICODE_RANGE_EXPRESSION:
return appendUnicodeRangeExpression((UnicodeRangeExpression)node);
case COLOR_EXPRESSION:
return appendColorExpression((ColorExpression)node);
case FUNCTION:
return appendFunctionExpression((FunctionExpression)node);
case DECLARATION:
return appendDeclaration((Declaration)node);
case MEDIA:
return appendMedia((Media)node);
case MEDIA_QUERY:
return appendMediaQuery((MediaQuery)node);
case MEDIUM:
return appendMedium((Medium)node);
case MEDIUM_MODIFIER:
return appendMediumModifier((MediumModifier)node);
case MEDIUM_TYPE:
return appendMediumType((MediumType)node);
case FIXED_MEDIA_EXPRESSION:
return appendMediaExpression((FixedMediaExpression)node);
case INTERPOLATED_MEDIA_EXPRESSION:
return appendInterpolatedMediaExpression((InterpolatedMediaExpression)node);
case MEDIUM_EX_FEATURE:
return appendMediaExpressionFeature((MediaExpressionFeature)node);
case STYLE_SHEET:
return appendStyleSheet((StyleSheet)node);
case FAULTY_EXPRESSION:
return appendFaultyExpression((FaultyExpression)node);
case FAULTY_NODE:
return appendFaultyNode((FaultyNode)node);
case ESCAPED_VALUE:
return appendEscapedValue((EscapedValue)node);
case EMBEDDED_SCRIPT:
return appendEmbeddedScript((EmbeddedScript)node);
case KEYFRAMES:
return appendKeyframes((Keyframes)node);
case KEYFRAMES_NAME:
return appendKeyframesName((KeyframesName)node);
case UNKNOWN_AT_RULE:
return appendUnknownAtRule((UnknownAtRule)node);
case DOCUMENT:
return appendDocument((Document)node);
case VIEWPORT:
return appendViewport((Viewport)node);
case GENERAL_BODY:
return appendBodyOptimizeDuplicates((GeneralBody)node);
case PAGE:
return appendPage((Page)node);
case PAGE_MARGIN_BOX:
return appendPageMarginBox((PageMarginBox)node);
case NAME:
return appendName((Name)node);
case IMPORT:
return appendImport((Import)node);
case ANONYMOUS:
return appendAnonymous((AnonymousExpression)node);
case SYNTAX_ONLY_ELEMENT:
return appendSyntaxOnlyElement((SyntaxOnlyElement)node);
case SUPPORTS:
return appendSupports((Supports)node);
case SUPPORTS_QUERY:
return appendSupportsQuery((SupportsQuery)node);
case SUPPORTS_CONDITION_NEGATION:
return appendSupportsConditionNegation((SupportsConditionNegation)node);
case SUPPORTS_CONDITION_PARENTHESES:
return appendSupportsConditionParentheses((SupportsConditionInParentheses)node);
case SUPPORTS_CONDITION_LOGICAL:
return appendSupportsConditionLogical((SupportsLogicalCondition)node);
case SUPPORTS_LOGICAL_OPERATOR:
return appendSupportsLogicalOperator((SupportsLogicalOperator)node);
case INLINE_CONTENT:
return appendInlineContent((InlineContent)node);
case DETACHED_RULESET:
return appendDetachedRuleset((DetachedRuleset)node);
case ESCAPED_SELECTOR:
case PARENTHESES_EXPRESSION:
case SIGNED_EXPRESSION:
case VARIABLE:
case DETACHED_RULESET_REFERENCE:
case INDIRECT_VARIABLE:
case VARIABLE_DECLARATION:
throw new NotACssException(node);
default :
throw new IllegalStateException("String_Node_Str" + node.getType() + "String_Node_Str"+ node.getSourceLine()+ "String_Node_Str"+ node.getSourceColumn());
}
}