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 |
|---|---|---|---|---|---|---|
700 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 7a7dbb142e67b0aede408731895ca6da2d746c04 | src/TreeSitter-Tests/TSNodeTest.class.st | testNamedChildCount
self assert: rootNode namedChildCount equals: 1 .
self assert: rootNode firstNamedChild namedChildCount equals: 3 .
self assert: (rootNode firstNamedChild namedChildAt: 2) firstNamedChild namedChildCount equals: 2. | [
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'"
},
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "parseFunctio... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testNamedChildCount\n \n\tself assert: rootNode namedChildCount equals: 1 .\n\tself assert: rootNode firstNamedChild namedChildCount equals: 3 .\n\tself assert: (rootNode firstNamedChild namedChildAt: 2)",
"suffix": ".",
"co... |
701 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 7a7dbb142e67b0aede408731895ca6da2d746c04 | src/TreeSitter-Tests/TSNodeTest.class.st | testNamedChildren
self assert: rootNode namedChildren isNotNil.
self assert: rootNode namedChildren size equals: 1.
self assert: (rootNode namedChildren first isEqualTo: rootNode firstNamedChild ). | [
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'"
},
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "parseFunctio... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testNamedChildren\n \n\tself",
"suffix": ". \n\tself assert: rootNode namedChildren size equals: 1.\t\n\tself assert: (rootNode namedChildren first isEqualTo: rootNode firstNamedChild ).",
"completion": " assert: rootNode na... |
702 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 7a7dbb142e67b0aede408731895ca6da2d746c04 | src/TreeSitter-Tests/TSNodeTest.class.st | testNamedChildren
self assert: rootNode namedChildren isNotNil.
self assert: rootNode namedChildren size equals: 1.
self assert: (rootNode namedChildren first isEqualTo: rootNode firstNamedChild ). | [
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'"
},
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "parseFunctio... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testNamedChildren\n \n\tself assert: rootNode namedChildren isNotNil. \n\tself assert: rootNode",
"suffix": ".\t\n\tself assert: (rootNode namedChildren first isEqualTo: rootNode firstNamedChild ).",
"completion": " namedChi... |
703 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 7a7dbb142e67b0aede408731895ca6da2d746c04 | src/TreeSitter-Tests/TSNodeTest.class.st | testNamedChildren
self assert: rootNode namedChildren isNotNil.
self assert: rootNode namedChildren size equals: 1.
self assert: (rootNode namedChildren first isEqualTo: rootNode firstNamedChild ). | [
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'"
},
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "parseFunctio... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 7,
"prefix": "testNamedChildren\n \n\tself assert: rootNode namedChildren isNotNil. \n\tself assert: rootNode namedChildren size equals: 1.\t\n\tself assert: (",
"suffix": ".",
"completion": "rootNode namedChildren first isEqualTo: rootNo... |
704 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 7a7dbb142e67b0aede408731895ca6da2d746c04 | src/TreeSitter-Tests/TSNodeTest.class.st | testNextSibling
|firstChild secondChild|
firstChild := rootNode firstNamedChild namedChildAt: 1 .
self assert: firstChild nextSibling isNotNil.
self assert: firstChild nextSibling type equals: 'formal_parameters'.
secondChild := rootNode firstNamedChild namedChildAt: 2 .
self assert: secondChild nextSibl... | [
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'"
},
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "parseFunctio... | {
"fim_idx": 3,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "testNextSibling\n \n\t|firstChild secondChild|\n\n\tfirstChild := rootNode firstNamedChild namedChildAt: 1 .\n\tself assert: firstChild nextSibling isNotNil. \n\tself assert: firstChild nextSibling type equals: 'formal_parameters'.\n... |
705 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 7a7dbb142e67b0aede408731895ca6da2d746c04 | src/TreeSitter-Tests/TSNodeTest.class.st | testNextSibling
|firstChild secondChild|
firstChild := rootNode firstNamedChild namedChildAt: 1 .
self assert: firstChild nextSibling isNotNil.
self assert: firstChild nextSibling type equals: 'formal_parameters'.
secondChild := rootNode firstNamedChild namedChildAt: 2 .
self assert: secondChild nextSibl... | [
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'"
},
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "parseFunctio... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testNextSibling\n \n\t|firstChild secondChild|\n\n\tfirstChild := rootNode firstNamedChild namedChildAt: 1 .\n\tself assert:",
"suffix": ". \n\tself assert: firstChild nextSibling type equals: 'formal_parameters'.\n\t\n\tsecon... |
706 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 7a7dbb142e67b0aede408731895ca6da2d746c04 | src/TreeSitter-Tests/TSNodeTest.class.st | testNextSibling
|firstChild secondChild|
firstChild := rootNode firstNamedChild namedChildAt: 1 .
self assert: firstChild nextSibling isNotNil.
self assert: firstChild nextSibling type equals: 'formal_parameters'.
secondChild := rootNode firstNamedChild namedChildAt: 2 .
self assert: secondChild nextSibl... | [
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'"
},
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "parseFunctio... | {
"fim_idx": 4,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testNextSibling\n \n\t|firstChild secondChild|\n\n\tfirstChild := rootNode firstNamedChild namedChildAt: 1 .\n\tself assert: firstChild nextSibling isNotNil. \n\tself assert: firstChild nextSibling type equals: 'formal_parameter... |
707 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 7a7dbb142e67b0aede408731895ca6da2d746c04 | src/TreeSitter-Tests/TSNodeTest.class.st | testParent
self assert: rootNode firstNamedChild parent isNotNil.
self assert: rootNode firstNamedChild parent type equals: 'program'.
self assert: (rootNode firstNamedChild parent isEqualTo: rootNode). | [
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'"
},
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "parseFunctio... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testParent\n \n\tself assert: rootNode",
"suffix": ". \n\tself assert: rootNode firstNamedChild parent type equals: 'program'. \n\tself assert: (rootNode firstNamedChild parent isEqualTo: rootNode).",
"completion": " firstNam... |
708 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 7a7dbb142e67b0aede408731895ca6da2d746c04 | src/TreeSitter-Tests/TSNodeTest.class.st | testParent
self assert: rootNode firstNamedChild parent isNotNil.
self assert: rootNode firstNamedChild parent type equals: 'program'.
self assert: (rootNode firstNamedChild parent isEqualTo: rootNode). | [
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'"
},
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "parseFunctio... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 7,
"prefix": "testParent\n \n\tself assert: rootNode firstNamedChild parent isNotNil. \n\tself",
"suffix": ". \n\tself assert: (rootNode firstNamedChild parent isEqualTo: rootNode).",
"completion": " assert: rootNode firstNamedChild parent... |
709 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 7a7dbb142e67b0aede408731895ca6da2d746c04 | src/TreeSitter-Tests/TSNodeTest.class.st | testParent
self assert: rootNode firstNamedChild parent isNotNil.
self assert: rootNode firstNamedChild parent type equals: 'program'.
self assert: (rootNode firstNamedChild parent isEqualTo: rootNode). | [
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'"
},
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "parseFunctio... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 8,
"prefix": "testParent\n \n\tself assert: rootNode firstNamedChild parent isNotNil. \n\tself assert: rootNode firstNamedChild parent type equals: 'program'. \n\tself",
"suffix": ".",
"completion": " assert: (rootNode firstNamedChild pare... |
710 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 7a7dbb142e67b0aede408731895ca6da2d746c04 | src/TreeSitter-Tests/TSNodeTest.class.st | testPreviousSibling
|firstChild secondChild|
firstChild := rootNode firstNamedChild namedChildAt: 2 .
self assert: firstChild previousSibling isNotNil.
self assert: firstChild previousSibling type equals: 'identifier'.
secondChild := rootNode firstNamedChild namedChildAt: 3 .
self assert: secondChild pre... | [
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'"
},
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "parseFunctio... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testPreviousSibling\n \n\t|firstChild secondChild|\n\n\tfirstChild := rootNode firstNamedChild namedChildAt: 2 .\n\tself",
"suffix": ". \n\tself assert: firstChild previousSibling type equals: 'identifier'.\n\t\n\tsecondChild ... |
711 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 7a7dbb142e67b0aede408731895ca6da2d746c04 | src/TreeSitter-Tests/TSNodeTest.class.st | testPreviousSibling
|firstChild secondChild|
firstChild := rootNode firstNamedChild namedChildAt: 2 .
self assert: firstChild previousSibling isNotNil.
self assert: firstChild previousSibling type equals: 'identifier'.
secondChild := rootNode firstNamedChild namedChildAt: 3 .
self assert: secondChild pre... | [
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'"
},
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "parseFunctio... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "testPreviousSibling\n \n\t|firstChild secondChild|\n\n\tfirstChild :=",
"suffix": " .\n\tself assert: firstChild previousSibling isNotNil. \n\tself assert: firstChild previousSibling type equals: 'identifier'.\n\t\n\tsecondChild :=... |
712 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 7a7dbb142e67b0aede408731895ca6da2d746c04 | src/TreeSitter-Tests/TSNodeTest.class.st | testPreviousSibling
|firstChild secondChild|
firstChild := rootNode firstNamedChild namedChildAt: 2 .
self assert: firstChild previousSibling isNotNil.
self assert: firstChild previousSibling type equals: 'identifier'.
secondChild := rootNode firstNamedChild namedChildAt: 3 .
self assert: secondChild pre... | [
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'"
},
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "parseFunctio... | {
"fim_idx": 3,
"mask_type": "assignment",
"n_masked_tokens": 5,
"prefix": "testPreviousSibling\n \n\t|firstChild secondChild|\n\n\tfirstChild := rootNode firstNamedChild namedChildAt: 2 .\n\tself assert: firstChild previousSibling isNotNil. \n\tself assert: firstChild previousSibling type equals: 'identifie... |
713 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 7a7dbb142e67b0aede408731895ca6da2d746c04 | src/TreeSitter-Tests/TSNodeTest.class.st | testStartByte
self assert: rootNode startByte equals: 0.
self assert: rootNode firstNamedChild firstNamedChild startByte equals: 9. | [
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'"
},
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "parseFunctio... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "testStartByte\n \n\tself",
"suffix": ". \n\tself assert: rootNode firstNamedChild firstNamedChild startByte equals: 9.",
"completion": " assert: rootNode startByte equals: 0"
} |
714 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 7a7dbb142e67b0aede408731895ca6da2d746c04 | src/TreeSitter-Tests/TSNodeTest.class.st | testStartByte
self assert: rootNode startByte equals: 0.
self assert: rootNode firstNamedChild firstNamedChild startByte equals: 9. | [
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'"
},
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "parseFunctio... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "testStartByte\n \n\tself assert: rootNode startByte equals: 0. \n\tself assert: rootNode",
"suffix": ".",
"completion": " firstNamedChild firstNamedChild startByte equals: 9"
} |
715 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 7a7dbb142e67b0aede408731895ca6da2d746c04 | src/TreeSitter-Tests/TSNodeTest.class.st | testStartPoint
self assert: rootNode startPoint row equals: 0.
self assert: rootNode startPoint column equals: 0.
self assert: rootNode firstNamedChild firstNamedChild startPoint row equals: 0.
self assert: rootNode firstNamedChild firstNamedChild startPoint column equals: 9. | [
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'"
},
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "parseFunctio... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "testStartPoint\n \n\tself assert: rootNode startPoint row equals: 0.\n\tself assert: rootNode startPoint column equals: 0.\n\tself assert: rootNode firstNamedChild firstNamedChild startPoint row equals: 0.\n\tself assert: rootNo... |
716 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 7a7dbb142e67b0aede408731895ca6da2d746c04 | src/TreeSitter-Tests/TSNodeTest.class.st | testStartPoint
self assert: rootNode startPoint row equals: 0.
self assert: rootNode startPoint column equals: 0.
self assert: rootNode firstNamedChild firstNamedChild startPoint row equals: 0.
self assert: rootNode firstNamedChild firstNamedChild startPoint column equals: 9. | [
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'"
},
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "parseFunctio... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testStartPoint\n \n\tself assert: rootNode startPoint row equals: 0.\n\tself assert: rootNode startPoint column equals: 0.\n\tself assert: rootNode firstNamedChild firstNamedChild startPoint",
"suffix": ".\n\tself assert: root... |
717 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 7a7dbb142e67b0aede408731895ca6da2d746c04 | src/TreeSitter-Tests/TSNodeTest.class.st | testStartPoint
self assert: rootNode startPoint row equals: 0.
self assert: rootNode startPoint column equals: 0.
self assert: rootNode firstNamedChild firstNamedChild startPoint row equals: 0.
self assert: rootNode firstNamedChild firstNamedChild startPoint column equals: 9. | [
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'"
},
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "parseFunctio... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testStartPoint\n \n\tself assert: rootNode startPoint row equals: 0.\n\tself assert: rootNode",
"suffix": ".\n\tself assert: rootNode firstNamedChild firstNamedChild startPoint row equals: 0.\n\tself assert: rootNode firstName... |
718 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 7a7dbb142e67b0aede408731895ca6da2d746c04 | src/TreeSitter-Tests/TSNodeTest.class.st | testString
self assert: rootNode string isNotNil.
self assert: rootNode string equals: '(program (function_declaration name: (identifier) parameters: (formal_parameters (required_parameter pattern: (identifier) type: (type_annotation (type_identifier)))) body: (statement_block (comment))))'.
self assert: rootNode ... | [
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'"
},
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "parseFunctio... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testString\n \n\tself assert:",
"suffix": ".\n\tself assert: rootNode string equals: '(program (function_declaration name: (identifier) parameters: (formal_parameters (required_parameter pattern: (identifier) type: (type_annotati... |
719 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 7a7dbb142e67b0aede408731895ca6da2d746c04 | src/TreeSitter-Tests/TSNodeTest.class.st | testString
self assert: rootNode string isNotNil.
self assert: rootNode string equals: '(program (function_declaration name: (identifier) parameters: (formal_parameters (required_parameter pattern: (identifier) type: (type_annotation (type_identifier)))) body: (statement_block (comment))))'.
self assert: rootNode ... | [
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'"
},
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "parseFunctio... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testString\n \n\tself assert: rootNode string isNotNil.\n\tself assert: rootNode",
"suffix": ".\n\tself assert: rootNode firstNamedChild string equals: '(function_declaration name: (identifier) parameters: (formal_parameters (req... |
720 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 7a7dbb142e67b0aede408731895ca6da2d746c04 | src/TreeSitter-Tests/TSNodeTest.class.st | testString
self assert: rootNode string isNotNil.
self assert: rootNode string equals: '(program (function_declaration name: (identifier) parameters: (formal_parameters (required_parameter pattern: (identifier) type: (type_annotation (type_identifier)))) body: (statement_block (comment))))'.
self assert: rootNode ... | [
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'"
},
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "parseFunctio... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "testString\n \n\tself assert: rootNode string isNotNil.\n\tself assert: rootNode string equals: '(program (function_declaration name: (identifier) parameters: (formal_parameters (required_parameter pattern: (identifier) type: (type... |
721 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 7a7dbb142e67b0aede408731895ca6da2d746c04 | src/TreeSitter-Tests/TSNodeTest.class.st | testSymbol
self assert: rootNode symbol isNotNil.
self assert: rootNode symbol equals: 166.
self assert: rootNode firstNamedChild symbol equals: 224. | [
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'"
},
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "parseFunctio... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testSymbol\n \n\tself",
"suffix": ".\n\tself assert: rootNode symbol equals: 166.\n\tself assert: rootNode firstNamedChild symbol equals: 224.",
"completion": " assert: rootNode symbol isNotNil"
} |
722 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 7a7dbb142e67b0aede408731895ca6da2d746c04 | src/TreeSitter-Tests/TSNodeTest.class.st | testSymbol
self assert: rootNode symbol isNotNil.
self assert: rootNode symbol equals: 166.
self assert: rootNode firstNamedChild symbol equals: 224. | [
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'"
},
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "parseFunctio... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testSymbol\n \n\tself assert: rootNode symbol isNotNil.\n\tself assert:",
"suffix": ".\n\tself assert: rootNode firstNamedChild symbol equals: 224.",
"completion": " rootNode symbol equals: 166"
} |
723 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 7a7dbb142e67b0aede408731895ca6da2d746c04 | src/TreeSitter-Tests/TSNodeTest.class.st | testSymbol
self assert: rootNode symbol isNotNil.
self assert: rootNode symbol equals: 166.
self assert: rootNode firstNamedChild symbol equals: 224. | [
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'"
},
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "parseFunctio... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testSymbol\n \n\tself assert: rootNode symbol isNotNil.\n\tself assert: rootNode symbol equals: 166.\n\tself assert: rootNode",
"suffix": ".",
"completion": " firstNamedChild symbol equals: 224"
} |
724 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 7a7dbb142e67b0aede408731895ca6da2d746c04 | src/TreeSitter-Tests/TSNodeTest.class.st | testType
self assert: rootNode type isNotNil.
self assert: rootNode type equals: 'program'. | [
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'"
},
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "parseFunctio... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testType\n \n\tself assert:",
"suffix": ".\n\tself assert: rootNode type equals: 'program'.",
"completion": " rootNode type isNotNil"
} |
725 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 7a7dbb142e67b0aede408731895ca6da2d746c04 | src/TreeSitter-Tests/TSNodeTest.class.st | testType
self assert: rootNode type isNotNil.
self assert: rootNode type equals: 'program'. | [
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'"
},
{
"filepath": "src/TreeSitter-Tests/TSNodeTest.class.st",
"code": "parseFunctio... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testType\n \n\tself assert: rootNode type isNotNil.\n\tself assert: rootNode",
"suffix": ".",
"completion": " type equals: 'program'"
} |
726 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4d521952bc55df08af2cc4c525cd3399451f0b4a | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | editTree: oldTree forBasicExample: oldString
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := 'function printHello(): void { console.log(''Hello!''); console.log(''hi!''); }'.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 0 andColumn: oldString size .... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 2,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "editTree: oldTree forBasicExample: oldString\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString := 'function printHello(): void { console.log(''Hello!''); console.log(''hi!''); }'.\n\n\taTSInputEdit := T... |
727 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4d521952bc55df08af2cc4c525cd3399451f0b4a | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | editTree: oldTree forBasicExample: oldString
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := 'function printHello(): void { console.log(''Hello!''); console.log(''hi!''); }'.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 0 andColumn: oldString size .... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 3,
"mask_type": "assignment",
"n_masked_tokens": 5,
"prefix": "editTree: oldTree forBasicExample: oldString\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString := 'function printHello(): void { console.log(''Hello!''); console.log(''hi!''); }'.\n\n\taTSInputEdit := T... |
728 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4d521952bc55df08af2cc4c525cd3399451f0b4a | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | editTree: oldTree forBasicExample: oldString
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := 'function printHello(): void { console.log(''Hello!''); console.log(''hi!''); }'.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 0 andColumn: oldString size .... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 5,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "editTree: oldTree forBasicExample: oldString\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString := 'function printHello(): void { console.log(''Hello!''); console.log(''hi!''); }'.\n\n\taTSInputEdit... |
729 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4d521952bc55df08af2cc4c525cd3399451f0b4a | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | setUp
super setUp.
parser := TSParser new.
typescriptLanguage := TSLanguage typescript .
parser language: typescriptLanguage. | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "setUp\n\n\tsuper setUp.\n\n\tparser",
"suffix": ".\n\ttypescriptLanguage := TSLanguage typescript .\n\tparser language: typescriptLanguage.",
"completion": " := TSParser new"
} |
730 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4d521952bc55df08af2cc4c525cd3399451f0b4a | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | setUp
super setUp.
parser := TSParser new.
typescriptLanguage := TSLanguage typescript .
parser language: typescriptLanguage. | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 1,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "setUp\n\n\tsuper setUp.\n\n\tparser := TSParser new.\n\ttypescriptLanguage",
"suffix": " .\n\tparser language: typescriptLanguage.",
"completion": " := TSLanguage typescript"
} |
731 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4d521952bc55df08af2cc4c525cd3399451f0b4a | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingBasic
| originalString originalTree newTree|
originalString := 'function printHello(): void { console.log(''Hello!''); }'.
originalTree := parser parseString: originalString.
originalTree rootNode.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
se... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 3,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "testTypescriptIncrementalParsingBasic\n\n\t| originalString originalTree newTree|\n\n\toriginalString := 'function printHello(): void { console.log(''Hello!''); }'.\n\toriginalTree := parser parseString: originalString.\n\toriginalTree... |
732 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4d521952bc55df08af2cc4c525cd3399451f0b4a | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingBasic
| originalString originalTree newTree|
originalString := 'function printHello(): void { console.log(''Hello!''); }'.
originalTree := parser parseString: originalString.
originalTree rootNode.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
se... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 4,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testTypescriptIncrementalParsingBasic\n\n\t| originalString originalTree newTree|\n\n\toriginalString := 'function printHello(): void { console.log(''Hello!''); }'.\n\toriginalTree := parser parseString: originalString.\n\torigina... |
733 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4d521952bc55df08af2cc4c525cd3399451f0b4a | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingBasic
| originalString originalTree newTree|
originalString := 'function printHello(): void { console.log(''Hello!''); }'.
originalTree := parser parseString: originalString.
originalTree rootNode.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
se... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 9,
"prefix": "testTypescriptIncrementalParsingBasic\n\n\t| originalString originalTree newTree|\n\n\toriginalString := 'function printHello(): void { console.log(''Hello!''); }'.\n\toriginalTree := parser parseString: originalString.\n\torigina... |
734 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 6e832e4ee08f68d8db3f97fc9b87ca697d59732b | src/TreeSitter-Tests/TSParserTypescriptTest.class.st | testParseTypescriptLong
| string tree |
string := 'import { execSync } from ''node:child_process''
import { inc } from ''semver''
import { consola } from ''consola''
import { determineBumpType, loadWorkspace } from ''./_utils''
const nightlyPackages = {
// nitro: ''nitro-nightly'',
// ... | [
{
"filepath": "src/TreeSitter-Tests/TSParserTypescriptTest.class.st",
"code": "TestCase subclass: #TSParserTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'"
}
] | {
"fim_idx": 4,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testParseTypescriptLong\n\n\t| string tree |\n\tstring := 'import { execSync } from ''node:child_process''\n\t\t\t\timport { inc } from ''semver''\n\t\t\t\timport { consola } from ''consola''\n\t\t\t\timport { determineBumpType, lo... |
735 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 6e832e4ee08f68d8db3f97fc9b87ca697d59732b | src/TreeSitter-Tests/TSParserTypescriptTest.class.st | testParseTypescriptLong
| string tree |
string := 'import { execSync } from ''node:child_process''
import { inc } from ''semver''
import { consola } from ''consola''
import { determineBumpType, loadWorkspace } from ''./_utils''
const nightlyPackages = {
// nitro: ''nitro-nightly'',
// ... | [
{
"filepath": "src/TreeSitter-Tests/TSParserTypescriptTest.class.st",
"code": "TestCase subclass: #TSParserTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'"
}
] | {
"fim_idx": 5,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testParseTypescriptLong\n\n\t| string tree |\n\tstring := 'import { execSync } from ''node:child_process''\n\t\t\t\timport { inc } from ''semver''\n\t\t\t\timport { consola } from ''consola''\n\t\t\t\timport { determineBumpType, lo... |
736 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 6e832e4ee08f68d8db3f97fc9b87ca697d59732b | src/TreeSitter-Tests/TSParserTypescriptTest.class.st | testParseTypescriptLong
| string tree |
string := 'import { execSync } from ''node:child_process''
import { inc } from ''semver''
import { consola } from ''consola''
import { determineBumpType, loadWorkspace } from ''./_utils''
const nightlyPackages = {
// nitro: ''nitro-nightly'',
// ... | [
{
"filepath": "src/TreeSitter-Tests/TSParserTypescriptTest.class.st",
"code": "TestCase subclass: #TSParserTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'"
}
] | {
"fim_idx": 6,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testParseTypescriptLong\n\n\t| string tree |\n\tstring := 'import { execSync } from ''node:child_process''\n\t\t\t\timport { inc } from ''semver''\n\t\t\t\timport { consola } from ''consola''\n\t\t\t\timport { determineBumpType, lo... |
737 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4c11beddb17f3366fcaa4de6035cbc96bd0875b7 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | editTreeForInsertBeginingExampleUsing: oldTree
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := self newStringInsertBeginning.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 0 andColumn: 0.
oldPoint := aTSInputEdit createPointWithRow: 0 andColumn: 0... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "editTreeForInsertBeginingExampleUsing: oldTree\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString",
"suffix": ".\n\n\taTSInputEdit := TSInputEdit new. \n\t\n\tstartPoint := aTSInputEdit createPointWith... |
738 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4c11beddb17f3366fcaa4de6035cbc96bd0875b7 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | editTreeForInsertBeginingExampleUsing: oldTree
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := self newStringInsertBeginning.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 0 andColumn: 0.
oldPoint := aTSInputEdit createPointWithRow: 0 andColumn: 0... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 4,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "editTreeForInsertBeginingExampleUsing: oldTree\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString := self newStringInsertBeginning.\n\n\taTSInputEdit := TSInputEdit new. \n\t\n\tstartPoint := aTSInputEdi... |
739 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4c11beddb17f3366fcaa4de6035cbc96bd0875b7 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | editTreeForInsertBeginingExampleUsing: oldTree
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := self newStringInsertBeginning.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 0 andColumn: 0.
oldPoint := aTSInputEdit createPointWithRow: 0 andColumn: 0... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 5,
"mask_type": "cascade",
"n_masked_tokens": 9,
"prefix": "editTreeForInsertBeginingExampleUsing: oldTree\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString := self newStringInsertBeginning.\n\n\taTSInputEdit := TSInputEdit new. \n\t\n\tstartPoint := aTSInputEdit c... |
740 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4c11beddb17f3366fcaa4de6035cbc96bd0875b7 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | editTreeForInsertEndExampleUsing: oldTree
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := self newStringInsertEnd.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 11 andColumn: 27.
oldPoint := aTSInputEdit createPointWithRow: 11 andColumn: 27.
new... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 2,
"mask_type": "assignment",
"n_masked_tokens": 5,
"prefix": "editTreeForInsertEndExampleUsing: oldTree\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString := self newStringInsertEnd.\n\n\taTSInputEdit := TSInputEdit new. \n\t\n\tstartPoint :=",
"suffix": ".\n\tol... |
741 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4c11beddb17f3366fcaa4de6035cbc96bd0875b7 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | editTreeForInsertEndExampleUsing: oldTree
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := self newStringInsertEnd.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 11 andColumn: 27.
oldPoint := aTSInputEdit createPointWithRow: 11 andColumn: 27.
new... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "editTreeForInsertEndExampleUsing: oldTree\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString",
"suffix": ".\n\n\taTSInputEdit := TSInputEdit new. \n\t\n\tstartPoint := aTSInputEdit createPointWithRow: ... |
742 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4c11beddb17f3366fcaa4de6035cbc96bd0875b7 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | editTreeForInsertEndExampleUsing: oldTree
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := self newStringInsertEnd.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 11 andColumn: 27.
oldPoint := aTSInputEdit createPointWithRow: 11 andColumn: 27.
new... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 6,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "editTreeForInsertEndExampleUsing: oldTree\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString := self newStringInsertEnd.\n\n\taTSInputEdit := TSInputEdit new. \n\t\n\tstartPoint := aTSInputEdit crea... |
743 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4c11beddb17f3366fcaa4de6035cbc96bd0875b7 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | editTreeForInsertMiddleExampleUsing: oldTree
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := self newStringInsertMiddle.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 7 andColumn: 1.
oldPoint := aTSInputEdit createPointWithRow: 7 andColumn: 1.
n... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 7,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "editTreeForInsertMiddleExampleUsing: oldTree\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString := self newStringInsertMiddle.\n\n\taTSInputEdit := TSInputEdit new. \n\t\n\tstartPoint := aTSInputEdit cre... |
744 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4c11beddb17f3366fcaa4de6035cbc96bd0875b7 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | editTreeForInsertMiddleExampleUsing: oldTree
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := self newStringInsertMiddle.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 7 andColumn: 1.
oldPoint := aTSInputEdit createPointWithRow: 7 andColumn: 1.
n... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 4,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "editTreeForInsertMiddleExampleUsing: oldTree\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString := self newStringInsertMiddle.\n\n\taTSInputEdit := TSInputEdit new. \n\t\n\tstartPoint := aTSInputEdit cre... |
745 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4c11beddb17f3366fcaa4de6035cbc96bd0875b7 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | editTreeForInsertMiddleExampleUsing: oldTree
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := self newStringInsertMiddle.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 7 andColumn: 1.
oldPoint := aTSInputEdit createPointWithRow: 7 andColumn: 1.
n... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "editTreeForInsertMiddleExampleUsing: oldTree\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString",
"suffix": ".\n\n\taTSInputEdit := TSInputEdit new. \n\t\n\tstartPoint := aTSInputEdit createPointWithRo... |
746 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4c11beddb17f3366fcaa4de6035cbc96bd0875b7 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingInsertBeginning
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
originalTree rootNode.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self ... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 5,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "testTypescriptIncrementalParsingInsertBeginning\n\n\t| originalTree newTree|\n\n\toriginalTree := parser parseString: self originalStringToParse.\n\toriginalTree rootNode. \n\t\n\t\"before edit\"\n\tself assert: originalTree rootNo... |
747 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4c11beddb17f3366fcaa4de6035cbc96bd0875b7 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingInsertBeginning
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
originalTree rootNode.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self ... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "testTypescriptIncrementalParsingInsertBeginning\n\n\t| originalTree newTree|\n\n\toriginalTree :=",
"suffix": ".\n\toriginalTree rootNode. \n\t\n\t\"before edit\"\n\tself assert: originalTree rootNode hasChanges equals: false.\n\tself... |
748 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4c11beddb17f3366fcaa4de6035cbc96bd0875b7 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingInsertBeginning
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
originalTree rootNode.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self ... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 4,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "testTypescriptIncrementalParsingInsertBeginning\n\n\t| originalTree newTree|\n\n\toriginalTree := parser parseString: self originalStringToParse.\n\toriginalTree rootNode. \n\t\n\t\"before edit\"\n\tself assert: originalTree rootNode ha... |
749 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4c11beddb17f3366fcaa4de6035cbc96bd0875b7 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingInsertEnd
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
originalTree rootNode.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self assert... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 5,
"prefix": "testTypescriptIncrementalParsingInsertEnd\n\n\t| originalTree newTree|\n\n\toriginalTree",
"suffix": ".\n\toriginalTree rootNode. \n\t\n\t\"before edit\"\n\tself assert: originalTree rootNode hasChanges equals: false.\n\tself assert: ... |
750 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4c11beddb17f3366fcaa4de6035cbc96bd0875b7 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingInsertEnd
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
originalTree rootNode.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self assert... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testTypescriptIncrementalParsingInsertEnd\n\n\t| originalTree newTree|\n\n\toriginalTree := parser parseString: self originalStringToParse.\n\toriginalTree rootNode. \n\t\n\t\"before edit\"\n\tself assert: originalTree",
"suffix"... |
751 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4c11beddb17f3366fcaa4de6035cbc96bd0875b7 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingInsertEnd
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
originalTree rootNode.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self assert... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 4,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "testTypescriptIncrementalParsingInsertEnd\n\n\t| originalTree newTree|\n\n\toriginalTree := parser parseString: self originalStringToParse.\n\toriginalTree rootNode. \n\t\n\t\"before edit\"\n\tself assert: originalTree rootNode hasChang... |
752 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4c11beddb17f3366fcaa4de6035cbc96bd0875b7 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingInsertMiddle
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
originalTree rootNode.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self ass... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testTypescriptIncrementalParsingInsertMiddle\n\n\t| originalTree newTree|\n\n\toriginalTree := parser parseString: self originalStringToParse.\n\toriginalTree rootNode. \n\t\n\t\"before edit\"\n\tself assert: originalTree",
"suff... |
753 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4c11beddb17f3366fcaa4de6035cbc96bd0875b7 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingInsertMiddle
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
originalTree rootNode.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self ass... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 8,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testTypescriptIncrementalParsingInsertMiddle\n\n\t| originalTree newTree|\n\n\toriginalTree := parser parseString: self originalStringToParse.\n\toriginalTree rootNode. \n\t\n\t\"before edit\"\n\tself assert: originalTree rootNode ... |
754 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4c11beddb17f3366fcaa4de6035cbc96bd0875b7 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingInsertMiddle
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
originalTree rootNode.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self ass... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "testTypescriptIncrementalParsingInsertMiddle\n\n\t| originalTree newTree|\n\n\toriginalTree := parser parseString: self originalStringToParse.\n\toriginalTree rootNode. \n\t\n\t\"before edit\"\n\tself assert: originalTree rootNode ... |
755 | https://github.com/Evref-BL/Pharo-Tree-Sitter | a7b9b1446436d85ec183a68a6566e1cede955986 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | editTreeForDeleteBeginingExampleUsing: oldTree
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := self newStringDeleteBeginning.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 0 andColumn: 0.
oldPoint := aTSInputEdit createPointWithRow: 1 andColumn: 3... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 6,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "editTreeForDeleteBeginingExampleUsing: oldTree\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString := self newStringDeleteBeginning.\n\n\taTSInputEdit := TSInputEdit new. \n\t\n\tstartPoint := aTSInp... |
756 | https://github.com/Evref-BL/Pharo-Tree-Sitter | a7b9b1446436d85ec183a68a6566e1cede955986 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | editTreeForDeleteBeginingExampleUsing: oldTree
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := self newStringDeleteBeginning.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 0 andColumn: 0.
oldPoint := aTSInputEdit createPointWithRow: 1 andColumn: 3... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 5,
"mask_type": "cascade",
"n_masked_tokens": 8,
"prefix": "editTreeForDeleteBeginingExampleUsing: oldTree\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString := self newStringDeleteBeginning.\n\n\taTSInputEdit := TSInputEdit new. \n\t\n\tstartPoint := aTSInputEdit c... |
757 | https://github.com/Evref-BL/Pharo-Tree-Sitter | a7b9b1446436d85ec183a68a6566e1cede955986 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | editTreeForDeleteBeginingExampleUsing: oldTree
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := self newStringDeleteBeginning.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 0 andColumn: 0.
oldPoint := aTSInputEdit createPointWithRow: 1 andColumn: 3... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 4,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "editTreeForDeleteBeginingExampleUsing: oldTree\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString := self newStringDeleteBeginning.\n\n\taTSInputEdit := TSInputEdit new. \n\t\n\tstartPoint := aTSInputEdi... |
758 | https://github.com/Evref-BL/Pharo-Tree-Sitter | a7b9b1446436d85ec183a68a6566e1cede955986 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | editTreeForDeleteEndExampleUsing: oldTree
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := self newStringDeleteEnd.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 9 andColumn: 51.
oldPoint := aTSInputEdit createPointWithRow: 9 andColumn: 51.
newPo... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 1,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "editTreeForDeleteEndExampleUsing: oldTree\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString := self newStringDeleteEnd.\n\n\taTSInputEdit",
"suffix": ". \n\t\n\tstartPoint := aTSInputEdit createPointW... |
759 | https://github.com/Evref-BL/Pharo-Tree-Sitter | a7b9b1446436d85ec183a68a6566e1cede955986 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | editTreeForDeleteEndExampleUsing: oldTree
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := self newStringDeleteEnd.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 9 andColumn: 51.
oldPoint := aTSInputEdit createPointWithRow: 9 andColumn: 51.
newPo... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 2,
"mask_type": "assignment",
"n_masked_tokens": 6,
"prefix": "editTreeForDeleteEndExampleUsing: oldTree\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString := self newStringDeleteEnd.\n\n\taTSInputEdit := TSInputEdit new. \n\t\n\tstartPoint",
"suffix": ".\n\toldPo... |
760 | https://github.com/Evref-BL/Pharo-Tree-Sitter | a7b9b1446436d85ec183a68a6566e1cede955986 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | editTreeForDeleteEndExampleUsing: oldTree
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := self newStringDeleteEnd.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 9 andColumn: 51.
oldPoint := aTSInputEdit createPointWithRow: 9 andColumn: 51.
newPo... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "editTreeForDeleteEndExampleUsing: oldTree\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString",
"suffix": ".\n\n\taTSInputEdit := TSInputEdit new. \n\t\n\tstartPoint := aTSInputEdit createPointWithRow: ... |
761 | https://github.com/Evref-BL/Pharo-Tree-Sitter | a7b9b1446436d85ec183a68a6566e1cede955986 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | editTreeForDeleteMiddleExampleUsing: oldTree
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := self newStringDeleteMiddle.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 6 andColumn: 36.
oldPoint := aTSInputEdit createPointWithRow: 6 andColumn: 42.
... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 5,
"mask_type": "cascade",
"n_masked_tokens": 4,
"prefix": "editTreeForDeleteMiddleExampleUsing: oldTree\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString := self newStringDeleteMiddle.\n\n\taTSInputEdit := TSInputEdit new. \n\t\n\tstartPoint := aTSInputEdit create... |
762 | https://github.com/Evref-BL/Pharo-Tree-Sitter | a7b9b1446436d85ec183a68a6566e1cede955986 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | editTreeForDeleteMiddleExampleUsing: oldTree
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := self newStringDeleteMiddle.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 6 andColumn: 36.
oldPoint := aTSInputEdit createPointWithRow: 6 andColumn: 42.
... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "editTreeForDeleteMiddleExampleUsing: oldTree\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString",
"suffix": ".\n\n\taTSInputEdit := TSInputEdit new. \n\t\n\tstartPoint := aTSInputEdit createPointWithRo... |
763 | https://github.com/Evref-BL/Pharo-Tree-Sitter | a7b9b1446436d85ec183a68a6566e1cede955986 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | editTreeForDeleteMiddleExampleUsing: oldTree
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := self newStringDeleteMiddle.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 6 andColumn: 36.
oldPoint := aTSInputEdit createPointWithRow: 6 andColumn: 42.
... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 3,
"mask_type": "assignment",
"n_masked_tokens": 5,
"prefix": "editTreeForDeleteMiddleExampleUsing: oldTree\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString := self newStringDeleteMiddle.\n\n\taTSInputEdit := TSInputEdit new. \n\t\n\tstartPoint := aTSInputEdit cre... |
764 | https://github.com/Evref-BL/Pharo-Tree-Sitter | a7b9b1446436d85ec183a68a6566e1cede955986 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingDeleteBeginning
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
originalTree rootNode.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self ... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "testTypescriptIncrementalParsingDeleteBeginning\n\n\t| originalTree newTree|\n\n\toriginalTree := parser parseString: self originalStringToParse.\n\toriginalTree rootNode. \n\t\n\t\"before edit\"\n\tself assert: originalTree rootNo... |
765 | https://github.com/Evref-BL/Pharo-Tree-Sitter | a7b9b1446436d85ec183a68a6566e1cede955986 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingDeleteBeginning
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
originalTree rootNode.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self ... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "testTypescriptIncrementalParsingDeleteBeginning\n\n\t| originalTree newTree|\n\n\toriginalTree :=",
"suffix": ".\n\toriginalTree rootNode. \n\t\n\t\"before edit\"\n\tself assert: originalTree rootNode hasChanges equals: false.\n\tself... |
766 | https://github.com/Evref-BL/Pharo-Tree-Sitter | a7b9b1446436d85ec183a68a6566e1cede955986 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingDeleteBeginning
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
originalTree rootNode.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self ... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 5,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testTypescriptIncrementalParsingDeleteBeginning\n\n\t| originalTree newTree|\n\n\toriginalTree := parser parseString: self originalStringToParse.\n\toriginalTree rootNode. \n\t\n\t\"before edit\"\n\tself assert: originalTree rootNo... |
767 | https://github.com/Evref-BL/Pharo-Tree-Sitter | a7b9b1446436d85ec183a68a6566e1cede955986 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingDeleteEnd
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
originalTree rootNode.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self assert... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 6,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testTypescriptIncrementalParsingDeleteEnd\n\n\t| originalTree newTree|\n\n\toriginalTree := parser parseString: self originalStringToParse.\n\toriginalTree rootNode. \n\t\n\t\"before edit\"\n\tself assert: originalTree rootNode has... |
768 | https://github.com/Evref-BL/Pharo-Tree-Sitter | a7b9b1446436d85ec183a68a6566e1cede955986 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingDeleteEnd
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
originalTree rootNode.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self assert... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "testTypescriptIncrementalParsingDeleteEnd\n\n\t| originalTree newTree|\n\n\toriginalTree := parser",
"suffix": ".\n\toriginalTree rootNode. \n\t\n\t\"before edit\"\n\tself assert: originalTree rootNode hasChanges equals: false.\n\tsel... |
769 | https://github.com/Evref-BL/Pharo-Tree-Sitter | a7b9b1446436d85ec183a68a6566e1cede955986 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingDeleteEnd
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
originalTree rootNode.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self assert... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 5,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testTypescriptIncrementalParsingDeleteEnd\n\n\t| originalTree newTree|\n\n\toriginalTree := parser parseString: self originalStringToParse.\n\toriginalTree rootNode. \n\t\n\t\"before edit\"\n\tself assert: originalTree rootNode has... |
770 | https://github.com/Evref-BL/Pharo-Tree-Sitter | a7b9b1446436d85ec183a68a6566e1cede955986 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingDeleteMiddle
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
originalTree rootNode.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self ass... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 8,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testTypescriptIncrementalParsingDeleteMiddle\n\n\t| originalTree newTree|\n\n\toriginalTree := parser parseString: self originalStringToParse.\n\toriginalTree rootNode. \n\t\n\t\"before edit\"\n\tself assert: originalTree rootNode ... |
771 | https://github.com/Evref-BL/Pharo-Tree-Sitter | a7b9b1446436d85ec183a68a6566e1cede955986 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingDeleteMiddle
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
originalTree rootNode.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self ass... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 5,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "testTypescriptIncrementalParsingDeleteMiddle\n\n\t| originalTree newTree|\n\n\toriginalTree := parser parseString: self originalStringToParse.\n\toriginalTree rootNode. \n\t\n\t\"before edit\"\n\tself assert: originalTree rootNode ... |
772 | https://github.com/Evref-BL/Pharo-Tree-Sitter | a7b9b1446436d85ec183a68a6566e1cede955986 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingDeleteMiddle
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
originalTree rootNode.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self ass... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 6,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testTypescriptIncrementalParsingDeleteMiddle\n\n\t| originalTree newTree|\n\n\toriginalTree := parser parseString: self originalStringToParse.\n\toriginalTree rootNode. \n\t\n\t\"before edit\"\n\tself assert: originalTree rootNode ... |
773 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 94d568763ae1dce68368a29f255dc5277c9c1312 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | editTreeForUpdateBeginingExampleUsing: oldTree
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := self newStringUpdateBegining.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 0 andColumn: 0.
oldPoint := aTSInputEdit createPointWithRow: 0 andColumn: 9.... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 4,
"mask_type": "assignment",
"n_masked_tokens": 6,
"prefix": "editTreeForUpdateBeginingExampleUsing: oldTree\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString := self newStringUpdateBegining.\n\n\taTSInputEdit := TSInputEdit new. \n\t\n\tstartPoint := aTSInputEdit... |
774 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 94d568763ae1dce68368a29f255dc5277c9c1312 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | editTreeForUpdateBeginingExampleUsing: oldTree
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := self newStringUpdateBegining.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 0 andColumn: 0.
oldPoint := aTSInputEdit createPointWithRow: 0 andColumn: 9.... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 5,
"mask_type": "cascade",
"n_masked_tokens": 3,
"prefix": "editTreeForUpdateBeginingExampleUsing: oldTree\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString := self newStringUpdateBegining.\n\n\taTSInputEdit := TSInputEdit new. \n\t\n\tstartPoint := aTSInputEdit cr... |
775 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 94d568763ae1dce68368a29f255dc5277c9c1312 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | editTreeForUpdateBeginingExampleUsing: oldTree
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := self newStringUpdateBegining.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 0 andColumn: 0.
oldPoint := aTSInputEdit createPointWithRow: 0 andColumn: 9.... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 6,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "editTreeForUpdateBeginingExampleUsing: oldTree\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString := self newStringUpdateBegining.\n\n\taTSInputEdit := TSInputEdit new. \n\t\n\tstartPoint := aTSInpu... |
776 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 94d568763ae1dce68368a29f255dc5277c9c1312 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | editTreeForUpdateEndExampleUsing: oldTree
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := self newStringUpdateEnd.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 11 andColumn: 26.
oldPoint := aTSInputEdit createPointWithRow: 11 andColumn: 27.
new... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 7,
"mask_type": "assignment",
"n_masked_tokens": 6,
"prefix": "editTreeForUpdateEndExampleUsing: oldTree\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString := self newStringUpdateEnd.\n\n\taTSInputEdit := TSInputEdit new. \n\t\n\tstartPoint := aTSInputEdit createPoi... |
777 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 94d568763ae1dce68368a29f255dc5277c9c1312 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | editTreeForUpdateEndExampleUsing: oldTree
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := self newStringUpdateEnd.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 11 andColumn: 26.
oldPoint := aTSInputEdit createPointWithRow: 11 andColumn: 27.
new... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "editTreeForUpdateEndExampleUsing: oldTree\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString",
"suffix": ".\n\n\taTSInputEdit := TSInputEdit new. \n\t\n\tstartPoint := aTSInputEdit createPointWithRow: ... |
778 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 94d568763ae1dce68368a29f255dc5277c9c1312 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | editTreeForUpdateEndExampleUsing: oldTree
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := self newStringUpdateEnd.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 11 andColumn: 26.
oldPoint := aTSInputEdit createPointWithRow: 11 andColumn: 27.
new... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 6,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "editTreeForUpdateEndExampleUsing: oldTree\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString := self newStringUpdateEnd.\n\n\taTSInputEdit := TSInputEdit new. \n\t\n\tstartPoint := aTSInputEdit crea... |
779 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 94d568763ae1dce68368a29f255dc5277c9c1312 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | editTreeForUpdateMiddleExampleUsing: oldTree
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := self newStringUpdateMiddle.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 9 andColumn: 43.
oldPoint := aTSInputEdit createPointWithRow: 9 andColumn: 47.
... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 7,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "editTreeForUpdateMiddleExampleUsing: oldTree\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString := self newStringUpdateMiddle.\n\n\taTSInputEdit := TSInputEdit new. \n\t\n\tstartPoint := aTSInputEdit cre... |
780 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 94d568763ae1dce68368a29f255dc5277c9c1312 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | editTreeForUpdateMiddleExampleUsing: oldTree
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := self newStringUpdateMiddle.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 9 andColumn: 43.
oldPoint := aTSInputEdit createPointWithRow: 9 andColumn: 47.
... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 3,
"mask_type": "assignment",
"n_masked_tokens": 5,
"prefix": "editTreeForUpdateMiddleExampleUsing: oldTree\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString := self newStringUpdateMiddle.\n\n\taTSInputEdit := TSInputEdit new. \n\t\n\tstartPoint := aTSInputEdit cre... |
781 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 94d568763ae1dce68368a29f255dc5277c9c1312 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | editTreeForUpdateMiddleExampleUsing: oldTree
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := self newStringUpdateMiddle.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 9 andColumn: 43.
oldPoint := aTSInputEdit createPointWithRow: 9 andColumn: 47.
... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 4,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "editTreeForUpdateMiddleExampleUsing: oldTree\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString := self newStringUpdateMiddle.\n\n\taTSInputEdit := TSInputEdit new. \n\t\n\tstartPoint := aTSInputEdit cre... |
782 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 94d568763ae1dce68368a29f255dc5277c9c1312 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingUpdateBeginning
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
originalTree rootNode.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self ... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 4,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "testTypescriptIncrementalParsingUpdateBeginning\n\n\t| originalTree newTree|\n\n\toriginalTree := parser parseString: self originalStringToParse.\n\toriginalTree rootNode. \n\t\n\t\"before edit\"\n\tself assert: originalTree rootNode ha... |
783 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 94d568763ae1dce68368a29f255dc5277c9c1312 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingUpdateBeginning
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
originalTree rootNode.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self ... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "testTypescriptIncrementalParsingUpdateBeginning\n\n\t| originalTree newTree|\n\n\toriginalTree := parser parseString: self originalStringToParse.\n\toriginalTree rootNode. \n\t\n\t\"before edit\"\n\tself assert: originalTree rootNo... |
784 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 94d568763ae1dce68368a29f255dc5277c9c1312 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingUpdateBeginning
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
originalTree rootNode.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self ... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 6,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testTypescriptIncrementalParsingUpdateBeginning\n\n\t| originalTree newTree|\n\n\toriginalTree := parser parseString: self originalStringToParse.\n\toriginalTree rootNode. \n\t\n\t\"before edit\"\n\tself assert: originalTree rootNo... |
785 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 94d568763ae1dce68368a29f255dc5277c9c1312 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingUpdateEnd
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
originalTree rootNode.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self assert... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 5,
"prefix": "testTypescriptIncrementalParsingUpdateEnd\n\n\t| originalTree newTree|\n\n\toriginalTree",
"suffix": ".\n\toriginalTree rootNode. \n\t\n\t\"before edit\"\n\tself assert: originalTree rootNode hasChanges equals: false.\n\tself assert: ... |
786 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 94d568763ae1dce68368a29f255dc5277c9c1312 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingUpdateEnd
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
originalTree rootNode.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self assert... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 6,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testTypescriptIncrementalParsingUpdateEnd\n\n\t| originalTree newTree|\n\n\toriginalTree := parser parseString: self originalStringToParse.\n\toriginalTree rootNode. \n\t\n\t\"before edit\"\n\tself assert: originalTree rootNode has... |
787 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 94d568763ae1dce68368a29f255dc5277c9c1312 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingUpdateEnd
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
originalTree rootNode.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self assert... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 7,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "testTypescriptIncrementalParsingUpdateEnd\n\n\t| originalTree newTree|\n\n\toriginalTree := parser parseString: self originalStringToParse.\n\toriginalTree rootNode. \n\t\n\t\"before edit\"\n\tself assert: originalTree rootNode has... |
788 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 94d568763ae1dce68368a29f255dc5277c9c1312 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingUpdateMiddle
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
originalTree rootNode.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self ass... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 5,
"prefix": "testTypescriptIncrementalParsingUpdateMiddle\n\n\t| originalTree newTree|\n\n\toriginalTree",
"suffix": ".\n\toriginalTree rootNode. \n\t\n\t\"before edit\"\n\tself assert: originalTree rootNode hasChanges equals: false.\n\tself asser... |
789 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 94d568763ae1dce68368a29f255dc5277c9c1312 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingUpdateMiddle
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
originalTree rootNode.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self ass... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "testTypescriptIncrementalParsingUpdateMiddle\n\n\t| originalTree newTree|\n\n\toriginalTree := parser parseString: self originalStringToParse.\n\toriginalTree rootNode. \n\t\n\t\"before edit\"\n\tself",
"suffix": ".\n\tself asser... |
790 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 94d568763ae1dce68368a29f255dc5277c9c1312 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingUpdateMiddle
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
originalTree rootNode.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self ass... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testTypescriptIncrementalParsingUpdateMiddle\n\n\t| originalTree newTree|\n\n\toriginalTree := parser parseString: self originalStringToParse.\n\toriginalTree rootNode. \n\t\n\t\"before edit\"\n\tself assert: originalTree rootNode ... |
791 | https://github.com/Evref-BL/Pharo-Tree-Sitter | bf2acbf748fd2ac3a3aa03687a8b8dfd54187d18 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingDeleteBeginning
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self assert: origina... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testTypescriptIncrementalParsingDeleteBeginning\n \n \t| originalTree newTree|\n \n \toriginalTree := parser parseString: self originalStringToParse.\n \t\n \t\"before edit\"\n \tself assert: originalTree rootNode hasChanges equals... |
792 | https://github.com/Evref-BL/Pharo-Tree-Sitter | bf2acbf748fd2ac3a3aa03687a8b8dfd54187d18 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingInsertEnd
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self assert: originalTree ... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 7,
"prefix": "testTypescriptIncrementalParsingInsertEnd\n \n \t| originalTree newTree|\n \n \toriginalTree := parser parseString: self originalStringToParse.\n \t\n \t\"before edit\"\n \tself assert: originalTree rootNode hasChanges equals: fals... |
793 | https://github.com/Evref-BL/Pharo-Tree-Sitter | bf2acbf748fd2ac3a3aa03687a8b8dfd54187d18 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingUpdateBeginning
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self assert: origina... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "testTypescriptIncrementalParsingUpdateBeginning\n \n \t| originalTree newTree|\n \n \toriginalTree := parser parseString: self originalStringToParse.\n \t\n \t\"before edit\"\n \tself assert: originalTree rootNode hasChanges equals... |
794 | https://github.com/Evref-BL/Pharo-Tree-Sitter | bf2acbf748fd2ac3a3aa03687a8b8dfd54187d18 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingUpdateEnd
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self assert: originalTree ... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testTypescriptIncrementalParsingUpdateEnd\n \n \t| originalTree newTree|\n \n \toriginalTree := parser parseString: self originalStringToParse.\n \t\n \t\"before edit\"\n \tself assert: originalTree rootNode hasChanges equals: fals... |
795 | https://github.com/Evref-BL/Pharo-Tree-Sitter | bf2acbf748fd2ac3a3aa03687a8b8dfd54187d18 | src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st | testTypescriptIncrementalParsingUpdateMiddle
| originalTree newTree|
originalTree := parser parseString: self originalStringToParse.
"before edit"
self assert: originalTree rootNode hasChanges equals: false.
self assert: originalTree rootNode collectNamedChild size equals: 4.
self assert: originalTr... | [
{
"filepath": "src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st",
"code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Typescript'"
},
{
"filepa... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testTypescriptIncrementalParsingUpdateMiddle\n \n \t| originalTree newTree|\n \n \toriginalTree := parser parseString: self originalStringToParse.\n \t\n \t\"before edit\"\n \tself assert: originalTree rootNode hasChanges equals: f... |
796 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 247044f073d6c869ae577fa2870541c4e0357488 | src/TreeSitter-Tests/TSParsingWithErrorTest.class.st | editTree: originalTree forBasicExample1: originalString
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := 'fu function printHello(): void { console.log("Hello!"); }'.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 0 andColumn: 0 .
oldPoint := aTSInputE... | [
{
"filepath": "src/TreeSitter-Tests/TSParsingWithErrorTest.class.st",
"code": "TestCase subclass: #TSParsingWithErrorTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-Parsing'"
},
{
"filepath": "src/TreeSitter-Tests/TSParsingWithErrorT... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "editTree: originalTree forBasicExample1: originalString\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString := 'fu function printHello(): void { console.log(\"Hello!\"); }'.\n\n\taTSInputEdit",
"suffix"... |
797 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 247044f073d6c869ae577fa2870541c4e0357488 | src/TreeSitter-Tests/TSParsingWithErrorTest.class.st | editTree: originalTree forBasicExample1: originalString
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := 'fu function printHello(): void { console.log("Hello!"); }'.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 0 andColumn: 0 .
oldPoint := aTSInputE... | [
{
"filepath": "src/TreeSitter-Tests/TSParsingWithErrorTest.class.st",
"code": "TestCase subclass: #TSParsingWithErrorTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-Parsing'"
},
{
"filepath": "src/TreeSitter-Tests/TSParsingWithErrorT... | {
"fim_idx": 4,
"mask_type": "cascade",
"n_masked_tokens": 10,
"prefix": "editTree: originalTree forBasicExample1: originalString\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString := 'fu function printHello(): void { console.log(\"Hello!\"); }'.\n\n\taTSInputEdit := TSInputEdit... |
798 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 247044f073d6c869ae577fa2870541c4e0357488 | src/TreeSitter-Tests/TSParsingWithErrorTest.class.st | editTree: originalTree forBasicExample1: originalString
|newString aTSInputEdit startPoint oldPoint newPoint newTree|
newString := 'fu function printHello(): void { console.log("Hello!"); }'.
aTSInputEdit := TSInputEdit new.
startPoint := aTSInputEdit createPointWithRow: 0 andColumn: 0 .
oldPoint := aTSInputE... | [
{
"filepath": "src/TreeSitter-Tests/TSParsingWithErrorTest.class.st",
"code": "TestCase subclass: #TSParsingWithErrorTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-Parsing'"
},
{
"filepath": "src/TreeSitter-Tests/TSParsingWithErrorT... | {
"fim_idx": 6,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "editTree: originalTree forBasicExample1: originalString\n\n\t|newString aTSInputEdit startPoint oldPoint newPoint newTree|\n\t\n\tnewString := 'fu function printHello(): void { console.log(\"Hello!\"); }'.\n\n\taTSInputEdit := TSInputEd... |
799 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 247044f073d6c869ae577fa2870541c4e0357488 | src/TreeSitter-Tests/TSParsingWithErrorTest.class.st | setUp
super setUp.
parser := TSParser new.
typescriptLanguage := TSLanguage typescript.
parser language: typescriptLanguage . | [
{
"filepath": "src/TreeSitter-Tests/TSParsingWithErrorTest.class.st",
"code": "TestCase subclass: #TSParsingWithErrorTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-Parsing'"
},
{
"filepath": "src/TreeSitter-Tests/TSParsingWithErrorT... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "setUp\n\n\tsuper setUp.\n\n\tparser",
"suffix": ".\n\ttypescriptLanguage := TSLanguage typescript.\n\tparser language: typescriptLanguage .",
"completion": " := TSParser new"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.