Class: TreeSitterLanguagePack::ProcessConfig
- Inherits:
-
Object
- Object
- TreeSitterLanguagePack::ProcessConfig
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#chunk_max_size ⇒ Integer?
readonly
Returns the value of attribute chunk_max_size.
-
#comments ⇒ Boolean
readonly
Returns the value of attribute comments.
-
#data_extraction ⇒ Boolean
readonly
Returns the value of attribute data_extraction.
-
#diagnostics ⇒ Boolean
readonly
Returns the value of attribute diagnostics.
-
#docstrings ⇒ Boolean
readonly
Returns the value of attribute docstrings.
-
#exports ⇒ Boolean
readonly
Returns the value of attribute exports.
-
#imports ⇒ Boolean
readonly
Returns the value of attribute imports.
-
#language ⇒ String
readonly
Returns the value of attribute language.
-
#max_source_bytes ⇒ Integer?
readonly
Returns the value of attribute max_source_bytes.
-
#parse_timeout_ms ⇒ Integer?
readonly
Returns the value of attribute parse_timeout_ms.
-
#structure ⇒ Boolean
readonly
Returns the value of attribute structure.
-
#symbols ⇒ Boolean
readonly
Returns the value of attribute symbols.
Instance Method Summary collapse
- #all ⇒ ProcessConfig
-
#initialize ⇒ ProcessConfig
constructor
A new instance of ProcessConfig.
- #minimal ⇒ ProcessConfig
- #validate ⇒ void
- #with_chunking ⇒ ProcessConfig
- #with_data_extraction ⇒ ProcessConfig
- #with_max_source_bytes ⇒ ProcessConfig
- #with_parse_timeout_ms ⇒ ProcessConfig
Constructor Details
#initialize ⇒ ProcessConfig
Returns a new instance of ProcessConfig.
208 |
# File 'sig/types.rbs', line 208
def initialize: (?language: String, ?structure: bool, ?imports: bool, ?exports: bool, ?comments: bool, ?docstrings: bool, ?symbols: bool, ?diagnostics: bool, ?chunk_max_size: Integer, ?data_extraction: bool, ?max_source_bytes: Integer, ?parse_timeout_ms: Integer) -> void
|
Instance Attribute Details
#chunk_max_size ⇒ Integer? (readonly)
Returns the value of attribute chunk_max_size.
203 204 205 |
# File 'sig/types.rbs', line 203 def chunk_max_size @chunk_max_size end |
#comments ⇒ Boolean (readonly)
Returns the value of attribute comments.
199 200 201 |
# File 'sig/types.rbs', line 199 def comments @comments end |
#data_extraction ⇒ Boolean (readonly)
Returns the value of attribute data_extraction.
204 205 206 |
# File 'sig/types.rbs', line 204 def data_extraction @data_extraction end |
#diagnostics ⇒ Boolean (readonly)
Returns the value of attribute diagnostics.
202 203 204 |
# File 'sig/types.rbs', line 202 def diagnostics @diagnostics end |
#docstrings ⇒ Boolean (readonly)
Returns the value of attribute docstrings.
200 201 202 |
# File 'sig/types.rbs', line 200 def docstrings @docstrings end |
#exports ⇒ Boolean (readonly)
Returns the value of attribute exports.
198 199 200 |
# File 'sig/types.rbs', line 198 def exports @exports end |
#imports ⇒ Boolean (readonly)
Returns the value of attribute imports.
197 198 199 |
# File 'sig/types.rbs', line 197 def imports @imports end |
#language ⇒ String (readonly)
Returns the value of attribute language.
195 196 197 |
# File 'sig/types.rbs', line 195 def language @language end |
#max_source_bytes ⇒ Integer? (readonly)
Returns the value of attribute max_source_bytes.
205 206 207 |
# File 'sig/types.rbs', line 205 def max_source_bytes @max_source_bytes end |
#parse_timeout_ms ⇒ Integer? (readonly)
Returns the value of attribute parse_timeout_ms.
206 207 208 |
# File 'sig/types.rbs', line 206 def parse_timeout_ms @parse_timeout_ms end |
#structure ⇒ Boolean (readonly)
Returns the value of attribute structure.
196 197 198 |
# File 'sig/types.rbs', line 196 def structure @structure end |
#symbols ⇒ Boolean (readonly)
Returns the value of attribute symbols.
201 202 203 |
# File 'sig/types.rbs', line 201 def symbols @symbols end |
Instance Method Details
#validate ⇒ void
This method returns an undefined value.
215 |
# File 'sig/types.rbs', line 215
def validate: () -> void
|
#with_chunking ⇒ ProcessConfig
209 |
# File 'sig/types.rbs', line 209
def with_chunking: (Integer max_size) -> ProcessConfig
|
#with_data_extraction ⇒ ProcessConfig
212 |
# File 'sig/types.rbs', line 212
def with_data_extraction: (bool enabled) -> ProcessConfig
|
#with_max_source_bytes ⇒ ProcessConfig
213 |
# File 'sig/types.rbs', line 213
def with_max_source_bytes: (?Integer max_bytes) -> ProcessConfig
|
#with_parse_timeout_ms ⇒ ProcessConfig
214 |
# File 'sig/types.rbs', line 214
def with_parse_timeout_ms: (?Integer timeout_ms) -> ProcessConfig
|