| 1 |
module Prism |
| 2 |
class InspectVisitor < Visitor |
| 3 |
class Replace |
| 4 |
attr_reader value: String |
| 5 |
|
| 6 |
def initialize: (String value) -> void |
| 7 |
end |
| 8 |
|
| 9 |
attr_reader indent: String |
| 10 |
attr_reader commands: Array[[String | node | Replace, String]] |
| 11 |
|
| 12 |
def initialize: (?String indent) -> void |
| 13 |
def compose: () -> String |
| 14 |
|
| 15 |
def self.compose: (node node) -> String |
| 16 |
|
| 17 |
private |
| 18 |
|
| 19 |
def inspect_node: (String name, node node) -> String |
| 20 |
def inspect_location: (Location? location) -> String |
| 21 |
end |
| 22 |
end |