1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00
semantic/test/corpus/diff-summaries/javascript/member-access.json
Rob Rix 483e8a3f00 Regenerate all the things!
JavaScript: method call → function call.

Go: regenerated everything.
2017-01-24 15:09:28 -05:00

348 lines
11 KiB
JSON

[{
"testCaseDescription": "javascript-member-access-insert-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
15
]
}
},
"summary": "Added the 'x.someProperty' member access"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"patch": [
"diff --git a/member-access.js b/member-access.js",
"index e69de29b..3c837c9a 100644",
"--- a/member-access.js",
"+++ b/member-access.js",
"@@ -0,0 +1 @@",
"+x.someProperty;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "5465664fb6e49eb214afa9feb0fadd451399dad9..fbdf589ce4b68c6eb2c32f0caf1f5a98977575dd"
}
,{
"testCaseDescription": "javascript-member-access-replacement-insert-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
20
]
}
},
"summary": "Added the 'x.someOtherProperty' member access"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
15
]
}
},
"summary": "Added the 'x.someProperty' member access"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"patch": [
"diff --git a/member-access.js b/member-access.js",
"index 3c837c9a..858131af 100644",
"--- a/member-access.js",
"+++ b/member-access.js",
"@@ -1 +1,3 @@",
"+x.someOtherProperty",
"+x.someProperty;",
" x.someProperty;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "fbdf589ce4b68c6eb2c32f0caf1f5a98977575dd..4af60582c01401af8e4fb5440ebf9a27278743d3"
}
,{
"testCaseDescription": "javascript-member-access-delete-insert-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"replace": [
{
"start": [
1,
3
],
"end": [
1,
20
]
},
{
"start": [
1,
3
],
"end": [
1,
15
]
}
]
},
"summary": "Replaced the 'someOtherProperty' identifier with the 'someProperty' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"patch": [
"diff --git a/member-access.js b/member-access.js",
"index 858131af..5ed8a8d2 100644",
"--- a/member-access.js",
"+++ b/member-access.js",
"@@ -1,3 +1,3 @@",
"-x.someOtherProperty",
"+x.someProperty;",
" x.someProperty;",
" x.someProperty;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "4af60582c01401af8e4fb5440ebf9a27278743d3..d7c2b4243cc835256891d23b8ac815bf2c8100fd"
}
,{
"testCaseDescription": "javascript-member-access-replacement-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"replace": [
{
"start": [
1,
3
],
"end": [
1,
15
]
},
{
"start": [
1,
3
],
"end": [
1,
20
]
}
]
},
"summary": "Replaced the 'someProperty' identifier with the 'someOtherProperty' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"patch": [
"diff --git a/member-access.js b/member-access.js",
"index 5ed8a8d2..858131af 100644",
"--- a/member-access.js",
"+++ b/member-access.js",
"@@ -1,3 +1,3 @@",
"-x.someProperty;",
"+x.someOtherProperty",
" x.someProperty;",
" x.someProperty;"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "d7c2b4243cc835256891d23b8ac815bf2c8100fd..fe939d7cf2c040cbe7a3c0e2ba5ce50beb5b00eb"
}
,{
"testCaseDescription": "javascript-member-access-delete-replacement-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
20
]
}
},
"summary": "Deleted the 'x.someOtherProperty' member access"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
15
]
}
},
"summary": "Deleted the 'x.someProperty' member access"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
20
]
}
},
"summary": "Added the 'x.someOtherProperty' member access"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"patch": [
"diff --git a/member-access.js b/member-access.js",
"index 858131af..81f5f468 100644",
"--- a/member-access.js",
"+++ b/member-access.js",
"@@ -1,3 +1,2 @@",
"-x.someOtherProperty",
"-x.someProperty;",
" x.someProperty;",
"+x.someOtherProperty"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "fe939d7cf2c040cbe7a3c0e2ba5ce50beb5b00eb..5e0221213de5c8eb25ac5751117b6e9632b32e2f"
}
,{
"testCaseDescription": "javascript-member-access-delete-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
15
]
}
},
"summary": "Deleted the 'x.someProperty' member access"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"patch": [
"diff --git a/member-access.js b/member-access.js",
"index 81f5f468..8329c770 100644",
"--- a/member-access.js",
"+++ b/member-access.js",
"@@ -1,2 +1 @@",
"-x.someProperty;",
" x.someOtherProperty"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "5e0221213de5c8eb25ac5751117b6e9632b32e2f..8ab246f4bfdc85fc189921ae13ea91f0a9bae27e"
}
,{
"testCaseDescription": "javascript-member-access-delete-rest-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
20
]
}
},
"summary": "Deleted the 'x.someOtherProperty' member access"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"patch": [
"diff --git a/member-access.js b/member-access.js",
"index 8329c770..e69de29b 100644",
"--- a/member-access.js",
"+++ b/member-access.js",
"@@ -1 +0,0 @@",
"-x.someOtherProperty"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "8ab246f4bfdc85fc189921ae13ea91f0a9bae27e..9043f23503e9e2afefc8849bfc0831696797e235"
}]