task_id
int64
0
2.26k
repository
stringclasses
18 values
commit_hash
stringclasses
241 values
filepath
stringclasses
237 values
original_method
stringlengths
21
4.65k
context
listlengths
1
68
masking
dict
400
https://github.com/Evref-BL/Pharo-Tree-Sitter
e244845c470d2abffd70af333f4b353979861263
src/TreeSitter-Tests/TSParserMetaTest.class.st
testCreateAndDelete | parser | parser := TSParser new. self assert: (parser isKindOf: TSParser). parser delete
[ { "filepath": "src/TreeSitter-Tests/TSParserMetaTest.class.st", "code": "TestCase subclass: #TSParserMetaTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase subclass: #TSParse...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "testCreateAndDelete\n\n\t| parser |\n\tparser", "suffix": ".\n\tself assert: (parser isKindOf: TSParser).\n\tparser delete", "completion": " := TSParser new" }
401
https://github.com/Evref-BL/Pharo-Tree-Sitter
e244845c470d2abffd70af333f4b353979861263
src/TreeSitter-Tests/TSParserMetaTest.class.st
testCreateAndDelete | parser | parser := TSParser new. self assert: (parser isKindOf: TSParser). parser delete
[ { "filepath": "src/TreeSitter-Tests/TSParserMetaTest.class.st", "code": "TestCase subclass: #TSParserMetaTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase subclass: #TSParse...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 6, "prefix": "testCreateAndDelete\n\n\t| parser |\n\tparser := TSParser new.\n\tself", "suffix": ".\n\tparser delete", "completion": " assert: (parser isKindOf: TSParser)" }
402
https://github.com/Evref-BL/Pharo-Tree-Sitter
e244845c470d2abffd70af333f4b353979861263
src/TreeSitter-Tests/TSParserTest.class.st
setUp super setUp. parser := TSParser new
[ { "filepath": "src/TreeSitter-Tests/TSParserMetaTest.class.st", "code": "TestCase subclass: #TSParserMetaTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase subclass: #TSParse...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "setUp\n\n\tsuper setUp.\n\n\tparser", "suffix": "", "completion": " := TSParser new" }
403
https://github.com/Evref-BL/Pharo-Tree-Sitter
e244845c470d2abffd70af333f4b353979861263
src/TreeSitter-Tests/TSParserTest.class.st
testLanguageVersion self should: [parser language version] raise: TSNullPointerException
[ { "filepath": "src/TreeSitter-Tests/TSParserMetaTest.class.st", "code": "TestCase subclass: #TSParserMetaTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase subclass: #TSParse...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "testLanguageVersion\n\n\tself should: [parser", "suffix": "", "completion": " language version] raise: TSNullPointerException" }
404
https://github.com/Evref-BL/Pharo-Tree-Sitter
e244845c470d2abffd70af333f4b353979861263
src/TreeSitter/TSLanguage.class.st
version ^ TSLibrary uniqueInstance ts_language_version: self
[ { "filepath": "src/TreeSitter-Tests/TSParserMetaTest.class.st", "code": "TestCase subclass: #TSParserMetaTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase subclass: #TSParse...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "version\n\n\t^ TSLibrary", "suffix": "", "completion": " uniqueInstance ts_language_version: self" }
405
https://github.com/Evref-BL/Pharo-Tree-Sitter
e244845c470d2abffd70af333f4b353979861263
src/TreeSitter/TSLibrary.class.st
ts_language_version: aTSLanguage aTSLanguage isNull ifTrue: [ TSNullPointerException signal ]. ^ self ffiCall: 'uint32 ts_language_version(TSLanguage * aTSLanguage)'
[ { "filepath": "src/TreeSitter-Tests/TSParserMetaTest.class.st", "code": "TestCase subclass: #TSParserMetaTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase subclass: #TSParse...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 6, "prefix": "ts_language_version: aTSLanguage\n\n\taTSLanguage", "suffix": ".\n\t^ self ffiCall:\n\t\t 'uint32 ts_language_version(TSLanguage * aTSLanguage)'", "completion": " isNull ifTrue: [ TSNullPointerException signal ]" }
406
https://github.com/Evref-BL/Pharo-Tree-Sitter
e244845c470d2abffd70af333f4b353979861263
src/TreeSitter/TSLibrary.class.st
ts_language_version: aTSLanguage aTSLanguage isNull ifTrue: [ TSNullPointerException signal ]. ^ self ffiCall: 'uint32 ts_language_version(TSLanguage * aTSLanguage)'
[ { "filepath": "src/TreeSitter-Tests/TSParserMetaTest.class.st", "code": "TestCase subclass: #TSParserMetaTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase subclass: #TSParse...
{ "fim_idx": 1, "mask_type": "return", "n_masked_tokens": 3, "prefix": "ts_language_version: aTSLanguage\n\n\taTSLanguage isNull ifTrue: [ TSNullPointerException signal ].\n\t^", "suffix": "", "completion": " self ffiCall:\n\t\t 'uint32 ts_language_version(TSLanguage * aTSLanguage)'" }
407
https://github.com/Evref-BL/Pharo-Tree-Sitter
e244845c470d2abffd70af333f4b353979861263
src/TreeSitter/TSLibrary.class.st
ts_parser_delete: aTSParser ^ self ffiCall: 'void ts_parser_delete (TSParser * aTSParser )'
[ { "filepath": "src/TreeSitter-Tests/TSParserMetaTest.class.st", "code": "TestCase subclass: #TSParserMetaTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase subclass: #TSParse...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "ts_parser_delete: aTSParser\n\n\t^", "suffix": "", "completion": " self ffiCall:\n\t\t 'void ts_parser_delete (TSParser * aTSParser )'" }
408
https://github.com/Evref-BL/Pharo-Tree-Sitter
e244845c470d2abffd70af333f4b353979861263
src/TreeSitter/TSLibrary.class.st
ts_parser_language: aTSParser ^ self ffiCall: 'TSLanguage * ts_parser_language (TSParser * aTSParser )'
[ { "filepath": "src/TreeSitter-Tests/TSParserMetaTest.class.st", "code": "TestCase subclass: #TSParserMetaTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase subclass: #TSParse...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "ts_parser_language: aTSParser\n\n\t^", "suffix": "", "completion": " self ffiCall:\n\t\t 'TSLanguage * ts_parser_language (TSParser * aTSParser )'" }
409
https://github.com/Evref-BL/Pharo-Tree-Sitter
e244845c470d2abffd70af333f4b353979861263
src/TreeSitter/TSLibrary.class.st
ts_parser_new ^ self ffiCall: 'TSParser * ts_parser_new ()'
[ { "filepath": "src/TreeSitter-Tests/TSParserMetaTest.class.st", "code": "TestCase subclass: #TSParserMetaTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase subclass: #TSParse...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "ts_parser_new\n\n\t^", "suffix": "", "completion": " self ffiCall:\n\t\t 'TSParser * ts_parser_new ()'" }
410
https://github.com/Evref-BL/Pharo-Tree-Sitter
e244845c470d2abffd70af333f4b353979861263
src/TreeSitter/TSNullPointerException.class.st
messageText ^ messageText ifNil: [ messageText := 'Be carreful! we avoid you a null pointer exception that kill the image' ]
[ { "filepath": "src/TreeSitter-Tests/TSParserMetaTest.class.st", "code": "TestCase subclass: #TSParserMetaTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase subclass: #TSParse...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 5, "prefix": "messageText\n\n\t^ messageText ifNil:", "suffix": "", "completion": " [\n\t\t messageText := 'Be carreful! we avoid you a null pointer exception that kill the image' ]" }
411
https://github.com/Evref-BL/Pharo-Tree-Sitter
e244845c470d2abffd70af333f4b353979861263
src/TreeSitter/TSParser.class.st
new ^ TSLibrary uniqueInstance ts_parser_new
[ { "filepath": "src/TreeSitter-Tests/TSParserMetaTest.class.st", "code": "TestCase subclass: #TSParserMetaTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase subclass: #TSParse...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "new\n\n\t^", "suffix": "", "completion": " TSLibrary uniqueInstance ts_parser_new" }
412
https://github.com/Evref-BL/Pharo-Tree-Sitter
e244845c470d2abffd70af333f4b353979861263
src/TreeSitter/TSParser.class.st
delete ^ TSLibrary uniqueInstance ts_parser_delete: self
[ { "filepath": "src/TreeSitter-Tests/TSParserMetaTest.class.st", "code": "TestCase subclass: #TSParserMetaTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase subclass: #TSParse...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "delete\n\t^ TSLibrary", "suffix": "", "completion": " uniqueInstance ts_parser_delete: self" }
413
https://github.com/Evref-BL/Pharo-Tree-Sitter
e244845c470d2abffd70af333f4b353979861263
src/TreeSitter/TSParser.class.st
language ^ TSLibrary uniqueInstance ts_parser_language: self
[ { "filepath": "src/TreeSitter-Tests/TSParserMetaTest.class.st", "code": "TestCase subclass: #TSParserMetaTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase subclass: #TSParse...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 4, "prefix": "language\n\n\t^", "suffix": "", "completion": " TSLibrary uniqueInstance ts_parser_language: self" }
414
https://github.com/Evref-BL/Pharo-Tree-Sitter
b9fcaa37eaaf9362bd21e67bf1e3bd3c890cb4a8
src/TreeSitter-Python/TSLanguage.extension.st
python ^ TSPythonLibrary uniqueInstance tree_sitter_python
[ { "filepath": "src/TreeSitter-Python/TSLanguage.extension.st", "code": "Object subclass: #TSLanguage\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''" }, { "filepath": "src/TreeSitter-Python/TSPythonLibrary.class.st", "code": "FFILibrary subclass: #TSPythonLibrary\n\tinstanc...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "python\n\n\t^", "suffix": "", "completion": " TSPythonLibrary uniqueInstance tree_sitter_python" }
415
https://github.com/Evref-BL/Pharo-Tree-Sitter
b9fcaa37eaaf9362bd21e67bf1e3bd3c890cb4a8
src/TreeSitter-Python/TSPythonLibrary.class.st
tree_sitter_python ^ self ffiCall: 'TSLanguage * tree_sitter_python ()'
[ { "filepath": "src/TreeSitter-Python/TSLanguage.extension.st", "code": "Object subclass: #TSLanguage\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''" }, { "filepath": "src/TreeSitter-Python/TSPythonLibrary.class.st", "code": "FFILibrary subclass: #TSPythonLibrary\n\tinstanc...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "tree_sitter_python\n\n\t^", "suffix": "", "completion": " self ffiCall: 'TSLanguage * tree_sitter_python ()'" }
416
https://github.com/Evref-BL/Pharo-Tree-Sitter
b9fcaa37eaaf9362bd21e67bf1e3bd3c890cb4a8
src/TreeSitter-Python/TSPythonLibrary.class.st
unix64LibraryName "Users should use unix32* or unix64*" ^ FFIUnix64LibraryFinder findAnyLibrary: #( 'libtree-sitter-python.so' )
[ { "filepath": "src/TreeSitter-Python/TSLanguage.extension.st", "code": "Object subclass: #TSLanguage\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''" }, { "filepath": "src/TreeSitter-Python/TSPythonLibrary.class.st", "code": "FFILibrary subclass: #TSPythonLibrary\n\tinstanc...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "unix64LibraryName\n\t\"Users should use unix32* or unix64*\"\n\n\t^ FFIUnix64LibraryFinder findAnyLibrary:", "suffix": "", "completion": " #( 'libtree-sitter-python.so' )" }
417
https://github.com/Evref-BL/Pharo-Tree-Sitter
b9fcaa37eaaf9362bd21e67bf1e3bd3c890cb4a8
src/TreeSitter/TSLibrary.class.st
ts_parser: aParser _parse_string: aString ofLength: length usingOldTree: anOldTree "use `ExternalAddress null` if there is no old tree existing for now" ^ self ffiCall: 'TSTree * ts_parser_parse_string ( TSParser * aParser, TSTree * anOldTree, char * aString, uint32 length )'
[ { "filepath": "src/TreeSitter-Python/TSLanguage.extension.st", "code": "Object subclass: #TSLanguage\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''" }, { "filepath": "src/TreeSitter-Python/TSPythonLibrary.class.st", "code": "FFILibrary subclass: #TSPythonLibrary\n\tinstanc...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "ts_parser: aParser _parse_string: aString ofLength: length usingOldTree: anOldTree\n\t\n\t\"use `ExternalAddress null` if there is no old tree existing for now\"\n\t\n\t^", "suffix": "", "completion": " self ffiCall:\n\t\t 'TSTree * ts...
418
https://github.com/Evref-BL/Pharo-Tree-Sitter
b9fcaa37eaaf9362bd21e67bf1e3bd3c890cb4a8
src/TreeSitter/TSLibrary.class.st
ts_parser: aTSParser _set_language: aTSLanguage ^ self ffiCall: 'bool ts_parser_set_language(TSParser * aTSParser, TSLanguage * aTSLanguage)'
[ { "filepath": "src/TreeSitter-Python/TSLanguage.extension.st", "code": "Object subclass: #TSLanguage\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''" }, { "filepath": "src/TreeSitter-Python/TSPythonLibrary.class.st", "code": "FFILibrary subclass: #TSPythonLibrary\n\tinstanc...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "ts_parser: aTSParser _set_language: aTSLanguage\n\n\t^", "suffix": "", "completion": " self ffiCall:\n\t\t 'bool ts_parser_set_language(TSParser * aTSParser, TSLanguage * aTSLanguage)'" }
419
https://github.com/Evref-BL/Pharo-Tree-Sitter
b9fcaa37eaaf9362bd21e67bf1e3bd3c890cb4a8
src/TreeSitter/TSParser.class.st
language: aTSLanguage ^ TSLibrary uniqueInstance ts_parser: self _set_language: aTSLanguage
[ { "filepath": "src/TreeSitter-Python/TSLanguage.extension.st", "code": "Object subclass: #TSLanguage\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''" }, { "filepath": "src/TreeSitter-Python/TSPythonLibrary.class.st", "code": "FFILibrary subclass: #TSPythonLibrary\n\tinstanc...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 5, "prefix": "language: aTSLanguage\n\n\t^ TSLibrary", "suffix": "", "completion": " uniqueInstance ts_parser: self _set_language: aTSLanguage" }
420
https://github.com/Evref-BL/Pharo-Tree-Sitter
13420b890ae8e54f47a29fb83117b15c30f2f8a8
src/TreeSitter/TSLibrary.class.st
ts_node_child_count: aTSNode ^ self ffiCall: 'uint32_t ts_node_child_count(TSNode aTSNode)'
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "ts_node_child_count: aTSNode\n\n\t^", "suffix": "", "completion": " self ffiCall: 'uint32_t ts_node_child_count(TSNode aTSNode)'" }
421
https://github.com/Evref-BL/Pharo-Tree-Sitter
13420b890ae8e54f47a29fb83117b15c30f2f8a8
src/TreeSitter/TSLibrary.class.st
ts_node_is_named: aTSNode ^ self ffiCall: 'bool ts_node_is_named(TSNode aTSNode)'
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "ts_node_is_named: aTSNode\n\n\t^", "suffix": "", "completion": " self ffiCall: 'bool ts_node_is_named(TSNode aTSNode)'" }
422
https://github.com/Evref-BL/Pharo-Tree-Sitter
13420b890ae8e54f47a29fb83117b15c30f2f8a8
src/TreeSitter/TSLibrary.class.st
ts_node_symbol: aTSNode ^ self ffiCall: 'int ts_node_symbol(TSNode aTSNode)'
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "ts_node_symbol: aTSNode\n\n\t^", "suffix": "", "completion": " self ffiCall: 'int ts_node_symbol(TSNode aTSNode)'" }
423
https://github.com/Evref-BL/Pharo-Tree-Sitter
13420b890ae8e54f47a29fb83117b15c30f2f8a8
src/TreeSitter/TSLibrary.class.st
ts_node_type: aTSNode ^ self ffiCall: 'char * ts_node_type(TSNode aTSNode)'
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "ts_node_type: aTSNode\n\n\t^", "suffix": "", "completion": " self ffiCall: 'char * ts_node_type(TSNode aTSNode)'" }
424
https://github.com/Evref-BL/Pharo-Tree-Sitter
13420b890ae8e54f47a29fb83117b15c30f2f8a8
src/TreeSitter/TSLibrary.class.st
ts_tree_root_node: aTSTree ^ self ffiCall: 'TSNode ts_tree_root_node(TSTree * aTSTree)'
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "ts_tree_root_node: aTSTree\n\n\t^", "suffix": "", "completion": " self ffiCall: 'TSNode ts_tree_root_node(TSTree * aTSTree)'" }
425
https://github.com/Evref-BL/Pharo-Tree-Sitter
13420b890ae8e54f47a29fb83117b15c30f2f8a8
src/TreeSitter/TSNode.class.st
fieldsDesc ^ #( uint32 context; void * id; TSTree * tree; )
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 4, "prefix": "fieldsDesc\n\t^ #(\n\tuint32 context;\n \tvoid * id;\n \tTSTree", "suffix": "", "completion": " * tree;\n\t)" }
426
https://github.com/Evref-BL/Pharo-Tree-Sitter
13420b890ae8e54f47a29fb83117b15c30f2f8a8
src/TreeSitter/TSNode.class.st
context "This method was automatically generated" ^handle unsignedLongAt: OFFSET_CONTEXT
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "context\n\t\"This method was automatically generated\"\n\t^", "suffix": "", "completion": "handle unsignedLongAt: OFFSET_CONTEXT" }
427
https://github.com/Evref-BL/Pharo-Tree-Sitter
13420b890ae8e54f47a29fb83117b15c30f2f8a8
src/TreeSitter/TSNode.class.st
context: anObject "This method was automatically generated" handle unsignedLongAt: OFFSET_CONTEXT put: anObject
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "context: anObject\n\t\"This method was automatically generated\"\n\thandle", "suffix": "", "completion": " unsignedLongAt: OFFSET_CONTEXT put: anObject" }
428
https://github.com/Evref-BL/Pharo-Tree-Sitter
13420b890ae8e54f47a29fb83117b15c30f2f8a8
src/TreeSitter/TSNode.class.st
id "This method was automatically generated" ^ExternalData fromHandle: (handle pointerAt: OFFSET_ID) type: ExternalType void asPointerType
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 6, "prefix": "id\n\t\"This method was automatically generated\"\n\t^ExternalData fromHandle: (handle pointerAt:", "suffix": "", "completion": " OFFSET_ID) type: ExternalType void asPointerType" }
429
https://github.com/Evref-BL/Pharo-Tree-Sitter
13420b890ae8e54f47a29fb83117b15c30f2f8a8
src/TreeSitter/TSNode.class.st
id: anObject "This method was automatically generated" handle pointerAt: OFFSET_ID put: anObject getHandle.
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "id: anObject\n\t\"This method was automatically generated\"\n\thandle pointerAt: OFFSET_ID", "suffix": ".", "completion": " put: anObject getHandle" }
430
https://github.com/Evref-BL/Pharo-Tree-Sitter
13420b890ae8e54f47a29fb83117b15c30f2f8a8
src/TreeSitter/TSNode.class.st
isNamed ^ TSLibrary uniqueInstance ts_node_is_named: self
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "isNamed\n\n\t^ TSLibrary", "suffix": "", "completion": " uniqueInstance ts_node_is_named: self" }
431
https://github.com/Evref-BL/Pharo-Tree-Sitter
13420b890ae8e54f47a29fb83117b15c30f2f8a8
src/TreeSitter/TSNode.class.st
symbol ^ TSLibrary uniqueInstance ts_node_symbol: self
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 4, "prefix": "symbol\n\n\t^", "suffix": "", "completion": " TSLibrary uniqueInstance ts_node_symbol: self" }
432
https://github.com/Evref-BL/Pharo-Tree-Sitter
13420b890ae8e54f47a29fb83117b15c30f2f8a8
src/TreeSitter/TSNode.class.st
tree "This method was automatically generated" ^ExternalData fromHandle: (handle pointerAt: OFFSET_TREE) type: ExternalType void asPointerType
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "tree\n\t\"This method was automatically generated\"\n\t^ExternalData fromHandle: (handle pointerAt: OFFSET_TREE) type:", "suffix": "", "completion": " ExternalType void asPointerType" }
433
https://github.com/Evref-BL/Pharo-Tree-Sitter
13420b890ae8e54f47a29fb83117b15c30f2f8a8
src/TreeSitter/TSNode.class.st
tree: anObject "This method was automatically generated" handle pointerAt: OFFSET_TREE put: anObject getHandle.
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "tree: anObject\n\t\"This method was automatically generated\"\n\thandle pointerAt:", "suffix": ".", "completion": " OFFSET_TREE put: anObject getHandle" }
434
https://github.com/Evref-BL/Pharo-Tree-Sitter
13420b890ae8e54f47a29fb83117b15c30f2f8a8
src/TreeSitter/TSNode.class.st
type ^ TSLibrary uniqueInstance ts_node_type: self
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 4, "prefix": "type\n\n\t^", "suffix": "", "completion": " TSLibrary uniqueInstance ts_node_type: self" }
435
https://github.com/Evref-BL/Pharo-Tree-Sitter
13420b890ae8e54f47a29fb83117b15c30f2f8a8
src/TreeSitter/TSTree.class.st
rootNode ^ TSLibrary uniqueInstance ts_tree_root_node: self
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 4, "prefix": "rootNode\n\n\t^", "suffix": "", "completion": " TSLibrary uniqueInstance ts_tree_root_node: self" }
436
https://github.com/Evref-BL/Pharo-Tree-Sitter
30316e619bbeff3b5b947d719f2ac514b3c4238a
src/BaselineOfTreeSitter/BaselineOfTreeSitter.class.st
baseline: spec <baseline> spec for: #common do: [ self defineDependencies: spec. self definePackages: spec. self defineGroups: spec ]
[ { "filepath": "src/BaselineOfTreeSitter/BaselineOfTreeSitter.class.st", "code": "BaselineOf subclass: #BaselineOfTreeSitter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfTreeSitter'" }, { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase ...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 7, "prefix": "baseline: spec\n\n\t<baseline>\n\tspec for: #common do: [\n\t\tself defineDependencies: spec.\n\t\tself", "suffix": "", "completion": " definePackages: spec.\n\t\tself defineGroups: spec ]" }
437
https://github.com/Evref-BL/Pharo-Tree-Sitter
30316e619bbeff3b5b947d719f2ac514b3c4238a
src/BaselineOfTreeSitter/BaselineOfTreeSitter.class.st
definePackages: spec spec package: 'TreeSitter'; package: 'TreeSitter-Tests' with: [ spec requires: #( 'TreeSitter' 'TreeSitter-Python' ) ]; package: 'TreeSitter-Python' with: [ spec requires: #( 'TreeSitter' ) ]
[ { "filepath": "src/BaselineOfTreeSitter/BaselineOfTreeSitter.class.st", "code": "BaselineOf subclass: #BaselineOfTreeSitter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfTreeSitter'" }, { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase ...
{ "fim_idx": 0, "mask_type": "cascade", "n_masked_tokens": 10, "prefix": "definePackages: spec\n\n\tspec\n\t\tpackage: 'TreeSitter';\n\t\tpackage: 'TreeSitter-Tests'\n\t\twith: [ spec requires: #( 'TreeSitter' 'TreeSitter-Python' ) ];", "suffix": "", "completion": "\n\t\tpackage: 'TreeSitter-Python'\n\t\twi...
438
https://github.com/Evref-BL/Pharo-Tree-Sitter
30316e619bbeff3b5b947d719f2ac514b3c4238a
src/BaselineOfTreeSitter/BaselineOfTreeSitter.class.st
definePackages: spec spec package: 'TreeSitter'; package: 'TreeSitter-Tests' with: [ spec requires: #( 'TreeSitter' 'TreeSitter-Python' ) ]; package: 'TreeSitter-Python' with: [ spec requires: #( 'TreeSitter' ) ]
[ { "filepath": "src/BaselineOfTreeSitter/BaselineOfTreeSitter.class.st", "code": "BaselineOf subclass: #BaselineOfTreeSitter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfTreeSitter'" }, { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase ...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "definePackages: spec\n\n\tspec\n\t\tpackage: 'TreeSitter';\n\t\tpackage: 'TreeSitter-Tests'\n\t\twith: [ spec requires:", "suffix": " ];\n\t\tpackage: 'TreeSitter-Python'\n\t\twith: [ spec requires: #( 'TreeSitter' ) ]", "compl...
439
https://github.com/Evref-BL/Pharo-Tree-Sitter
30316e619bbeff3b5b947d719f2ac514b3c4238a
src/BaselineOfTreeSitter/BaselineOfTreeSitter.class.st
definePackages: spec spec package: 'TreeSitter'; package: 'TreeSitter-Tests' with: [ spec requires: #( 'TreeSitter' 'TreeSitter-Python' ) ]; package: 'TreeSitter-Python' with: [ spec requires: #( 'TreeSitter' ) ]
[ { "filepath": "src/BaselineOfTreeSitter/BaselineOfTreeSitter.class.st", "code": "BaselineOf subclass: #BaselineOfTreeSitter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfTreeSitter'" }, { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase ...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "definePackages: spec\n\n\tspec\n\t\tpackage: 'TreeSitter';\n\t\tpackage: 'TreeSitter-Tests'\n\t\twith: [ spec requires: #( 'TreeSitter' 'TreeSitter-Python' ) ];\n\t\tpackage: 'TreeSitter-Python'\n\t\twith: [ spec requires:", "suf...
440
https://github.com/Evref-BL/Pharo-Tree-Sitter
30316e619bbeff3b5b947d719f2ac514b3c4238a
src/TreeSitter/TSNode.class.st
childCount ^ TSLibrary uniqueInstance ts_node_child_count: self
[ { "filepath": "src/BaselineOfTreeSitter/BaselineOfTreeSitter.class.st", "code": "BaselineOf subclass: #BaselineOfTreeSitter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfTreeSitter'" }, { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase ...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 4, "prefix": "childCount\n\n\t^", "suffix": "", "completion": " TSLibrary uniqueInstance ts_node_child_count: self" }
441
https://github.com/Evref-BL/Pharo-Tree-Sitter
b51a8a2a7114a0b092411a9380cf46faa9d54cf1
src/TreeSitter-Tests/TSParserTest.class.st
testRootOfSimplePythonHasOneNamedChild | pythonLanguage string tree | parser := TSParser new. pythonLanguage := TSLanguage python. parser language: pythonLanguage. string := 'print("Hello, I''m Python!")'. tree := TSLibrary uniqueInstance ts_parser: parser _parse_string: string of...
[ { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase subclass: #TSParserTest\n\tinstanceVariableNames: 'parser'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tins...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "testRootOfSimplePythonHasOneNamedChild\n\n\t| pythonLanguage string tree |\n\tparser", "suffix": ".\n\tpythonLanguage := TSLanguage python.\n\tparser language: pythonLanguage.\n\n\tstring := 'print(\"Hello, I''m Python!\")'.\n\n\ttree...
442
https://github.com/Evref-BL/Pharo-Tree-Sitter
b51a8a2a7114a0b092411a9380cf46faa9d54cf1
src/TreeSitter-Tests/TSParserTest.class.st
testRootOfSimplePythonHasOneNamedChild | pythonLanguage string tree | parser := TSParser new. pythonLanguage := TSLanguage python. parser language: pythonLanguage. string := 'print("Hello, I''m Python!")'. tree := TSLibrary uniqueInstance ts_parser: parser _parse_string: string of...
[ { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase subclass: #TSParserTest\n\tinstanceVariableNames: 'parser'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tins...
{ "fim_idx": 1, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "testRootOfSimplePythonHasOneNamedChild\n\n\t| pythonLanguage string tree |\n\tparser := TSParser new.\n\tpythonLanguage", "suffix": ".\n\tparser language: pythonLanguage.\n\n\tstring := 'print(\"Hello, I''m Python!\")'.\n\n\ttree := T...
443
https://github.com/Evref-BL/Pharo-Tree-Sitter
b51a8a2a7114a0b092411a9380cf46faa9d54cf1
src/TreeSitter-Tests/TSParserTest.class.st
testRootOfSimplePythonHasOneNamedChild | pythonLanguage string tree | parser := TSParser new. pythonLanguage := TSLanguage python. parser language: pythonLanguage. string := 'print("Hello, I''m Python!")'. tree := TSLibrary uniqueInstance ts_parser: parser _parse_string: string of...
[ { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase subclass: #TSParserTest\n\tinstanceVariableNames: 'parser'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tins...
{ "fim_idx": 3, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "testRootOfSimplePythonHasOneNamedChild\n\n\t| pythonLanguage string tree |\n\tparser := TSParser new.\n\tpythonLanguage := TSLanguage python.\n\tparser language: pythonLanguage.\n\n\tstring := 'print(\"Hello, I''m Python!\")'.\n\n\...
444
https://github.com/Evref-BL/Pharo-Tree-Sitter
b51a8a2a7114a0b092411a9380cf46faa9d54cf1
src/TreeSitter/TSLibrary.class.st
ts_node_named_child_count: aTSNode ^ self ffiCall: 'uint32 ts_node_named_child_count(TSNode aTSNode)'
[ { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase subclass: #TSParserTest\n\tinstanceVariableNames: 'parser'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tins...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "ts_node_named_child_count: aTSNode\n\n\t^", "suffix": "", "completion": " self ffiCall: 'uint32 ts_node_named_child_count(TSNode aTSNode)'" }
445
https://github.com/Evref-BL/Pharo-Tree-Sitter
b51a8a2a7114a0b092411a9380cf46faa9d54cf1
src/TreeSitter/TSNode.class.st
namedChildCount ^ TSLibrary uniqueInstance ts_node_named_child_count: self
[ { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase subclass: #TSParserTest\n\tinstanceVariableNames: 'parser'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tins...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "namedChildCount\n\n\t^ TSLibrary", "suffix": "", "completion": " uniqueInstance ts_node_named_child_count: self" }
446
https://github.com/Evref-BL/Pharo-Tree-Sitter
c15c6b39d2a2abdc253bf3db4c26fce98376cd72
src/TreeSitter/TSLibrary.class.st
ts_node: aTSNode _named_child_count: child_index ^ self ffiCall: 'TSNode ts_node_named_child(TSNode aTSNode, uint32 child_index)'
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "ts_node: aTSNode _named_child_count: child_index\n\n\t^", "suffix": "", "completion": " self ffiCall:\n\t\t 'TSNode ts_node_named_child(TSNode aTSNode, uint32 child_index)'" }
447
https://github.com/Evref-BL/Pharo-Tree-Sitter
c15c6b39d2a2abdc253bf3db4c26fce98376cd72
src/TreeSitter/TSNode.class.st
namedChildAt: childIndex "starting at 0" ^ TSLibrary uniqueInstance ts_node: self _named_child_count: childIndex - 1
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 6, "prefix": "namedChildAt: childIndex\n\t\"starting at 0\"\n\n\t^ TSLibrary uniqueInstance", "suffix": "", "completion": "\n\t\t ts_node: self\n\t\t _named_child_count: childIndex - 1" }
448
https://github.com/Evref-BL/Pharo-Tree-Sitter
08aa90be68159b12e6c14fe9280394184348933d
src/TreeSitter-Tests/TSParserTest.class.st
testRootNodeSymbolSimplePythonProgram | pythonLanguage string tree | parser := TSParser new. pythonLanguage := TSLanguage python. parser language: pythonLanguage. string := 'print("Hello, I''m Python!")'. tree := TSLibrary uniqueInstance ts_parser: parser _parse_string: string ofL...
[ { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase subclass: #TSParserTest\n\tinstanceVariableNames: 'parser'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" } ]
{ "fim_idx": 2, "mask_type": "assignment", "n_masked_tokens": 10, "prefix": "testRootNodeSymbolSimplePythonProgram\n\n\t| pythonLanguage string tree |\n\tparser := TSParser new.\n\tpythonLanguage := TSLanguage python.\n\tparser language: pythonLanguage.\n\n\tstring := 'print(\"Hello, I''m Python!\")'.\n\n\ttree...
449
https://github.com/Evref-BL/Pharo-Tree-Sitter
08aa90be68159b12e6c14fe9280394184348933d
src/TreeSitter-Tests/TSParserTest.class.st
testRootNodeSymbolSimplePythonProgram | pythonLanguage string tree | parser := TSParser new. pythonLanguage := TSLanguage python. parser language: pythonLanguage. string := 'print("Hello, I''m Python!")'. tree := TSLibrary uniqueInstance ts_parser: parser _parse_string: string ofL...
[ { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase subclass: #TSParserTest\n\tinstanceVariableNames: 'parser'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" } ]
{ "fim_idx": 3, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "testRootNodeSymbolSimplePythonProgram\n\n\t| pythonLanguage string tree |\n\tparser := TSParser new.\n\tpythonLanguage := TSLanguage python.\n\tparser language: pythonLanguage.\n\n\tstring := 'print(\"Hello, I''m Python!\")'.\n\n\t...
450
https://github.com/Evref-BL/Pharo-Tree-Sitter
08aa90be68159b12e6c14fe9280394184348933d
src/TreeSitter-Tests/TSParserTest.class.st
testRootNodeSymbolSimplePythonProgram | pythonLanguage string tree | parser := TSParser new. pythonLanguage := TSLanguage python. parser language: pythonLanguage. string := 'print("Hello, I''m Python!")'. tree := TSLibrary uniqueInstance ts_parser: parser _parse_string: string ofL...
[ { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase subclass: #TSParserTest\n\tinstanceVariableNames: 'parser'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" } ]
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "testRootNodeSymbolSimplePythonProgram\n\n\t| pythonLanguage string tree |\n\tparser", "suffix": ".\n\tpythonLanguage := TSLanguage python.\n\tparser language: pythonLanguage.\n\n\tstring := 'print(\"Hello, I''m Python!\")'.\n\n\ttree ...
451
https://github.com/Evref-BL/Pharo-Tree-Sitter
345955973d6c5711690052407fb8a08df0aabd00
src/TreeSitter/TSPoint.class.st
fieldsDesc ^ #( uint32 row; uint32 column; )
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSPoint.class.st", "code": "FFIStructure subclass: #TSPoint\n\tinstanceVariableNames: ''\n...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 7, "prefix": "fieldsDesc\n\t^ #(", "suffix": "", "completion": "\n\t \tuint32 row;\n \t\tuint32 column;\n\t)" }
452
https://github.com/Evref-BL/Pharo-Tree-Sitter
345955973d6c5711690052407fb8a08df0aabd00
src/TreeSitter/TSPoint.class.st
column "This method was automatically generated" ^handle unsignedLongAt: OFFSET_COLUMN
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSPoint.class.st", "code": "FFIStructure subclass: #TSPoint\n\tinstanceVariableNames: ''\n...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "column\n\t\"This method was automatically generated\"\n\t^", "suffix": "", "completion": "handle unsignedLongAt: OFFSET_COLUMN" }
453
https://github.com/Evref-BL/Pharo-Tree-Sitter
345955973d6c5711690052407fb8a08df0aabd00
src/TreeSitter/TSPoint.class.st
column: anObject "This method was automatically generated" handle unsignedLongAt: OFFSET_COLUMN put: anObject
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSPoint.class.st", "code": "FFIStructure subclass: #TSPoint\n\tinstanceVariableNames: ''\n...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "column: anObject\n\t\"This method was automatically generated\"\n\thandle", "suffix": "", "completion": " unsignedLongAt: OFFSET_COLUMN put: anObject" }
454
https://github.com/Evref-BL/Pharo-Tree-Sitter
345955973d6c5711690052407fb8a08df0aabd00
src/TreeSitter/TSPoint.class.st
row "This method was automatically generated" ^handle unsignedLongAt: OFFSET_ROW
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSPoint.class.st", "code": "FFIStructure subclass: #TSPoint\n\tinstanceVariableNames: ''\n...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "row\n\t\"This method was automatically generated\"\n\t^", "suffix": "", "completion": "handle unsignedLongAt: OFFSET_ROW" }
455
https://github.com/Evref-BL/Pharo-Tree-Sitter
345955973d6c5711690052407fb8a08df0aabd00
src/TreeSitter/TSPoint.class.st
row: anObject "This method was automatically generated" handle unsignedLongAt: OFFSET_ROW put: anObject
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSPoint.class.st", "code": "FFIStructure subclass: #TSPoint\n\tinstanceVariableNames: ''\n...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "row: anObject\n\t\"This method was automatically generated\"\n\thandle unsignedLongAt:", "suffix": "", "completion": " OFFSET_ROW put: anObject" }
456
https://github.com/Evref-BL/Pharo-Tree-Sitter
c4e6ff6bd6388b664dd431b632a45210295ce466
src/TreeSitter/TSLibrary.class.st
ts_node_end_point: aTSNode ^ self ffiCall: 'TSPoint ts_node_end_point(TSNode aTSNode)'
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "ts_node_end_point: aTSNode\n\n\t^", "suffix": "", "completion": " self ffiCall: 'TSPoint ts_node_end_point(TSNode aTSNode)'" }
457
https://github.com/Evref-BL/Pharo-Tree-Sitter
c4e6ff6bd6388b664dd431b632a45210295ce466
src/TreeSitter/TSLibrary.class.st
ts_node_start_point: aTSNode ^ self ffiCall: 'TSPoint ts_node_start_point(TSNode aTSNode)'
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "ts_node_start_point: aTSNode\n\n\t^", "suffix": "", "completion": " self ffiCall: 'TSPoint ts_node_start_point(TSNode aTSNode)'" }
458
https://github.com/Evref-BL/Pharo-Tree-Sitter
c4e6ff6bd6388b664dd431b632a45210295ce466
src/TreeSitter/TSNode.class.st
endPoint ^ TSLibrary uniqueInstance ts_node_end_point: self
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 4, "prefix": "endPoint\n\n\t^", "suffix": "", "completion": " TSLibrary uniqueInstance ts_node_end_point: self" }
459
https://github.com/Evref-BL/Pharo-Tree-Sitter
c4e6ff6bd6388b664dd431b632a45210295ce466
src/TreeSitter/TSNode.class.st
startPoint ^ TSLibrary uniqueInstance ts_node_start_point: self
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "startPoint\n\n\t^ TSLibrary", "suffix": "", "completion": " uniqueInstance ts_node_start_point: self" }
460
https://github.com/Evref-BL/Pharo-Tree-Sitter
284613288a72c7f749e2e245d20e92a5603d72f6
src/BaselineOfTreeSitter/BaselineOfTreeSitter.class.st
definePackages: spec spec package: 'TreeSitter'; package: 'TreeSitter-Tests' with: [ spec requires: #( 'TreeSitter' 'TreeSitter-Python' ) ]; package: 'TreeSitter-Python' with: [ spec requires: #( 'TreeSitter' ) ]; package: 'TreeSitter-Spec' with: [ spec requires: #( 'TreeSitter' ) ]
[ { "filepath": "src/BaselineOfTreeSitter/BaselineOfTreeSitter.class.st", "code": "BaselineOf subclass: #BaselineOfTreeSitter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfTreeSitter'" }, { "filepath": "src/TreeSitter-Spec/TSNode.extension.st", "code": "Object subcl...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "definePackages: spec\n \n \tspec\n \t\tpackage: 'TreeSitter';\n \t\tpackage: 'TreeSitter-Tests'\n \t\twith: [ spec requires: #( 'TreeSitter' 'TreeSitter-Python' ) ];\n \t\tpackage: 'TreeSitter-Python'\n\t\twith: [ spec", "suffix"...
461
https://github.com/Evref-BL/Pharo-Tree-Sitter
284613288a72c7f749e2e245d20e92a5603d72f6
src/TreeSitter-Spec/TSNode.extension.st
tsTreeExtension <inspectorPresentationOrder: 15 title: 'TS Tree'> ^ SpTreeTablePresenter new addColumn: (SpCompositeTableColumn new addColumn: (SpStringTableColumn evaluated: #type); yourself); children: [ :aTSNode | (1 to: aTSNode namedChildCount) collect: [ :idx | aTSNode namedChil...
[ { "filepath": "src/BaselineOfTreeSitter/BaselineOfTreeSitter.class.st", "code": "BaselineOf subclass: #BaselineOfTreeSitter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfTreeSitter'" }, { "filepath": "src/TreeSitter-Spec/TSNode.extension.st", "code": "Object subcl...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 9, "prefix": "tsTreeExtension\n\n\t<inspectorPresentationOrder: 15 title: 'TS Tree'>\n\t^ SpTreeTablePresenter new\n\t\t addColumn: (SpCompositeTableColumn new\n\t\t\t\t addColumn: (SpStringTableColumn evaluated: #type);\n\t\t\t\t yourself);\n\t\t ...
462
https://github.com/Evref-BL/Pharo-Tree-Sitter
284613288a72c7f749e2e245d20e92a5603d72f6
src/TreeSitter-Spec/TSNode.extension.st
tsTreeExtension <inspectorPresentationOrder: 15 title: 'TS Tree'> ^ SpTreeTablePresenter new addColumn: (SpCompositeTableColumn new addColumn: (SpStringTableColumn evaluated: #type); yourself); children: [ :aTSNode | (1 to: aTSNode namedChildCount) collect: [ :idx | aTSNode namedChil...
[ { "filepath": "src/BaselineOfTreeSitter/BaselineOfTreeSitter.class.st", "code": "BaselineOf subclass: #BaselineOfTreeSitter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfTreeSitter'" }, { "filepath": "src/TreeSitter-Spec/TSNode.extension.st", "code": "Object subcl...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 6, "prefix": "tsTreeExtension\n\n\t<inspectorPresentationOrder: 15 title: 'TS Tree'>\n\t^ SpTreeTablePresenter new\n\t\t addColumn: (SpCompositeTableColumn new\n\t\t\t\t addColumn: (SpStringTableColumn evaluated: #type);\n\t\t\t\t yourself)...
463
https://github.com/Evref-BL/Pharo-Tree-Sitter
94bf85079cfe3f8288b6b304f8b8e0b6e95e9821
src/TreeSitter/TSParser.class.st
parseString: aString ^ TSLibrary uniqueInstance ts_parser: self _parse_string: aString ofLength: aString size usingOldTree: ExternalAddress null
[ { "filepath": "src/TreeSitter/TSParser.class.st", "code": "FFIOpaqueObject subclass: #TSParser\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" } ]
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 8, "prefix": "parseString: aString\n\n\t^ TSLibrary uniqueInstance\n\t\t ts_parser: self", "suffix": "", "completion": "\n\t\t _parse_string: aString\n\t\t ofLength: aString size\n\t\t usingOldTree: ExternalAddress null" }
464
https://github.com/Evref-BL/Pharo-Tree-Sitter
4e8e1e1b272b5c720112e9994ad177c24c0f68fc
src/TreeSitter-Python/TSPythonLibrary.class.st
win32LibraryName ^ FFIWindowsLibraryFinder findAnyLibrary: #('python.dll')
[ { "filepath": "src/TreeSitter-Python/TSPythonLibrary.class.st", "code": "FFILibrary subclass: #TSPythonLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Python'" }, { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 5, "prefix": "win32LibraryName\n\n\t^", "suffix": "", "completion": " FFIWindowsLibraryFinder findAnyLibrary: #('python.dll')" }
465
https://github.com/Evref-BL/Pharo-Tree-Sitter
4e8e1e1b272b5c720112e9994ad177c24c0f68fc
src/TreeSitter/TSLibrary.class.st
win32LibraryName ^ FFIWindowsLibraryFinder findAnyLibrary: #('libtree-sitter.dll')
[ { "filepath": "src/TreeSitter-Python/TSPythonLibrary.class.st", "code": "FFILibrary subclass: #TSPythonLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Python'" }, { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 4, "prefix": "win32LibraryName\n\n\t^ FFIWindowsLibraryFinder", "suffix": "", "completion": " findAnyLibrary: #('libtree-sitter.dll')" }
466
https://github.com/Evref-BL/Pharo-Tree-Sitter
b5bfbc2540c67319616b7a37a3cb893b8e4ae801
src/TreeSitter/TSLibrary.class.st
ts_tree_cursor_current_field_name: aTSTreeCursor ^ self ffiCall: 'char * ts_tree_cursor_current_node(TSTreeCursor * aTSTreeCursor)'
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "ts_tree_cursor_current_field_name: aTSTreeCursor\n\n\t^", "suffix": "", "completion": " self ffiCall: 'char * ts_tree_cursor_current_node(TSTreeCursor * aTSTreeCursor)'" }
467
https://github.com/Evref-BL/Pharo-Tree-Sitter
b5bfbc2540c67319616b7a37a3cb893b8e4ae801
src/TreeSitter/TSLibrary.class.st
ts_tree_cursor_current_node: aTSTreeCursor ^ self ffiCall: 'TSNode ts_tree_cursor_current_node(TSTreeCursor * aTSTreeCursor) '
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "ts_tree_cursor_current_node: aTSTreeCursor\n\n\t^", "suffix": "", "completion": " self ffiCall: 'TSNode ts_tree_cursor_current_node(TSTreeCursor * aTSTreeCursor) '" }
468
https://github.com/Evref-BL/Pharo-Tree-Sitter
b5bfbc2540c67319616b7a37a3cb893b8e4ae801
src/TreeSitter/TSLibrary.class.st
ts_tree_cursor_goto_first_child: aTSTreeCursor ^ self ffiCall: 'Boolean ts_tree_cursor_goto_first_child(TSTreeCursor aTSTreeCursor)'
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "ts_tree_cursor_goto_first_child: aTSTreeCursor\n\n\t^", "suffix": "", "completion": " self ffiCall: 'Boolean ts_tree_cursor_goto_first_child(TSTreeCursor aTSTreeCursor)'" }
469
https://github.com/Evref-BL/Pharo-Tree-Sitter
b5bfbc2540c67319616b7a37a3cb893b8e4ae801
src/TreeSitter/TSLibrary.class.st
ts_tree_cursor_goto_next_sibling: aTSTreeCursor ^ self ffiCall: 'bool ts_tree_cursor_goto_next_sibling(TSTreeCursor * aTSTreeCursor)'
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "ts_tree_cursor_goto_next_sibling: aTSTreeCursor\n\n\t^", "suffix": "", "completion": " self ffiCall: 'bool ts_tree_cursor_goto_next_sibling(TSTreeCursor * aTSTreeCursor)'" }
470
https://github.com/Evref-BL/Pharo-Tree-Sitter
b5bfbc2540c67319616b7a37a3cb893b8e4ae801
src/TreeSitter/TSLibrary.class.st
ts_tree_cursor_goto_parent: aTSTreeCursor ^ self ffiCall: 'bool ts_tree_cursor_goto_parent(TSTreeCursor * aTSTreeCursor)'
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "ts_tree_cursor_goto_parent: aTSTreeCursor\n\n\t^", "suffix": "", "completion": " self ffiCall: 'bool ts_tree_cursor_goto_parent(TSTreeCursor * aTSTreeCursor)'" }
471
https://github.com/Evref-BL/Pharo-Tree-Sitter
b5bfbc2540c67319616b7a37a3cb893b8e4ae801
src/TreeSitter/TSLibrary.class.st
ts_tree_cursor_new: aTSNode ^ self ffiCall: 'TSTreeCursor ts_tree_cursor_new (TSNode aTSNode)'
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "ts_tree_cursor_new: aTSNode\n\n\t^", "suffix": "", "completion": " self ffiCall: 'TSTreeCursor ts_tree_cursor_new (TSNode aTSNode)'" }
472
https://github.com/Evref-BL/Pharo-Tree-Sitter
b5bfbc2540c67319616b7a37a3cb893b8e4ae801
src/TreeSitter/TSNode.class.st
cursor ^ TSLibrary uniqueInstance ts_tree_cursor_new: self
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "cursor\n\n\t^ TSLibrary", "suffix": "", "completion": " uniqueInstance ts_tree_cursor_new: self" }
473
https://github.com/Evref-BL/Pharo-Tree-Sitter
b5bfbc2540c67319616b7a37a3cb893b8e4ae801
src/TreeSitter/TSTreeCursor.class.st
currentNode ^ TSLibrary uniqueInstance ts_tree_cursor_current_node: self
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "currentNode\n\n\t^ TSLibrary", "suffix": "", "completion": " uniqueInstance ts_tree_cursor_current_node: self" }
474
https://github.com/Evref-BL/Pharo-Tree-Sitter
b5bfbc2540c67319616b7a37a3cb893b8e4ae801
src/TreeSitter/TSTreeCursor.class.st
fieldName ^ TSLibrary uniqueInstance ts_tree_cursor_current_field_name: self
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 4, "prefix": "fieldName\n\n\t^", "suffix": "", "completion": " TSLibrary uniqueInstance ts_tree_cursor_current_field_name: self" }
475
https://github.com/Evref-BL/Pharo-Tree-Sitter
b5bfbc2540c67319616b7a37a3cb893b8e4ae801
src/TreeSitter/TSTreeCursor.class.st
firstChild ^ TSLibrary uniqueInstance ts_tree_cursor_goto_first_child: self
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\t...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 4, "prefix": "firstChild\n\n\t^", "suffix": "", "completion": " TSLibrary uniqueInstance ts_tree_cursor_goto_first_child: self" }
476
https://github.com/Evref-BL/Pharo-Tree-Sitter
479844117fa52585d9e896778fca60dd6d400ea1
src/TreeSitter/TSNode.class.st
printOn: aStream super printOn: aStream. self isNamed ifTrue: [ aStream << ' (' << self type << ')' ]
[ { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\tclassVariableNames: 'OFFSET_CONTEXT0 OFFSET_CONTEXT1 OFFSET_CONTEXT2 OFFSET_CONTEXT3 OFFSET_ID OFFSET_TREE'\n\tpackage: 'TreeSitter'" } ]
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 9, "prefix": "printOn: aStream\n\n\tsuper printOn: aStream.\n\tself isNamed ifTrue: [", "suffix": "", "completion": " aStream << ' (' << self type << ')' ]" }
477
https://github.com/Evref-BL/Pharo-Tree-Sitter
479844117fa52585d9e896778fca60dd6d400ea1
src/TreeSitter/TSNode.class.st
printOn: aStream super printOn: aStream. self isNamed ifTrue: [ aStream << ' (' << self type << ')' ]
[ { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanceVariableNames: ''\n\tclassVariableNames: 'OFFSET_CONTEXT0 OFFSET_CONTEXT1 OFFSET_CONTEXT2 OFFSET_CONTEXT3 OFFSET_ID OFFSET_TREE'\n\tpackage: 'TreeSitter'" } ]
{ "fim_idx": 1, "mask_type": "binary_message", "n_masked_tokens": 4, "prefix": "printOn: aStream\n\n\tsuper printOn: aStream.\n\tself isNamed ifTrue: [ aStream << ' (' <<", "suffix": " ]", "completion": " self type << ')'" }
478
https://github.com/Evref-BL/Pharo-Tree-Sitter
eb187b900eff734f603baef746480dcc229f706b
src/TreeSitter-Mermaid/TSLanguage.extension.st
mermaid ^ TSMermaidLibrary uniqueInstance tree_sitter_mermaid
[ { "filepath": "src/TreeSitter-Mermaid/TSLanguage.extension.st", "code": "Object subclass: #TSLanguage\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''" }, { "filepath": "src/TreeSitter-Mermaid/TSMermaidLibrary.class.st", "code": "FFILibrary subclass: #TSMermaidLibrary\n\tins...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "mermaid\n\n\t^", "suffix": "", "completion": " TSMermaidLibrary uniqueInstance tree_sitter_mermaid" }
479
https://github.com/Evref-BL/Pharo-Tree-Sitter
eb187b900eff734f603baef746480dcc229f706b
src/TreeSitter-Mermaid/TSMermaidLibrary.class.st
tree_sitter_mermaid ^ self ffiCall: 'TSLanguage * tree_sitter_mermaid ()'
[ { "filepath": "src/TreeSitter-Mermaid/TSLanguage.extension.st", "code": "Object subclass: #TSLanguage\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''" }, { "filepath": "src/TreeSitter-Mermaid/TSMermaidLibrary.class.st", "code": "FFILibrary subclass: #TSMermaidLibrary\n\tins...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "tree_sitter_mermaid\n\n\t^", "suffix": "", "completion": " self ffiCall: 'TSLanguage * tree_sitter_mermaid ()'" }
480
https://github.com/Evref-BL/Pharo-Tree-Sitter
eb187b900eff734f603baef746480dcc229f706b
src/TreeSitter-Mermaid/TSMermaidLibrary.class.st
win32LibraryName ^ FFIWindowsLibraryFinder findAnyLibrary: #('mermaid.dll')
[ { "filepath": "src/TreeSitter-Mermaid/TSLanguage.extension.st", "code": "Object subclass: #TSLanguage\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''" }, { "filepath": "src/TreeSitter-Mermaid/TSMermaidLibrary.class.st", "code": "FFILibrary subclass: #TSMermaidLibrary\n\tins...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "win32LibraryName\n\n\t^ FFIWindowsLibraryFinder findAnyLibrary:", "suffix": "", "completion": " #('mermaid.dll')" }
481
https://github.com/Evref-BL/Pharo-Tree-Sitter
2772f0f419ab7262c9f7e2ba932618e9217573e3
src/TreeSitter/TSTreeCursor.class.st
fieldsDesc ^ #( TSTree *tree; void *id; uint32 context0; uint32 context1; uint32 context2; )
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSTreeCursor.class.st", "code": "FFIStructure subclass: #TSTreeCursor\n\tinstanceVariableN...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 9, "prefix": "fieldsDesc\n\t^ #(\n TSTree *tree;\n void *id;\n uint32", "suffix": "", "completion": " context0;\n uint32 context1;\n uint32 context2;\n\t)" }
482
https://github.com/Evref-BL/Pharo-Tree-Sitter
2772f0f419ab7262c9f7e2ba932618e9217573e3
src/TreeSitter/TSTreeCursor.class.st
context0 "This method was automatically generated" ^handle unsignedLongAt: OFFSET_CONTEXT0
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSTreeCursor.class.st", "code": "FFIStructure subclass: #TSTreeCursor\n\tinstanceVariableN...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "context0\n\t\"This method was automatically generated\"\n\t^", "suffix": "", "completion": "handle unsignedLongAt: OFFSET_CONTEXT0" }
483
https://github.com/Evref-BL/Pharo-Tree-Sitter
2772f0f419ab7262c9f7e2ba932618e9217573e3
src/TreeSitter/TSTreeCursor.class.st
context0: anObject "This method was automatically generated" handle unsignedLongAt: OFFSET_CONTEXT0 put: anObject
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSTreeCursor.class.st", "code": "FFIStructure subclass: #TSTreeCursor\n\tinstanceVariableN...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "context0: anObject\n\t\"This method was automatically generated\"\n\thandle", "suffix": "", "completion": " unsignedLongAt: OFFSET_CONTEXT0 put: anObject" }
484
https://github.com/Evref-BL/Pharo-Tree-Sitter
2772f0f419ab7262c9f7e2ba932618e9217573e3
src/TreeSitter/TSTreeCursor.class.st
context1 "This method was automatically generated" ^handle unsignedLongAt: OFFSET_CONTEXT1
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSTreeCursor.class.st", "code": "FFIStructure subclass: #TSTreeCursor\n\tinstanceVariableN...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "context1\n\t\"This method was automatically generated\"\n\t^", "suffix": "", "completion": "handle unsignedLongAt: OFFSET_CONTEXT1" }
485
https://github.com/Evref-BL/Pharo-Tree-Sitter
2772f0f419ab7262c9f7e2ba932618e9217573e3
src/TreeSitter/TSTreeCursor.class.st
context1: anObject "This method was automatically generated" handle unsignedLongAt: OFFSET_CONTEXT1 put: anObject
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSTreeCursor.class.st", "code": "FFIStructure subclass: #TSTreeCursor\n\tinstanceVariableN...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "context1: anObject\n\t\"This method was automatically generated\"\n\thandle", "suffix": "", "completion": " unsignedLongAt: OFFSET_CONTEXT1 put: anObject" }
486
https://github.com/Evref-BL/Pharo-Tree-Sitter
2772f0f419ab7262c9f7e2ba932618e9217573e3
src/TreeSitter/TSTreeCursor.class.st
context2 "This method was automatically generated" ^handle unsignedLongAt: OFFSET_CONTEXT2
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSTreeCursor.class.st", "code": "FFIStructure subclass: #TSTreeCursor\n\tinstanceVariableN...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "context2\n\t\"This method was automatically generated\"\n\t^", "suffix": "", "completion": "handle unsignedLongAt: OFFSET_CONTEXT2" }
487
https://github.com/Evref-BL/Pharo-Tree-Sitter
2772f0f419ab7262c9f7e2ba932618e9217573e3
src/TreeSitter/TSTreeCursor.class.st
context2: anObject "This method was automatically generated" handle unsignedLongAt: OFFSET_CONTEXT2 put: anObject
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSTreeCursor.class.st", "code": "FFIStructure subclass: #TSTreeCursor\n\tinstanceVariableN...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "context2: anObject\n\t\"This method was automatically generated\"\n\thandle unsignedLongAt:", "suffix": "", "completion": " OFFSET_CONTEXT2 put: anObject" }
488
https://github.com/Evref-BL/Pharo-Tree-Sitter
2772f0f419ab7262c9f7e2ba932618e9217573e3
src/TreeSitter/TSTreeCursor.class.st
id "This method was automatically generated" ^ExternalData fromHandle: (handle pointerAt: OFFSET_ID) type: ExternalType void asPointerType
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSTreeCursor.class.st", "code": "FFIStructure subclass: #TSTreeCursor\n\tinstanceVariableN...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 9, "prefix": "id\n\t\"This method was automatically generated\"\n\t^ExternalData fromHandle:", "suffix": "", "completion": " (handle pointerAt: OFFSET_ID) type: ExternalType void asPointerType" }
489
https://github.com/Evref-BL/Pharo-Tree-Sitter
2772f0f419ab7262c9f7e2ba932618e9217573e3
src/TreeSitter/TSTreeCursor.class.st
id: anObject "This method was automatically generated" handle pointerAt: OFFSET_ID put: anObject getHandle.
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSTreeCursor.class.st", "code": "FFIStructure subclass: #TSTreeCursor\n\tinstanceVariableN...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "id: anObject\n\t\"This method was automatically generated\"\n\thandle", "suffix": ".", "completion": " pointerAt: OFFSET_ID put: anObject getHandle" }
490
https://github.com/Evref-BL/Pharo-Tree-Sitter
2772f0f419ab7262c9f7e2ba932618e9217573e3
src/TreeSitter/TSTreeCursor.class.st
tree "This method was automatically generated" ^ExternalData fromHandle: (handle pointerAt: OFFSET_TREE) type: ExternalType void asPointerType
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSTreeCursor.class.st", "code": "FFIStructure subclass: #TSTreeCursor\n\tinstanceVariableN...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 4, "prefix": "tree\n\t\"This method was automatically generated\"\n\t^ExternalData fromHandle: (handle pointerAt: OFFSET_TREE)", "suffix": "", "completion": " type: ExternalType void asPointerType" }
491
https://github.com/Evref-BL/Pharo-Tree-Sitter
2772f0f419ab7262c9f7e2ba932618e9217573e3
src/TreeSitter/TSTreeCursor.class.st
tree: anObject "This method was automatically generated" handle pointerAt: OFFSET_TREE put: anObject getHandle.
[ { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSTreeCursor.class.st", "code": "FFIStructure subclass: #TSTreeCursor\n\tinstanceVariableN...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "tree: anObject\n\t\"This method was automatically generated\"\n\thandle", "suffix": ".", "completion": " pointerAt: OFFSET_TREE put: anObject getHandle" }
492
https://github.com/Evref-BL/Pharo-Tree-Sitter
87c0d9dd2f80bd91f46e841a70bf72b13ec51fb2
src/TreeSitter-Highlighter/String.extension.st
positionFromTSPoint: aTSPoint | sum currentLine lines | sum := aTSPoint column. currentLine := 0. lines := self tsLines. [ currentLine < aTSPoint row ] whileTrue: [ sum := sum + (lines at: currentLine + 1) size. currentLine := currentLine + 1 ]. ^ sum
[ { "filepath": "src/TreeSitter-Highlighter/String.extension.st", "code": "Object subclass: #String\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''" }, { "filepath": "src/TreeSitter-Highlighter/TSHighlighter.class.st", "code": "Object subclass: #TSHighlighter\n\tinstanceVaria...
{ "fim_idx": 4, "mask_type": "assignment", "n_masked_tokens": 4, "prefix": "positionFromTSPoint: aTSPoint\n\n\t| sum currentLine lines |\n\tsum := aTSPoint column.\n\tcurrentLine := 0.\n\tlines := self tsLines.\n\t[ currentLine < aTSPoint row ] whileTrue: [\n\t\tsum := sum + (lines at: currentLine", "suffix":...
493
https://github.com/Evref-BL/Pharo-Tree-Sitter
87c0d9dd2f80bd91f46e841a70bf72b13ec51fb2
src/TreeSitter-Highlighter/String.extension.st
positionFromTSPoint: aTSPoint | sum currentLine lines | sum := aTSPoint column. currentLine := 0. lines := self tsLines. [ currentLine < aTSPoint row ] whileTrue: [ sum := sum + (lines at: currentLine + 1) size. currentLine := currentLine + 1 ]. ^ sum
[ { "filepath": "src/TreeSitter-Highlighter/String.extension.st", "code": "Object subclass: #String\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''" }, { "filepath": "src/TreeSitter-Highlighter/TSHighlighter.class.st", "code": "Object subclass: #TSHighlighter\n\tinstanceVaria...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 8, "prefix": "positionFromTSPoint: aTSPoint\n\n\t| sum currentLine lines |\n\tsum := aTSPoint column.\n\tcurrentLine := 0.\n\tlines := self tsLines.\n\t[ currentLine < aTSPoint row ] whileTrue: [\n\t\tsum := sum + (lines at: currentLine + 1)", ...
494
https://github.com/Evref-BL/Pharo-Tree-Sitter
87c0d9dd2f80bd91f46e841a70bf72b13ec51fb2
src/TreeSitter-Highlighter/String.extension.st
positionFromTSPoint: aTSPoint | sum currentLine lines | sum := aTSPoint column. currentLine := 0. lines := self tsLines. [ currentLine < aTSPoint row ] whileTrue: [ sum := sum + (lines at: currentLine + 1) size. currentLine := currentLine + 1 ]. ^ sum
[ { "filepath": "src/TreeSitter-Highlighter/String.extension.st", "code": "Object subclass: #String\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''" }, { "filepath": "src/TreeSitter-Highlighter/TSHighlighter.class.st", "code": "Object subclass: #TSHighlighter\n\tinstanceVaria...
{ "fim_idx": 5, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "positionFromTSPoint: aTSPoint\n\n\t| sum currentLine lines |\n\tsum := aTSPoint column.\n\tcurrentLine := 0.\n\tlines := self tsLines.\n\t[ currentLine < aTSPoint row ] whileTrue: [\n\t\tsum := sum + (lines at: currentLine + 1) size.\n\...
495
https://github.com/Evref-BL/Pharo-Tree-Sitter
87c0d9dd2f80bd91f46e841a70bf72b13ec51fb2
src/TreeSitter-Highlighter/String.extension.st
tsLineIndicesDo: aBlock "execute aBlock with 3 arguments for each line: - start index of line - end index of line without line delimiter - end index of line including line delimiter(s) CR, LF or CRLF" | cr lf start sz nextLF nextCR | start := 1. sz := self size. cr := Character cr. nextCR := self indexOf: cr ...
[ { "filepath": "src/TreeSitter-Highlighter/String.extension.st", "code": "Object subclass: #String\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''" }, { "filepath": "src/TreeSitter-Highlighter/TSHighlighter.class.st", "code": "Object subclass: #TSHighlighter\n\tinstanceVaria...
{ "fim_idx": 10, "mask_type": "keyword_message", "n_masked_tokens": 9, "prefix": "tsLineIndicesDo: aBlock\n\t\"execute aBlock with 3 arguments for each line:\n\t- start index of line\n\t- end index of line without line delimiter\n\t- end index of line including line delimiter(s) CR, LF or CRLF\"\n\n\t| cr lf st...
496
https://github.com/Evref-BL/Pharo-Tree-Sitter
87c0d9dd2f80bd91f46e841a70bf72b13ec51fb2
src/TreeSitter-Highlighter/String.extension.st
tsLineIndicesDo: aBlock "execute aBlock with 3 arguments for each line: - start index of line - end index of line without line delimiter - end index of line including line delimiter(s) CR, LF or CRLF" | cr lf start sz nextLF nextCR | start := 1. sz := self size. cr := Character cr. nextCR := self indexOf: cr ...
[ { "filepath": "src/TreeSitter-Highlighter/String.extension.st", "code": "Object subclass: #String\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''" }, { "filepath": "src/TreeSitter-Highlighter/TSHighlighter.class.st", "code": "Object subclass: #TSHighlighter\n\tinstanceVaria...
{ "fim_idx": 20, "mask_type": "keyword_message", "n_masked_tokens": 8, "prefix": "tsLineIndicesDo: aBlock\n\t\"execute aBlock with 3 arguments for each line:\n\t- start index of line\n\t- end index of line without line delimiter\n\t- end index of line including line delimiter(s) CR, LF or CRLF\"\n\n\t| cr lf st...
497
https://github.com/Evref-BL/Pharo-Tree-Sitter
87c0d9dd2f80bd91f46e841a70bf72b13ec51fb2
src/TreeSitter-Highlighter/String.extension.st
tsLineIndicesDo: aBlock "execute aBlock with 3 arguments for each line: - start index of line - end index of line without line delimiter - end index of line including line delimiter(s) CR, LF or CRLF" | cr lf start sz nextLF nextCR | start := 1. sz := self size. cr := Character cr. nextCR := self indexOf: cr ...
[ { "filepath": "src/TreeSitter-Highlighter/String.extension.st", "code": "Object subclass: #String\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''" }, { "filepath": "src/TreeSitter-Highlighter/TSHighlighter.class.st", "code": "Object subclass: #TSHighlighter\n\tinstanceVaria...
{ "fim_idx": 8, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "tsLineIndicesDo: aBlock\n\t\"execute aBlock with 3 arguments for each line:\n\t- start index of line\n\t- end index of line without line delimiter\n\t- end index of line including line delimiter(s) CR, LF or CRLF\"\n\n\t| cr lf sta...
498
https://github.com/Evref-BL/Pharo-Tree-Sitter
87c0d9dd2f80bd91f46e841a70bf72b13ec51fb2
src/TreeSitter-Highlighter/String.extension.st
tsLines "Same as lines but empty line exist" ^ Array new: (self size // 60 max: 16) streamContents: [ :lines | self tsLinesDo: [ :aLine | lines nextPut: aLine ] ]
[ { "filepath": "src/TreeSitter-Highlighter/String.extension.st", "code": "Object subclass: #String\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''" }, { "filepath": "src/TreeSitter-Highlighter/TSHighlighter.class.st", "code": "Object subclass: #TSHighlighter\n\tinstanceVaria...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 5, "prefix": "tsLines\n\t\"Same as lines but empty line exist\"\n\n\t^ Array\n\t\t new: (self size // 60 max: 16)\n\t\t streamContents: [ :lines |\n\t\t self tsLinesDo: [ :aLine |", "suffix": "", "completion": " lines nextPut: aLine ] ]" }
499
https://github.com/Evref-BL/Pharo-Tree-Sitter
87c0d9dd2f80bd91f46e841a70bf72b13ec51fb2
src/TreeSitter-Highlighter/String.extension.st
tsLines "Same as lines but empty line exist" ^ Array new: (self size // 60 max: 16) streamContents: [ :lines | self tsLinesDo: [ :aLine | lines nextPut: aLine ] ]
[ { "filepath": "src/TreeSitter-Highlighter/String.extension.st", "code": "Object subclass: #String\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''" }, { "filepath": "src/TreeSitter-Highlighter/TSHighlighter.class.st", "code": "Object subclass: #TSHighlighter\n\tinstanceVaria...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 7, "prefix": "tsLines\n\t\"Same as lines but empty line exist\"\n\n\t^ Array\n\t\t new: (self size // 60 max: 16)\n\t\t streamContents: [ :lines |\n\t\t self tsLinesDo: [", "suffix": " ]", "completion": " :aLine | lines nextPut: aLine ]" ...