123456789_123456789_123456789_123456789_123456789_

Class: Prism::Reflection::OptionalLocationField

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Field
Instance Chain:
self, Field
Inherits: Prism::Reflection::Field
Defined in: lib/prism/reflection.rb

Overview

An optional location field represents the location of some part of the node in the source code that may or may not be present. It resolves to either a ::Prism::Location or nil in Ruby.

Class Method Summary

Field - Inherited

.new

Initializes the field with the given name.

Instance Attribute Summary

Field - Inherited

#name

The name of the field.

Constructor Details

This class inherits a constructor from Prism::Reflection::Field