activerecord-ejection_seat 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +11 -8
- data/.ruby-version +1 -0
- data/.tool-versions +1 -0
- data/Gemfile +2 -2
- data/Gemfile.lock +42 -55
- data/README.md +16 -6
- data/Rakefile +6 -6
- data/activerecord-ejection_seat.gemspec +40 -0
- data/lib/activerecord-ejection_seat/attributes_builder.rb +42 -0
- data/lib/activerecord-ejection_seat/ejectable.rb +7 -10
- data/lib/activerecord-ejection_seat/props_builder.rb +35 -23
- data/lib/activerecord-ejection_seat/version.rb +2 -2
- data/lib/activerecord-ejection_seat.rb +6 -3
- data/sorbet/rbi/gems/activemodel@7.0.4.1.rbi +6022 -0
- data/sorbet/rbi/gems/activerecord@7.0.4.1.rbi +37791 -0
- data/sorbet/rbi/gems/activesupport@7.0.4.1.rbi +18127 -0
- data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +11626 -2
- data/sorbet/rbi/gems/minitest@5.17.0.rbi +2319 -0
- data/sorbet/rbi/gems/{parser@3.1.3.0.rbi → parser@3.2.0.0.rbi} +907 -821
- data/sorbet/rbi/gems/{prettier_print@1.1.0.rbi → prettier_print@1.2.0.rbi} +0 -0
- data/sorbet/rbi/gems/{rubocop-ast@1.24.0.rbi → rubocop-ast@1.24.1.rbi} +702 -458
- data/sorbet/rbi/gems/rubocop-minitest@0.26.1.rbi +2320 -0
- data/sorbet/rbi/gems/{rubocop@1.41.0.rbi → rubocop@1.43.0.rbi} +2743 -625
- data/sorbet/rbi/gems/{ruby-lsp@0.3.7.rbi → ruby-lsp@0.3.8.rbi} +2 -1
- data/sorbet/rbi/gems/{sqlite3@1.5.4.rbi → sqlite3@1.6.0.rbi} +73 -0
- data/sorbet/rbi/gems/{syntax_tree@4.3.0.rbi → syntax_tree@5.2.0.rbi} +0 -0
- data/sorbet/rbi/gems/{tapioca@0.10.4.rbi → tapioca@0.10.5.rbi} +279 -96
- data/sorbet/rbi/gems/{unicode-display_width@2.3.0.rbi → unicode-display_width@2.4.2.rbi} +26 -7
- data/sorbet/rbi/gems/{unparser@0.6.5.rbi → unparser@0.6.7.rbi} +323 -64
- data/sorbet/rbi/gems/{yard-sorbet@0.7.0.rbi → yard-sorbet@0.8.0.rbi} +91 -41
- data/sorbet/rbi/shims/location.rbi +13 -0
- data/sorbet/rbi/shims/post.rbi +16 -0
- data/sorbet/rbi/shims/user.rbi +19 -0
- data/sorbet/rbi/todo.rbi +0 -4
- data/sorbet/tapioca/require.rb +16 -2
- metadata +29 -27
- data/sorbet/rbi/gems/activemodel@7.0.4.rbi +0 -8
- data/sorbet/rbi/gems/activerecord@7.0.4.rbi +0 -11
- data/sorbet/rbi/gems/activesupport@7.0.4.rbi +0 -93
- data/sorbet/rbi/gems/minitest@5.16.3.rbi +0 -8
- data/sorbet/rbi/gems/rspec-core@3.12.0.rbi +0 -10588
- data/sorbet/rbi/gems/rspec-expectations@3.12.1.rbi +0 -7817
- data/sorbet/rbi/gems/rspec-mocks@3.12.1.rbi +0 -4994
- data/sorbet/rbi/gems/rspec-support@3.12.0.rbi +0 -1477
- data/sorbet/rbi/gems/rspec@3.12.0.rbi +0 -10
- data/sorbet/rbi/gems/rubocop-rspec@2.16.0.rbi +0 -7650
@@ -5,6 +5,8 @@
|
|
5
5
|
# Please instead update this file by running `bin/tapioca gem unparser`.
|
6
6
|
|
7
7
|
# Library namespace
|
8
|
+
#
|
9
|
+
# source://unparser//lib/unparser/equalizer.rb#3
|
8
10
|
module Unparser
|
9
11
|
class << self
|
10
12
|
# Construct a parser buffer from string
|
@@ -81,6 +83,8 @@ module Unparser
|
|
81
83
|
end
|
82
84
|
|
83
85
|
# Namespace for AST processing tools
|
86
|
+
#
|
87
|
+
# source://unparser//lib/unparser/ast.rb#5
|
84
88
|
module Unparser::AST
|
85
89
|
class << self
|
86
90
|
# Return local variables that get assigned in scope
|
@@ -130,6 +134,8 @@ Unparser::AST::ASSIGN_NODES = T.let(T.unsafe(nil), Set)
|
|
130
134
|
Unparser::AST::CLOSE_NODES = T.let(T.unsafe(nil), Array)
|
131
135
|
|
132
136
|
# AST enumerator
|
137
|
+
#
|
138
|
+
# source://unparser//lib/unparser/ast.rb#80
|
133
139
|
class Unparser::AST::Enumerator
|
134
140
|
include ::Enumerable
|
135
141
|
include ::Unparser::Equalizer::Methods
|
@@ -206,6 +212,8 @@ Unparser::AST::FIRST_CHILD = T.let(T.unsafe(nil), Proc)
|
|
206
212
|
Unparser::AST::INHERIT_NODES = T.let(T.unsafe(nil), Array)
|
207
213
|
|
208
214
|
# Calculated local variable scope for a given node
|
215
|
+
#
|
216
|
+
# source://unparser//lib/unparser/ast/local_variable_scope.rb#7
|
209
217
|
class Unparser::AST::LocalVariableScope
|
210
218
|
include ::Unparser::Equalizer::Methods
|
211
219
|
include ::Unparser::Adamantium
|
@@ -259,6 +267,8 @@ class Unparser::AST::LocalVariableScope
|
|
259
267
|
end
|
260
268
|
|
261
269
|
# Local variable scope enumerator
|
270
|
+
#
|
271
|
+
# source://unparser//lib/unparser/ast/local_variable_scope.rb#85
|
262
272
|
class Unparser::AST::LocalVariableScopeEnumerator
|
263
273
|
include ::Enumerable
|
264
274
|
|
@@ -327,6 +337,8 @@ Unparser::AST::RESET_NODES = T.let(T.unsafe(nil), Array)
|
|
327
337
|
Unparser::AST::TAUTOLOGY = T.let(T.unsafe(nil), Proc)
|
328
338
|
|
329
339
|
# Controlled AST walker walking the AST in deeth first search with pre order
|
340
|
+
#
|
341
|
+
# source://unparser//lib/unparser/ast.rb#164
|
330
342
|
class Unparser::AST::Walker
|
331
343
|
include ::Unparser::Equalizer::Methods
|
332
344
|
|
@@ -354,6 +366,8 @@ end
|
|
354
366
|
# Module to allow class and methods to be abstract
|
355
367
|
#
|
356
368
|
# Original code before vendoring and reduction from: https://github.com/dkubb/abstract_type.
|
369
|
+
#
|
370
|
+
# source://unparser//lib/unparser/abstract_type.rb#7
|
357
371
|
module Unparser::AbstractType
|
358
372
|
mixes_in_class_methods ::Unparser::AbstractType::AbstractMethodDeclarations
|
359
373
|
|
@@ -383,6 +397,7 @@ module Unparser::AbstractType
|
|
383
397
|
end
|
384
398
|
end
|
385
399
|
|
400
|
+
# source://unparser//lib/unparser/abstract_type.rb#47
|
386
401
|
module Unparser::AbstractType::AbstractMethodDeclarations
|
387
402
|
# Create abstract instance methods
|
388
403
|
#
|
@@ -440,6 +455,8 @@ end
|
|
440
455
|
# Allows objects to be made immutable
|
441
456
|
#
|
442
457
|
# Original code before vendoring and reduction from: https://github.com/dkubb/adamantium.
|
458
|
+
#
|
459
|
+
# source://unparser//lib/unparser/adamantium.rb#7
|
443
460
|
module Unparser::Adamantium
|
444
461
|
include ::Unparser::Adamantium::InstanceMethods
|
445
462
|
|
@@ -457,6 +474,8 @@ module Unparser::Adamantium
|
|
457
474
|
end
|
458
475
|
|
459
476
|
# Methods mixed in to adamantium classes
|
477
|
+
#
|
478
|
+
# source://unparser//lib/unparser/adamantium.rb#70
|
460
479
|
module Unparser::Adamantium::ClassMethods
|
461
480
|
# Instantiate a new frozen object
|
462
481
|
#
|
@@ -467,6 +486,7 @@ module Unparser::Adamantium::ClassMethods
|
|
467
486
|
def new(*_arg0); end
|
468
487
|
end
|
469
488
|
|
489
|
+
# source://unparser//lib/unparser/adamantium.rb#8
|
470
490
|
module Unparser::Adamantium::InstanceMethods
|
471
491
|
# A noop #dup for immutable objects
|
472
492
|
#
|
@@ -491,6 +511,8 @@ module Unparser::Adamantium::InstanceMethods
|
|
491
511
|
end
|
492
512
|
|
493
513
|
# Storage for memoized methods
|
514
|
+
#
|
515
|
+
# source://unparser//lib/unparser/adamantium.rb#37
|
494
516
|
class Unparser::Adamantium::Memory
|
495
517
|
# Initialize the memory storage for memoized methods
|
496
518
|
#
|
@@ -511,6 +533,8 @@ class Unparser::Adamantium::Memory
|
|
511
533
|
end
|
512
534
|
|
513
535
|
# Build the memoized method
|
536
|
+
#
|
537
|
+
# source://unparser//lib/unparser/adamantium/method_builder.rb#6
|
514
538
|
class Unparser::Adamantium::MethodBuilder
|
515
539
|
# Initialize an object to build a memoized method
|
516
540
|
#
|
@@ -551,6 +575,8 @@ class Unparser::Adamantium::MethodBuilder
|
|
551
575
|
end
|
552
576
|
|
553
577
|
# Raised when a block is passed to a memoized method
|
578
|
+
#
|
579
|
+
# source://unparser//lib/unparser/adamantium/method_builder.rb#25
|
554
580
|
class Unparser::Adamantium::MethodBuilder::BlockNotAllowedError < ::ArgumentError
|
555
581
|
# Initialize a block not allowed exception
|
556
582
|
#
|
@@ -564,6 +590,8 @@ class Unparser::Adamantium::MethodBuilder::BlockNotAllowedError < ::ArgumentErro
|
|
564
590
|
end
|
565
591
|
|
566
592
|
# Raised when the method arity is invalid
|
593
|
+
#
|
594
|
+
# source://unparser//lib/unparser/adamantium/method_builder.rb#9
|
567
595
|
class Unparser::Adamantium::MethodBuilder::InvalidArityError < ::ArgumentError
|
568
596
|
# Initialize an invalid arity exception
|
569
597
|
#
|
@@ -578,6 +606,8 @@ class Unparser::Adamantium::MethodBuilder::InvalidArityError < ::ArgumentError
|
|
578
606
|
end
|
579
607
|
|
580
608
|
# Methods mixed in to adamantium modules
|
609
|
+
#
|
610
|
+
# source://unparser//lib/unparser/adamantium.rb#84
|
581
611
|
module Unparser::Adamantium::ModuleMethods
|
582
612
|
# Memoize a list of methods
|
583
613
|
#
|
@@ -616,6 +646,8 @@ module Unparser::Adamantium::ModuleMethods
|
|
616
646
|
end
|
617
647
|
|
618
648
|
# Original code before vendoring and reduction from: https://github.com/mbj/anima.
|
649
|
+
#
|
650
|
+
# source://unparser//lib/unparser/anima.rb#5
|
619
651
|
class Unparser::Anima < ::Module
|
620
652
|
include ::Unparser::Equalizer::Methods
|
621
653
|
include ::Unparser::Adamantium
|
@@ -712,6 +744,8 @@ class Unparser::Anima < ::Module
|
|
712
744
|
end
|
713
745
|
|
714
746
|
# An attribute
|
747
|
+
#
|
748
|
+
# source://unparser//lib/unparser/anima/attribute.rb#6
|
715
749
|
class Unparser::Anima::Attribute
|
716
750
|
include ::Unparser::Equalizer::Methods
|
717
751
|
include ::Unparser::Adamantium
|
@@ -769,6 +803,8 @@ class Unparser::Anima::Attribute
|
|
769
803
|
end
|
770
804
|
|
771
805
|
# Abstract base class for anima errors
|
806
|
+
#
|
807
|
+
# source://unparser//lib/unparser/anima/error.rb#6
|
772
808
|
class Unparser::Anima::Error < ::RuntimeError
|
773
809
|
# Initialize object
|
774
810
|
#
|
@@ -785,6 +821,8 @@ end
|
|
785
821
|
Unparser::Anima::Error::FORMAT = T.let(T.unsafe(nil), String)
|
786
822
|
|
787
823
|
# Static instance methods for anima infected classes
|
824
|
+
#
|
825
|
+
# source://unparser//lib/unparser/anima.rb#82
|
788
826
|
module Unparser::Anima::InstanceMethods
|
789
827
|
# Initialize an anima infected object
|
790
828
|
#
|
@@ -825,6 +863,8 @@ module Unparser::Anima::InstanceMethods
|
|
825
863
|
end
|
826
864
|
|
827
865
|
# Buffer used to emit into
|
866
|
+
#
|
867
|
+
# source://unparser//lib/unparser/buffer.rb#6
|
828
868
|
class Unparser::Buffer
|
829
869
|
# Initialize object
|
830
870
|
#
|
@@ -852,20 +892,12 @@ class Unparser::Buffer
|
|
852
892
|
# source://unparser//lib/unparser/buffer.rb#45
|
853
893
|
def append_without_prefix(string); end
|
854
894
|
|
855
|
-
# Capture the content written to the buffer within the block
|
856
|
-
#
|
857
|
-
# @api private
|
858
|
-
# @return [String]
|
859
|
-
#
|
860
|
-
# source://unparser//lib/unparser/buffer.rb#116
|
861
|
-
def capture_content; end
|
862
|
-
|
863
895
|
# Return content of buffer
|
864
896
|
#
|
865
897
|
# @api private
|
866
898
|
# @return [String]
|
867
899
|
#
|
868
|
-
# source://unparser//lib/unparser/buffer.rb#
|
900
|
+
# source://unparser//lib/unparser/buffer.rb#104
|
869
901
|
def content; end
|
870
902
|
|
871
903
|
# Test for a fresh line
|
@@ -873,7 +905,7 @@ class Unparser::Buffer
|
|
873
905
|
# @api private
|
874
906
|
# @return [Boolean]
|
875
907
|
#
|
876
|
-
# source://unparser//lib/unparser/buffer.rb#
|
908
|
+
# source://unparser//lib/unparser/buffer.rb#94
|
877
909
|
def fresh_line?; end
|
878
910
|
|
879
911
|
# Increase indent
|
@@ -881,7 +913,7 @@ class Unparser::Buffer
|
|
881
913
|
# @api private
|
882
914
|
# @return [self]
|
883
915
|
#
|
884
|
-
# source://unparser//lib/unparser/buffer.rb#
|
916
|
+
# source://unparser//lib/unparser/buffer.rb#55
|
885
917
|
def indent; end
|
886
918
|
|
887
919
|
# Write newline
|
@@ -889,10 +921,10 @@ class Unparser::Buffer
|
|
889
921
|
# @api private
|
890
922
|
# @return [self]
|
891
923
|
#
|
892
|
-
# source://unparser//lib/unparser/buffer.rb#
|
924
|
+
# source://unparser//lib/unparser/buffer.rb#77
|
893
925
|
def nl; end
|
894
926
|
|
895
|
-
# source://unparser//lib/unparser/buffer.rb#
|
927
|
+
# source://unparser//lib/unparser/buffer.rb#81
|
896
928
|
def root_indent; end
|
897
929
|
|
898
930
|
# Decrease indent
|
@@ -900,7 +932,7 @@ class Unparser::Buffer
|
|
900
932
|
# @api private
|
901
933
|
# @return [self]
|
902
934
|
#
|
903
|
-
# source://unparser//lib/unparser/buffer.rb#
|
935
|
+
# source://unparser//lib/unparser/buffer.rb#66
|
904
936
|
def unindent; end
|
905
937
|
|
906
938
|
# Write raw fragment to buffer
|
@@ -910,22 +942,24 @@ class Unparser::Buffer
|
|
910
942
|
# @param fragment [String]
|
911
943
|
# @return [self]
|
912
944
|
#
|
913
|
-
# source://unparser//lib/unparser/buffer.rb#
|
945
|
+
# source://unparser//lib/unparser/buffer.rb#115
|
914
946
|
def write(fragment); end
|
915
947
|
|
916
948
|
private
|
917
949
|
|
918
|
-
# source://unparser//lib/unparser/buffer.rb#
|
950
|
+
# source://unparser//lib/unparser/buffer.rb#124
|
919
951
|
def prefix; end
|
920
952
|
end
|
921
953
|
|
922
|
-
# source://unparser//lib/unparser/buffer.rb#
|
954
|
+
# source://unparser//lib/unparser/buffer.rb#122
|
923
955
|
Unparser::Buffer::INDENT_SPACE = T.let(T.unsafe(nil), String)
|
924
956
|
|
925
957
|
# source://unparser//lib/unparser/buffer.rb#8
|
926
958
|
Unparser::Buffer::NL = T.let(T.unsafe(nil), String)
|
927
959
|
|
928
960
|
# Unparser specific AST builder defaulting to modern AST format
|
961
|
+
#
|
962
|
+
# source://unparser//lib/unparser.rb#23
|
929
963
|
class Unparser::Builder < ::Parser::Builders::Default
|
930
964
|
# @return [Builder] a new instance of Builder
|
931
965
|
#
|
@@ -934,6 +968,8 @@ class Unparser::Builder < ::Parser::Builders::Default
|
|
934
968
|
end
|
935
969
|
|
936
970
|
# Unparser CLI implementation
|
971
|
+
#
|
972
|
+
# source://unparser//lib/unparser/cli.rb#5
|
937
973
|
class Unparser::CLI
|
938
974
|
# Initialize object
|
939
975
|
#
|
@@ -991,6 +1027,7 @@ Unparser::CLI::EXIT_FAILURE = T.let(T.unsafe(nil), Integer)
|
|
991
1027
|
# source://unparser//lib/unparser/cli.rb#7
|
992
1028
|
Unparser::CLI::EXIT_SUCCESS = T.let(T.unsafe(nil), Integer)
|
993
1029
|
|
1030
|
+
# source://unparser//lib/unparser/cli.rb#10
|
994
1031
|
class Unparser::CLI::Target
|
995
1032
|
include ::Unparser::AbstractType
|
996
1033
|
extend ::Unparser::AbstractType::AbstractMethodDeclarations
|
@@ -1002,6 +1039,8 @@ class Unparser::CLI::Target
|
|
1002
1039
|
end
|
1003
1040
|
|
1004
1041
|
# Path target
|
1042
|
+
#
|
1043
|
+
# source://unparser//lib/unparser/cli.rb#14
|
1005
1044
|
class Unparser::CLI::Target::Path < ::Unparser::CLI::Target
|
1006
1045
|
include ::Unparser::Equalizer::Methods
|
1007
1046
|
|
@@ -1021,6 +1060,8 @@ class Unparser::CLI::Target::Path < ::Unparser::CLI::Target
|
|
1021
1060
|
end
|
1022
1061
|
|
1023
1062
|
# String target
|
1063
|
+
#
|
1064
|
+
# source://unparser//lib/unparser/cli.rb#33
|
1024
1065
|
class Unparser::CLI::Target::String
|
1025
1066
|
include ::Unparser::Equalizer::Methods
|
1026
1067
|
|
@@ -1040,6 +1081,8 @@ class Unparser::CLI::Target::String
|
|
1040
1081
|
end
|
1041
1082
|
|
1042
1083
|
# Class to colorize strings
|
1084
|
+
#
|
1085
|
+
# source://unparser//lib/unparser/color.rb#5
|
1043
1086
|
class Unparser::Color
|
1044
1087
|
include ::Unparser::Equalizer::Methods
|
1045
1088
|
include ::Unparser::Adamantium
|
@@ -1056,16 +1099,18 @@ class Unparser::Color
|
|
1056
1099
|
def format(text); end
|
1057
1100
|
end
|
1058
1101
|
|
1059
|
-
# source://unparser//lib/unparser/color.rb#
|
1102
|
+
# source://unparser//lib/unparser/color.rb#39
|
1060
1103
|
Unparser::Color::GREEN = T.let(T.unsafe(nil), Unparser::Color)
|
1061
1104
|
|
1062
1105
|
# source://unparser//lib/unparser/color.rb#17
|
1063
1106
|
Unparser::Color::NONE = T.let(T.unsafe(nil), T.untyped)
|
1064
1107
|
|
1065
|
-
# source://unparser//lib/unparser/color.rb#
|
1108
|
+
# source://unparser//lib/unparser/color.rb#38
|
1066
1109
|
Unparser::Color::RED = T.let(T.unsafe(nil), Unparser::Color)
|
1067
1110
|
|
1068
1111
|
# Holds the comments that remain to be emitted
|
1112
|
+
#
|
1113
|
+
# source://unparser//lib/unparser/comments.rb#6
|
1069
1114
|
class Unparser::Comments
|
1070
1115
|
# Initialize object
|
1071
1116
|
#
|
@@ -1156,6 +1201,8 @@ end
|
|
1156
1201
|
# A mixin to define a composition
|
1157
1202
|
#
|
1158
1203
|
# Original code before vendoring and reduction from: https://github.com/mbj/concord.
|
1204
|
+
#
|
1205
|
+
# source://unparser//lib/unparser/concord.rb#7
|
1159
1206
|
class Unparser::Concord < ::Module
|
1160
1207
|
include ::Unparser::Equalizer::Methods
|
1161
1208
|
include ::Unparser::Adamantium
|
@@ -1221,6 +1268,8 @@ end
|
|
1221
1268
|
Unparser::Concord::MAX_NR_OF_OBJECTS = T.let(T.unsafe(nil), Integer)
|
1222
1269
|
|
1223
1270
|
# Mixin for public attribute readers
|
1271
|
+
#
|
1272
|
+
# source://unparser//lib/unparser/concord.rb#97
|
1224
1273
|
class Unparser::Concord::Public < ::Unparser::Concord
|
1225
1274
|
# Hook called when module is included
|
1226
1275
|
#
|
@@ -1233,6 +1282,8 @@ class Unparser::Concord::Public < ::Unparser::Concord
|
|
1233
1282
|
end
|
1234
1283
|
|
1235
1284
|
# All unparser constants maybe included in other libraries.
|
1285
|
+
#
|
1286
|
+
# source://unparser//lib/unparser/constants.rb#5
|
1236
1287
|
module Unparser::Constants; end
|
1237
1288
|
|
1238
1289
|
# All binary operators of the ruby language
|
@@ -1377,6 +1428,8 @@ Unparser::Constants::K_YIELD = T.let(T.unsafe(nil), String)
|
|
1377
1428
|
Unparser::Constants::UNARY_OPERATORS = T.let(T.unsafe(nil), Set)
|
1378
1429
|
|
1379
1430
|
# DSL to help defining emitters
|
1431
|
+
#
|
1432
|
+
# source://unparser//lib/unparser/dsl.rb#5
|
1380
1433
|
module Unparser::DSL
|
1381
1434
|
private
|
1382
1435
|
|
@@ -1394,6 +1447,8 @@ module Unparser::DSL
|
|
1394
1447
|
end
|
1395
1448
|
|
1396
1449
|
# Class to create diffs from source code
|
1450
|
+
#
|
1451
|
+
# source://unparser//lib/unparser/diff.rb#5
|
1397
1452
|
class Unparser::Diff
|
1398
1453
|
include ::Unparser::Equalizer::Methods
|
1399
1454
|
include ::Unparser::Adamantium
|
@@ -1472,6 +1527,8 @@ Unparser::EMPTY_ARRAY = T.let(T.unsafe(nil), Array)
|
|
1472
1527
|
Unparser::EMPTY_STRING = T.let(T.unsafe(nil), String)
|
1473
1528
|
|
1474
1529
|
# RequireBLock
|
1530
|
+
#
|
1531
|
+
# source://unparser//lib/unparser/either.rb#21
|
1475
1532
|
class Unparser::Either
|
1476
1533
|
include ::Unparser::RequireBlock
|
1477
1534
|
include ::Unparser::Equalizer::Methods
|
@@ -1505,6 +1562,7 @@ class Unparser::Either
|
|
1505
1562
|
end
|
1506
1563
|
end
|
1507
1564
|
|
1565
|
+
# source://unparser//lib/unparser/either.rb#53
|
1508
1566
|
class Unparser::Either::Left < ::Unparser::Either
|
1509
1567
|
# Evaluate applicative block
|
1510
1568
|
#
|
@@ -1551,6 +1609,8 @@ class Unparser::Either::Left < ::Unparser::Either
|
|
1551
1609
|
end
|
1552
1610
|
|
1553
1611
|
# Left
|
1612
|
+
#
|
1613
|
+
# source://unparser//lib/unparser/either.rb#103
|
1554
1614
|
class Unparser::Either::Right < ::Unparser::Either
|
1555
1615
|
# Evaluate applicative block
|
1556
1616
|
#
|
@@ -1598,6 +1658,8 @@ class Unparser::Either::Right < ::Unparser::Either
|
|
1598
1658
|
end
|
1599
1659
|
|
1600
1660
|
# Emitter base class
|
1661
|
+
#
|
1662
|
+
# source://unparser//lib/unparser/emitter.rb#7
|
1601
1663
|
class Unparser::Emitter
|
1602
1664
|
include ::Unparser::NodeHelpers
|
1603
1665
|
include ::Unparser::Generation
|
@@ -1670,6 +1732,8 @@ class Unparser::Emitter
|
|
1670
1732
|
end
|
1671
1733
|
|
1672
1734
|
# Emitter for alias nodes
|
1735
|
+
#
|
1736
|
+
# source://unparser//lib/unparser/emitter/alias.rb#6
|
1673
1737
|
class Unparser::Emitter::Alias < ::Unparser::Emitter
|
1674
1738
|
private
|
1675
1739
|
|
@@ -1687,6 +1751,8 @@ class Unparser::Emitter::Alias < ::Unparser::Emitter
|
|
1687
1751
|
end
|
1688
1752
|
|
1689
1753
|
# Arguments emitter
|
1754
|
+
#
|
1755
|
+
# source://unparser//lib/unparser/emitter/args.rb#6
|
1690
1756
|
class Unparser::Emitter::Args < ::Unparser::Emitter
|
1691
1757
|
# source://unparser//lib/unparser/emitter/args.rb#7
|
1692
1758
|
def emit_block_arguments; end
|
@@ -1710,10 +1776,12 @@ class Unparser::Emitter::Args < ::Unparser::Emitter
|
|
1710
1776
|
end
|
1711
1777
|
|
1712
1778
|
# Argument emitter
|
1779
|
+
#
|
1780
|
+
# source://unparser//lib/unparser/emitter/argument.rb#84
|
1713
1781
|
class Unparser::Emitter::Argument < ::Unparser::Emitter
|
1714
1782
|
private
|
1715
1783
|
|
1716
|
-
# source://unparser//lib/unparser/emitter/argument.rb#
|
1784
|
+
# source://unparser//lib/unparser/emitter/argument.rb#91
|
1717
1785
|
def dispatch; end
|
1718
1786
|
|
1719
1787
|
# source://unparser//lib/unparser/dsl.rb#18
|
@@ -1724,6 +1792,8 @@ class Unparser::Emitter::Argument < ::Unparser::Emitter
|
|
1724
1792
|
end
|
1725
1793
|
|
1726
1794
|
# Array literal emitter
|
1795
|
+
#
|
1796
|
+
# source://unparser//lib/unparser/emitter/array.rb#6
|
1727
1797
|
class Unparser::Emitter::Array < ::Unparser::Emitter
|
1728
1798
|
# source://unparser//lib/unparser/emitter/array.rb#9
|
1729
1799
|
def emit_heredoc_reminders; end
|
@@ -1738,6 +1808,8 @@ class Unparser::Emitter::Array < ::Unparser::Emitter
|
|
1738
1808
|
end
|
1739
1809
|
|
1740
1810
|
# Emitter for array patterns
|
1811
|
+
#
|
1812
|
+
# source://unparser//lib/unparser/emitter/array_pattern.rb#6
|
1741
1813
|
class Unparser::Emitter::ArrayPattern < ::Unparser::Emitter
|
1742
1814
|
private
|
1743
1815
|
|
@@ -1749,6 +1821,8 @@ class Unparser::Emitter::ArrayPattern < ::Unparser::Emitter
|
|
1749
1821
|
end
|
1750
1822
|
|
1751
1823
|
# Base class for assignment emitters
|
1824
|
+
#
|
1825
|
+
# source://unparser//lib/unparser/emitter/assignment.rb#7
|
1752
1826
|
class Unparser::Emitter::Assignment < ::Unparser::Emitter
|
1753
1827
|
# source://unparser//lib/unparser/emitter/assignment.rb#14
|
1754
1828
|
def emit_heredoc_reminders; end
|
@@ -1772,6 +1846,8 @@ end
|
|
1772
1846
|
Unparser::Emitter::Assignment::BINARY_OPERATOR = T.let(T.unsafe(nil), Array)
|
1773
1847
|
|
1774
1848
|
# Constant assignment emitter
|
1849
|
+
#
|
1850
|
+
# source://unparser//lib/unparser/emitter/assignment.rb#57
|
1775
1851
|
class Unparser::Emitter::Assignment::Constant < ::Unparser::Emitter::Assignment
|
1776
1852
|
private
|
1777
1853
|
|
@@ -1792,6 +1868,8 @@ class Unparser::Emitter::Assignment::Constant < ::Unparser::Emitter::Assignment
|
|
1792
1868
|
end
|
1793
1869
|
|
1794
1870
|
# Variable assignment emitter
|
1871
|
+
#
|
1872
|
+
# source://unparser//lib/unparser/emitter/assignment.rb#42
|
1795
1873
|
class Unparser::Emitter::Assignment::Variable < ::Unparser::Emitter::Assignment
|
1796
1874
|
private
|
1797
1875
|
|
@@ -1809,6 +1887,8 @@ class Unparser::Emitter::Assignment::Variable < ::Unparser::Emitter::Assignment
|
|
1809
1887
|
end
|
1810
1888
|
|
1811
1889
|
# Emitter for begin nodes
|
1890
|
+
#
|
1891
|
+
# source://unparser//lib/unparser/emitter/begin.rb#7
|
1812
1892
|
class Unparser::Emitter::Begin < ::Unparser::Emitter
|
1813
1893
|
# source://unparser//lib/unparser/emitter/begin.rb#11
|
1814
1894
|
def emit_heredoc_reminders; end
|
@@ -1826,6 +1906,8 @@ class Unparser::Emitter::Begin < ::Unparser::Emitter
|
|
1826
1906
|
end
|
1827
1907
|
|
1828
1908
|
# Non send binary operator / keyword emitter
|
1909
|
+
#
|
1910
|
+
# source://unparser//lib/unparser/emitter/binary.rb#6
|
1829
1911
|
class Unparser::Emitter::Binary < ::Unparser::Emitter
|
1830
1912
|
private
|
1831
1913
|
|
@@ -1837,6 +1919,8 @@ class Unparser::Emitter::Binary < ::Unparser::Emitter
|
|
1837
1919
|
end
|
1838
1920
|
|
1839
1921
|
# Base class for and and or op-assign
|
1922
|
+
#
|
1923
|
+
# source://unparser//lib/unparser/emitter/op_assign.rb#7
|
1840
1924
|
class Unparser::Emitter::BinaryAssign < ::Unparser::Emitter
|
1841
1925
|
# source://unparser//lib/unparser/emitter/op_assign.rb#17
|
1842
1926
|
def emit_heredoc_reminders; end
|
@@ -1860,6 +1944,8 @@ end
|
|
1860
1944
|
Unparser::Emitter::BinaryAssign::MAP = T.let(T.unsafe(nil), Hash)
|
1861
1945
|
|
1862
1946
|
# Block emitter
|
1947
|
+
#
|
1948
|
+
# source://unparser//lib/unparser/emitter/block.rb#7
|
1863
1949
|
class Unparser::Emitter::Block < ::Unparser::Emitter
|
1864
1950
|
private
|
1865
1951
|
|
@@ -1911,10 +1997,12 @@ class Unparser::Emitter::Block < ::Unparser::Emitter
|
|
1911
1997
|
end
|
1912
1998
|
|
1913
1999
|
# Block pass node emitter
|
2000
|
+
#
|
2001
|
+
# source://unparser//lib/unparser/emitter/argument.rb#123
|
1914
2002
|
class Unparser::Emitter::BlockPass < ::Unparser::Emitter
|
1915
2003
|
private
|
1916
2004
|
|
1917
|
-
# source://unparser//lib/unparser/emitter/argument.rb#
|
2005
|
+
# source://unparser//lib/unparser/emitter/argument.rb#130
|
1918
2006
|
def dispatch; end
|
1919
2007
|
|
1920
2008
|
# source://unparser//lib/unparser/dsl.rb#18
|
@@ -1925,6 +2013,8 @@ class Unparser::Emitter::BlockPass < ::Unparser::Emitter
|
|
1925
2013
|
end
|
1926
2014
|
|
1927
2015
|
# Emitter for toplevel constant reference nodes
|
2016
|
+
#
|
2017
|
+
# source://unparser//lib/unparser/emitter/cbase.rb#6
|
1928
2018
|
class Unparser::Emitter::CBase < ::Unparser::Emitter
|
1929
2019
|
private
|
1930
2020
|
|
@@ -1938,6 +2028,8 @@ class Unparser::Emitter::CBase < ::Unparser::Emitter
|
|
1938
2028
|
end
|
1939
2029
|
|
1940
2030
|
# Emitter for case nodes
|
2031
|
+
#
|
2032
|
+
# source://unparser//lib/unparser/emitter/case.rb#6
|
1941
2033
|
class Unparser::Emitter::Case < ::Unparser::Emitter
|
1942
2034
|
private
|
1943
2035
|
|
@@ -1964,6 +2056,8 @@ class Unparser::Emitter::Case < ::Unparser::Emitter
|
|
1964
2056
|
end
|
1965
2057
|
|
1966
2058
|
# Emitter for case guards
|
2059
|
+
#
|
2060
|
+
# source://unparser//lib/unparser/emitter/case_guard.rb#6
|
1967
2061
|
class Unparser::Emitter::CaseGuard < ::Unparser::Emitter
|
1968
2062
|
private
|
1969
2063
|
|
@@ -1981,6 +2075,8 @@ end
|
|
1981
2075
|
Unparser::Emitter::CaseGuard::MAP = T.let(T.unsafe(nil), Hash)
|
1982
2076
|
|
1983
2077
|
# Emitter for case matches
|
2078
|
+
#
|
2079
|
+
# source://unparser//lib/unparser/emitter/case_match.rb#6
|
1984
2080
|
class Unparser::Emitter::CaseMatch < ::Unparser::Emitter
|
1985
2081
|
private
|
1986
2082
|
|
@@ -2004,6 +2100,8 @@ class Unparser::Emitter::CaseMatch < ::Unparser::Emitter
|
|
2004
2100
|
end
|
2005
2101
|
|
2006
2102
|
# Emitter for class nodes
|
2103
|
+
#
|
2104
|
+
# source://unparser//lib/unparser/emitter/class.rb#6
|
2007
2105
|
class Unparser::Emitter::Class < ::Unparser::Emitter
|
2008
2106
|
include ::Unparser::Emitter::LocalVariableRoot
|
2009
2107
|
|
@@ -2032,6 +2130,8 @@ class Unparser::Emitter::Class < ::Unparser::Emitter
|
|
2032
2130
|
end
|
2033
2131
|
|
2034
2132
|
# Emitter for constant access
|
2133
|
+
#
|
2134
|
+
# source://unparser//lib/unparser/emitter/variable.rb#21
|
2035
2135
|
class Unparser::Emitter::Const < ::Unparser::Emitter
|
2036
2136
|
private
|
2037
2137
|
|
@@ -2052,6 +2152,8 @@ class Unparser::Emitter::Const < ::Unparser::Emitter
|
|
2052
2152
|
end
|
2053
2153
|
|
2054
2154
|
# Emitter for const pattern node
|
2155
|
+
#
|
2156
|
+
# source://unparser//lib/unparser/emitter/const_pattern.rb#6
|
2055
2157
|
class Unparser::Emitter::ConstPattern < ::Unparser::Emitter
|
2056
2158
|
private
|
2057
2159
|
|
@@ -2069,6 +2171,8 @@ class Unparser::Emitter::ConstPattern < ::Unparser::Emitter
|
|
2069
2171
|
end
|
2070
2172
|
|
2071
2173
|
# Dynamic string emitter
|
2174
|
+
#
|
2175
|
+
# source://unparser//lib/unparser/emitter/dstr.rb#6
|
2072
2176
|
class Unparser::Emitter::DStr < ::Unparser::Emitter
|
2073
2177
|
# source://unparser//lib/unparser/emitter/dstr.rb#10
|
2074
2178
|
def emit_heredoc_reminders; end
|
@@ -2080,6 +2184,8 @@ class Unparser::Emitter::DStr < ::Unparser::Emitter
|
|
2080
2184
|
end
|
2081
2185
|
|
2082
2186
|
# Dynamic symbol literal emitter
|
2187
|
+
#
|
2188
|
+
# source://unparser//lib/unparser/emitter/dsym.rb#6
|
2083
2189
|
class Unparser::Emitter::DSym < ::Unparser::Emitter
|
2084
2190
|
private
|
2085
2191
|
|
@@ -2094,6 +2200,8 @@ class Unparser::Emitter::DSym < ::Unparser::Emitter
|
|
2094
2200
|
end
|
2095
2201
|
|
2096
2202
|
# Emitter for def node
|
2203
|
+
#
|
2204
|
+
# source://unparser//lib/unparser/emitter/def.rb#6
|
2097
2205
|
class Unparser::Emitter::Def < ::Unparser::Emitter
|
2098
2206
|
include ::Unparser::Emitter::LocalVariableRoot
|
2099
2207
|
|
@@ -2116,6 +2224,8 @@ class Unparser::Emitter::Def < ::Unparser::Emitter
|
|
2116
2224
|
end
|
2117
2225
|
|
2118
2226
|
# Instance def emitter
|
2227
|
+
#
|
2228
|
+
# source://unparser//lib/unparser/emitter/def.rb#34
|
2119
2229
|
class Unparser::Emitter::Def::Instance < ::Unparser::Emitter::Def
|
2120
2230
|
private
|
2121
2231
|
|
@@ -2136,6 +2246,8 @@ class Unparser::Emitter::Def::Instance < ::Unparser::Emitter::Def
|
|
2136
2246
|
end
|
2137
2247
|
|
2138
2248
|
# Emitter for defines on singleton
|
2249
|
+
#
|
2250
|
+
# source://unparser//lib/unparser/emitter/def.rb#48
|
2139
2251
|
class Unparser::Emitter::Def::Singleton < ::Unparser::Emitter::Def
|
2140
2252
|
private
|
2141
2253
|
|
@@ -2164,6 +2276,8 @@ class Unparser::Emitter::Def::Singleton < ::Unparser::Emitter::Def
|
|
2164
2276
|
end
|
2165
2277
|
|
2166
2278
|
# Emitter for defined? nodes
|
2279
|
+
#
|
2280
|
+
# source://unparser//lib/unparser/emitter/defined.rb#6
|
2167
2281
|
class Unparser::Emitter::Defined < ::Unparser::Emitter
|
2168
2282
|
private
|
2169
2283
|
|
@@ -2178,6 +2292,8 @@ class Unparser::Emitter::Defined < ::Unparser::Emitter
|
|
2178
2292
|
end
|
2179
2293
|
|
2180
2294
|
# Emitter for in pattern nodes
|
2295
|
+
#
|
2296
|
+
# source://unparser//lib/unparser/emitter/find_pattern.rb#6
|
2181
2297
|
class Unparser::Emitter::FindPattern < ::Unparser::Emitter
|
2182
2298
|
private
|
2183
2299
|
|
@@ -2186,6 +2302,8 @@ class Unparser::Emitter::FindPattern < ::Unparser::Emitter
|
|
2186
2302
|
end
|
2187
2303
|
|
2188
2304
|
# Emitter for flip flops
|
2305
|
+
#
|
2306
|
+
# source://unparser//lib/unparser/emitter/flipflop.rb#6
|
2189
2307
|
class Unparser::Emitter::FlipFlop < ::Unparser::Emitter
|
2190
2308
|
# source://unparser//lib/unparser/emitter/flipflop.rb#17
|
2191
2309
|
def symbol_name; end
|
@@ -2212,6 +2330,8 @@ Unparser::Emitter::FlipFlop::MAP = T.let(T.unsafe(nil), Hash)
|
|
2212
2330
|
Unparser::Emitter::FlipFlop::SYMBOLS = T.let(T.unsafe(nil), Hash)
|
2213
2331
|
|
2214
2332
|
# Emiter for float literals
|
2333
|
+
#
|
2334
|
+
# source://unparser//lib/unparser/emitter/float.rb#6
|
2215
2335
|
class Unparser::Emitter::Float < ::Unparser::Emitter
|
2216
2336
|
private
|
2217
2337
|
|
@@ -2232,6 +2352,8 @@ Unparser::Emitter::Float::INFINITY = T.let(T.unsafe(nil), Float)
|
|
2232
2352
|
Unparser::Emitter::Float::NEG_INFINITY = T.let(T.unsafe(nil), Float)
|
2233
2353
|
|
2234
2354
|
# Emitter control flow modifiers
|
2355
|
+
#
|
2356
|
+
# source://unparser//lib/unparser/emitter/flow_modifier.rb#6
|
2235
2357
|
class Unparser::Emitter::FlowModifier < ::Unparser::Emitter
|
2236
2358
|
# source://unparser//lib/unparser/emitter/flow_modifier.rb#17
|
2237
2359
|
def emit_heredoc_reminders; end
|
@@ -2249,6 +2371,8 @@ end
|
|
2249
2371
|
Unparser::Emitter::FlowModifier::MAP = T.let(T.unsafe(nil), Hash)
|
2250
2372
|
|
2251
2373
|
# Emitter for for nodes
|
2374
|
+
#
|
2375
|
+
# source://unparser//lib/unparser/emitter/for.rb#6
|
2252
2376
|
class Unparser::Emitter::For < ::Unparser::Emitter
|
2253
2377
|
private
|
2254
2378
|
|
@@ -2271,27 +2395,47 @@ class Unparser::Emitter::For < ::Unparser::Emitter
|
|
2271
2395
|
def remaining_children; end
|
2272
2396
|
end
|
2273
2397
|
|
2398
|
+
# Emitter for forwarding arguments
|
2399
|
+
#
|
2400
|
+
# source://unparser//lib/unparser/emitter/argument.rb#6
|
2401
|
+
class Unparser::Emitter::ForwardArg < ::Unparser::Emitter
|
2402
|
+
private
|
2403
|
+
|
2404
|
+
# source://unparser//lib/unparser/emitter/argument.rb#20
|
2405
|
+
def dispatch; end
|
2406
|
+
|
2407
|
+
# source://unparser//lib/unparser/dsl.rb#18
|
2408
|
+
def name; end
|
2409
|
+
|
2410
|
+
# source://unparser//lib/unparser/dsl.rb#11
|
2411
|
+
def remaining_children; end
|
2412
|
+
end
|
2413
|
+
|
2414
|
+
# source://unparser//lib/unparser/emitter/argument.rb#7
|
2415
|
+
Unparser::Emitter::ForwardArg::MAP = T.let(T.unsafe(nil), Hash)
|
2416
|
+
|
2274
2417
|
# Emitter for Hash literals
|
2418
|
+
#
|
2419
|
+
# source://unparser//lib/unparser/emitter/hash.rb#6
|
2275
2420
|
class Unparser::Emitter::Hash < ::Unparser::Emitter
|
2276
|
-
# source://unparser//lib/unparser/emitter/hash.rb#17
|
2277
|
-
def emit_heredoc_reminders; end
|
2278
|
-
|
2279
2421
|
# source://unparser//lib/unparser/emitter/hash.rb#9
|
2280
|
-
def
|
2422
|
+
def emit_heredoc_reminders; end
|
2281
2423
|
|
2282
2424
|
private
|
2283
2425
|
|
2284
|
-
# source://unparser//lib/unparser/emitter/hash.rb#
|
2426
|
+
# source://unparser//lib/unparser/emitter/hash.rb#15
|
2285
2427
|
def dispatch; end
|
2286
2428
|
|
2287
|
-
# source://unparser//lib/unparser/emitter/hash.rb#
|
2429
|
+
# source://unparser//lib/unparser/emitter/hash.rb#31
|
2288
2430
|
def emit_hash_body; end
|
2289
2431
|
|
2290
|
-
# source://unparser//lib/unparser/emitter/hash.rb#
|
2432
|
+
# source://unparser//lib/unparser/emitter/hash.rb#27
|
2291
2433
|
def emit_heredoc_reminder_member(node); end
|
2292
2434
|
end
|
2293
2435
|
|
2294
2436
|
# Emitter for hash patterns
|
2437
|
+
#
|
2438
|
+
# source://unparser//lib/unparser/emitter/hash_pattern.rb#6
|
2295
2439
|
class Unparser::Emitter::HashPattern < ::Unparser::Emitter
|
2296
2440
|
# source://unparser//lib/unparser/emitter/hash_pattern.rb#10
|
2297
2441
|
def emit_const_pattern; end
|
@@ -2318,6 +2462,8 @@ class Unparser::Emitter::HashPattern < ::Unparser::Emitter
|
|
2318
2462
|
end
|
2319
2463
|
|
2320
2464
|
# Base class for pre and postexe emitters
|
2465
|
+
#
|
2466
|
+
# source://unparser//lib/unparser/emitter/hookexe.rb#6
|
2321
2467
|
class Unparser::Emitter::Hookexe < ::Unparser::Emitter
|
2322
2468
|
private
|
2323
2469
|
|
@@ -2335,6 +2481,8 @@ end
|
|
2335
2481
|
Unparser::Emitter::Hookexe::MAP = T.let(T.unsafe(nil), Hash)
|
2336
2482
|
|
2337
2483
|
# Emitter if nodes
|
2484
|
+
#
|
2485
|
+
# source://unparser//lib/unparser/emitter/if.rb#6
|
2338
2486
|
class Unparser::Emitter::If < ::Unparser::Emitter
|
2339
2487
|
# source://unparser//lib/unparser/emitter/if.rb#11
|
2340
2488
|
def emit_ternary; end
|
@@ -2386,6 +2534,8 @@ class Unparser::Emitter::If < ::Unparser::Emitter
|
|
2386
2534
|
end
|
2387
2535
|
|
2388
2536
|
# Emitter for in pattern nodes
|
2537
|
+
#
|
2538
|
+
# source://unparser//lib/unparser/emitter/in_match.rb#6
|
2389
2539
|
class Unparser::Emitter::InMatch < ::Unparser::Emitter
|
2390
2540
|
private
|
2391
2541
|
|
@@ -2403,6 +2553,8 @@ class Unparser::Emitter::InMatch < ::Unparser::Emitter
|
|
2403
2553
|
end
|
2404
2554
|
|
2405
2555
|
# Emitter for in pattern nodes
|
2556
|
+
#
|
2557
|
+
# source://unparser//lib/unparser/emitter/in_pattern.rb#6
|
2406
2558
|
class Unparser::Emitter::InPattern < ::Unparser::Emitter
|
2407
2559
|
private
|
2408
2560
|
|
@@ -2426,6 +2578,8 @@ class Unparser::Emitter::InPattern < ::Unparser::Emitter
|
|
2426
2578
|
end
|
2427
2579
|
|
2428
2580
|
# Emitter for send to index references
|
2581
|
+
#
|
2582
|
+
# source://unparser//lib/unparser/emitter/index.rb#6
|
2429
2583
|
class Unparser::Emitter::Index < ::Unparser::Emitter
|
2430
2584
|
private
|
2431
2585
|
|
@@ -2437,6 +2591,8 @@ class Unparser::Emitter::Index < ::Unparser::Emitter
|
|
2437
2591
|
end
|
2438
2592
|
|
2439
2593
|
# Emitter for assign to index nodes
|
2594
|
+
#
|
2595
|
+
# source://unparser//lib/unparser/emitter/index.rb#34
|
2440
2596
|
class Unparser::Emitter::Index::Assign < ::Unparser::Emitter::Index
|
2441
2597
|
# source://unparser//lib/unparser/emitter/index.rb#47
|
2442
2598
|
def dispatch; end
|
@@ -2459,6 +2615,7 @@ Unparser::Emitter::Index::Assign::NO_VALUE_PARENT = T.let(T.unsafe(nil), Set)
|
|
2459
2615
|
# source://unparser//lib/unparser/emitter/index.rb#38
|
2460
2616
|
Unparser::Emitter::Index::Assign::VALUE_RANGE = T.let(T.unsafe(nil), Range)
|
2461
2617
|
|
2618
|
+
# source://unparser//lib/unparser/emitter/index.rb#19
|
2462
2619
|
class Unparser::Emitter::Index::Reference < ::Unparser::Emitter::Index
|
2463
2620
|
private
|
2464
2621
|
|
@@ -2470,6 +2627,8 @@ class Unparser::Emitter::Index::Reference < ::Unparser::Emitter::Index
|
|
2470
2627
|
end
|
2471
2628
|
|
2472
2629
|
# Emitter for explicit begins
|
2630
|
+
#
|
2631
|
+
# source://unparser//lib/unparser/emitter/kwbegin.rb#6
|
2473
2632
|
class Unparser::Emitter::KWBegin < ::Unparser::Emitter
|
2474
2633
|
private
|
2475
2634
|
|
@@ -2481,10 +2640,12 @@ class Unparser::Emitter::KWBegin < ::Unparser::Emitter
|
|
2481
2640
|
end
|
2482
2641
|
|
2483
2642
|
# Optional keyword argument emitter
|
2643
|
+
#
|
2644
|
+
# source://unparser//lib/unparser/emitter/argument.rb#41
|
2484
2645
|
class Unparser::Emitter::KeywordOptional < ::Unparser::Emitter
|
2485
2646
|
private
|
2486
2647
|
|
2487
|
-
# source://unparser//lib/unparser/emitter/argument.rb#
|
2648
|
+
# source://unparser//lib/unparser/emitter/argument.rb#48
|
2488
2649
|
def dispatch; end
|
2489
2650
|
|
2490
2651
|
# source://unparser//lib/unparser/dsl.rb#18
|
@@ -2498,6 +2659,8 @@ class Unparser::Emitter::KeywordOptional < ::Unparser::Emitter
|
|
2498
2659
|
end
|
2499
2660
|
|
2500
2661
|
# Emitter for splats
|
2662
|
+
#
|
2663
|
+
# source://unparser//lib/unparser/emitter/splat.rb#6
|
2501
2664
|
class Unparser::Emitter::KwSplat < ::Unparser::Emitter
|
2502
2665
|
private
|
2503
2666
|
|
@@ -2512,10 +2675,12 @@ class Unparser::Emitter::KwSplat < ::Unparser::Emitter
|
|
2512
2675
|
end
|
2513
2676
|
|
2514
2677
|
# Keyword argument emitter
|
2678
|
+
#
|
2679
|
+
# source://unparser//lib/unparser/emitter/argument.rb#56
|
2515
2680
|
class Unparser::Emitter::Kwarg < ::Unparser::Emitter
|
2516
2681
|
private
|
2517
2682
|
|
2518
|
-
# source://unparser//lib/unparser/emitter/argument.rb#
|
2683
|
+
# source://unparser//lib/unparser/emitter/argument.rb#63
|
2519
2684
|
def dispatch; end
|
2520
2685
|
|
2521
2686
|
# source://unparser//lib/unparser/dsl.rb#18
|
@@ -2525,12 +2690,15 @@ class Unparser::Emitter::Kwarg < ::Unparser::Emitter
|
|
2525
2690
|
def remaining_children; end
|
2526
2691
|
end
|
2527
2692
|
|
2693
|
+
# source://unparser//lib/unparser/emitter/kwargs.rb#5
|
2528
2694
|
class Unparser::Emitter::Kwargs < ::Unparser::Emitter
|
2529
2695
|
# source://unparser//lib/unparser/emitter/kwargs.rb#8
|
2530
2696
|
def dispatch; end
|
2531
2697
|
end
|
2532
2698
|
|
2533
2699
|
# Emitter for lambda nodes
|
2700
|
+
#
|
2701
|
+
# source://unparser//lib/unparser/emitter/lambda.rb#6
|
2534
2702
|
class Unparser::Emitter::Lambda < ::Unparser::Emitter
|
2535
2703
|
private
|
2536
2704
|
|
@@ -2538,6 +2706,7 @@ class Unparser::Emitter::Lambda < ::Unparser::Emitter
|
|
2538
2706
|
def dispatch; end
|
2539
2707
|
end
|
2540
2708
|
|
2709
|
+
# source://unparser//lib/unparser/emitter.rb#20
|
2541
2710
|
module Unparser::Emitter::LocalVariableRoot
|
2542
2711
|
# Return local variable root
|
2543
2712
|
#
|
@@ -2556,6 +2725,8 @@ module Unparser::Emitter::LocalVariableRoot
|
|
2556
2725
|
end
|
2557
2726
|
|
2558
2727
|
# Emitter for multiple assignment nodes
|
2728
|
+
#
|
2729
|
+
# source://unparser//lib/unparser/emitter/masgn.rb#6
|
2559
2730
|
class Unparser::Emitter::MASGN < ::Unparser::Emitter
|
2560
2731
|
private
|
2561
2732
|
|
@@ -2573,6 +2744,8 @@ class Unparser::Emitter::MASGN < ::Unparser::Emitter
|
|
2573
2744
|
end
|
2574
2745
|
|
2575
2746
|
# Emitter for multiple assignment left hand side
|
2747
|
+
#
|
2748
|
+
# source://unparser//lib/unparser/emitter/mlhs.rb#6
|
2576
2749
|
class Unparser::Emitter::MLHS < ::Unparser::Emitter
|
2577
2750
|
private
|
2578
2751
|
|
@@ -2590,9 +2763,13 @@ end
|
|
2590
2763
|
Unparser::Emitter::MLHS::NO_COMMA = T.let(T.unsafe(nil), Array)
|
2591
2764
|
|
2592
2765
|
# Base class for special match node emitters
|
2766
|
+
#
|
2767
|
+
# source://unparser//lib/unparser/emitter/match.rb#7
|
2593
2768
|
class Unparser::Emitter::Match < ::Unparser::Emitter; end
|
2594
2769
|
|
2595
2770
|
# Emitter for match current line
|
2771
|
+
#
|
2772
|
+
# source://unparser//lib/unparser/emitter/match.rb#25
|
2596
2773
|
class Unparser::Emitter::Match::CurrentLine < ::Unparser::Emitter::Match
|
2597
2774
|
private
|
2598
2775
|
|
@@ -2607,6 +2784,8 @@ class Unparser::Emitter::Match::CurrentLine < ::Unparser::Emitter::Match
|
|
2607
2784
|
end
|
2608
2785
|
|
2609
2786
|
# Emitter for match with local variable assignment
|
2787
|
+
#
|
2788
|
+
# source://unparser//lib/unparser/emitter/match.rb#9
|
2610
2789
|
class Unparser::Emitter::Match::Lvasgn < ::Unparser::Emitter::Match
|
2611
2790
|
private
|
2612
2791
|
|
@@ -2624,6 +2803,8 @@ class Unparser::Emitter::Match::Lvasgn < ::Unparser::Emitter::Match
|
|
2624
2803
|
end
|
2625
2804
|
|
2626
2805
|
# Emitter for in pattern nodes
|
2806
|
+
#
|
2807
|
+
# source://unparser//lib/unparser/emitter/match_alt.rb#6
|
2627
2808
|
class Unparser::Emitter::MatchAlt < ::Unparser::Emitter
|
2628
2809
|
private
|
2629
2810
|
|
@@ -2641,6 +2822,8 @@ class Unparser::Emitter::MatchAlt < ::Unparser::Emitter
|
|
2641
2822
|
end
|
2642
2823
|
|
2643
2824
|
# Emitter for in pattern nodes
|
2825
|
+
#
|
2826
|
+
# source://unparser//lib/unparser/emitter/match_as.rb#6
|
2644
2827
|
class Unparser::Emitter::MatchAs < ::Unparser::Emitter
|
2645
2828
|
private
|
2646
2829
|
|
@@ -2658,6 +2841,8 @@ class Unparser::Emitter::MatchAs < ::Unparser::Emitter
|
|
2658
2841
|
end
|
2659
2842
|
|
2660
2843
|
# Emitter for in pattern nodes
|
2844
|
+
#
|
2845
|
+
# source://unparser//lib/unparser/emitter/match_pattern.rb#6
|
2661
2846
|
class Unparser::Emitter::MatchPattern < ::Unparser::Emitter
|
2662
2847
|
private
|
2663
2848
|
|
@@ -2680,6 +2865,7 @@ end
|
|
2680
2865
|
# source://unparser//lib/unparser/emitter/match_pattern.rb#14
|
2681
2866
|
Unparser::Emitter::MatchPattern::SYMBOL = T.let(T.unsafe(nil), String)
|
2682
2867
|
|
2868
|
+
# source://unparser//lib/unparser/emitter/match_pattern_p.rb#5
|
2683
2869
|
class Unparser::Emitter::MatchPatternP < ::Unparser::Emitter
|
2684
2870
|
private
|
2685
2871
|
|
@@ -2697,6 +2883,8 @@ class Unparser::Emitter::MatchPatternP < ::Unparser::Emitter
|
|
2697
2883
|
end
|
2698
2884
|
|
2699
2885
|
# Emiter for match rest nodes
|
2886
|
+
#
|
2887
|
+
# source://unparser//lib/unparser/emitter/match_rest.rb#6
|
2700
2888
|
class Unparser::Emitter::MatchRest < ::Unparser::Emitter
|
2701
2889
|
# source://unparser//lib/unparser/emitter/match_rest.rb#11
|
2702
2890
|
def dispatch; end
|
@@ -2720,6 +2908,8 @@ class Unparser::Emitter::MatchRest < ::Unparser::Emitter
|
|
2720
2908
|
end
|
2721
2909
|
|
2722
2910
|
# Emitter for in pattern nodes
|
2911
|
+
#
|
2912
|
+
# source://unparser//lib/unparser/emitter/match_var.rb#6
|
2723
2913
|
class Unparser::Emitter::MatchVar < ::Unparser::Emitter
|
2724
2914
|
private
|
2725
2915
|
|
@@ -2734,6 +2924,8 @@ class Unparser::Emitter::MatchVar < ::Unparser::Emitter
|
|
2734
2924
|
end
|
2735
2925
|
|
2736
2926
|
# Emitter for module nodes
|
2927
|
+
#
|
2928
|
+
# source://unparser//lib/unparser/emitter/module.rb#6
|
2737
2929
|
class Unparser::Emitter::Module < ::Unparser::Emitter
|
2738
2930
|
include ::Unparser::Emitter::LocalVariableRoot
|
2739
2931
|
|
@@ -2755,27 +2947,12 @@ class Unparser::Emitter::Module < ::Unparser::Emitter
|
|
2755
2947
|
def remaining_children; end
|
2756
2948
|
end
|
2757
2949
|
|
2758
|
-
# Emitter for block and kwrestarg arguments
|
2759
|
-
class Unparser::Emitter::Morearg < ::Unparser::Emitter
|
2760
|
-
private
|
2761
|
-
|
2762
|
-
# source://unparser//lib/unparser/emitter/argument.rb#18
|
2763
|
-
def dispatch; end
|
2764
|
-
|
2765
|
-
# source://unparser//lib/unparser/dsl.rb#18
|
2766
|
-
def name; end
|
2767
|
-
|
2768
|
-
# source://unparser//lib/unparser/dsl.rb#11
|
2769
|
-
def remaining_children; end
|
2770
|
-
end
|
2771
|
-
|
2772
|
-
# source://unparser//lib/unparser/emitter/argument.rb#7
|
2773
|
-
Unparser::Emitter::Morearg::MAP = T.let(T.unsafe(nil), Hash)
|
2774
|
-
|
2775
2950
|
# source://unparser//lib/unparser/emitter.rb#18
|
2776
2951
|
Unparser::Emitter::NO_INDENT = T.let(T.unsafe(nil), Array)
|
2777
2952
|
|
2778
2953
|
# Emitter for nth_ref nodes (regexp captures)
|
2954
|
+
#
|
2955
|
+
# source://unparser//lib/unparser/emitter/variable.rb#42
|
2779
2956
|
class Unparser::Emitter::NthRef < ::Unparser::Emitter
|
2780
2957
|
private
|
2781
2958
|
|
@@ -2793,6 +2970,8 @@ end
|
|
2793
2970
|
Unparser::Emitter::NthRef::PREFIX = T.let(T.unsafe(nil), String)
|
2794
2971
|
|
2795
2972
|
# Emitter for op assign
|
2973
|
+
#
|
2974
|
+
# source://unparser//lib/unparser/emitter/op_assign.rb#33
|
2796
2975
|
class Unparser::Emitter::OpAssign < ::Unparser::Emitter
|
2797
2976
|
private
|
2798
2977
|
|
@@ -2816,10 +2995,12 @@ class Unparser::Emitter::OpAssign < ::Unparser::Emitter
|
|
2816
2995
|
end
|
2817
2996
|
|
2818
2997
|
# Optional argument emitter
|
2998
|
+
#
|
2999
|
+
# source://unparser//lib/unparser/emitter/argument.rb#27
|
2819
3000
|
class Unparser::Emitter::Optarg < ::Unparser::Emitter
|
2820
3001
|
private
|
2821
3002
|
|
2822
|
-
# source://unparser//lib/unparser/emitter/argument.rb#
|
3003
|
+
# source://unparser//lib/unparser/emitter/argument.rb#34
|
2823
3004
|
def dispatch; end
|
2824
3005
|
|
2825
3006
|
# source://unparser//lib/unparser/dsl.rb#18
|
@@ -2833,6 +3014,8 @@ class Unparser::Emitter::Optarg < ::Unparser::Emitter
|
|
2833
3014
|
end
|
2834
3015
|
|
2835
3016
|
# Emitter for key value pairs in hash literals or kwargs
|
3017
|
+
#
|
3018
|
+
# source://unparser//lib/unparser/emitter/pair.rb#6
|
2836
3019
|
class Unparser::Emitter::Pair < ::Unparser::Emitter
|
2837
3020
|
private
|
2838
3021
|
|
@@ -2858,6 +3041,8 @@ end
|
|
2858
3041
|
Unparser::Emitter::Pair::BAREWORD = T.let(T.unsafe(nil), Regexp)
|
2859
3042
|
|
2860
3043
|
# Emitter for pin nodes
|
3044
|
+
#
|
3045
|
+
# source://unparser//lib/unparser/emitter/pin.rb#6
|
2861
3046
|
class Unparser::Emitter::Pin < ::Unparser::Emitter
|
2862
3047
|
private
|
2863
3048
|
|
@@ -2872,6 +3057,8 @@ class Unparser::Emitter::Pin < ::Unparser::Emitter
|
|
2872
3057
|
end
|
2873
3058
|
|
2874
3059
|
# Emitter for postconditions
|
3060
|
+
#
|
3061
|
+
# source://unparser//lib/unparser/emitter/repetition.rb#7
|
2875
3062
|
class Unparser::Emitter::Post < ::Unparser::Emitter
|
2876
3063
|
private
|
2877
3064
|
|
@@ -2892,6 +3079,8 @@ end
|
|
2892
3079
|
Unparser::Emitter::Post::MAP = T.let(T.unsafe(nil), Hash)
|
2893
3080
|
|
2894
3081
|
# Base class for primitive emitters
|
3082
|
+
#
|
3083
|
+
# source://unparser//lib/unparser/emitter/primitive.rb#6
|
2895
3084
|
class Unparser::Emitter::Primitive < ::Unparser::Emitter
|
2896
3085
|
private
|
2897
3086
|
|
@@ -2903,6 +3092,8 @@ class Unparser::Emitter::Primitive < ::Unparser::Emitter
|
|
2903
3092
|
end
|
2904
3093
|
|
2905
3094
|
# Emitter for complex literals
|
3095
|
+
#
|
3096
|
+
# source://unparser//lib/unparser/emitter/primitive.rb#24
|
2906
3097
|
class Unparser::Emitter::Primitive::Complex < ::Unparser::Emitter::Primitive
|
2907
3098
|
private
|
2908
3099
|
|
@@ -2923,6 +3114,8 @@ Unparser::Emitter::Primitive::Complex::MAP = T.let(T.unsafe(nil), Hash)
|
|
2923
3114
|
Unparser::Emitter::Primitive::Complex::RATIONAL_FORMAT = T.let(T.unsafe(nil), String)
|
2924
3115
|
|
2925
3116
|
# Emitter for primitives based on Object#inspect
|
3117
|
+
#
|
3118
|
+
# source://unparser//lib/unparser/emitter/primitive.rb#11
|
2926
3119
|
class Unparser::Emitter::Primitive::Inspect < ::Unparser::Emitter::Primitive
|
2927
3120
|
private
|
2928
3121
|
|
@@ -2931,6 +3124,8 @@ class Unparser::Emitter::Primitive::Inspect < ::Unparser::Emitter::Primitive
|
|
2931
3124
|
end
|
2932
3125
|
|
2933
3126
|
# Emiter for numeric literals
|
3127
|
+
#
|
3128
|
+
# source://unparser//lib/unparser/emitter/primitive.rb#80
|
2934
3129
|
class Unparser::Emitter::Primitive::Numeric < ::Unparser::Emitter::Primitive
|
2935
3130
|
private
|
2936
3131
|
|
@@ -2939,6 +3134,8 @@ class Unparser::Emitter::Primitive::Numeric < ::Unparser::Emitter::Primitive
|
|
2939
3134
|
end
|
2940
3135
|
|
2941
3136
|
# Emitter for rational literals
|
3137
|
+
#
|
3138
|
+
# source://unparser//lib/unparser/emitter/primitive.rb#56
|
2942
3139
|
class Unparser::Emitter::Primitive::Rational < ::Unparser::Emitter::Primitive
|
2943
3140
|
private
|
2944
3141
|
|
@@ -2953,19 +3150,21 @@ end
|
|
2953
3150
|
Unparser::Emitter::Primitive::Rational::RATIONAL_FORMAT = T.let(T.unsafe(nil), String)
|
2954
3151
|
|
2955
3152
|
# Progarg emitter
|
3153
|
+
#
|
3154
|
+
# source://unparser//lib/unparser/emitter/argument.rb#98
|
2956
3155
|
class Unparser::Emitter::Procarg < ::Unparser::Emitter
|
2957
3156
|
private
|
2958
3157
|
|
2959
|
-
# source://unparser//lib/unparser/emitter/argument.rb#
|
3158
|
+
# source://unparser//lib/unparser/emitter/argument.rb#105
|
2960
3159
|
def dispatch; end
|
2961
3160
|
|
2962
3161
|
# @return [Boolean]
|
2963
3162
|
#
|
2964
|
-
# source://unparser//lib/unparser/emitter/argument.rb#
|
3163
|
+
# source://unparser//lib/unparser/emitter/argument.rb#115
|
2965
3164
|
def needs_parens?; end
|
2966
3165
|
end
|
2967
3166
|
|
2968
|
-
# source://unparser//lib/unparser/emitter/argument.rb#
|
3167
|
+
# source://unparser//lib/unparser/emitter/argument.rb#101
|
2969
3168
|
Unparser::Emitter::Procarg::PARENS = T.let(T.unsafe(nil), Array)
|
2970
3169
|
|
2971
3170
|
# Registry for node emitters
|
@@ -2974,6 +3173,8 @@ Unparser::Emitter::Procarg::PARENS = T.let(T.unsafe(nil), Array)
|
|
2974
3173
|
Unparser::Emitter::REGISTRY = T.let(T.unsafe(nil), Hash)
|
2975
3174
|
|
2976
3175
|
# Range emitters
|
3176
|
+
#
|
3177
|
+
# source://unparser//lib/unparser/emitter/range.rb#6
|
2977
3178
|
class Unparser::Emitter::Range < ::Unparser::Emitter
|
2978
3179
|
# source://unparser//lib/unparser/emitter/range.rb#17
|
2979
3180
|
def symbol_name; end
|
@@ -3000,6 +3201,8 @@ Unparser::Emitter::Range::SYMBOLS = T.let(T.unsafe(nil), Hash)
|
|
3000
3201
|
Unparser::Emitter::Range::TOKENS = T.let(T.unsafe(nil), Hash)
|
3001
3202
|
|
3002
3203
|
# Emitter for regexp literals
|
3204
|
+
#
|
3205
|
+
# source://unparser//lib/unparser/emitter/regexp.rb#6
|
3003
3206
|
class Unparser::Emitter::Regexp < ::Unparser::Emitter
|
3004
3207
|
private
|
3005
3208
|
|
@@ -3017,6 +3220,8 @@ class Unparser::Emitter::Regexp < ::Unparser::Emitter
|
|
3017
3220
|
end
|
3018
3221
|
|
3019
3222
|
# Emitter for while and until nodes
|
3223
|
+
#
|
3224
|
+
# source://unparser//lib/unparser/emitter/repetition.rb#27
|
3020
3225
|
class Unparser::Emitter::Repetition < ::Unparser::Emitter
|
3021
3226
|
private
|
3022
3227
|
|
@@ -3051,6 +3256,8 @@ end
|
|
3051
3256
|
Unparser::Emitter::Repetition::MAP = T.let(T.unsafe(nil), Hash)
|
3052
3257
|
|
3053
3258
|
# Emitter for rescue nodes
|
3259
|
+
#
|
3260
|
+
# source://unparser//lib/unparser/emitter/rescue.rb#6
|
3054
3261
|
class Unparser::Emitter::Rescue < ::Unparser::Emitter
|
3055
3262
|
private
|
3056
3263
|
|
@@ -3059,10 +3266,12 @@ class Unparser::Emitter::Rescue < ::Unparser::Emitter
|
|
3059
3266
|
end
|
3060
3267
|
|
3061
3268
|
# Rest argument emitter
|
3269
|
+
#
|
3270
|
+
# source://unparser//lib/unparser/emitter/argument.rb#70
|
3062
3271
|
class Unparser::Emitter::Restarg < ::Unparser::Emitter
|
3063
3272
|
private
|
3064
3273
|
|
3065
|
-
# source://unparser//lib/unparser/emitter/argument.rb#
|
3274
|
+
# source://unparser//lib/unparser/emitter/argument.rb#77
|
3066
3275
|
def dispatch; end
|
3067
3276
|
|
3068
3277
|
# source://unparser//lib/unparser/dsl.rb#18
|
@@ -3073,6 +3282,8 @@ class Unparser::Emitter::Restarg < ::Unparser::Emitter
|
|
3073
3282
|
end
|
3074
3283
|
|
3075
3284
|
# Root emitter a special case
|
3285
|
+
#
|
3286
|
+
# source://unparser//lib/unparser/emitter/root.rb#6
|
3076
3287
|
class Unparser::Emitter::Root < ::Unparser::Emitter
|
3077
3288
|
include ::Unparser::Emitter::LocalVariableRoot
|
3078
3289
|
|
@@ -3096,6 +3307,8 @@ end
|
|
3096
3307
|
Unparser::Emitter::Root::END_NL = T.let(T.unsafe(nil), Array)
|
3097
3308
|
|
3098
3309
|
# Emitter for sclass nodes
|
3310
|
+
#
|
3311
|
+
# source://unparser//lib/unparser/emitter/class.rb#33
|
3099
3312
|
class Unparser::Emitter::SClass < ::Unparser::Emitter
|
3100
3313
|
private
|
3101
3314
|
|
@@ -3113,6 +3326,8 @@ class Unparser::Emitter::SClass < ::Unparser::Emitter
|
|
3113
3326
|
end
|
3114
3327
|
|
3115
3328
|
# Emitter for send
|
3329
|
+
#
|
3330
|
+
# source://unparser//lib/unparser/emitter/send.rb#6
|
3116
3331
|
class Unparser::Emitter::Send < ::Unparser::Emitter
|
3117
3332
|
# source://unparser//lib/unparser/emitter/send.rb#13
|
3118
3333
|
def emit_heredoc_reminders; end
|
@@ -3130,6 +3345,8 @@ class Unparser::Emitter::Send < ::Unparser::Emitter
|
|
3130
3345
|
end
|
3131
3346
|
|
3132
3347
|
# Emitter for simple nodes that generate a single token
|
3348
|
+
#
|
3349
|
+
# source://unparser//lib/unparser/emitter/simple.rb#6
|
3133
3350
|
class Unparser::Emitter::Simple < ::Unparser::Emitter
|
3134
3351
|
private
|
3135
3352
|
|
@@ -3141,6 +3358,8 @@ end
|
|
3141
3358
|
Unparser::Emitter::Simple::MAP = T.let(T.unsafe(nil), Hash)
|
3142
3359
|
|
3143
3360
|
# Emitter for splats
|
3361
|
+
#
|
3362
|
+
# source://unparser//lib/unparser/emitter/splat.rb#20
|
3144
3363
|
class Unparser::Emitter::Splat < ::Unparser::Emitter
|
3145
3364
|
# source://unparser//lib/unparser/emitter/splat.rb#25
|
3146
3365
|
def emit_mlhs; end
|
@@ -3161,6 +3380,8 @@ class Unparser::Emitter::Splat < ::Unparser::Emitter
|
|
3161
3380
|
end
|
3162
3381
|
|
3163
3382
|
# Emitter for super nodes
|
3383
|
+
#
|
3384
|
+
# source://unparser//lib/unparser/emitter/super.rb#7
|
3164
3385
|
class Unparser::Emitter::Super < ::Unparser::Emitter
|
3165
3386
|
private
|
3166
3387
|
|
@@ -3169,6 +3390,8 @@ class Unparser::Emitter::Super < ::Unparser::Emitter
|
|
3169
3390
|
end
|
3170
3391
|
|
3171
3392
|
# Emitter for undef nodes
|
3393
|
+
#
|
3394
|
+
# source://unparser//lib/unparser/emitter/undef.rb#6
|
3172
3395
|
class Unparser::Emitter::Undef < ::Unparser::Emitter
|
3173
3396
|
private
|
3174
3397
|
|
@@ -3177,6 +3400,8 @@ class Unparser::Emitter::Undef < ::Unparser::Emitter
|
|
3177
3400
|
end
|
3178
3401
|
|
3179
3402
|
# Emitter for various variable accesses
|
3403
|
+
#
|
3404
|
+
# source://unparser//lib/unparser/emitter/variable.rb#7
|
3180
3405
|
class Unparser::Emitter::Variable < ::Unparser::Emitter
|
3181
3406
|
private
|
3182
3407
|
|
@@ -3191,6 +3416,8 @@ class Unparser::Emitter::Variable < ::Unparser::Emitter
|
|
3191
3416
|
end
|
3192
3417
|
|
3193
3418
|
# Emitter for when nodes
|
3419
|
+
#
|
3420
|
+
# source://unparser//lib/unparser/emitter/case.rb#44
|
3194
3421
|
class Unparser::Emitter::When < ::Unparser::Emitter
|
3195
3422
|
private
|
3196
3423
|
|
@@ -3205,6 +3432,8 @@ class Unparser::Emitter::When < ::Unparser::Emitter
|
|
3205
3432
|
end
|
3206
3433
|
|
3207
3434
|
# Dynamic execute string literal emitter
|
3435
|
+
#
|
3436
|
+
# source://unparser//lib/unparser/emitter/xstr.rb#6
|
3208
3437
|
class Unparser::Emitter::XStr < ::Unparser::Emitter
|
3209
3438
|
private
|
3210
3439
|
|
@@ -3233,6 +3462,8 @@ class Unparser::Emitter::XStr < ::Unparser::Emitter
|
|
3233
3462
|
end
|
3234
3463
|
|
3235
3464
|
# Emitter for yield node
|
3465
|
+
#
|
3466
|
+
# source://unparser//lib/unparser/emitter/yield.rb#7
|
3236
3467
|
class Unparser::Emitter::Yield < ::Unparser::Emitter
|
3237
3468
|
private
|
3238
3469
|
|
@@ -3243,6 +3474,8 @@ end
|
|
3243
3474
|
# Define equality, equivalence and inspection methods
|
3244
3475
|
#
|
3245
3476
|
# Original code before vendoring and reduction from: https://github.com/dkubb/equalizer.
|
3477
|
+
#
|
3478
|
+
# source://unparser//lib/unparser/equalizer.rb#7
|
3246
3479
|
class Unparser::Equalizer < ::Module
|
3247
3480
|
# Initialize an Equalizer with the given keys
|
3248
3481
|
#
|
@@ -3276,6 +3509,8 @@ class Unparser::Equalizer < ::Module
|
|
3276
3509
|
end
|
3277
3510
|
|
3278
3511
|
# The comparison methods
|
3512
|
+
#
|
3513
|
+
# source://unparser//lib/unparser/equalizer.rb#66
|
3279
3514
|
module Unparser::Equalizer::Methods
|
3280
3515
|
# Compare the object with other object for equivalency
|
3281
3516
|
#
|
@@ -3300,6 +3535,7 @@ module Unparser::Equalizer::Methods
|
|
3300
3535
|
def eql?(other); end
|
3301
3536
|
end
|
3302
3537
|
|
3538
|
+
# source://unparser//lib/unparser/generation.rb#5
|
3303
3539
|
module Unparser::Generation
|
3304
3540
|
# source://unparser//lib/unparser/generation.rb#10
|
3305
3541
|
def emit_heredoc_reminders; end
|
@@ -3407,6 +3643,8 @@ end
|
|
3407
3643
|
Unparser::Generation::EXTRA_NL = T.let(T.unsafe(nil), Array)
|
3408
3644
|
|
3409
3645
|
# Error raised when unparser encounters an invalid AST
|
3646
|
+
#
|
3647
|
+
# source://unparser//lib/unparser.rb#39
|
3410
3648
|
class Unparser::InvalidNodeError < ::RuntimeError
|
3411
3649
|
# @return [InvalidNodeError] a new instance of InvalidNodeError
|
3412
3650
|
#
|
@@ -3419,6 +3657,7 @@ class Unparser::InvalidNodeError < ::RuntimeError
|
|
3419
3657
|
def node; end
|
3420
3658
|
end
|
3421
3659
|
|
3660
|
+
# source://unparser//lib/unparser/node_details.rb#4
|
3422
3661
|
module Unparser::NodeDetails
|
3423
3662
|
include ::Unparser::NodeHelpers
|
3424
3663
|
include ::Unparser::Constants
|
@@ -3436,6 +3675,7 @@ module Unparser::NodeDetails
|
|
3436
3675
|
end
|
3437
3676
|
end
|
3438
3677
|
|
3678
|
+
# source://unparser//lib/unparser/node_details/send.rb#5
|
3439
3679
|
class Unparser::NodeDetails::Send
|
3440
3680
|
include ::Unparser::NodeHelpers
|
3441
3681
|
include ::Unparser::Constants
|
@@ -3504,6 +3744,7 @@ Unparser::NodeDetails::Send::ASSIGN_SUFFIX = T.let(T.unsafe(nil), String)
|
|
3504
3744
|
# source://unparser//lib/unparser/node_details/send.rb#9
|
3505
3745
|
Unparser::NodeDetails::Send::NON_ASSIGN_RANGE = T.let(T.unsafe(nil), Range)
|
3506
3746
|
|
3747
|
+
# source://unparser//lib/unparser/node_helpers.rb#4
|
3507
3748
|
module Unparser::NodeHelpers
|
3508
3749
|
# Helper for building nodes
|
3509
3750
|
#
|
@@ -3620,6 +3861,7 @@ module Unparser::NodeHelpers
|
|
3620
3861
|
def n_sym?(node); end
|
3621
3862
|
end
|
3622
3863
|
|
3864
|
+
# source://unparser//lib/unparser/either.rb#4
|
3623
3865
|
module Unparser::RequireBlock
|
3624
3866
|
private
|
3625
3867
|
|
@@ -3632,9 +3874,12 @@ module Unparser::RequireBlock
|
|
3632
3874
|
def require_block; end
|
3633
3875
|
end
|
3634
3876
|
|
3877
|
+
# source://unparser//lib/unparser/emitter.rb#4
|
3635
3878
|
class Unparser::UnknownNodeError < ::ArgumentError; end
|
3636
3879
|
|
3637
3880
|
# Validation of unparser results
|
3881
|
+
#
|
3882
|
+
# source://unparser//lib/unparser/validation.rb#5
|
3638
3883
|
class Unparser::Validation
|
3639
3884
|
include ::Unparser::Anima::InstanceMethods
|
3640
3885
|
include ::Unparser::Equalizer::Methods
|
@@ -3720,6 +3965,7 @@ class Unparser::Validation
|
|
3720
3965
|
end
|
3721
3966
|
end
|
3722
3967
|
|
3968
|
+
# source://unparser//lib/unparser/validation.rb#136
|
3723
3969
|
class Unparser::Validation::Literal < ::Unparser::Validation
|
3724
3970
|
# source://unparser//lib/unparser/validation.rb#141
|
3725
3971
|
def report; end
|
@@ -3735,6 +3981,7 @@ class Unparser::Validation::Literal < ::Unparser::Validation
|
|
3735
3981
|
def source_diff_report; end
|
3736
3982
|
end
|
3737
3983
|
|
3984
|
+
# source://unparser//lib/unparser/writer.rb#4
|
3738
3985
|
module Unparser::Writer
|
3739
3986
|
include ::Unparser::NodeHelpers
|
3740
3987
|
include ::Unparser::Generation
|
@@ -3751,6 +3998,7 @@ module Unparser::Writer
|
|
3751
3998
|
end
|
3752
3999
|
end
|
3753
4000
|
|
4001
|
+
# source://unparser//lib/unparser/writer/binary.rb#5
|
3754
4002
|
class Unparser::Writer::Binary
|
3755
4003
|
include ::Unparser::Adamantium
|
3756
4004
|
include ::Unparser::Adamantium::InstanceMethods
|
@@ -3837,6 +4085,7 @@ Unparser::Writer::Binary::OPERATOR_SYMBOLS = T.let(T.unsafe(nil), Hash)
|
|
3837
4085
|
# source://unparser//lib/unparser/writer/binary.rb#10
|
3838
4086
|
Unparser::Writer::Binary::OPERATOR_TOKENS = T.let(T.unsafe(nil), Hash)
|
3839
4087
|
|
4088
|
+
# source://unparser//lib/unparser/writer/dynamic_string.rb#5
|
3840
4089
|
class Unparser::Writer::DynamicString
|
3841
4090
|
include ::Unparser::Adamantium
|
3842
4091
|
include ::Unparser::Adamantium::InstanceMethods
|
@@ -3871,7 +4120,7 @@ class Unparser::Writer::DynamicString
|
|
3871
4120
|
|
3872
4121
|
# @return [Boolean]
|
3873
4122
|
#
|
3874
|
-
# source://unparser//lib/unparser/writer/dynamic_string.rb#
|
4123
|
+
# source://unparser//lib/unparser/writer/dynamic_string.rb#159
|
3875
4124
|
def breakpoint?(child, current); end
|
3876
4125
|
|
3877
4126
|
# source://unparser//lib/unparser/writer/dynamic_string.rb#63
|
@@ -3880,16 +4129,16 @@ class Unparser::Writer::DynamicString
|
|
3880
4129
|
# source://unparser//lib/unparser/writer/dynamic_string.rb#71
|
3881
4130
|
def classify_str(node); end
|
3882
4131
|
|
3883
|
-
# source://unparser//lib/unparser/writer/dynamic_string.rb#
|
4132
|
+
# source://unparser//lib/unparser/writer/dynamic_string.rb#193
|
3884
4133
|
def emit_body(children); end
|
3885
4134
|
|
3886
|
-
# source://unparser//lib/unparser/writer/dynamic_string.rb#
|
4135
|
+
# source://unparser//lib/unparser/writer/dynamic_string.rb#149
|
3887
4136
|
def emit_dstr; end
|
3888
4137
|
|
3889
|
-
# source://unparser//lib/unparser/writer/dynamic_string.rb#
|
4138
|
+
# source://unparser//lib/unparser/writer/dynamic_string.rb#132
|
3890
4139
|
def emit_dynamic(child); end
|
3891
4140
|
|
3892
|
-
# source://unparser//lib/unparser/writer/dynamic_string.rb#
|
4141
|
+
# source://unparser//lib/unparser/writer/dynamic_string.rb#145
|
3893
4142
|
def emit_dynamic_component(node); end
|
3894
4143
|
|
3895
4144
|
# source://unparser//lib/unparser/writer/dynamic_string.rb#54
|
@@ -3901,16 +4150,13 @@ class Unparser::Writer::DynamicString
|
|
3901
4150
|
# source://unparser//lib/unparser/writer/dynamic_string.rb#50
|
3902
4151
|
def emit_heredoc_header; end
|
3903
4152
|
|
3904
|
-
# source://unparser//lib/unparser/writer/dynamic_string.rb#
|
4153
|
+
# source://unparser//lib/unparser/writer/dynamic_string.rb#116
|
3905
4154
|
def emit_normal_heredoc_body; end
|
3906
4155
|
|
3907
|
-
# source://unparser//lib/unparser/writer/dynamic_string.rb#
|
4156
|
+
# source://unparser//lib/unparser/writer/dynamic_string.rb#185
|
3908
4157
|
def emit_segment(children, index); end
|
3909
4158
|
|
3910
|
-
# source://unparser//lib/unparser/writer/dynamic_string.rb#
|
3911
|
-
def emit_squiggly_heredoc_body; end
|
3912
|
-
|
3913
|
-
# source://unparser//lib/unparser/writer/dynamic_string.rb#140
|
4159
|
+
# source://unparser//lib/unparser/writer/dynamic_string.rb#128
|
3914
4160
|
def escape_dynamic(string); end
|
3915
4161
|
|
3916
4162
|
# @return [Boolean]
|
@@ -3941,7 +4187,7 @@ class Unparser::Writer::DynamicString
|
|
3941
4187
|
# source://unparser//lib/unparser/writer/dynamic_string.rb#111
|
3942
4188
|
def nl_last_child?; end
|
3943
4189
|
|
3944
|
-
# source://unparser//lib/unparser/writer/dynamic_string.rb#
|
4190
|
+
# source://unparser//lib/unparser/writer/dynamic_string.rb#169
|
3945
4191
|
def segments; end
|
3946
4192
|
|
3947
4193
|
# @return [Boolean]
|
@@ -3975,6 +4221,8 @@ Unparser::Writer::DynamicString::PATTERNS_2 = T.let(T.unsafe(nil), Array)
|
|
3975
4221
|
Unparser::Writer::DynamicString::PATTERNS_3 = T.let(T.unsafe(nil), Array)
|
3976
4222
|
|
3977
4223
|
# Writer for rescue bodies
|
4224
|
+
#
|
4225
|
+
# source://unparser//lib/unparser/writer/resbody.rb#6
|
3978
4226
|
class Unparser::Writer::Resbody
|
3979
4227
|
include ::Unparser::NodeHelpers
|
3980
4228
|
include ::Unparser::Generation
|
@@ -4027,6 +4275,7 @@ class Unparser::Writer::Resbody
|
|
4027
4275
|
end
|
4028
4276
|
end
|
4029
4277
|
|
4278
|
+
# source://unparser//lib/unparser/writer/rescue.rb#5
|
4030
4279
|
class Unparser::Writer::Rescue
|
4031
4280
|
include ::Unparser::Adamantium
|
4032
4281
|
include ::Unparser::Adamantium::InstanceMethods
|
@@ -4087,6 +4336,8 @@ class Unparser::Writer::Rescue
|
|
4087
4336
|
end
|
4088
4337
|
|
4089
4338
|
# Writer for send
|
4339
|
+
#
|
4340
|
+
# source://unparser//lib/unparser/writer/send.rb#6
|
4090
4341
|
class Unparser::Writer::Send
|
4091
4342
|
include ::Unparser::NodeHelpers
|
4092
4343
|
include ::Unparser::Generation
|
@@ -4189,6 +4440,8 @@ class Unparser::Writer::Send
|
|
4189
4440
|
end
|
4190
4441
|
|
4191
4442
|
# Writer for send as attribute assignment
|
4443
|
+
#
|
4444
|
+
# source://unparser//lib/unparser/writer/send/attribute_assignment.rb#7
|
4192
4445
|
class Unparser::Writer::Send::AttributeAssignment < ::Unparser::Writer::Send
|
4193
4446
|
# source://unparser//lib/unparser/writer/send/attribute_assignment.rb#10
|
4194
4447
|
def dispatch; end
|
@@ -4218,6 +4471,8 @@ class Unparser::Writer::Send::AttributeAssignment < ::Unparser::Writer::Send
|
|
4218
4471
|
end
|
4219
4472
|
|
4220
4473
|
# Writer for binary sends
|
4474
|
+
#
|
4475
|
+
# source://unparser//lib/unparser/writer/send/binary.rb#7
|
4221
4476
|
class Unparser::Writer::Send::Binary < ::Unparser::Writer::Send
|
4222
4477
|
# source://unparser//lib/unparser/writer/send/binary.rb#8
|
4223
4478
|
def dispatch; end
|
@@ -4241,6 +4496,8 @@ Unparser::Writer::Send::INDEX_REFERENCE = T.let(T.unsafe(nil), Symbol)
|
|
4241
4496
|
Unparser::Writer::Send::OPERATORS = T.let(T.unsafe(nil), Hash)
|
4242
4497
|
|
4243
4498
|
# Writer for "regular" receiver.selector(arguments...) case
|
4499
|
+
#
|
4500
|
+
# source://unparser//lib/unparser/writer/send/regular.rb#7
|
4244
4501
|
class Unparser::Writer::Send::Regular < ::Unparser::Writer::Send
|
4245
4502
|
# source://unparser//lib/unparser/writer/send/regular.rb#8
|
4246
4503
|
def dispatch; end
|
@@ -4256,6 +4513,8 @@ class Unparser::Writer::Send::Regular < ::Unparser::Writer::Send
|
|
4256
4513
|
end
|
4257
4514
|
|
4258
4515
|
# Writer for unary sends
|
4516
|
+
#
|
4517
|
+
# source://unparser//lib/unparser/writer/send/unary.rb#7
|
4259
4518
|
class Unparser::Writer::Send::Unary < ::Unparser::Writer::Send
|
4260
4519
|
# source://unparser//lib/unparser/writer/send/unary.rb#15
|
4261
4520
|
def dispatch; end
|