TypeScriptSegmenter#
- class langchain_community.document_loaders.parsers.language.typescript.TypeScriptSegmenter(code: str)[source]#
Code segmenter for TypeScript.
Methods
__init__
(code)is_valid
()make_line_comment
(text)- Parameters:
code (str) –
- __init__(code: str)#
- Parameters:
code (str) –
- extract_functions_classes() List[str] #
- Return type:
List[str]
- get_parser() Parser #
- Return type:
Parser
- is_valid() bool #
- Return type:
bool
- simplify_code() str #
- Return type:
str