Class: RBS::AST::Declarations::ModuleAlias

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



419
420
421
422
423
424
425
426
427
# File 'lib/rbs/ast/declarations.rb', line 419

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