Sha256: 4b34d7f0d0d111629af2c65229357485837ccfd5f0af0e51fe2635ef6adff5f4

Contents?: true

Size: 622 Bytes

Versions: 1

Compression:

Stored size: 622 Bytes

Contents

# encoding: utf-8
# frozen_string_literal: true

module Carbon
  module Compiler
    module Node
      module Statement
        # A "catch" statement.  This is used in try/catch/finally for
        # exception handling.
        # This has four children: the name of the variable to localize,
        # the "klass" (type) of the variable, the body of the catch statement,
        # and the following catch/finally statement.  This takes the form of
        # `catch <Name>:<Type> <Body> <Follow>`.
        class Catch < Base
          attributes name: 0, type: 1, body: 2, follow: 3
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
carbon-compiler-0.2.0 lib/carbon/compiler/node/statement/catch.rb