Class: TreeSitterLanguagePack::ProcessConfig

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

Instance Attribute Summary collapse

Class Method 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)


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

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) -> void

Instance Attribute Details

#chunk_max_sizeInteger?

Returns the value of attribute chunk_max_size.

Returns:

  • (Integer, nil)


250
251
252
# File 'sig/types.rbs', line 250

def chunk_max_size
  @chunk_max_size
end

#commentsBoolean?

Returns the value of attribute comments.

Returns:

  • (Boolean, nil)


246
247
248
# File 'sig/types.rbs', line 246

def comments
  @comments
end

#data_extractionBoolean?

Returns the value of attribute data_extraction.

Returns:

  • (Boolean, nil)


251
252
253
# File 'sig/types.rbs', line 251

def data_extraction
  @data_extraction
end

#diagnosticsBoolean?

Returns the value of attribute diagnostics.

Returns:

  • (Boolean, nil)


249
250
251
# File 'sig/types.rbs', line 249

def diagnostics
  @diagnostics
end

#docstringsBoolean?

Returns the value of attribute docstrings.

Returns:

  • (Boolean, nil)


247
248
249
# File 'sig/types.rbs', line 247

def docstrings
  @docstrings
end

#exportsBoolean?

Returns the value of attribute exports.

Returns:

  • (Boolean, nil)


245
246
247
# File 'sig/types.rbs', line 245

def exports
  @exports
end

#importsBoolean?

Returns the value of attribute imports.

Returns:

  • (Boolean, nil)


244
245
246
# File 'sig/types.rbs', line 244

def imports
  @imports
end

#languageString?

Returns the value of attribute language.

Returns:

  • (String, nil)


242
243
244
# File 'sig/types.rbs', line 242

def language
  @language
end

#structureBoolean?

Returns the value of attribute structure.

Returns:

  • (Boolean, nil)


243
244
245
# File 'sig/types.rbs', line 243

def structure
  @structure
end

#symbolsBoolean?

Returns the value of attribute symbols.

Returns:

  • (Boolean, nil)


248
249
250
# File 'sig/types.rbs', line 248

def symbols
  @symbols
end

Class Method Details

.defaultProcessConfig

Returns:



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

def self.default: () -> ProcessConfig

Instance Method Details

#allProcessConfig

Returns:



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

def all: () -> ProcessConfig

#minimalProcessConfig

Returns:



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

def minimal: () -> ProcessConfig

#with_chunkingProcessConfig

Parameters:

  • max_size (Integer)

Returns:



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

def with_chunking: (Integer max_size) -> ProcessConfig

#with_data_extractionProcessConfig

Parameters:

  • enabled (Boolean)

Returns:



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

def with_data_extraction: (bool enabled) -> ProcessConfig