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
500
https://github.com/Evref-BL/Pharo-Tree-Sitter
87c0d9dd2f80bd91f46e841a70bf72b13ec51fb2
src/TreeSitter-Highlighter/String.extension.st
tsLinesDo: aBlock "Same as linesDo but empty line exist" self tsLineIndicesDo: [ :start :endWithoutDelimiters :end | | begin | "endWithoutDelimiters = start ifTrue: [ aBlock value: '' ] ifFalse: [" begin := (start = 0) ifTrue: [ 1 ] ifFalse: [ start ]. aBlock value: (self copyFrom: begin...
[ { "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": "keyword_message", "n_masked_tokens": 7, "prefix": "tsLinesDo: aBlock\n\t\"Same as linesDo but empty line exist\"\n\n\tself\n\t\ttsLineIndicesDo: [ :start :endWithoutDelimiters :end |\n\t\t\t| begin |\n\t\t\t\"endWithoutDelimiters = start\n\t\t\t\tifTrue: [ aBlock value: '' ]\n\t\t\...
501
https://github.com/Evref-BL/Pharo-Tree-Sitter
87c0d9dd2f80bd91f46e841a70bf72b13ec51fb2
src/TreeSitter-Highlighter/String.extension.st
tsLinesDo: aBlock "Same as linesDo but empty line exist" self tsLineIndicesDo: [ :start :endWithoutDelimiters :end | | begin | "endWithoutDelimiters = start ifTrue: [ aBlock value: '' ] ifFalse: [" begin := (start = 0) ifTrue: [ 1 ] ifFalse: [ start ]. aBlock value: (self copyFrom: begin...
[ { "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": "assignment", "n_masked_tokens": 3, "prefix": "tsLinesDo: aBlock\n\t\"Same as linesDo but empty line exist\"\n\n\tself\n\t\ttsLineIndicesDo: [ :start :endWithoutDelimiters :end |\n\t\t\t| begin |\n\t\t\t\"endWithoutDelimiters = start\n\t\t\t\tifTrue: [ aBlock value: '' ]\n\t\t\t\tif...
502
https://github.com/Evref-BL/Pharo-Tree-Sitter
87c0d9dd2f80bd91f46e841a70bf72b13ec51fb2
src/TreeSitter-Highlighter/String.extension.st
tsLinesDo: aBlock "Same as linesDo but empty line exist" self tsLineIndicesDo: [ :start :endWithoutDelimiters :end | | begin | "endWithoutDelimiters = start ifTrue: [ aBlock value: '' ] ifFalse: [" begin := (start = 0) ifTrue: [ 1 ] ifFalse: [ start ]. aBlock value: (self copyFrom: begin...
[ { "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": "tsLinesDo: aBlock\n\t\"Same as linesDo but empty line exist\"\n\n\tself\n\t\ttsLineIndicesDo: [ :start :endWithoutDelimiters :end |\n\t\t\t| begin |\n\t\t\t\"endWithoutDelimiters = start\n\t\t\t\tifTrue: [ aBlock value: '' ]\n\t\t\...
503
https://github.com/Evref-BL/Pharo-Tree-Sitter
87c0d9dd2f80bd91f46e841a70bf72b13ec51fb2
src/TreeSitter-Highlighter/TSHighlighter.class.st
addAttribute: aTextAttribute for: anEntity | attributes | attributes := self attributeMapper at: anEntity ifAbsentPut: [ OrderedCollection new ]. attributes add: aTextAttribute
[ { "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": "assignment", "n_masked_tokens": 9, "prefix": "addAttribute: aTextAttribute for: anEntity\n\n\t| attributes |\n\tattributes :=", "suffix": ".\n\tattributes add: aTextAttribute", "completion": " self attributeMapper\n\t\t at: anEntity\n\t\t ifAbsentPut: ...
504
https://github.com/Evref-BL/Pharo-Tree-Sitter
87c0d9dd2f80bd91f46e841a70bf72b13ec51fb2
src/TreeSitter-Highlighter/TSHighlighter.class.st
bold: anElementString self addAttribute: TextEmphasis bold for: anElementString
[ { "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": "keyword_message", "n_masked_tokens": 3, "prefix": "bold: anElementString\n\n\tself addAttribute: TextEmphasis", "suffix": "", "completion": " bold for: anElementString" }
505
https://github.com/Evref-BL/Pharo-Tree-Sitter
87c0d9dd2f80bd91f46e841a70bf72b13ec51fb2
src/TreeSitter-Highlighter/TSHighlighter.class.st
color: anElementString with: aColor self addAttribute: (TextColor new color: aColor) for: anElementString
[ { "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": "keyword_message", "n_masked_tokens": 9, "prefix": "color: anElementString with: aColor\n\n\tself", "suffix": "", "completion": " addAttribute: (TextColor new color: aColor) for: anElementString" }
506
https://github.com/Evref-BL/Pharo-Tree-Sitter
87c0d9dd2f80bd91f46e841a70bf72b13ec51fb2
src/TreeSitter-Highlighter/TSHighlighter.class.st
highlight: aString | text tree | text := aString asText. string := aString. tree := self parser parseString: aString. self highlight: text usingNode: tree rootNode. ^ text
[ { "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": "assignment", "n_masked_tokens": 3, "prefix": "highlight: aString\n\n\t| text tree |\n\ttext", "suffix": ".\n\tstring := aString.\n\ttree := self parser parseString: aString.\n\tself highlight: text usingNode: tree rootNode.\n\t^ text", "completion": " := aString asText" }
507
https://github.com/Evref-BL/Pharo-Tree-Sitter
87c0d9dd2f80bd91f46e841a70bf72b13ec51fb2
src/TreeSitter-Highlighter/TSHighlighter.class.st
highlight: aString | text tree | text := aString asText. string := aString. tree := self parser parseString: aString. self highlight: text usingNode: tree rootNode. ^ text
[ { "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": "assignment", "n_masked_tokens": 5, "prefix": "highlight: aString\n\n\t| text tree |\n\ttext := aString asText.\n\tstring := aString.\n\ttree", "suffix": ".\n\tself highlight: text usingNode: tree rootNode.\n\t^ text", "completion": " := self parser parseString: aString" }
508
https://github.com/Evref-BL/Pharo-Tree-Sitter
87c0d9dd2f80bd91f46e841a70bf72b13ec51fb2
src/TreeSitter-Highlighter/TSHighlighter.class.st
highlight: aString | text tree | text := aString asText. string := aString. tree := self parser parseString: aString. self highlight: text usingNode: tree rootNode. ^ text
[ { "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": 3, "prefix": "highlight: aString\n\n\t| text tree |\n\ttext := aString asText.\n\tstring := aString.\n\ttree := self parser parseString: aString.\n\tself highlight: text", "suffix": ".\n\t^ text", "completion": " usingNode: tree rootNode" }
509
https://github.com/Evref-BL/Pharo-Tree-Sitter
87c0d9dd2f80bd91f46e841a70bf72b13ec51fb2
src/TreeSitter-Highlighter/TSHighlighter.class.st
highlight: text usingNode: node node isNamed ifTrue: [ (node startPoint isNotNil and: [ node endPoint isNotNil ]) ifTrue: [ attributeMapper at: node type ifPresent: [ :attributes | attributes do: [ :each | text addAttribute: each from: (string positionFromTSPoint: node startPoint) + 1 ...
[ { "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": "keyword_message", "n_masked_tokens": 7, "prefix": "highlight: text usingNode: node\n\n\tnode isNamed ifTrue: [\n\t\t(node startPoint isNotNil and: [ node endPoint isNotNil ]) ifTrue: [\n\t\t\tattributeMapper at: node type ifPresent: [ :attributes |\n\t\t\t\tattributes do: [ :each |...
510
https://github.com/Evref-BL/Pharo-Tree-Sitter
87c0d9dd2f80bd91f46e841a70bf72b13ec51fb2
src/TreeSitter-Highlighter/TSHighlighter.class.st
highlight: text usingNode: node node isNamed ifTrue: [ (node startPoint isNotNil and: [ node endPoint isNotNil ]) ifTrue: [ attributeMapper at: node type ifPresent: [ :attributes | attributes do: [ :each | text addAttribute: each from: (string positionFromTSPoint: node startPoint) + 1 ...
[ { "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": 6, "prefix": "highlight: text usingNode: node\n\n\tnode isNamed ifTrue: [\n\t\t(node startPoint isNotNil and: [ node endPoint isNotNil ]) ifTrue: [\n\t\t\tattributeMapper at: node type ifPresent: [ :attributes |\n\t\t\t\tattributes do: [ :each |...
511
https://github.com/Evref-BL/Pharo-Tree-Sitter
87c0d9dd2f80bd91f46e841a70bf72b13ec51fb2
src/TreeSitter-Highlighter/TSHighlighter.class.st
highlight: text usingNode: node node isNamed ifTrue: [ (node startPoint isNotNil and: [ node endPoint isNotNil ]) ifTrue: [ attributeMapper at: node type ifPresent: [ :attributes | attributes do: [ :each | text addAttribute: each from: (string positionFromTSPoint: node startPoint) + 1 ...
[ { "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": 4, "prefix": "highlight: text usingNode: node\n\n\tnode isNamed ifTrue: [\n\t\t(node startPoint isNotNil and: [ node endPoint isNotNil ]) ifTrue: [\n\t\t\tattributeMapper at: node type ifPresent: [ :attributes |\n\t\t\t\tattributes do: [ :each |...
512
https://github.com/Evref-BL/Pharo-Tree-Sitter
87c0d9dd2f80bd91f46e841a70bf72b13ec51fb2
src/TreeSitter-Highlighter/TSHighlighter.class.st
initialize "dede" super initialize. attributeMapper := Dictionary new. self addAttribute: (TextColor new color: (Color fromHexString: '77858b')) for: 'comment'. self addAttribute: (TextColor new color: (Color fromHexString: '029eb2')) for: 'identifier'. self addAttribute: (TextColor new color: (Color fro...
[ { "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": 3, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "initialize\n\"dede\"\n\tsuper initialize.\n\tattributeMapper := Dictionary new.\n\tself\n\t\taddAttribute: (TextColor new color: (Color fromHexString: '77858b'))\n\t\tfor: 'comment'.\n\tself\n\t\taddAttribute: (TextColor new color:...
513
https://github.com/Evref-BL/Pharo-Tree-Sitter
87c0d9dd2f80bd91f46e841a70bf72b13ec51fb2
src/TreeSitter-Highlighter/TSHighlighter.class.st
initialize "dede" super initialize. attributeMapper := Dictionary new. self addAttribute: (TextColor new color: (Color fromHexString: '77858b')) for: 'comment'. self addAttribute: (TextColor new color: (Color fromHexString: '029eb2')) for: 'identifier'. self addAttribute: (TextColor new color: (Color fro...
[ { "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": 3, "prefix": "initialize\n\"dede\"\n\tsuper initialize.\n\tattributeMapper := Dictionary new.\n\tself\n\t\taddAttribute: (TextColor new color: (Color fromHexString: '77858b'))\n\t\tfor: 'comment'.\n\tself\n\t\taddAttribute: (TextColor new color:...
514
https://github.com/Evref-BL/Pharo-Tree-Sitter
87c0d9dd2f80bd91f46e841a70bf72b13ec51fb2
src/TreeSitter-Highlighter/TSHighlighter.class.st
initialize "dede" super initialize. attributeMapper := Dictionary new. self addAttribute: (TextColor new color: (Color fromHexString: '77858b')) for: 'comment'. self addAttribute: (TextColor new color: (Color fromHexString: '029eb2')) for: 'identifier'. self addAttribute: (TextColor new color: (Color fro...
[ { "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": "assignment", "n_masked_tokens": 3, "prefix": "initialize\n\"dede\"\n\tsuper initialize.\n\tattributeMapper", "suffix": ".\n\tself\n\t\taddAttribute: (TextColor new color: (Color fromHexString: '77858b'))\n\t\tfor: 'comment'.\n\tself\n\t\taddAttribute: (TextColor new color: (Color...
515
https://github.com/Evref-BL/Pharo-Tree-Sitter
ebcac8928dcccf9ec17e1168ff7bdd1edbd7bd06
src/TreeSitter-Groovy/TSGroovyLibrary.class.st
macLibraryName ^ FFIMacLibraryFinder findAnyLibrary: #( 'groovy.dylib' )
[ { "filepath": "src/TreeSitter-Groovy/TSGroovyLibrary.class.st", "code": "FFILibrary subclass: #TSGroovyLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Groovy'" }, { "filepath": "src/TreeSitter-Groovy/TSLanguage.extension.st", "code": "Object subclass: #TSLa...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 4, "prefix": "macLibraryName\n\t\t^ FFIMacLibraryFinder", "suffix": "", "completion": " findAnyLibrary: #( 'groovy.dylib' )" }
516
https://github.com/Evref-BL/Pharo-Tree-Sitter
ebcac8928dcccf9ec17e1168ff7bdd1edbd7bd06
src/TreeSitter-Groovy/TSGroovyLibrary.class.st
tree_sitter_groovy ^ self ffiCall: 'TSLanguage * tree_sitter_groovy ()'
[ { "filepath": "src/TreeSitter-Groovy/TSGroovyLibrary.class.st", "code": "FFILibrary subclass: #TSGroovyLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Groovy'" }, { "filepath": "src/TreeSitter-Groovy/TSLanguage.extension.st", "code": "Object subclass: #TSLa...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "tree_sitter_groovy\n\n\t^", "suffix": "", "completion": " self ffiCall: 'TSLanguage * tree_sitter_groovy ()'" }
517
https://github.com/Evref-BL/Pharo-Tree-Sitter
ebcac8928dcccf9ec17e1168ff7bdd1edbd7bd06
src/TreeSitter-Groovy/TSGroovyLibrary.class.st
unix64LibraryName "Users should use unix32* or unix64*" ^ FFIUnix64LibraryFinder findAnyLibrary: #( 'libtree-sitter-groovy.so' )
[ { "filepath": "src/TreeSitter-Groovy/TSGroovyLibrary.class.st", "code": "FFILibrary subclass: #TSGroovyLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Groovy'" }, { "filepath": "src/TreeSitter-Groovy/TSLanguage.extension.st", "code": "Object subclass: #TSLa...
{ "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-groovy.so' )" }
518
https://github.com/Evref-BL/Pharo-Tree-Sitter
ebcac8928dcccf9ec17e1168ff7bdd1edbd7bd06
src/TreeSitter-Groovy/TSGroovyLibrary.class.st
win32LibraryName ^ FFIWindowsLibraryFinder findAnyLibrary: #('groovy.dll')
[ { "filepath": "src/TreeSitter-Groovy/TSGroovyLibrary.class.st", "code": "FFILibrary subclass: #TSGroovyLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Groovy'" }, { "filepath": "src/TreeSitter-Groovy/TSLanguage.extension.st", "code": "Object subclass: #TSLa...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "win32LibraryName\n\n\t^ FFIWindowsLibraryFinder findAnyLibrary:", "suffix": "", "completion": " #('groovy.dll')" }
519
https://github.com/Evref-BL/Pharo-Tree-Sitter
ebcac8928dcccf9ec17e1168ff7bdd1edbd7bd06
src/TreeSitter-Groovy/TSLanguage.extension.st
groovy ^ TSGroovyLibrary uniqueInstance tree_sitter_groovy
[ { "filepath": "src/TreeSitter-Groovy/TSGroovyLibrary.class.st", "code": "FFILibrary subclass: #TSGroovyLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Groovy'" }, { "filepath": "src/TreeSitter-Groovy/TSLanguage.extension.st", "code": "Object subclass: #TSLa...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "groovy\n\n\t^", "suffix": "", "completion": " TSGroovyLibrary uniqueInstance tree_sitter_groovy" }
520
https://github.com/Evref-BL/Pharo-Tree-Sitter
6a191977230398f734bbdd33bc3a81648b5b89b9
src/TreeSitter/TSTreeCursor.class.st
nextSibling ^ TSLibrary uniqueInstance ts_tree_cursor_goto_next_sibling: self.
[ { "filepath": "src/TreeSitter/TSTreeCursor.class.st", "code": "FFIStructure subclass: #TSTreeCursor\n\tinstanceVariableNames: ''\n\tclassVariableNames: 'OFFSET_CONTEXT0 OFFSET_CONTEXT1 OFFSET_CONTEXT2 OFFSET_ID OFFSET_TREE'\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSTreeCursor.clas...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 4, "prefix": "nextSibling\n\t^", "suffix": ".", "completion": " TSLibrary uniqueInstance ts_tree_cursor_goto_next_sibling: self" }
521
https://github.com/Evref-BL/Pharo-Tree-Sitter
6a191977230398f734bbdd33bc3a81648b5b89b9
src/TreeSitter/TSTreeCursor.class.st
parent ^ TSLibrary uniqueInstance ts_tree_cursor_goto_parent: self.
[ { "filepath": "src/TreeSitter/TSTreeCursor.class.st", "code": "FFIStructure subclass: #TSTreeCursor\n\tinstanceVariableNames: ''\n\tclassVariableNames: 'OFFSET_CONTEXT0 OFFSET_CONTEXT1 OFFSET_CONTEXT2 OFFSET_ID OFFSET_TREE'\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSTreeCursor.clas...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "parent\n\t^ TSLibrary", "suffix": ".", "completion": " uniqueInstance ts_tree_cursor_goto_parent: self" }
522
https://github.com/Evref-BL/Pharo-Tree-Sitter
14434fefa93f0223948cdf6903fe0243a96ee6c5
src/TreeSitter-Tests/TSParserTest.class.st
testPositionInString | pythonLanguage string tree | parser := TSParser new. pythonLanguage := TSLanguage python. parser language: pythonLanguage. string := 'print("Hello, I''m Python!") # comment'. tree := TSLibrary uniqueInstance ts_parser: parser _parse_string: string ofLength: ...
[ { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase subclass: #TSParserTest\n\tinstanceVariableNames: 'parser'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanc...
{ "fim_idx": 1, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "testPositionInString\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# comment'.\n\n\ttree := TSLibrar...
523
https://github.com/Evref-BL/Pharo-Tree-Sitter
14434fefa93f0223948cdf6903fe0243a96ee6c5
src/TreeSitter-Tests/TSParserTest.class.st
testPositionInString | pythonLanguage string tree | parser := TSParser new. pythonLanguage := TSLanguage python. parser language: pythonLanguage. string := 'print("Hello, I''m Python!") # comment'. tree := TSLibrary uniqueInstance ts_parser: parser _parse_string: string ofLength: ...
[ { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase subclass: #TSParserTest\n\tinstanceVariableNames: 'parser'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanc...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "testPositionInString\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# comment'.\n\n\ttree := TSL...
524
https://github.com/Evref-BL/Pharo-Tree-Sitter
14434fefa93f0223948cdf6903fe0243a96ee6c5
src/TreeSitter-Tests/TSParserTest.class.st
testPositionInString | pythonLanguage string tree | parser := TSParser new. pythonLanguage := TSLanguage python. parser language: pythonLanguage. string := 'print("Hello, I''m Python!") # comment'. tree := TSLibrary uniqueInstance ts_parser: parser _parse_string: string ofLength: ...
[ { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase subclass: #TSParserTest\n\tinstanceVariableNames: 'parser'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanc...
{ "fim_idx": 3, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "testPositionInString\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# comment'.\n\n\ttree :...
525
https://github.com/Evref-BL/Pharo-Tree-Sitter
14434fefa93f0223948cdf6903fe0243a96ee6c5
src/TreeSitter/TSNode.class.st
namedChildren ^ (1 to: self namedChildCount) collect: [ :idx | self namedChildAt: idx ]
[ { "filepath": "src/TreeSitter-Tests/TSParserTest.class.st", "code": "TestCase subclass: #TSParserTest\n\tinstanceVariableNames: 'parser'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter/TSNode.class.st", "code": "FFIStructure subclass: #TSNode\n\tinstanc...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 7, "prefix": "namedChildren\n\n\t^ (1 to: self namedChildCount) collect: [", "suffix": "", "completion": " :idx |\n\t\t self namedChildAt: idx ]" }
526
https://github.com/Evref-BL/Pharo-Tree-Sitter
e9a1bcc75dfde2fe11f8b9f249e65218fa0c295c
src/TreeSitter/TSLibrary.class.st
ts_tree_cursor_current_field_id: aTSTreeCursor ^ self ffiCall: 'char * ts_tree_cursor_current_field_id(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_id: aTSTreeCursor\n\n\t^", "suffix": "", "completion": " self ffiCall: 'char * ts_tree_cursor_current_field_id(TSTreeCursor * aTSTreeCursor)'" }
527
https://github.com/Evref-BL/Pharo-Tree-Sitter
e9a1bcc75dfde2fe11f8b9f249e65218fa0c295c
src/TreeSitter/TSNode.class.st
textFromSourceText: string ^ string copyFrom: (string positionFromTSPoint: self startPoint) to: (string positionFromTSPoint: self endPoint ).
[ { "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": 10, "prefix": "textFromSourceText: string\n\n\t^ string copyFrom: (string positionFromTSPoint:", "suffix": ".", "completion": " self startPoint) to: (string positionFromTSPoint: self endPoint )" }
528
https://github.com/Evref-BL/Pharo-Tree-Sitter
e9a1bcc75dfde2fe11f8b9f249e65218fa0c295c
src/TreeSitter/TSTreeCursor.class.st
currentFieldId ^ TSLibrary uniqueInstance ts_tree_cursor_current_field_id: 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": "currentFieldId\n\t^", "suffix": ".", "completion": " TSLibrary uniqueInstance ts_tree_cursor_current_field_id: self" }
529
https://github.com/Evref-BL/Pharo-Tree-Sitter
41802943d2ddb792cfd71d5ea86a58b627af142e
src/TreeSitter/TSLibrary.class.st
ts_node: aTsNode _field_name_for_named_child: namedChildIndex ^ self ffiCall: 'char * ts_node_field_name_for_named_child(TSNode aTsNode, uint32 namedChildIndex)'
[ { "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 _field_name_for_named_child: namedChildIndex\n\n\t^", "suffix": "", "completion": " self ffiCall: 'char * ts_node_field_name_for_named_child(TSNode aTsNode, uint32 namedChildIndex)'" }
530
https://github.com/Evref-BL/Pharo-Tree-Sitter
41802943d2ddb792cfd71d5ea86a58b627af142e
src/TreeSitter/TSNode.class.st
collectFieldNameOfNamedChild |collection| collection := OrderedDictionary new. 1 to: self namedChildCount do: [ :pharoIndex | | namedChild field| namedChild := self namedChildAt: pharoIndex. field := self fieldNameOfChildNamedAt: pharoIndex. collection at: field put: namedChild. ]. ^ collection
[ { "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": 1, "mask_type": "keyword_message", "n_masked_tokens": 9, "prefix": "collectFieldNameOfNamedChild\n\t|collection|\n\tcollection := OrderedDictionary new. \n\t\n\t1 to: self namedChildCount do: [ :pharoIndex |\n\t\t| namedChild field|\n\t\tnamedChild := self namedChildAt: pharoIndex.\n\t\tfield := se...
531
https://github.com/Evref-BL/Pharo-Tree-Sitter
41802943d2ddb792cfd71d5ea86a58b627af142e
src/TreeSitter/TSNode.class.st
collectFieldNameOfNamedChild |collection| collection := OrderedDictionary new. 1 to: self namedChildCount do: [ :pharoIndex | | namedChild field| namedChild := self namedChildAt: pharoIndex. field := self fieldNameOfChildNamedAt: pharoIndex. collection at: field put: namedChild. ]. ^ collection
[ { "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": 3, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "collectFieldNameOfNamedChild\n\t|collection|\n\tcollection := OrderedDictionary new. \n\t\n\t1 to: self namedChildCount do: [ :pharoIndex |\n\t\t| namedChild field|\n\t\tnamedChild := self namedChildAt: pharoIndex.\n\t\tfield :=", "su...
532
https://github.com/Evref-BL/Pharo-Tree-Sitter
41802943d2ddb792cfd71d5ea86a58b627af142e
src/TreeSitter/TSNode.class.st
collectFieldNameOfNamedChild |collection| collection := OrderedDictionary new. 1 to: self namedChildCount do: [ :pharoIndex | | namedChild field| namedChild := self namedChildAt: pharoIndex. field := self fieldNameOfChildNamedAt: pharoIndex. collection at: field put: namedChild. ]. ^ collection
[ { "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": 4, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "collectFieldNameOfNamedChild\n\t|collection|\n\tcollection := OrderedDictionary new. \n\t\n\t1 to: self namedChildCount do: [ :pharoIndex |\n\t\t| namedChild field|\n\t\tnamedChild := self namedChildAt: pharoIndex.\n\t\tfield := se...
533
https://github.com/Evref-BL/Pharo-Tree-Sitter
41802943d2ddb792cfd71d5ea86a58b627af142e
src/TreeSitter/TSNode.class.st
detectChildWithFieldName: aFieldName "ensure that this field name exist, crash otherwise" ^ TSLibrary uniqueInstance ts_node_child_of: self _by_field_name: aFieldName ofLength: aFieldName size
[ { "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": 8, "prefix": "detectChildWithFieldName: aFieldName\n\t\"ensure that this field name exist, crash otherwise\"\n\t^ TSLibrary", "suffix": "", "completion": " uniqueInstance ts_node_child_of: self _by_field_name: aFieldName ofLength: aFieldName size" }
534
https://github.com/Evref-BL/Pharo-Tree-Sitter
41802943d2ddb792cfd71d5ea86a58b627af142e
src/TreeSitter/TSNode.class.st
fieldName ^ TSLibrary uniqueInstance ts_tree_cursor_current_field_name: self cursor
[ { "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": 5, "prefix": "fieldName\n\t^", "suffix": "", "completion": " TSLibrary uniqueInstance \n\tts_tree_cursor_current_field_name: self cursor" }
535
https://github.com/Evref-BL/Pharo-Tree-Sitter
41802943d2ddb792cfd71d5ea86a58b627af142e
src/TreeSitter/TSNode.class.st
fieldNameOfChildNamedAt: childIndex "starting at 0" ^ TSLibrary uniqueInstance ts_node: self _field_name_for_named_child: 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": 7, "prefix": "fieldNameOfChildNamedAt: childIndex\n\t\"starting at 0\"\n\t\n\t^ TSLibrary", "suffix": "", "completion": " uniqueInstance \n\t\tts_node: self\n\t _field_name_for_named_child: childIndex - 1" }
536
https://github.com/Evref-BL/Pharo-Tree-Sitter
b2c39b4e694bc153c366410d147a37066b79c704
src/TreeSitter-Tests/TSLanguagePythonTest.class.st
setUp super setUp. parser := TSParser new. pythonLanguage := TSLanguage python. parser language: pythonLanguage.
[ { "filepath": "src/TreeSitter-Tests/TSLanguagePythonTest.class.st", "code": "TestCase subclass: #TSLanguagePythonTest\n\tinstanceVariableNames: 'parser pythonLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter-Tests/TSParserPythonTest.class.st", "...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "setUp\n\n\tsuper setUp.\n\n\tparser", "suffix": ".\n\tpythonLanguage := TSLanguage python.\n\tparser language: pythonLanguage.", "completion": " := TSParser new" }
537
https://github.com/Evref-BL/Pharo-Tree-Sitter
b2c39b4e694bc153c366410d147a37066b79c704
src/TreeSitter-Tests/TSLanguagePythonTest.class.st
setUp super setUp. parser := TSParser new. pythonLanguage := TSLanguage python. parser language: pythonLanguage.
[ { "filepath": "src/TreeSitter-Tests/TSLanguagePythonTest.class.st", "code": "TestCase subclass: #TSLanguagePythonTest\n\tinstanceVariableNames: 'parser pythonLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter-Tests/TSParserPythonTest.class.st", "...
{ "fim_idx": 1, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "setUp\n\n\tsuper setUp.\n\n\tparser := TSParser new.\n\tpythonLanguage", "suffix": ".\n\tparser language: pythonLanguage.", "completion": " := TSLanguage python" }
538
https://github.com/Evref-BL/Pharo-Tree-Sitter
b2c39b4e694bc153c366410d147a37066b79c704
src/TreeSitter-Tests/TSLanguagePythonTest.class.st
testPythonNumberOfSymbol self assert: parser language symbolCount equals: 275
[ { "filepath": "src/TreeSitter-Tests/TSLanguagePythonTest.class.st", "code": "TestCase subclass: #TSLanguagePythonTest\n\tinstanceVariableNames: 'parser pythonLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter-Tests/TSParserPythonTest.class.st", "...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "testPythonNumberOfSymbol\n\n\tself assert:", "suffix": "", "completion": " parser language symbolCount equals: 275" }
539
https://github.com/Evref-BL/Pharo-Tree-Sitter
b2c39b4e694bc153c366410d147a37066b79c704
src/TreeSitter-Tests/TSParserPythonTest.class.st
setUp super setUp. parser := TSParser new. pythonLanguage := TSLanguage python. parser language: pythonLanguage.
[ { "filepath": "src/TreeSitter-Tests/TSLanguagePythonTest.class.st", "code": "TestCase subclass: #TSLanguagePythonTest\n\tinstanceVariableNames: 'parser pythonLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter-Tests/TSParserPythonTest.class.st", "...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "setUp\n\n\tsuper setUp.\n\n\tparser", "suffix": ".\n\tpythonLanguage := TSLanguage python.\n\tparser language: pythonLanguage.", "completion": " := TSParser new" }
540
https://github.com/Evref-BL/Pharo-Tree-Sitter
b2c39b4e694bc153c366410d147a37066b79c704
src/TreeSitter-Tests/TSParserPythonTest.class.st
setUp super setUp. parser := TSParser new. pythonLanguage := TSLanguage python. parser language: pythonLanguage.
[ { "filepath": "src/TreeSitter-Tests/TSLanguagePythonTest.class.st", "code": "TestCase subclass: #TSLanguagePythonTest\n\tinstanceVariableNames: 'parser pythonLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter-Tests/TSParserPythonTest.class.st", "...
{ "fim_idx": 1, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "setUp\n\n\tsuper setUp.\n\n\tparser := TSParser new.\n\tpythonLanguage", "suffix": ".\n\tparser language: pythonLanguage.", "completion": " := TSLanguage python" }
541
https://github.com/Evref-BL/Pharo-Tree-Sitter
b2c39b4e694bc153c366410d147a37066b79c704
src/TreeSitter-Tests/TSParserPythonTest.class.st
testPositionInString | string tree | string := 'print("Hello, I''m Python!") # comment'. tree := TSLibrary uniqueInstance ts_parser: parser _parse_string: string ofLength: string size usingOldTree: ExternalAddress null. self assert: (string positionFromTSPoint: tree ...
[ { "filepath": "src/TreeSitter-Tests/TSLanguagePythonTest.class.st", "code": "TestCase subclass: #TSLanguagePythonTest\n\tinstanceVariableNames: 'parser pythonLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter-Tests/TSParserPythonTest.class.st", "...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 6, "prefix": "testPositionInString\n\n\t| string tree |\n\tstring := 'print(\"Hello, I''m Python!\")\n# comment'.\n\n\ttree := TSLibrary uniqueInstance\n\t\t ts_parser: parser\n\t\t _parse_string: string", "suffix": ".\n\tself\n\t\tas...
542
https://github.com/Evref-BL/Pharo-Tree-Sitter
b2c39b4e694bc153c366410d147a37066b79c704
src/TreeSitter-Tests/TSParserPythonTest.class.st
testPositionInString | string tree | string := 'print("Hello, I''m Python!") # comment'. tree := TSLibrary uniqueInstance ts_parser: parser _parse_string: string ofLength: string size usingOldTree: ExternalAddress null. self assert: (string positionFromTSPoint: tree ...
[ { "filepath": "src/TreeSitter-Tests/TSLanguagePythonTest.class.st", "code": "TestCase subclass: #TSLanguagePythonTest\n\tinstanceVariableNames: 'parser pythonLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter-Tests/TSParserPythonTest.class.st", "...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "testPositionInString\n\n\t| string tree |\n\tstring := 'print(\"Hello, I''m Python!\")\n# comment'.\n\n\ttree := TSLibrary uniqueInstance\n\t\t ts_parser: parser\n\t\t _parse_string: string\n\t\t ofLength: stri...
543
https://github.com/Evref-BL/Pharo-Tree-Sitter
b2c39b4e694bc153c366410d147a37066b79c704
src/TreeSitter-Tests/TSParserPythonTest.class.st
testRootNodeSymbolSimplePythonProgram | string tree | string := 'print("Hello, I''m Python!")'. tree := TSLibrary uniqueInstance ts_parser: parser _parse_string: string ofLength: string size usingOldTree: ExternalAddress null. "108 is a magic number for now" self assert: ...
[ { "filepath": "src/TreeSitter-Tests/TSLanguagePythonTest.class.st", "code": "TestCase subclass: #TSLanguagePythonTest\n\tinstanceVariableNames: 'parser pythonLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter-Tests/TSParserPythonTest.class.st", "...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 5, "prefix": "testRootNodeSymbolSimplePythonProgram\n\n\t| string tree |\n\n\tstring := 'print(\"Hello, I''m Python!\")'.\n\n\ttree := TSLibrary uniqueInstance\n\t\t ts_parser: parser\n\t\t _parse_string: string\n\t\t ofLength:",...
544
https://github.com/Evref-BL/Pharo-Tree-Sitter
b2c39b4e694bc153c366410d147a37066b79c704
src/TreeSitter-Tests/TSParserPythonTest.class.st
testRootNodeSymbolSimplePythonProgram | string tree | string := 'print("Hello, I''m Python!")'. tree := TSLibrary uniqueInstance ts_parser: parser _parse_string: string ofLength: string size usingOldTree: ExternalAddress null. "108 is a magic number for now" self assert: ...
[ { "filepath": "src/TreeSitter-Tests/TSLanguagePythonTest.class.st", "code": "TestCase subclass: #TSLanguagePythonTest\n\tinstanceVariableNames: 'parser pythonLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter-Tests/TSParserPythonTest.class.st", "...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "testRootNodeSymbolSimplePythonProgram\n\n\t| string tree |\n\n\tstring := 'print(\"Hello, I''m Python!\")'.\n\n\ttree := TSLibrary uniqueInstance\n\t\t ts_parser: parser\n\t\t _parse_string: string\n\t\t ofLeng...
545
https://github.com/Evref-BL/Pharo-Tree-Sitter
b2c39b4e694bc153c366410d147a37066b79c704
src/TreeSitter-Tests/TSParserPythonTest.class.st
testRootOfSimplePythonHasOneChild | string tree | string := 'print("Hello, I''m Python!")'. tree := TSLibrary uniqueInstance ts_parser: parser _parse_string: string ofLength: string size usingOldTree: ExternalAddress null. self assert: tree rootNode childCount equals: 1
[ { "filepath": "src/TreeSitter-Tests/TSLanguagePythonTest.class.st", "code": "TestCase subclass: #TSLanguagePythonTest\n\tinstanceVariableNames: 'parser pythonLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter-Tests/TSParserPythonTest.class.st", "...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 5, "prefix": "testRootOfSimplePythonHasOneChild\n\n\t| string tree |\n\tstring := 'print(\"Hello, I''m Python!\")'.\n\n\ttree := TSLibrary uniqueInstance\n\t\t ts_parser: parser\n\t\t _parse_string: string\n\t\t ofLength:", "su...
546
https://github.com/Evref-BL/Pharo-Tree-Sitter
b2c39b4e694bc153c366410d147a37066b79c704
src/TreeSitter-Tests/TSParserPythonTest.class.st
testRootOfSimplePythonHasOneChild | string tree | string := 'print("Hello, I''m Python!")'. tree := TSLibrary uniqueInstance ts_parser: parser _parse_string: string ofLength: string size usingOldTree: ExternalAddress null. self assert: tree rootNode childCount equals: 1
[ { "filepath": "src/TreeSitter-Tests/TSLanguagePythonTest.class.st", "code": "TestCase subclass: #TSLanguagePythonTest\n\tinstanceVariableNames: 'parser pythonLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter-Tests/TSParserPythonTest.class.st", "...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "testRootOfSimplePythonHasOneChild\n\n\t| string tree |\n\tstring := 'print(\"Hello, I''m Python!\")'.\n\n\ttree := TSLibrary uniqueInstance\n\t\t ts_parser: parser\n\t\t _parse_string: string\n\t\t ofLength: st...
547
https://github.com/Evref-BL/Pharo-Tree-Sitter
b2c39b4e694bc153c366410d147a37066b79c704
src/TreeSitter-Tests/TSParserPythonTest.class.st
testRootOfSimplePythonHasOneNamedChild | string tree | string := 'print("Hello, I''m Python!")'. tree := TSLibrary uniqueInstance ts_parser: parser _parse_string: string ofLength: string size usingOldTree: ExternalAddress null. self assert: tree rootNode namedChildCount equ...
[ { "filepath": "src/TreeSitter-Tests/TSLanguagePythonTest.class.st", "code": "TestCase subclass: #TSLanguagePythonTest\n\tinstanceVariableNames: 'parser pythonLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter-Tests/TSParserPythonTest.class.st", "...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 9, "prefix": "testRootOfSimplePythonHasOneNamedChild\n\n\t| string tree |\n\tstring := 'print(\"Hello, I''m Python!\")'.\n\n\ttree := TSLibrary uniqueInstance\n\t\t ts_parser:", "suffix": ".\n\tself assert: tree rootNode namedChildCount equa...
548
https://github.com/Evref-BL/Pharo-Tree-Sitter
b2c39b4e694bc153c366410d147a37066b79c704
src/TreeSitter-Tests/TSParserPythonTest.class.st
testRootOfSimplePythonHasOneNamedChild | string tree | string := 'print("Hello, I''m Python!")'. tree := TSLibrary uniqueInstance ts_parser: parser _parse_string: string ofLength: string size usingOldTree: ExternalAddress null. self assert: tree rootNode namedChildCount equ...
[ { "filepath": "src/TreeSitter-Tests/TSLanguagePythonTest.class.st", "code": "TestCase subclass: #TSLanguagePythonTest\n\tinstanceVariableNames: 'parser pythonLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter-Tests/TSParserPythonTest.class.st", "...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "testRootOfSimplePythonHasOneNamedChild\n\n\t| string tree |\n\tstring := 'print(\"Hello, I''m Python!\")'.\n\n\ttree := TSLibrary uniqueInstance\n\t\t ts_parser: parser\n\t\t _parse_string: string\n\t\t ofLengt...
549
https://github.com/Evref-BL/Pharo-Tree-Sitter
b2c39b4e694bc153c366410d147a37066b79c704
src/TreeSitter/TSLanguage.class.st
symbolCount ^ TSLibrary uniqueInstance ts_language_symbol_count: self
[ { "filepath": "src/TreeSitter-Tests/TSLanguagePythonTest.class.st", "code": "TestCase subclass: #TSLanguagePythonTest\n\tinstanceVariableNames: 'parser pythonLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter-Tests/TSParserPythonTest.class.st", "...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 4, "prefix": "symbolCount\n\n\t^", "suffix": "", "completion": " TSLibrary uniqueInstance ts_language_symbol_count: self" }
550
https://github.com/Evref-BL/Pharo-Tree-Sitter
b2c39b4e694bc153c366410d147a37066b79c704
src/TreeSitter/TSLibrary.class.st
ts_language_symbol_count: aTSLanguage aTSLanguage isNull ifTrue: [ TSNullPointerException signal ]. ^ self ffiCall: 'uint32 ts_language_symbol_count(TSLanguage * aTSLanguage)'
[ { "filepath": "src/TreeSitter-Tests/TSLanguagePythonTest.class.st", "code": "TestCase subclass: #TSLanguagePythonTest\n\tinstanceVariableNames: 'parser pythonLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter-Tests/TSParserPythonTest.class.st", "...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "ts_language_symbol_count: aTSLanguage\n\n\taTSLanguage isNull ifTrue: [", "suffix": ".\n\t^ self ffiCall:\n\t\t 'uint32 ts_language_symbol_count(TSLanguage * aTSLanguage)'", "completion": " TSNullPointerException signal ]" }
551
https://github.com/Evref-BL/Pharo-Tree-Sitter
b2c39b4e694bc153c366410d147a37066b79c704
src/TreeSitter/TSLibrary.class.st
ts_language_symbol_count: aTSLanguage aTSLanguage isNull ifTrue: [ TSNullPointerException signal ]. ^ self ffiCall: 'uint32 ts_language_symbol_count(TSLanguage * aTSLanguage)'
[ { "filepath": "src/TreeSitter-Tests/TSLanguagePythonTest.class.st", "code": "TestCase subclass: #TSLanguagePythonTest\n\tinstanceVariableNames: 'parser pythonLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter-Tests/TSParserPythonTest.class.st", "...
{ "fim_idx": 1, "mask_type": "return", "n_masked_tokens": 3, "prefix": "ts_language_symbol_count: aTSLanguage\n\n\taTSLanguage isNull ifTrue: [ TSNullPointerException signal ].\n\t^", "suffix": "", "completion": " self ffiCall:\n\t\t 'uint32 ts_language_symbol_count(TSLanguage * aTSLanguage)'" }
552
https://github.com/Evref-BL/Pharo-Tree-Sitter
ba28046601686ee74df9a37c8d6448aa98ef687e
src/TreeSitter-Tests/TSLanguagePythonTest.class.st
testRetrieveSymbolName self assert: (parser language nameOfSymbol: 1) equals: 'identifier'
[ { "filepath": "src/TreeSitter-Tests/TSLanguagePythonTest.class.st", "code": "TestCase subclass: #TSLanguagePythonTest\n\tinstanceVariableNames: 'parser pythonLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter/TSLanguage.class.st", "code": "FFIOpa...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 7, "prefix": "testRetrieveSymbolName\n\n\tself assert: (", "suffix": "", "completion": "parser language nameOfSymbol: 1) equals: 'identifier'" }
553
https://github.com/Evref-BL/Pharo-Tree-Sitter
ba28046601686ee74df9a37c8d6448aa98ef687e
src/TreeSitter/TSLanguage.class.st
nameOfSymbol: aSymbol ^ TSLibrary uniqueInstance ts_language: self _symbol_name: aSymbol
[ { "filepath": "src/TreeSitter-Tests/TSLanguagePythonTest.class.st", "code": "TestCase subclass: #TSLanguagePythonTest\n\tinstanceVariableNames: 'parser pythonLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter/TSLanguage.class.st", "code": "FFIOpa...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 4, "prefix": "nameOfSymbol: aSymbol\n\n\t^ TSLibrary uniqueInstance", "suffix": "", "completion": " ts_language: self _symbol_name: aSymbol" }
554
https://github.com/Evref-BL/Pharo-Tree-Sitter
ba28046601686ee74df9a37c8d6448aa98ef687e
src/TreeSitter/TSLibrary.class.st
ts_language: aTSLanguage _symbol_name: symbol ^ self ffiCall: 'char * ts_language_symbol_name(TSLanguage * aTSLanguage, uint16 symbol)'
[ { "filepath": "src/TreeSitter-Tests/TSLanguagePythonTest.class.st", "code": "TestCase subclass: #TSLanguagePythonTest\n\tinstanceVariableNames: 'parser pythonLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter/TSLanguage.class.st", "code": "FFIOpa...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "ts_language: aTSLanguage _symbol_name: symbol\n\n\t^", "suffix": "", "completion": " self ffiCall:\n\t\t 'char * ts_language_symbol_name(TSLanguage * aTSLanguage, uint16 symbol)'" }
555
https://github.com/Evref-BL/Pharo-Tree-Sitter
5d8b160b57a65fb0adbbd52d952f064db5edf09a
src/TreeSitter-Tests/TSLanguagePythonTest.class.st
testRetrieveSymbolType self assert: (parser language typeOfSymbol: 1) equals: TSSymbolType tssymboltyperegular
[ { "filepath": "src/TreeSitter-Tests/TSLanguagePythonTest.class.st", "code": "TestCase subclass: #TSLanguagePythonTest\n\tinstanceVariableNames: 'parser pythonLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter/TSLanguage.class.st", "code": "FFIOpa...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "testRetrieveSymbolType\n\n\tself assert: (parser language typeOfSymbol: 1", "suffix": "", "completion": ") equals: TSSymbolType tssymboltyperegular" }
556
https://github.com/Evref-BL/Pharo-Tree-Sitter
5d8b160b57a65fb0adbbd52d952f064db5edf09a
src/TreeSitter/TSLanguage.class.st
typeOfSymbol: aSymbol ^ TSLibrary uniqueInstance ts_language: self _symbol_type: aSymbol
[ { "filepath": "src/TreeSitter-Tests/TSLanguagePythonTest.class.st", "code": "TestCase subclass: #TSLanguagePythonTest\n\tinstanceVariableNames: 'parser pythonLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter/TSLanguage.class.st", "code": "FFIOpa...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 6, "prefix": "typeOfSymbol: aSymbol\n\n\t^", "suffix": "", "completion": " TSLibrary uniqueInstance ts_language: self _symbol_type: aSymbol" }
557
https://github.com/Evref-BL/Pharo-Tree-Sitter
5d8b160b57a65fb0adbbd52d952f064db5edf09a
src/TreeSitter/TSLibrary.class.st
ts_language: aTSLanguage _symbol_name: symbol aTSLanguage isNull ifTrue: [ TSNullPointerException signal ]. ^ self ffiCall: 'char * ts_language_symbol_name(TSLanguage * aTSLanguage, uint16 symbol)'
[ { "filepath": "src/TreeSitter-Tests/TSLanguagePythonTest.class.st", "code": "TestCase subclass: #TSLanguagePythonTest\n\tinstanceVariableNames: 'parser pythonLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter/TSLanguage.class.st", "code": "FFIOpa...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "ts_language: aTSLanguage _symbol_name: symbol\n \n\taTSLanguage isNull ifTrue: [", "suffix": ".\n \t^ self ffiCall:\n \t\t 'char * ts_language_symbol_name(TSLanguage * aTSLanguage, uint16 symbol)'", "completion": " TSNullPoin...
558
https://github.com/Evref-BL/Pharo-Tree-Sitter
5d8b160b57a65fb0adbbd52d952f064db5edf09a
src/TreeSitter/TSLibrary.class.st
ts_language: aTSLanguage _symbol_type: symbol aTSLanguage isNull ifTrue: [ TSNullPointerException signal ]. ^ self ffiCall: 'TSSymbolType ts_language_symbol_type(TSLanguage * aTSLanguage, uint16 symbol)'
[ { "filepath": "src/TreeSitter-Tests/TSLanguagePythonTest.class.st", "code": "TestCase subclass: #TSLanguagePythonTest\n\tinstanceVariableNames: 'parser pythonLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter/TSLanguage.class.st", "code": "FFIOpa...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 6, "prefix": "ts_language: aTSLanguage _symbol_type: symbol\n\n\taTSLanguage", "suffix": ".\n\t^ self ffiCall:\n\t\t 'TSSymbolType ts_language_symbol_type(TSLanguage * aTSLanguage, uint16 symbol)'", "completion": " isNull ifTrue: [ TSNullPo...
559
https://github.com/Evref-BL/Pharo-Tree-Sitter
5d8b160b57a65fb0adbbd52d952f064db5edf09a
src/TreeSitter/TSLibrary.class.st
ts_language: aTSLanguage _symbol_type: symbol aTSLanguage isNull ifTrue: [ TSNullPointerException signal ]. ^ self ffiCall: 'TSSymbolType ts_language_symbol_type(TSLanguage * aTSLanguage, uint16 symbol)'
[ { "filepath": "src/TreeSitter-Tests/TSLanguagePythonTest.class.st", "code": "TestCase subclass: #TSLanguagePythonTest\n\tinstanceVariableNames: 'parser pythonLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter/TSLanguage.class.st", "code": "FFIOpa...
{ "fim_idx": 1, "mask_type": "return", "n_masked_tokens": 3, "prefix": "ts_language: aTSLanguage _symbol_type: symbol\n\n\taTSLanguage isNull ifTrue: [ TSNullPointerException signal ].\n\t^", "suffix": "", "completion": " self ffiCall:\n\t\t 'TSSymbolType ts_language_symbol_type(TSLanguage * aTSLanguage, u...
560
https://github.com/Evref-BL/Pharo-Tree-Sitter
5d8b160b57a65fb0adbbd52d952f064db5edf09a
src/TreeSitter/TSSymbolType.class.st
enumDecl ^ #( TSSymbolTypeRegular 0 TSSymbolTypeAnonymous 1 TSSymbolTypeSupertype 2 TSSymbolTypeAuxiliary 3 )
[ { "filepath": "src/TreeSitter-Tests/TSLanguagePythonTest.class.st", "code": "TestCase subclass: #TSLanguagePythonTest\n\tinstanceVariableNames: 'parser pythonLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter/TSLanguage.class.st", "code": "FFIOpa...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 9, "prefix": "enumDecl\n\t^ #(", "suffix": "", "completion": "\n\t TSSymbolTypeRegular 0\n\t TSSymbolTypeAnonymous 1\n\t TSSymbolTypeSupertype 2\n TSSymbolTypeAuxiliary 3\n\t)" }
561
https://github.com/Evref-BL/Pharo-Tree-Sitter
e04130606f15c0bc481236c2e24a8b7c85359ff7
src/TreeSitter-Tests/TSLanguagePythonTest.class.st
testCollectAllSymbolOfOneSymbolType self assert: (parser language symbolsOfType: TSSymbolType tssymboltyperegular) size equals: 129
[ { "filepath": "src/TreeSitter-Tests/TSLanguagePythonTest.class.st", "code": "TestCase subclass: #TSLanguagePythonTest\n\tinstanceVariableNames: 'parser pythonLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "src/TreeSitter/TSLanguage.class.st", "code": "FFIOpa...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "testCollectAllSymbolOfOneSymbolType\n\n\tself\n\t\tassert:\n\t\t(parser language symbolsOfType: TSSymbolType", "suffix": "", "completion": " tssymboltyperegular)\n\t\t\tsize\n\t\tequals: 129" }
562
https://github.com/Evref-BL/Pharo-Tree-Sitter
908dd8f92a445f16eb1d2c0274282225f900a8e2
src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st
addDefineClassIn: metamodelGeneratorClass | method | method := String streamContents: [ :stream | stream << 'defineClasses '. self typesToReify do: [ :type | stream << ' '; << (self variableNameOfTSSymbol: type); << ' :...
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter/TSLanguage.class.st", "code": "FFIOpaqueObject subclas...
{ "fim_idx": 3, "mask_type": "binary_message", "n_masked_tokens": 9, "prefix": "addDefineClassIn: metamodelGeneratorClass\n\n\t| method |\n\tmethod := String streamContents: [ :stream |\n\t\t stream << 'defineClasses\n\n'.\n\n\t\t self typesToReify\n\t\t\t do: [ :type |\n\t\t\t\t ...
563
https://github.com/Evref-BL/Pharo-Tree-Sitter
908dd8f92a445f16eb1d2c0274282225f900a8e2
src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st
addDefineClassIn: metamodelGeneratorClass | method | method := String streamContents: [ :stream | stream << 'defineClasses '. self typesToReify do: [ :type | stream << ' '; << (self variableNameOfTSSymbol: type); << ' :...
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter/TSLanguage.class.st", "code": "FFIOpaqueObject subclas...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "addDefineClassIn: metamodelGeneratorClass\n\n\t| method |\n\tmethod := String streamContents: [ :stream |\n\t\t stream << 'defineClasses\n\n'.\n\n\t\t self typesToReify\n\t\t\t do: [ :type |\n\t\t\t\t ...
564
https://github.com/Evref-BL/Pharo-Tree-Sitter
908dd8f92a445f16eb1d2c0274282225f900a8e2
src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st
addDefineClassIn: metamodelGeneratorClass | method | method := String streamContents: [ :stream | stream << 'defineClasses '. self typesToReify do: [ :type | stream << ' '; << (self variableNameOfTSSymbol: type); << ' :...
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter/TSLanguage.class.st", "code": "FFIOpaqueObject subclas...
{ "fim_idx": 4, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "addDefineClassIn: metamodelGeneratorClass\n\n\t| method |\n\tmethod := String streamContents: [ :stream |\n\t\t stream << 'defineClasses\n\n'.\n\n\t\t self typesToReify\n\t\t\t do: [ :type |\n\t\t\t\t ...
565
https://github.com/Evref-BL/Pharo-Tree-Sitter
908dd8f92a445f16eb1d2c0274282225f900a8e2
src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st
addPackageNameMethodIn: metamodelGeneratorClass metamodelGeneratorClass class compile: 'packageName ^ #''FASTPython-Model''' classified: #accessing
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter/TSLanguage.class.st", "code": "FFIOpaqueObject subclas...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "addPackageNameMethodIn: metamodelGeneratorClass\n\n\tmetamodelGeneratorClass", "suffix": "", "completion": " class\n\t\tcompile: 'packageName\n\n\t^ #''FASTPython-Model'''\n\t\tclassified: #accessing" }
566
https://github.com/Evref-BL/Pharo-Tree-Sitter
908dd8f92a445f16eb1d2c0274282225f900a8e2
src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st
addPrefixMethodIn: metamodelGeneratorClass metamodelGeneratorClass class compile: 'prefix ^ #FASTPython' classified: #accessing
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter/TSLanguage.class.st", "code": "FFIOpaqueObject subclas...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "addPrefixMethodIn: metamodelGeneratorClass\n\n\tmetamodelGeneratorClass class", "suffix": "", "completion": "\n\t\tcompile: 'prefix\n\n\t^ #FASTPython'\n\t\tclassified: #accessing" }
567
https://github.com/Evref-BL/Pharo-Tree-Sitter
908dd8f92a445f16eb1d2c0274282225f900a8e2
src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st
build | metamodelGeneratorClass | metamodelGeneratorClass := self createMetamodelGeneratorClass. self addPrefixMethodIn: metamodelGeneratorClass. self addPackageNameMethodIn: metamodelGeneratorClass. self addDefineClassIn: metamodelGeneratorClass
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter/TSLanguage.class.st", "code": "FFIOpaqueObject subclas...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "build\n\n\t| metamodelGeneratorClass |\n\tmetamodelGeneratorClass", "suffix": ".\n\tself addPrefixMethodIn: metamodelGeneratorClass.\n\tself addPackageNameMethodIn: metamodelGeneratorClass.\n\tself addDefineClassIn: metamodelGenerator...
568
https://github.com/Evref-BL/Pharo-Tree-Sitter
908dd8f92a445f16eb1d2c0274282225f900a8e2
src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st
createMetamodelGeneratorClass | classBuilder className | className := #FASTPython. classBuilder := FamixMetamodelGenerator << (className , #MetamodelGenerator). classBuilder slots: (self typesToReify collect: [ :type | (self variableNameOfTSSymbol: type) asSymbol ] as: Set). classBuilder pack...
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter/TSLanguage.class.st", "code": "FFIOpaqueObject subclas...
{ "fim_idx": 2, "mask_type": "unary_message", "n_masked_tokens": 5, "prefix": "createMetamodelGeneratorClass\n\n\t| classBuilder className |\n\tclassName := #FASTPython.\n\tclassBuilder := FamixMetamodelGenerator\n\t << (className , #MetamodelGenerator).\n\tclassBuilder slots: (self typesToReify ...
569
https://github.com/Evref-BL/Pharo-Tree-Sitter
908dd8f92a445f16eb1d2c0274282225f900a8e2
src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st
createMetamodelGeneratorClass | classBuilder className | className := #FASTPython. classBuilder := FamixMetamodelGenerator << (className , #MetamodelGenerator). classBuilder slots: (self typesToReify collect: [ :type | (self variableNameOfTSSymbol: type) asSymbol ] as: Set). classBuilder pack...
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter/TSLanguage.class.st", "code": "FFIOpaqueObject subclas...
{ "fim_idx": 3, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "createMetamodelGeneratorClass\n\n\t| classBuilder className |\n\tclassName := #FASTPython.\n\tclassBuilder := FamixMetamodelGenerator\n\t << (className , #MetamodelGenerator).\n\tclassBuilder slots: (self typesToReif...
570
https://github.com/Evref-BL/Pharo-Tree-Sitter
908dd8f92a445f16eb1d2c0274282225f900a8e2
src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st
createMetamodelGeneratorClass | classBuilder className | className := #FASTPython. classBuilder := FamixMetamodelGenerator << (className , #MetamodelGenerator). classBuilder slots: (self typesToReify collect: [ :type | (self variableNameOfTSSymbol: type) asSymbol ] as: Set). classBuilder pack...
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter/TSLanguage.class.st", "code": "FFIOpaqueObject subclas...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 6, "prefix": "createMetamodelGeneratorClass\n\n\t| classBuilder className |\n\tclassName := #FASTPython.\n\tclassBuilder := FamixMetamodelGenerator", "suffix": ".\n\tclassBuilder slots: (self typesToReify collect: [ :type |\n\t\t\t (self variableNa...
571
https://github.com/Evref-BL/Pharo-Tree-Sitter
908dd8f92a445f16eb1d2c0274282225f900a8e2
src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st
typesToReify ^ tsLanguage symbolsOfType: TSSymbolType tssymboltyperegular
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter/TSLanguage.class.st", "code": "FFIOpaqueObject subclas...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 4, "prefix": "typesToReify\n\n\t^", "suffix": "", "completion": " tsLanguage symbolsOfType: TSSymbolType tssymboltyperegular" }
572
https://github.com/Evref-BL/Pharo-Tree-Sitter
908dd8f92a445f16eb1d2c0274282225f900a8e2
src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st
variableNameOfTSSymbol: aTSSymbol ^ '_', (tsLanguage nameOfSymbol: aTSSymbol)
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter/TSLanguage.class.st", "code": "FFIOpaqueObject subclas...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "variableNameOfTSSymbol: aTSSymbol\n\n\t^ '_', (tsLanguage", "suffix": "", "completion": " nameOfSymbol: aTSSymbol)" }
573
https://github.com/Evref-BL/Pharo-Tree-Sitter
908dd8f92a445f16eb1d2c0274282225f900a8e2
src/TreeSitter/TSLanguage.class.st
name ^ TSLibrary uniqueInstance ts_language_name: self
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter/TSLanguage.class.st", "code": "FFIOpaqueObject subclas...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "name\n\n\t^ TSLibrary", "suffix": "", "completion": " uniqueInstance ts_language_name: self" }
574
https://github.com/Evref-BL/Pharo-Tree-Sitter
908dd8f92a445f16eb1d2c0274282225f900a8e2
src/TreeSitter/TSLibrary.class.st
ts_language_name: aTSLanguage aTSLanguage isNull ifTrue: [ TSNullPointerException signal ]. ^ self ffiCall: 'char * ts_language_name(TSLanguage * aTSLanguage)'
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter/TSLanguage.class.st", "code": "FFIOpaqueObject subclas...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "ts_language_name: aTSLanguage\n\n\taTSLanguage isNull ifTrue:", "suffix": ".\n\t^ self ffiCall: 'char * ts_language_name(TSLanguage * aTSLanguage)'", "completion": " [ TSNullPointerException signal ]" }
575
https://github.com/Evref-BL/Pharo-Tree-Sitter
908dd8f92a445f16eb1d2c0274282225f900a8e2
src/TreeSitter/TSLibrary.class.st
ts_language_name: aTSLanguage aTSLanguage isNull ifTrue: [ TSNullPointerException signal ]. ^ self ffiCall: 'char * ts_language_name(TSLanguage * aTSLanguage)'
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter/TSLanguage.class.st", "code": "FFIOpaqueObject subclas...
{ "fim_idx": 1, "mask_type": "return", "n_masked_tokens": 3, "prefix": "ts_language_name: aTSLanguage\n\n\taTSLanguage isNull ifTrue: [ TSNullPointerException signal ].\n\t^", "suffix": "", "completion": " self ffiCall: 'char * ts_language_name(TSLanguage * aTSLanguage)'" }
576
https://github.com/Evref-BL/Pharo-Tree-Sitter
e4ab0cf46fa4759edabd862a89eceded6a4c8fe6
src/TreeSitter/TSLanguage.class.st
fieldCount ^ TSLibrary uniqueInstance ts_language_field_count: self
[ { "filepath": "src/TreeSitter/TSLanguage.class.st", "code": "FFIOpaqueObject subclass: #TSLanguage\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNa...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 4, "prefix": "fieldCount\n\n\t^", "suffix": "", "completion": " TSLibrary uniqueInstance ts_language_field_count: self" }
577
https://github.com/Evref-BL/Pharo-Tree-Sitter
e4ab0cf46fa4759edabd862a89eceded6a4c8fe6
src/TreeSitter/TSLanguage.class.st
nameOfField: aField ^ TSLibrary uniqueInstance ts_language: self _field_name_for_id: aField
[ { "filepath": "src/TreeSitter/TSLanguage.class.st", "code": "FFIOpaqueObject subclass: #TSLanguage\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNa...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 4, "prefix": "nameOfField: aField\n\n\t^ TSLibrary uniqueInstance", "suffix": "", "completion": " ts_language: self _field_name_for_id: aField" }
578
https://github.com/Evref-BL/Pharo-Tree-Sitter
e4ab0cf46fa4759edabd862a89eceded6a4c8fe6
src/TreeSitter/TSLibrary.class.st
ts_language: aTSLanguage _field_name_for_id: aFieldID aTSLanguage isNull ifTrue: [ TSNullPointerException signal ]. ^ self ffiCall: 'char * ts_language_field_name_for_id(TSLanguage * aTSLanguage, uint16 aFieldID)'
[ { "filepath": "src/TreeSitter/TSLanguage.class.st", "code": "FFIOpaqueObject subclass: #TSLanguage\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNa...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 6, "prefix": "ts_language: aTSLanguage _field_name_for_id: aFieldID\n\n\taTSLanguage", "suffix": ".\n\t^ self ffiCall:\n\t\t 'char * ts_language_field_name_for_id(TSLanguage * aTSLanguage, uint16 aFieldID)'", "completion": " isNull ifTrue: ...
579
https://github.com/Evref-BL/Pharo-Tree-Sitter
e4ab0cf46fa4759edabd862a89eceded6a4c8fe6
src/TreeSitter/TSLibrary.class.st
ts_language: aTSLanguage _field_name_for_id: aFieldID aTSLanguage isNull ifTrue: [ TSNullPointerException signal ]. ^ self ffiCall: 'char * ts_language_field_name_for_id(TSLanguage * aTSLanguage, uint16 aFieldID)'
[ { "filepath": "src/TreeSitter/TSLanguage.class.st", "code": "FFIOpaqueObject subclass: #TSLanguage\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNa...
{ "fim_idx": 1, "mask_type": "return", "n_masked_tokens": 3, "prefix": "ts_language: aTSLanguage _field_name_for_id: aFieldID\n\n\taTSLanguage isNull ifTrue: [ TSNullPointerException signal ].\n\t^", "suffix": "", "completion": " self ffiCall:\n\t\t 'char * ts_language_field_name_for_id(TSLanguage * aTSLan...
580
https://github.com/Evref-BL/Pharo-Tree-Sitter
e4ab0cf46fa4759edabd862a89eceded6a4c8fe6
src/TreeSitter/TSLibrary.class.st
ts_language_field_count: aTSLanguage aTSLanguage isNull ifTrue: [ TSNullPointerException signal ]. ^ self ffiCall: 'uint32 ts_language_field_count(TSLanguage * aTSLanguage)'
[ { "filepath": "src/TreeSitter/TSLanguage.class.st", "code": "FFIOpaqueObject subclass: #TSLanguage\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNa...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "ts_language_field_count: aTSLanguage\n\n\taTSLanguage isNull ifTrue:", "suffix": ".\n\t^ self ffiCall:\n\t\t 'uint32 ts_language_field_count(TSLanguage * aTSLanguage)'", "completion": " [ TSNullPointerException signal ]" }
581
https://github.com/Evref-BL/Pharo-Tree-Sitter
e4ab0cf46fa4759edabd862a89eceded6a4c8fe6
src/TreeSitter/TSLibrary.class.st
ts_language_field_count: aTSLanguage aTSLanguage isNull ifTrue: [ TSNullPointerException signal ]. ^ self ffiCall: 'uint32 ts_language_field_count(TSLanguage * aTSLanguage)'
[ { "filepath": "src/TreeSitter/TSLanguage.class.st", "code": "FFIOpaqueObject subclass: #TSLanguage\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNa...
{ "fim_idx": 1, "mask_type": "return", "n_masked_tokens": 3, "prefix": "ts_language_field_count: aTSLanguage\n\n\taTSLanguage isNull ifTrue: [ TSNullPointerException signal ].\n\t^", "suffix": "", "completion": " self ffiCall:\n\t\t 'uint32 ts_language_field_count(TSLanguage * aTSLanguage)'" }
582
https://github.com/Evref-BL/Pharo-Tree-Sitter
196c9cf3d8207c766f7442fe26ca2a22d45f93a5
src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st
addDefineHierarchyIn: metamodelGeneratorClass | method | method := String streamContents: [ :stream | stream << 'defineHierarchy "define class hierarchy" super defineHierarchy. entity --|> tEntity.' ]. metamodelGeneratorClass compile: method classified: #definition
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage languageName'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter-FAST-Utils/TSFASTImporter.class.st", "cod...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 5, "prefix": "addDefineHierarchyIn: metamodelGeneratorClass\n\n\t| method |\n\tmethod := String streamContents: [ :stream", "suffix": ".\n\tmetamodelGeneratorClass compile: method classified: #definition", "completion": " |\n\t\t stream ...
583
https://github.com/Evref-BL/Pharo-Tree-Sitter
196c9cf3d8207c766f7442fe26ca2a22d45f93a5
src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st
addDefineHierarchyIn: metamodelGeneratorClass | method | method := String streamContents: [ :stream | stream << 'defineHierarchy "define class hierarchy" super defineHierarchy. entity --|> tEntity.' ]. metamodelGeneratorClass compile: method classified: #definition
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage languageName'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter-FAST-Utils/TSFASTImporter.class.st", "cod...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "addDefineHierarchyIn: metamodelGeneratorClass\n\n\t| method |\n\tmethod := String streamContents: [ :stream |\n\t\t stream << 'defineHierarchy\n\t\"define class hierarchy\"\n\n\tsuper defineHierarchy.\n\n\tentity --|> tEnt...
584
https://github.com/Evref-BL/Pharo-Tree-Sitter
196c9cf3d8207c766f7442fe26ca2a22d45f93a5
src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st
addDefineRelationsIn: metamodelGeneratorClass "should be improve if https://github.com/tree-sitter/tree-sitter/discussions/4017 got an answer" | method | method := String streamContents: [ :stream | stream << 'defineRelations super defineRelations. '. stream << String tab; ...
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage languageName'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter-FAST-Utils/TSFASTImporter.class.st", "cod...
{ "fim_idx": 1, "mask_type": "cascade", "n_masked_tokens": 3, "prefix": "addDefineRelationsIn: metamodelGeneratorClass\n\t\"should be improve if https://github.com/tree-sitter/tree-sitter/discussions/4017 got an answer\"\n\n\t| method |\n\tmethod := String streamContents: [ :stream |\n\t\t stream << 'd...
585
https://github.com/Evref-BL/Pharo-Tree-Sitter
196c9cf3d8207c766f7442fe26ca2a22d45f93a5
src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st
addDefineRelationsIn: metamodelGeneratorClass "should be improve if https://github.com/tree-sitter/tree-sitter/discussions/4017 got an answer" | method | method := String streamContents: [ :stream | stream << 'defineRelations super defineRelations. '. stream << String tab; ...
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage languageName'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter-FAST-Utils/TSFASTImporter.class.st", "cod...
{ "fim_idx": 4, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "addDefineRelationsIn: metamodelGeneratorClass\n\t\"should be improve if https://github.com/tree-sitter/tree-sitter/discussions/4017 got an answer\"\n\n\t| method |\n\tmethod := String streamContents: [ :stream |\n\t\t stre...
586
https://github.com/Evref-BL/Pharo-Tree-Sitter
196c9cf3d8207c766f7442fe26ca2a22d45f93a5
src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st
addDefineRelationsIn: metamodelGeneratorClass "should be improve if https://github.com/tree-sitter/tree-sitter/discussions/4017 got an answer" | method | method := String streamContents: [ :stream | stream << 'defineRelations super defineRelations. '. stream << String tab; ...
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage languageName'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter-FAST-Utils/TSFASTImporter.class.st", "cod...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "addDefineRelationsIn: metamodelGeneratorClass\n\t\"should be improve if https://github.com/tree-sitter/tree-sitter/discussions/4017 got an answer\"\n\n\t| method |\n\tmethod := String streamContents: [ :stream |\n\t\t stre...
587
https://github.com/Evref-BL/Pharo-Tree-Sitter
196c9cf3d8207c766f7442fe26ca2a22d45f93a5
src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st
addDefineTraitsIn: metamodelGeneratorClass | method | method := String streamContents: [ :stream | stream << 'defineTraits super defineTraits. "From FAST" tEntity := self remoteTrait: #TEntity withPrefix: #FAST. ' ]. metamodelGeneratorClass compile: method classified: #definition
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage languageName'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter-FAST-Utils/TSFASTImporter.class.st", "cod...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 5, "prefix": "addDefineTraitsIn: metamodelGeneratorClass\n\n\t| method |\n\tmethod := String streamContents: [ :stream", "suffix": ".\n\tmetamodelGeneratorClass compile: method classified: #definition", "completion": " |\n\t\t stream << ...
588
https://github.com/Evref-BL/Pharo-Tree-Sitter
196c9cf3d8207c766f7442fe26ca2a22d45f93a5
src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st
addDefineTraitsIn: metamodelGeneratorClass | method | method := String streamContents: [ :stream | stream << 'defineTraits super defineTraits. "From FAST" tEntity := self remoteTrait: #TEntity withPrefix: #FAST. ' ]. metamodelGeneratorClass compile: method classified: #definition
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage languageName'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter-FAST-Utils/TSFASTImporter.class.st", "cod...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "addDefineTraitsIn: metamodelGeneratorClass\n\n\t| method |\n\tmethod := String streamContents: [ :stream |\n\t\t stream << 'defineTraits\n\n\tsuper defineTraits.\n\n\t\"From FAST\"\n\ttEntity := self remoteTrait: #TEntity ...
589
https://github.com/Evref-BL/Pharo-Tree-Sitter
196c9cf3d8207c766f7442fe26ca2a22d45f93a5
src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st
fieldToReify ^ 1 to: self tsLanguage fieldCount
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage languageName'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter-FAST-Utils/TSFASTImporter.class.st", "cod...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "fieldToReify\n\n\t^ 1 to:", "suffix": "", "completion": " self tsLanguage fieldCount" }
590
https://github.com/Evref-BL/Pharo-Tree-Sitter
196c9cf3d8207c766f7442fe26ca2a22d45f93a5
src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st
nameOfField: aFieldIdx ^ tsLanguage nameOfField: aFieldIdx
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage languageName'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter-FAST-Utils/TSFASTImporter.class.st", "cod...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "nameOfField: aFieldIdx\n\n\t^", "suffix": "", "completion": " tsLanguage nameOfField: aFieldIdx" }
591
https://github.com/Evref-BL/Pharo-Tree-Sitter
196c9cf3d8207c766f7442fe26ca2a22d45f93a5
src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st
parentNameOfField: aFieldIdx ^ (self nameOfField: aFieldIdx) , 'Parent'
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage languageName'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter-FAST-Utils/TSFASTImporter.class.st", "cod...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "parentNameOfField: aFieldIdx\n\n\t^ (self nameOfField: aFieldIdx", "suffix": "", "completion": ") , 'Parent'" }
592
https://github.com/Evref-BL/Pharo-Tree-Sitter
196c9cf3d8207c766f7442fe26ca2a22d45f93a5
src/TreeSitter-FAST-Utils/TSFASTImporter.class.st
import: aTSNode model := ('FAST' , self languageName , 'Model' asClassInEnvironment: self class environment) new. aTSNode accept: self. ^ model
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage languageName'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter-FAST-Utils/TSFASTImporter.class.st", "cod...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "import: aTSNode\n\n\tmodel := ('FAST' , self languageName , 'Model' asClassInEnvironment:\n\t\t self class", "suffix": ".\n\taTSNode accept: self.\n\t^ model", "completion": " environment) new" }
593
https://github.com/Evref-BL/Pharo-Tree-Sitter
196c9cf3d8207c766f7442fe26ca2a22d45f93a5
src/TreeSitter-FAST-Utils/TSFASTImporter.class.st
instantiateFastEntityFrom: aTSNode ^ ('FAST' , self languageName , aTSNode type capitalized asClassInEnvironment: self class environment) new
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage languageName'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter-FAST-Utils/TSFASTImporter.class.st", "cod...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 7, "prefix": "instantiateFastEntityFrom: aTSNode\n\n\t^ ('FAST' , self languageName , aTSNode type", "suffix": "", "completion": " capitalized\n\t\t asClassInEnvironment: self class environment) new" }
594
https://github.com/Evref-BL/Pharo-Tree-Sitter
196c9cf3d8207c766f7442fe26ca2a22d45f93a5
src/TreeSitter-FAST-Utils/TSFASTImporter.class.st
visitNode: aTSNode | fastEntity | fastEntity := self instantiateFastEntityFrom: aTSNode. model add: fastEntity. 1 to: aTSNode namedChildCount do: [ :idx | | childFast fieldName tsNode | tsNode := aTSNode namedChildAt: idx. fieldName := aTSNode fieldNameOfChildNamedAt: idx. childFast := tsNode accept: self....
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage languageName'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter-FAST-Utils/TSFASTImporter.class.st", "cod...
{ "fim_idx": 2, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "visitNode: aTSNode\n\n\t| fastEntity |\n\tfastEntity := self instantiateFastEntityFrom: aTSNode.\n\tmodel add: fastEntity.\n\t1 to: aTSNode namedChildCount do: [ :idx |\n\t\t| childFast fieldName tsNode |\n\t\ttsNode :=", "suffix": "....
595
https://github.com/Evref-BL/Pharo-Tree-Sitter
196c9cf3d8207c766f7442fe26ca2a22d45f93a5
src/TreeSitter-FAST-Utils/TSFASTImporter.class.st
visitNode: aTSNode | fastEntity | fastEntity := self instantiateFastEntityFrom: aTSNode. model add: fastEntity. 1 to: aTSNode namedChildCount do: [ :idx | | childFast fieldName tsNode | tsNode := aTSNode namedChildAt: idx. fieldName := aTSNode fieldNameOfChildNamedAt: idx. childFast := tsNode accept: self....
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage languageName'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter-FAST-Utils/TSFASTImporter.class.st", "cod...
{ "fim_idx": 6, "mask_type": "keyword_message", "n_masked_tokens": 7, "prefix": "visitNode: aTSNode\n\n\t| fastEntity |\n\tfastEntity := self instantiateFastEntityFrom: aTSNode.\n\tmodel add: fastEntity.\n\t1 to: aTSNode namedChildCount do: [ :idx |\n\t\t| childFast fieldName tsNode |\n\t\ttsNode := aTSNode nam...
596
https://github.com/Evref-BL/Pharo-Tree-Sitter
196c9cf3d8207c766f7442fe26ca2a22d45f93a5
src/TreeSitter-FAST-Utils/TSFASTImporter.class.st
visitNode: aTSNode | fastEntity | fastEntity := self instantiateFastEntityFrom: aTSNode. model add: fastEntity. 1 to: aTSNode namedChildCount do: [ :idx | | childFast fieldName tsNode | tsNode := aTSNode namedChildAt: idx. fieldName := aTSNode fieldNameOfChildNamedAt: idx. childFast := tsNode accept: self....
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage languageName'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter-FAST-Utils/TSFASTImporter.class.st", "cod...
{ "fim_idx": 3, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "visitNode: aTSNode\n\n\t| fastEntity |\n\tfastEntity := self instantiateFastEntityFrom: aTSNode.\n\tmodel add: fastEntity.\n\t1 to: aTSNode namedChildCount do: [ :idx |\n\t\t| childFast fieldName tsNode |\n\t\ttsNode := aTSNode namedChi...
597
https://github.com/Evref-BL/Pharo-Tree-Sitter
196c9cf3d8207c766f7442fe26ca2a22d45f93a5
src/TreeSitter-Visitor/TSNode.extension.st
accept: aTSVisitor ^ aTSVisitor visitNode: self
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage languageName'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter-FAST-Utils/TSFASTImporter.class.st", "cod...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "accept: aTSVisitor\n\n\t^", "suffix": "", "completion": " aTSVisitor visitNode: self" }
598
https://github.com/Evref-BL/Pharo-Tree-Sitter
196c9cf3d8207c766f7442fe26ca2a22d45f93a5
src/TreeSitter-Visitor/TSVisitor.class.st
visitNode: aTSNode aTSNode collectNamedChild do: [ :child | child accept: self ]
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage languageName'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter-FAST-Utils/TSFASTImporter.class.st", "cod...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "visitNode: aTSNode\n\n\taTSNode collectNamedChild do: [ :child |", "suffix": "", "completion": " child accept: self ]" }
599
https://github.com/Evref-BL/Pharo-Tree-Sitter
44ad3511c4ef847cde9e2c0a7f878c8bbce58002
src/TreeSitter-FAST-Utils/TSFASTImporter.class.st
visitNode: aTSNode | fastEntity | fastEntity := self instantiateFastEntityFrom: aTSNode. model add: fastEntity. 1 to: aTSNode namedChildCount do: [ :idx | | childFast fieldName tsNode | tsNode := aTSNode namedChildAt: idx. fieldName := aTSNode fieldNameOfChildNamedAt: idx. childFast := tsNode acce...
[ { "filepath": "src/TreeSitter-FAST-Utils/TSFASTBuilder.class.st", "code": "Object subclass: #TSFASTBuilder\n\tinstanceVariableNames: 'tsLanguage languageName'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-FAST-Utils'" }, { "filepath": "src/TreeSitter-FAST-Utils/TSFASTImporter.class.st", "cod...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 10, "prefix": "visitNode: aTSNode\n \n \t| fastEntity |\n \tfastEntity := self instantiateFastEntityFrom: aTSNode.\n \tmodel add: fastEntity.\n \t1 to: aTSNode namedChildCount do: [ :idx |\n \t\t| childFast fieldName tsNode |\n \t\ttsNode := aTS...