TypeScriptSegmenter#

class langchain_community.document_loaders.parsers.language.typescript.TypeScriptSegmenter(code: str)[source]#

Code segmenter for TypeScript.

Methods

Parameters:

code (str) –

__init__(code: str)#
Parameters:

code (str) –

extract_functions_classes() List[str]#
Return type:

List[str]

get_chunk_query() str[source]#
Return type:

str

get_language() Language[source]#
Return type:

Language

get_parser() Parser#
Return type:

Parser

is_valid() bool#
Return type:

bool

make_line_comment(text: str) str[source]#
Parameters:

text (str) –

Return type:

str

simplify_code() str#
Return type:

str