Class: TreeSitterLanguagePack::ProcessConfig

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeProcessConfig

Returns a new instance of ProcessConfig.

Parameters:

  • language: (String)
  • structure: (Boolean)
  • imports: (Boolean)
  • exports: (Boolean)
  • comments: (Boolean)
  • docstrings: (Boolean)
  • symbols: (Boolean)
  • diagnostics: (Boolean)
  • chunk_max_size: (Integer)
  • data_extraction: (Boolean)
  • max_source_bytes: (Integer)
  • parse_timeout_ms: (Integer)


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_sizeInteger? (readonly)

Returns the value of attribute chunk_max_size.

Returns:

  • (Integer, nil)


203
204
205
# File 'sig/types.rbs', line 203

def chunk_max_size
  @chunk_max_size
end

#commentsBoolean (readonly)

Returns the value of attribute comments.

Returns:

  • (Boolean)


199
200
201
# File 'sig/types.rbs', line 199

def comments
  @comments
end

#data_extractionBoolean (readonly)

Returns the value of attribute data_extraction.

Returns:

  • (Boolean)


204
205
206
# File 'sig/types.rbs', line 204

def data_extraction
  @data_extraction
end

#diagnosticsBoolean (readonly)

Returns the value of attribute diagnostics.

Returns:

  • (Boolean)


202
203
204
# File 'sig/types.rbs', line 202

def diagnostics
  @diagnostics
end

#docstringsBoolean (readonly)

Returns the value of attribute docstrings.

Returns:

  • (Boolean)


200
201
202
# File 'sig/types.rbs', line 200

def docstrings
  @docstrings
end

#exportsBoolean (readonly)

Returns the value of attribute exports.

Returns:

  • (Boolean)


198
199
200
# File 'sig/types.rbs', line 198

def exports
  @exports
end

#importsBoolean (readonly)

Returns the value of attribute imports.

Returns:

  • (Boolean)


197
198
199
# File 'sig/types.rbs', line 197

def imports
  @imports
end

#languageString (readonly)

Returns the value of attribute language.

Returns:

  • (String)


195
196
197
# File 'sig/types.rbs', line 195

def language
  @language
end

#max_source_bytesInteger? (readonly)

Returns the value of attribute max_source_bytes.

Returns:

  • (Integer, nil)


205
206
207
# File 'sig/types.rbs', line 205

def max_source_bytes
  @max_source_bytes
end

#parse_timeout_msInteger? (readonly)

Returns the value of attribute parse_timeout_ms.

Returns:

  • (Integer, nil)


206
207
208
# File 'sig/types.rbs', line 206

def parse_timeout_ms
  @parse_timeout_ms
end

#structureBoolean (readonly)

Returns the value of attribute structure.

Returns:

  • (Boolean)


196
197
198
# File 'sig/types.rbs', line 196

def structure
  @structure
end

#symbolsBoolean (readonly)

Returns the value of attribute symbols.

Returns:

  • (Boolean)


201
202
203
# File 'sig/types.rbs', line 201

def symbols
  @symbols
end

Instance Method Details

#allProcessConfig

Returns:



210
# File 'sig/types.rbs', line 210

def all: () -> ProcessConfig

#minimalProcessConfig

Returns:



211
# File 'sig/types.rbs', line 211

def minimal: () -> ProcessConfig

#validatevoid

This method returns an undefined value.



215
# File 'sig/types.rbs', line 215

def validate: () -> void

#with_chunkingProcessConfig

Parameters:

  • max_size (Integer)

Returns:



209
# File 'sig/types.rbs', line 209

def with_chunking: (Integer max_size) -> ProcessConfig

#with_data_extractionProcessConfig

Parameters:

  • enabled (Boolean)

Returns:



212
# File 'sig/types.rbs', line 212

def with_data_extraction: (bool enabled) -> ProcessConfig

#with_max_source_bytesProcessConfig

Parameters:

  • max_bytes (Integer)

Returns:



213
# File 'sig/types.rbs', line 213

def with_max_source_bytes: (?Integer max_bytes) -> ProcessConfig

#with_parse_timeout_msProcessConfig

Parameters:

  • timeout_ms (Integer)

Returns:



214
# File 'sig/types.rbs', line 214

def with_parse_timeout_ms: (?Integer timeout_ms) -> ProcessConfig