From 90de89c79b245edb4592c2191d2d0e7c6d0bd108 Mon Sep 17 00:00:00 2001 From: Patrick Organ Date: Fri, 10 Nov 2023 16:00:47 -0500 Subject: [PATCH] update test snapshots --- ...est__it_can_handle_chained_static_and_regular_calls__1.yml | 4 ++-- .../SearcherTest__it_finds_assign_operations__1.yml | 2 +- ...cherTest__it_searches_for_multi_line_function_calls__1.yml | 2 +- .../SearcherTest__it_searches_for_var_assignments__1.yml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/__snapshots__/SearcherTest__it_can_handle_chained_static_and_regular_calls__1.yml b/tests/__snapshots__/SearcherTest__it_can_handle_chained_static_and_regular_calls__1.yml index 7b9f7e6..225ec8c 100644 --- a/tests/__snapshots__/SearcherTest__it_can_handle_chained_static_and_regular_calls__1.yml +++ b/tests/__snapshots__/SearcherTest__it_can_handle_chained_static_and_regular_calls__1.yml @@ -1,4 +1,4 @@ - - location: { column: 0, endLine: 6, startLine: 3 } - node: { variableName: { subNodeNames: [name], specialClassName: false, type: Identifier, line: 5, startLine: 5, endLine: 5, startTokenPos: -1, endTokenPos: -1, startFilePos: -1, endFilePos: -1, comments: { }, docComment: null, attributes: { startLine: 5, endLine: 5 }, name: whereSessionRegistrationUuid }, methodName: firstOrFail, name: $whereSessionRegistrationUuid->firstOrFail, args: { }, location: { column: 0, endLine: 6, startLine: 3 } } + location: { column: 0, endLine: 4, startLine: 3 } + node: { variableName: { subNodeNames: [name], specialClassName: false, type: Identifier, line: 3, startLine: 3, endLine: 3, startTokenPos: -1, endTokenPos: -1, startFilePos: -1, endFilePos: -1, comments: { }, docComment: null, attributes: { startLine: 3, endLine: 3 }, name: whereSessionRegistrationUuid }, methodName: firstOrFail, name: $whereSessionRegistrationUuid->firstOrFail, args: { }, location: { column: 0, endLine: 4, startLine: 3 } } snippet: null diff --git a/tests/__snapshots__/SearcherTest__it_finds_assign_operations__1.yml b/tests/__snapshots__/SearcherTest__it_finds_assign_operations__1.yml index 1c0e43e..d1de501 100644 --- a/tests/__snapshots__/SearcherTest__it_finds_assign_operations__1.yml +++ b/tests/__snapshots__/SearcherTest__it_finds_assign_operations__1.yml @@ -1,4 +1,4 @@ - location: { column: 0, endLine: 2, startLine: 2 } - node: { variableName: obj, value: { symbol: ., left: { value: 'hello ', location: { column: 0, endLine: 2, startLine: 2 } }, right: { value: world, location: { column: 0, endLine: 2, startLine: 2 } }, value: '''hello '' . ''world''', location: { column: 0, endLine: 2, startLine: 2 } }, name: obj, location: { column: 0, endLine: 2, startLine: 2 } } + node: { variableName: obj, value: { symbol: ., left: { value: 'hello ', location: { column: 0, endLine: 2, startLine: 2 } }, right: { value: world, location: { column: 0, endLine: 2, startLine: 2 } }, value: "'hello ' . 'world'", location: { column: 0, endLine: 2, startLine: 2 } }, name: obj, location: { column: 0, endLine: 2, startLine: 2 } } snippet: null diff --git a/tests/__snapshots__/SearcherTest__it_searches_for_multi_line_function_calls__1.yml b/tests/__snapshots__/SearcherTest__it_searches_for_multi_line_function_calls__1.yml index 18f9b52..bf277c3 100644 --- a/tests/__snapshots__/SearcherTest__it_searches_for_multi_line_function_calls__1.yml +++ b/tests/__snapshots__/SearcherTest__it_searches_for_multi_line_function_calls__1.yml @@ -1,4 +1,4 @@ - location: { column: 0, endLine: 5, startLine: 2 } - node: { args: [{ symbol: ., left: { value: 'test ', location: { column: 0, endLine: 3, startLine: 3 } }, right: { value: string, location: { column: 0, endLine: 4, startLine: 4 } }, value: '''test '' . ''string''', location: { column: 0, endLine: 4, startLine: 3 } }], name: strtolower, location: { column: 0, endLine: 5, startLine: 2 } } + node: { args: [{ symbol: ., left: { value: 'test ', location: { column: 0, endLine: 3, startLine: 3 } }, right: { value: string, location: { column: 0, endLine: 4, startLine: 4 } }, value: "'test ' . 'string'", location: { column: 0, endLine: 4, startLine: 3 } }], name: strtolower, location: { column: 0, endLine: 5, startLine: 2 } } snippet: null diff --git a/tests/__snapshots__/SearcherTest__it_searches_for_var_assignments__1.yml b/tests/__snapshots__/SearcherTest__it_searches_for_var_assignments__1.yml index 3d7c7eb..239671d 100644 --- a/tests/__snapshots__/SearcherTest__it_searches_for_var_assignments__1.yml +++ b/tests/__snapshots__/SearcherTest__it_searches_for_var_assignments__1.yml @@ -1,4 +1,4 @@ - location: { column: 0, endLine: 13, startLine: 13 } - node: { variableName: obj, value: { subNodeNames: [class, args], type: Expr_New, line: 13, startLine: 13, endLine: 13, startTokenPos: -1, endTokenPos: -1, startFilePos: -1, endFilePos: -1, comments: { }, docComment: null, attributes: { startLine: 13, endLine: 13 }, class: { subNodeNames: [parts], first: MyClass, last: MyClass, unqualified: true, qualified: false, fullyQualified: false, relative: false, specialClassName: false, type: Name, line: 13, startLine: 13, endLine: 13, startTokenPos: -1, endTokenPos: -1, startFilePos: -1, endFilePos: -1, comments: { }, docComment: null, attributes: { startLine: 13, endLine: 13 }, parts: [MyClass] }, args: { } }, name: obj, location: { column: 0, endLine: 13, startLine: 13 } } + node: { variableName: obj, value: { subNodeNames: [class, args], type: Expr_New, rawArgs: { }, firstClassCallable: false, args: { }, line: 13, startLine: 13, endLine: 13, startTokenPos: -1, endTokenPos: -1, startFilePos: -1, endFilePos: -1, comments: { }, docComment: null, attributes: { startLine: 13, endLine: 13 }, class: { subNodeNames: [parts], parts: [MyClass], first: MyClass, last: MyClass, unqualified: true, qualified: false, fullyQualified: false, relative: false, specialClassName: false, type: Name, line: 13, startLine: 13, endLine: 13, startTokenPos: -1, endTokenPos: -1, startFilePos: -1, endFilePos: -1, comments: { }, docComment: null, attributes: { startLine: 13, endLine: 13 } } }, name: obj, location: { column: 0, endLine: 13, startLine: 13 } } snippet: null