Class: Carbon::Compiler::Node::Statement::Return

Inherits:
Base
  • Object
show all
Defined in:
lib/carbon/compiler/node/statement/return.rb

Overview

A return statement. This is used for control flow to return from the current function. This has one child: the value to return. If no value is given, it returns a void type.

Instance Attribute Summary

Attributes inherited from Base

#children, #location

Method Summary

Methods inherited from Base

#[], #accept, #attributes!, #behavior?, #data, #data?, #each, #identity?, #initialize, #map!, mapping, #merge!, #type!, #update!

Constructor Details

This class inherits a constructor from Carbon::Compiler::Node::Base