Class: RBS::AST::Declarations::ClassAlias

Inherits:
AliasDecl show all
Defined in:
lib/rbs/ast/declarations.rb

Instance Attribute Summary

Attributes inherited from AliasDecl

#comment, #location, #new_name, #old_name

Instance Method Summary collapse

Methods inherited from AliasDecl

#==, #hash, #initialize

Constructor Details

This class inherits a constructor from RBS::AST::Declarations::AliasDecl

Instance Method Details

#to_json(state = _ = nil) ⇒ Object



443
444
445
446
447
448
449
450
451
# File 'lib/rbs/ast/declarations.rb', line 443

def to_json(state = _ = nil)
  {
    declaration: :class_alias,
    new_name: new_name,
    old_name: old_name,
    location: location,
    comment: comment
  }.to_json(state)
end