taski 0.4.0 → 0.4.2
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/README.md +49 -110
- data/examples/README.md +8 -5
- data/examples/context_demo.rb +22 -16
- data/lib/taski/context.rb +36 -38
- data/lib/taski/section.rb +7 -0
- data/lib/taski/static_analysis/analyzer.rb +27 -6
- data/lib/taski/static_analysis/visitor.rb +30 -6
- data/lib/taski/task.rb +60 -16
- data/lib/taski/version.rb +1 -1
- data/lib/taski.rb +23 -0
- metadata +1 -62
- data/.gem_rbs_collection/ast/2.4/.rbs_meta.yaml +0 -9
- data/.gem_rbs_collection/ast/2.4/ast.rbs +0 -73
- data/.gem_rbs_collection/minitest/5.25/.rbs_meta.yaml +0 -9
- data/.gem_rbs_collection/minitest/5.25/minitest/abstract_reporter.rbs +0 -52
- data/.gem_rbs_collection/minitest/5.25/minitest/assertion.rbs +0 -17
- data/.gem_rbs_collection/minitest/5.25/minitest/assertions.rbs +0 -590
- data/.gem_rbs_collection/minitest/5.25/minitest/backtrace_filter.rbs +0 -23
- data/.gem_rbs_collection/minitest/5.25/minitest/bench_spec.rbs +0 -102
- data/.gem_rbs_collection/minitest/5.25/minitest/benchmark.rbs +0 -259
- data/.gem_rbs_collection/minitest/5.25/minitest/composite_reporter.rbs +0 -25
- data/.gem_rbs_collection/minitest/5.25/minitest/compress.rbs +0 -13
- data/.gem_rbs_collection/minitest/5.25/minitest/error_on_warning.rbs +0 -3
- data/.gem_rbs_collection/minitest/5.25/minitest/expectation.rbs +0 -2
- data/.gem_rbs_collection/minitest/5.25/minitest/expectations.rbs +0 -21
- data/.gem_rbs_collection/minitest/5.25/minitest/guard.rbs +0 -64
- data/.gem_rbs_collection/minitest/5.25/minitest/mock.rbs +0 -64
- data/.gem_rbs_collection/minitest/5.25/minitest/parallel/executor.rbs +0 -46
- data/.gem_rbs_collection/minitest/5.25/minitest/parallel/test/class_methods.rbs +0 -5
- data/.gem_rbs_collection/minitest/5.25/minitest/parallel/test.rbs +0 -3
- data/.gem_rbs_collection/minitest/5.25/minitest/parallel.rbs +0 -2
- data/.gem_rbs_collection/minitest/5.25/minitest/pride_io.rbs +0 -62
- data/.gem_rbs_collection/minitest/5.25/minitest/pride_lol.rbs +0 -19
- data/.gem_rbs_collection/minitest/5.25/minitest/progress_reporter.rbs +0 -11
- data/.gem_rbs_collection/minitest/5.25/minitest/reportable.rbs +0 -53
- data/.gem_rbs_collection/minitest/5.25/minitest/reporter.rbs +0 -5
- data/.gem_rbs_collection/minitest/5.25/minitest/result.rbs +0 -28
- data/.gem_rbs_collection/minitest/5.25/minitest/runnable.rbs +0 -163
- data/.gem_rbs_collection/minitest/5.25/minitest/skip.rbs +0 -6
- data/.gem_rbs_collection/minitest/5.25/minitest/spec/dsl/instance_methods.rbs +0 -48
- data/.gem_rbs_collection/minitest/5.25/minitest/spec/dsl.rbs +0 -129
- data/.gem_rbs_collection/minitest/5.25/minitest/spec.rbs +0 -11
- data/.gem_rbs_collection/minitest/5.25/minitest/statistics_reporter.rbs +0 -81
- data/.gem_rbs_collection/minitest/5.25/minitest/summary_reporter.rbs +0 -18
- data/.gem_rbs_collection/minitest/5.25/minitest/test/lifecycle_hooks.rbs +0 -92
- data/.gem_rbs_collection/minitest/5.25/minitest/test.rbs +0 -69
- data/.gem_rbs_collection/minitest/5.25/minitest/unexpected_error.rbs +0 -12
- data/.gem_rbs_collection/minitest/5.25/minitest/unexpected_warning.rbs +0 -6
- data/.gem_rbs_collection/minitest/5.25/minitest/unit/test_case.rbs +0 -3
- data/.gem_rbs_collection/minitest/5.25/minitest/unit.rbs +0 -4
- data/.gem_rbs_collection/minitest/5.25/minitest.rbs +0 -115
- data/.gem_rbs_collection/parallel/1.20/.rbs_meta.yaml +0 -9
- data/.gem_rbs_collection/parallel/1.20/parallel.rbs +0 -86
- data/.gem_rbs_collection/parser/3.2/.rbs_meta.yaml +0 -9
- data/.gem_rbs_collection/parser/3.2/manifest.yaml +0 -7
- data/.gem_rbs_collection/parser/3.2/parser.rbs +0 -193
- data/.gem_rbs_collection/parser/3.2/polyfill.rbs +0 -4
- data/.gem_rbs_collection/rainbow/3.0/.rbs_meta.yaml +0 -9
- data/.gem_rbs_collection/rainbow/3.0/global.rbs +0 -7
- data/.gem_rbs_collection/rainbow/3.0/presenter.rbs +0 -209
- data/.gem_rbs_collection/rainbow/3.0/rainbow.rbs +0 -5
- data/.gem_rbs_collection/rake/13.0/.rbs_meta.yaml +0 -9
- data/.gem_rbs_collection/rake/13.0/manifest.yaml +0 -2
- data/.gem_rbs_collection/rake/13.0/rake.rbs +0 -39
- data/.gem_rbs_collection/regexp_parser/2.8/.rbs_meta.yaml +0 -9
- data/.gem_rbs_collection/regexp_parser/2.8/regexp_parser.rbs +0 -17
- data/.gem_rbs_collection/rubocop/1.57/.rbs_meta.yaml +0 -9
- data/.gem_rbs_collection/rubocop/1.57/rubocop.rbs +0 -129
- data/.gem_rbs_collection/rubocop-ast/1.30/.rbs_meta.yaml +0 -9
- data/.gem_rbs_collection/rubocop-ast/1.30/rubocop-ast.rbs +0 -771
- data/.gem_rbs_collection/simplecov/0.22/.rbs_meta.yaml +0 -9
- data/.gem_rbs_collection/simplecov/0.22/simplecov.rbs +0 -54
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
# <!-- rdoc-file=lib/minitest.rb -->
|
|
2
|
-
# The top-level namespace for Minitest. Also the location of the main runtime.
|
|
3
|
-
# See `Minitest.run` for more information.
|
|
4
|
-
#
|
|
5
|
-
module Minitest
|
|
6
|
-
@@installed_at_exit: untyped
|
|
7
|
-
|
|
8
|
-
@@after_run: untyped
|
|
9
|
-
|
|
10
|
-
self.@extensions: untyped
|
|
11
|
-
|
|
12
|
-
def self.cattr_accessor: (untyped name) -> untyped
|
|
13
|
-
|
|
14
|
-
# <!--
|
|
15
|
-
# rdoc-file=lib/minitest.rb
|
|
16
|
-
# - autorun()
|
|
17
|
-
# -->
|
|
18
|
-
# Registers Minitest to run at process exit
|
|
19
|
-
#
|
|
20
|
-
def self.autorun: () -> untyped
|
|
21
|
-
|
|
22
|
-
# <!--
|
|
23
|
-
# rdoc-file=lib/minitest.rb
|
|
24
|
-
# - after_run(&block)
|
|
25
|
-
# -->
|
|
26
|
-
# A simple hook allowing you to run a block of code after everything is done
|
|
27
|
-
# running. Eg:
|
|
28
|
-
#
|
|
29
|
-
# Minitest.after_run { p $debugging_info }
|
|
30
|
-
#
|
|
31
|
-
def self.after_run: () { (?) -> untyped } -> untyped
|
|
32
|
-
|
|
33
|
-
# <!--
|
|
34
|
-
# rdoc-file=lib/minitest.rb
|
|
35
|
-
# - register_plugin(name_or_mod)
|
|
36
|
-
# -->
|
|
37
|
-
# Register a plugin to be used. Does NOT require / load it.
|
|
38
|
-
#
|
|
39
|
-
def self.register_plugin: (untyped name_or_mod) -> nil
|
|
40
|
-
|
|
41
|
-
def self.load_plugins: () -> (nil | untyped)
|
|
42
|
-
|
|
43
|
-
def self.init_plugins: (untyped options) -> untyped
|
|
44
|
-
|
|
45
|
-
def self.process_args: (?untyped args) -> untyped
|
|
46
|
-
|
|
47
|
-
# <!--
|
|
48
|
-
# rdoc-file=lib/minitest.rb
|
|
49
|
-
# - run(args = [])
|
|
50
|
-
# -->
|
|
51
|
-
# This is the top-level run method. Everything starts from here. It tells each
|
|
52
|
-
# Runnable sub-class to run, and each of those are responsible for doing
|
|
53
|
-
# whatever they do.
|
|
54
|
-
#
|
|
55
|
-
# The overall structure of a run looks like this:
|
|
56
|
-
#
|
|
57
|
-
# Minitest.autorun
|
|
58
|
-
# Minitest.run(args)
|
|
59
|
-
# Minitest.load_plugins
|
|
60
|
-
# Minitest.process_args
|
|
61
|
-
# Minitest.init_plugins
|
|
62
|
-
# Minitest.__run(reporter, options)
|
|
63
|
-
# Runnable.runnables.each
|
|
64
|
-
# runnable_klass.run(reporter, options)
|
|
65
|
-
# self.runnable_methods.each
|
|
66
|
-
# self.run_one_method(self, runnable_method, reporter)
|
|
67
|
-
# Minitest.run_one_method(klass, runnable_method)
|
|
68
|
-
# klass.new(runnable_method).run
|
|
69
|
-
#
|
|
70
|
-
def self.run: (?untyped args) -> untyped
|
|
71
|
-
|
|
72
|
-
def self.empty_run!: (untyped options) -> untyped
|
|
73
|
-
|
|
74
|
-
# <!--
|
|
75
|
-
# rdoc-file=lib/minitest.rb
|
|
76
|
-
# - __run(reporter, options)
|
|
77
|
-
# -->
|
|
78
|
-
# Internal run method. Responsible for telling all Runnable sub-classes to run.
|
|
79
|
-
#
|
|
80
|
-
def self.__run: (untyped reporter, untyped options) -> untyped
|
|
81
|
-
|
|
82
|
-
def self.filter_backtrace: (untyped bt) -> untyped
|
|
83
|
-
|
|
84
|
-
def self.run_one_method: (untyped klass, untyped method_name) -> untyped
|
|
85
|
-
|
|
86
|
-
def self.clock_time: () -> untyped
|
|
87
|
-
|
|
88
|
-
# <!--
|
|
89
|
-
# rdoc-file=lib/minitest/manual_plugins.rb
|
|
90
|
-
# - load(*names)
|
|
91
|
-
# -->
|
|
92
|
-
# Manually load plugins by name.
|
|
93
|
-
#
|
|
94
|
-
def self.load: (*untyped names) -> untyped
|
|
95
|
-
|
|
96
|
-
def self.plugin_pride_options: (untyped opts, untyped _options) -> untyped
|
|
97
|
-
|
|
98
|
-
def self.plugin_pride_init: (untyped options) -> (nil | untyped)
|
|
99
|
-
|
|
100
|
-
attr_accessor self.seed: untyped
|
|
101
|
-
|
|
102
|
-
attr_accessor self.parallel_executor: untyped
|
|
103
|
-
|
|
104
|
-
attr_accessor self.backtrace_filter: untyped
|
|
105
|
-
|
|
106
|
-
attr_accessor self.reporter: untyped
|
|
107
|
-
|
|
108
|
-
attr_accessor self.extensions: untyped
|
|
109
|
-
|
|
110
|
-
attr_accessor self.info_signal: untyped
|
|
111
|
-
|
|
112
|
-
attr_accessor self.allow_fork: untyped
|
|
113
|
-
|
|
114
|
-
VERSION: String
|
|
115
|
-
end
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
module Parallel
|
|
2
|
-
class Break < StandardError
|
|
3
|
-
attr_reader value: untyped
|
|
4
|
-
|
|
5
|
-
def initialize: (?untyped value) -> void
|
|
6
|
-
end
|
|
7
|
-
|
|
8
|
-
class Kill < Break
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
type stop = Object
|
|
12
|
-
Stop: stop
|
|
13
|
-
|
|
14
|
-
VERSION: String
|
|
15
|
-
|
|
16
|
-
Version: String
|
|
17
|
-
|
|
18
|
-
type callable_source[T] = ^() -> (T | stop)
|
|
19
|
-
|
|
20
|
-
def self.all?: [T] (Enumerable[T] | callable_source[T] source,
|
|
21
|
-
?in_processes: Integer,
|
|
22
|
-
?in_threads: Integer,
|
|
23
|
-
?progress: _ToStr,
|
|
24
|
-
?start: ^(T item, Integer index) -> void,
|
|
25
|
-
?finish: ^(T item, Integer index, boolish result) -> void) { (T) -> boolish } -> bool
|
|
26
|
-
|
|
27
|
-
def self.any?: [T] (Enumerable[T] | callable_source[T] source,
|
|
28
|
-
?in_processes: Integer,
|
|
29
|
-
?in_threads: Integer,
|
|
30
|
-
?progress: _ToStr,
|
|
31
|
-
?start: ^(T item, Integer index) -> void,
|
|
32
|
-
?finish: ^(T item, Integer index, boolish result) -> void) { (T) -> boolish } -> bool
|
|
33
|
-
|
|
34
|
-
def self.each: [T, U] (Enumerable[T] source,
|
|
35
|
-
?in_processes: Integer,
|
|
36
|
-
?in_threads: Integer,
|
|
37
|
-
?progress: _ToStr,
|
|
38
|
-
?start: ^(T item, Integer index) -> void,
|
|
39
|
-
?finish: ^(T item, Integer index, U result) -> void) { (T) -> U } -> Enumerable[U]
|
|
40
|
-
| [T, U] (callable_source[T] source,
|
|
41
|
-
?in_processes: Integer,
|
|
42
|
-
?in_threads: Integer,
|
|
43
|
-
?progress: _ToStr,
|
|
44
|
-
?start: ^(T item, Integer index) -> void,
|
|
45
|
-
?finish: ^(T item, Integer index, U result) -> void) { (T) -> U } -> callable_source[T]
|
|
46
|
-
|
|
47
|
-
def self.each_with_index: [T, U] (Enumerable[T] source,
|
|
48
|
-
?in_processes: Integer,
|
|
49
|
-
?in_threads: Integer,
|
|
50
|
-
?progress: _ToStr,
|
|
51
|
-
?start: ^(T item, Integer index) -> void,
|
|
52
|
-
?finish: ^(T item, Integer index, U result) -> void) { (T, Integer) -> U } -> Enumerable[T]
|
|
53
|
-
| [T, U] (callable_source[T] array,
|
|
54
|
-
?in_processes: Integer,
|
|
55
|
-
?in_threads: Integer,
|
|
56
|
-
?progress: _ToStr,
|
|
57
|
-
?start: ^(T item, Integer index) -> void,
|
|
58
|
-
?finish: ^(T item, Integer index, U result) -> void) { (T, Integer) -> U } -> callable_source[U]
|
|
59
|
-
|
|
60
|
-
def self.flat_map: [T, U] (Enumerable[T] | callable_source[T] src,
|
|
61
|
-
?in_processes: Integer,
|
|
62
|
-
?in_threads: Integer,
|
|
63
|
-
?progress: _ToStr,
|
|
64
|
-
?start: ^(T item, Integer index) -> void,
|
|
65
|
-
?finish: ^(T item, Integer index, U result) -> void) { (T) -> U } -> Array[U]
|
|
66
|
-
|
|
67
|
-
def self.map: [T, U] (Enumerable[T] | callable_source[T] | Thread::Queue source,
|
|
68
|
-
?in_processes: Integer,
|
|
69
|
-
?in_threads: Integer,
|
|
70
|
-
?progress: _ToStr,
|
|
71
|
-
?start: ^(T item, Integer index) -> void,
|
|
72
|
-
?finish: ^(T item, Integer index, U result) -> void) { (T) -> U } -> Array[U]
|
|
73
|
-
|
|
74
|
-
def self.map_with_index: [T, U] (Enumerable[T] | callable_source[T] source,
|
|
75
|
-
?in_processes: Integer,
|
|
76
|
-
?in_threads: Integer,
|
|
77
|
-
?progress: _ToStr,
|
|
78
|
-
?start: ^(T item, Integer index) -> untyped,
|
|
79
|
-
?finish: ^(T item, Integer index, U result) -> untyped) { (T, Integer) -> U } -> Array[U]
|
|
80
|
-
|
|
81
|
-
def self.physical_processor_count: () -> Integer
|
|
82
|
-
|
|
83
|
-
def self.processor_count: () -> Integer
|
|
84
|
-
|
|
85
|
-
def self.worker_number: () -> Integer
|
|
86
|
-
end
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
# manifest.yaml describes dependencies which do not appear in the gemspec.
|
|
2
|
-
# If this gem includes such dependencies, comment-out the following lines and
|
|
3
|
-
# declare the dependencies.
|
|
4
|
-
# If all dependencies appear in the gemspec, you should remove this file.
|
|
5
|
-
#
|
|
6
|
-
# dependencies:
|
|
7
|
-
# - name: pathname
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
module Parser
|
|
2
|
-
CurrentRuby: Parser::Base
|
|
3
|
-
|
|
4
|
-
class Base < Racc::Parser
|
|
5
|
-
def parse: (String string, ?String file, ?Integer line) -> Parser::AST::Node?
|
|
6
|
-
def parse_with_comments: (String string, ?String file, ?Integer line) -> [Parser::AST::Node?, Array[Source::Comment]]
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
class Ruby18 < Base
|
|
10
|
-
end
|
|
11
|
-
class Ruby19 < Base
|
|
12
|
-
end
|
|
13
|
-
class Ruby20 < Base
|
|
14
|
-
end
|
|
15
|
-
class Ruby21 < Base
|
|
16
|
-
end
|
|
17
|
-
class Ruby22 < Base
|
|
18
|
-
end
|
|
19
|
-
class Ruby23 < Base
|
|
20
|
-
end
|
|
21
|
-
class Ruby24 < Base
|
|
22
|
-
end
|
|
23
|
-
class Ruby25 < Base
|
|
24
|
-
end
|
|
25
|
-
class Ruby26 < Base
|
|
26
|
-
end
|
|
27
|
-
class Ruby27 < Base
|
|
28
|
-
end
|
|
29
|
-
class Ruby30 < Base
|
|
30
|
-
end
|
|
31
|
-
class Ruby31 < Base
|
|
32
|
-
end
|
|
33
|
-
class Ruby32 < Base
|
|
34
|
-
end
|
|
35
|
-
class Ruby33 < Base
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
module AST
|
|
39
|
-
class Node < ::AST::Node
|
|
40
|
-
attr_reader location: Source::Map
|
|
41
|
-
alias loc location
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
class Processor
|
|
45
|
-
module Mixin
|
|
46
|
-
def process: (Node? node) -> Node?
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
include Mixin
|
|
50
|
-
end
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
module Source
|
|
54
|
-
class Range
|
|
55
|
-
attr_reader source_buffer: Buffer
|
|
56
|
-
attr_reader begin_pos: Integer
|
|
57
|
-
attr_reader end_pos: Integer
|
|
58
|
-
def begin: () -> Range
|
|
59
|
-
def end: () -> Range
|
|
60
|
-
def size: () -> Integer
|
|
61
|
-
alias length size
|
|
62
|
-
def line: () -> Integer
|
|
63
|
-
alias first_line line
|
|
64
|
-
def column: () -> Integer
|
|
65
|
-
def last_line: () -> Integer
|
|
66
|
-
def last_column: () -> Integer
|
|
67
|
-
def column_range: () -> ::Range[Integer]
|
|
68
|
-
def source_line: () -> String
|
|
69
|
-
def source: () -> String
|
|
70
|
-
def with: (?begin_pos: Integer, ?end_pos: Integer) -> Range
|
|
71
|
-
def adjust: (?begin_pos: Integer, ?end_pos: Integer) -> Range
|
|
72
|
-
def resize: (Integer new_size) -> Range
|
|
73
|
-
def join: (Range other) -> Range
|
|
74
|
-
def intersect: (Range other) -> Range?
|
|
75
|
-
def disjoint?: (Range other) -> bool
|
|
76
|
-
def overlaps?: (Range other) -> bool
|
|
77
|
-
def contains?: (Range other) -> bool
|
|
78
|
-
def contained?: (Range other) -> bool
|
|
79
|
-
def crossing?: (Range other) -> bool
|
|
80
|
-
def empty?: () -> bool
|
|
81
|
-
end
|
|
82
|
-
|
|
83
|
-
##
|
|
84
|
-
# A buffer with source code. {Buffer} contains the source code itself,
|
|
85
|
-
# associated location information (name and first line), and takes care
|
|
86
|
-
# of encoding.
|
|
87
|
-
#
|
|
88
|
-
# A source buffer is immutable once populated.
|
|
89
|
-
#
|
|
90
|
-
# @!attribute [r] name
|
|
91
|
-
# Buffer name. If the buffer was created from a file, the name corresponds
|
|
92
|
-
# to relative path to the file.
|
|
93
|
-
# @return [String] buffer name
|
|
94
|
-
#
|
|
95
|
-
# @!attribute [r] first_line
|
|
96
|
-
# First line of the buffer, 1 by default.
|
|
97
|
-
# @return [Integer] first line
|
|
98
|
-
#
|
|
99
|
-
# @api public
|
|
100
|
-
#
|
|
101
|
-
class Buffer
|
|
102
|
-
attr_reader name: String
|
|
103
|
-
attr_reader first_line: Integer
|
|
104
|
-
|
|
105
|
-
def self.recognize_encoding: (String) -> Encoding
|
|
106
|
-
def self.reencode_string: (String) -> String
|
|
107
|
-
|
|
108
|
-
def initialize: (untyped name, ?Integer first_line, ?source: untyped) -> void
|
|
109
|
-
def read: () -> self
|
|
110
|
-
def source: () -> String
|
|
111
|
-
def source=: (String) -> String
|
|
112
|
-
def raw_source: (String) -> String
|
|
113
|
-
def decompose_position: (Integer) -> [Integer, Integer]
|
|
114
|
-
def source_lines: () -> Array[String]
|
|
115
|
-
def source_line: (Integer) -> String
|
|
116
|
-
def line_range: (Integer) -> ::Range[Integer]
|
|
117
|
-
def source_range: () -> ::Range[Integer]
|
|
118
|
-
def last_line: () -> Integer
|
|
119
|
-
end
|
|
120
|
-
|
|
121
|
-
class TreeRewriter
|
|
122
|
-
def replace: (Range range, String content) -> self
|
|
123
|
-
def wrap: (Range range, String? insert_before, String? insert_after) -> self
|
|
124
|
-
def remove: (Range range) -> self
|
|
125
|
-
def insert_before: (Range range, String content) -> self
|
|
126
|
-
def insert_after: (Range range, String content) -> self
|
|
127
|
-
end
|
|
128
|
-
|
|
129
|
-
class Map
|
|
130
|
-
attr_reader node: AST::Node | nil
|
|
131
|
-
attr_reader expression: Range
|
|
132
|
-
def line: () -> Integer
|
|
133
|
-
def first_line: () -> Integer
|
|
134
|
-
def last_line: () -> Integer
|
|
135
|
-
def column: () -> Integer
|
|
136
|
-
def last_column: () -> Integer
|
|
137
|
-
end
|
|
138
|
-
|
|
139
|
-
class Map::Collection < Map
|
|
140
|
-
attr_reader begin: Range?
|
|
141
|
-
attr_reader end: Range?
|
|
142
|
-
end
|
|
143
|
-
|
|
144
|
-
class Map::Condition < Map
|
|
145
|
-
attr_reader keyword: Range
|
|
146
|
-
attr_reader begin: Range?
|
|
147
|
-
attr_reader else: Range?
|
|
148
|
-
attr_reader end: Range
|
|
149
|
-
end
|
|
150
|
-
|
|
151
|
-
class Map::Heredoc < Map
|
|
152
|
-
attr_reader heredoc_body: Range
|
|
153
|
-
attr_reader heredoc_end: Range
|
|
154
|
-
end
|
|
155
|
-
|
|
156
|
-
class Map::Keyword < Map
|
|
157
|
-
attr_reader keyword: Range
|
|
158
|
-
attr_reader begin: Range?
|
|
159
|
-
attr_reader end: Range?
|
|
160
|
-
end
|
|
161
|
-
|
|
162
|
-
class Map::MethodDefinition < Map
|
|
163
|
-
attr_reader keyword: Range
|
|
164
|
-
attr_reader operator: Range?
|
|
165
|
-
attr_reader name: Range?
|
|
166
|
-
attr_reader end: Range?
|
|
167
|
-
attr_reader assignment: Range?
|
|
168
|
-
end
|
|
169
|
-
|
|
170
|
-
class Map::Operator < Map
|
|
171
|
-
attr_reader operator: Range?
|
|
172
|
-
end
|
|
173
|
-
|
|
174
|
-
class Map::Send < Map
|
|
175
|
-
attr_reader dot: Range?
|
|
176
|
-
attr_reader selector: Range
|
|
177
|
-
attr_reader operator: Range?
|
|
178
|
-
attr_reader begin: Range?
|
|
179
|
-
attr_reader end: Range?
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
class Map::Ternary < Map
|
|
183
|
-
attr_reader question: Range?
|
|
184
|
-
attr_reader colon: Range
|
|
185
|
-
end
|
|
186
|
-
|
|
187
|
-
class Comment
|
|
188
|
-
attr_reader text: String
|
|
189
|
-
attr_reader location: Map
|
|
190
|
-
alias loc location
|
|
191
|
-
end
|
|
192
|
-
end
|
|
193
|
-
end
|
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
module Rainbow
|
|
2
|
-
class Presenter < String
|
|
3
|
-
# Sets color of this text.
|
|
4
|
-
def color: (*Symbol values) -> instance
|
|
5
|
-
|
|
6
|
-
alias foreground color
|
|
7
|
-
|
|
8
|
-
alias fg color
|
|
9
|
-
|
|
10
|
-
# Sets background color of this text.
|
|
11
|
-
def background: (*Symbol values) -> instance
|
|
12
|
-
|
|
13
|
-
alias bg background
|
|
14
|
-
|
|
15
|
-
# Resets terminal to default colors/backgrounds.
|
|
16
|
-
#
|
|
17
|
-
# It shouldn't be needed to use this method because all methods
|
|
18
|
-
# append terminal reset code to end of string.
|
|
19
|
-
def reset: () -> instance
|
|
20
|
-
|
|
21
|
-
# Turns on bright/bold for this text.
|
|
22
|
-
def bright: () -> instance
|
|
23
|
-
|
|
24
|
-
alias bold bright
|
|
25
|
-
|
|
26
|
-
# Turns on faint/dark for this text (not well supported by terminal
|
|
27
|
-
# emulators).
|
|
28
|
-
def faint: () -> instance
|
|
29
|
-
|
|
30
|
-
# Turns on italic style for this text (not well supported by terminal
|
|
31
|
-
# emulators).
|
|
32
|
-
def italic: () -> instance
|
|
33
|
-
|
|
34
|
-
# Turns on underline decoration for this text.
|
|
35
|
-
def underline: () -> instance
|
|
36
|
-
|
|
37
|
-
# Turns on blinking attribute for this text (not well supported by terminal
|
|
38
|
-
# emulators).
|
|
39
|
-
def blink: () -> instance
|
|
40
|
-
|
|
41
|
-
# Inverses current foreground/background colors.
|
|
42
|
-
def inverse: () -> instance
|
|
43
|
-
|
|
44
|
-
# Hides this text (set its color to the same as background).
|
|
45
|
-
def hide: () -> instance
|
|
46
|
-
|
|
47
|
-
def black: () -> instance
|
|
48
|
-
|
|
49
|
-
def red: () -> instance
|
|
50
|
-
|
|
51
|
-
def green: () -> instance
|
|
52
|
-
|
|
53
|
-
def yellow: () -> instance
|
|
54
|
-
|
|
55
|
-
def blue: () -> instance
|
|
56
|
-
|
|
57
|
-
def magenta: () -> instance
|
|
58
|
-
|
|
59
|
-
def cyan: () -> instance
|
|
60
|
-
|
|
61
|
-
def white: () -> instance
|
|
62
|
-
|
|
63
|
-
# We take care of X11 color method call here.
|
|
64
|
-
# Such as #aqua, #ghostwhite.
|
|
65
|
-
def method_missing: (untyped method_name, *untyped args) -> untyped
|
|
66
|
-
|
|
67
|
-
def respond_to_missing?: (untyped method_name, *untyped args) -> bool
|
|
68
|
-
|
|
69
|
-
def wrap_with_sgr: (untyped codes) -> instance
|
|
70
|
-
|
|
71
|
-
def aliceblue: () -> instance
|
|
72
|
-
def antiquewhite: () -> instance
|
|
73
|
-
def aqua: () -> instance
|
|
74
|
-
def aquamarine: () -> instance
|
|
75
|
-
def azure: () -> instance
|
|
76
|
-
def beige: () -> instance
|
|
77
|
-
def bisque: () -> instance
|
|
78
|
-
def blanchedalmond: () -> instance
|
|
79
|
-
def blueviolet: () -> instance
|
|
80
|
-
def brown: () -> instance
|
|
81
|
-
def burlywood: () -> instance
|
|
82
|
-
def cadetblue: () -> instance
|
|
83
|
-
def chartreuse: () -> instance
|
|
84
|
-
def chocolate: () -> instance
|
|
85
|
-
def coral: () -> instance
|
|
86
|
-
def cornflower: () -> instance
|
|
87
|
-
def cornsilk: () -> instance
|
|
88
|
-
def crimson: () -> instance
|
|
89
|
-
def darkblue: () -> instance
|
|
90
|
-
def darkcyan: () -> instance
|
|
91
|
-
def darkgoldenrod: () -> instance
|
|
92
|
-
def darkgray: () -> instance
|
|
93
|
-
def darkgreen: () -> instance
|
|
94
|
-
def darkkhaki: () -> instance
|
|
95
|
-
def darkmagenta: () -> instance
|
|
96
|
-
def darkolivegreen: () -> instance
|
|
97
|
-
def darkorange: () -> instance
|
|
98
|
-
def darkorchid: () -> instance
|
|
99
|
-
def darkred: () -> instance
|
|
100
|
-
def darksalmon: () -> instance
|
|
101
|
-
def darkseagreen: () -> instance
|
|
102
|
-
def darkslateblue: () -> instance
|
|
103
|
-
def darkslategray: () -> instance
|
|
104
|
-
def darkturquoise: () -> instance
|
|
105
|
-
def darkviolet: () -> instance
|
|
106
|
-
def deeppink: () -> instance
|
|
107
|
-
def deepskyblue: () -> instance
|
|
108
|
-
def dimgray: () -> instance
|
|
109
|
-
def dodgerblue: () -> instance
|
|
110
|
-
def firebrick: () -> instance
|
|
111
|
-
def floralwhite: () -> instance
|
|
112
|
-
def forestgreen: () -> instance
|
|
113
|
-
def fuchsia: () -> instance
|
|
114
|
-
def gainsboro: () -> instance
|
|
115
|
-
def ghostwhite: () -> instance
|
|
116
|
-
def gold: () -> instance
|
|
117
|
-
def goldenrod: () -> instance
|
|
118
|
-
def gray: () -> instance
|
|
119
|
-
def greenyellow: () -> instance
|
|
120
|
-
def honeydew: () -> instance
|
|
121
|
-
def hotpink: () -> instance
|
|
122
|
-
def indianred: () -> instance
|
|
123
|
-
def indigo: () -> instance
|
|
124
|
-
def ivory: () -> instance
|
|
125
|
-
def khaki: () -> instance
|
|
126
|
-
def lavender: () -> instance
|
|
127
|
-
def lavenderblush: () -> instance
|
|
128
|
-
def lawngreen: () -> instance
|
|
129
|
-
def lemonchiffon: () -> instance
|
|
130
|
-
def lightblue: () -> instance
|
|
131
|
-
def lightcoral: () -> instance
|
|
132
|
-
def lightcyan: () -> instance
|
|
133
|
-
def lightgoldenrod: () -> instance
|
|
134
|
-
def lightgray: () -> instance
|
|
135
|
-
def lightgreen: () -> instance
|
|
136
|
-
def lightpink: () -> instance
|
|
137
|
-
def lightsalmon: () -> instance
|
|
138
|
-
def lightseagreen: () -> instance
|
|
139
|
-
def lightskyblue: () -> instance
|
|
140
|
-
def lightslategray: () -> instance
|
|
141
|
-
def lightsteelblue: () -> instance
|
|
142
|
-
def lightyellow: () -> instance
|
|
143
|
-
def lime: () -> instance
|
|
144
|
-
def limegreen: () -> instance
|
|
145
|
-
def linen: () -> instance
|
|
146
|
-
def maroon: () -> instance
|
|
147
|
-
def mediumaquamarine: () -> instance
|
|
148
|
-
def mediumblue: () -> instance
|
|
149
|
-
def mediumorchid: () -> instance
|
|
150
|
-
def mediumpurple: () -> instance
|
|
151
|
-
def mediumseagreen: () -> instance
|
|
152
|
-
def mediumslateblue: () -> instance
|
|
153
|
-
def mediumspringgreen: () -> instance
|
|
154
|
-
def mediumturquoise: () -> instance
|
|
155
|
-
def mediumvioletred: () -> instance
|
|
156
|
-
def midnightblue: () -> instance
|
|
157
|
-
def mintcream: () -> instance
|
|
158
|
-
def mistyrose: () -> instance
|
|
159
|
-
def moccasin: () -> instance
|
|
160
|
-
def navajowhite: () -> instance
|
|
161
|
-
def navyblue: () -> instance
|
|
162
|
-
def oldlace: () -> instance
|
|
163
|
-
def olive: () -> instance
|
|
164
|
-
def olivedrab: () -> instance
|
|
165
|
-
def orange: () -> instance
|
|
166
|
-
def orangered: () -> instance
|
|
167
|
-
def orchid: () -> instance
|
|
168
|
-
def palegoldenrod: () -> instance
|
|
169
|
-
def palegreen: () -> instance
|
|
170
|
-
def paleturquoise: () -> instance
|
|
171
|
-
def palevioletred: () -> instance
|
|
172
|
-
def papayawhip: () -> instance
|
|
173
|
-
def peachpuff: () -> instance
|
|
174
|
-
def peru: () -> instance
|
|
175
|
-
def pink: () -> instance
|
|
176
|
-
def plum: () -> instance
|
|
177
|
-
def powderblue: () -> instance
|
|
178
|
-
def purple: () -> instance
|
|
179
|
-
def rebeccapurple: () -> instance
|
|
180
|
-
def rosybrown: () -> instance
|
|
181
|
-
def royalblue: () -> instance
|
|
182
|
-
def saddlebrown: () -> instance
|
|
183
|
-
def salmon: () -> instance
|
|
184
|
-
def sandybrown: () -> instance
|
|
185
|
-
def seagreen: () -> instance
|
|
186
|
-
def seashell: () -> instance
|
|
187
|
-
def sienna: () -> instance
|
|
188
|
-
def silver: () -> instance
|
|
189
|
-
def skyblue: () -> instance
|
|
190
|
-
def slateblue: () -> instance
|
|
191
|
-
def slategray: () -> instance
|
|
192
|
-
def snow: () -> instance
|
|
193
|
-
def springgreen: () -> instance
|
|
194
|
-
def steelblue: () -> instance
|
|
195
|
-
def tan: () -> instance
|
|
196
|
-
def teal: () -> instance
|
|
197
|
-
def thistle: () -> instance
|
|
198
|
-
def tomato: () -> instance
|
|
199
|
-
def turquoise: () -> instance
|
|
200
|
-
def violet: () -> instance
|
|
201
|
-
def webgray: () -> instance
|
|
202
|
-
def webgreen: () -> instance
|
|
203
|
-
def webmaroon: () -> instance
|
|
204
|
-
def webpurple: () -> instance
|
|
205
|
-
def wheat: () -> instance
|
|
206
|
-
def whitesmoke: () -> instance
|
|
207
|
-
def yellowgreen: () -> instance
|
|
208
|
-
end
|
|
209
|
-
end
|