static float trianglearea ( float r ) {
  if ( r < 0 ) return - 1 ;
  return r * r ;
}

static float trianglearea ( float r ) { if ( r < 0 ) return - 1 ; return r * r ; }
(method_declaration (modifiers) type: (floating_point_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (floating_point_type) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (return_statement (unary_expression operand: (decimal_integer_literal)))) (return_statement (binary_expression left: (identifier) right: (identifier)))))