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



407
408
409
410
411
412
413
414
415
# File 'lib/rbs/ast/declarations.rb', line 407

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