Sha256: d55c98ba925244ca39b48913a9adbe37bd977160d2a9e77ac4218c31e8b744d9

Contents?: true

Size: 510 Bytes

Versions: 1

Compression:

Stored size: 510 Bytes

Contents

# encoding: utf-8
# frozen_string_literal: true

require "carbon/compiler/node/definition/directive/function"

module Carbon
  module Compiler
    module Node
      module Definition
        # A directive.  This is normally anything that starts with a colon
        # in the source file.  This contains information about said directive.
        class Directive < Base
          attributes name: 0, parameters: 1

          def value
            name.value
          end
        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/definition/directive.rb