File tree 1 file changed +6
-6
lines changed 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -305,11 +305,12 @@ TEST(ProtocolTypesTest, Scope) {
305
305
scope.endLine = 10 ;
306
306
scope.endColumn = 20 ;
307
307
308
- scope.source =
309
- Source{.name = " testName" ,
310
- .path = " /path/to/source" ,
311
- .sourceReference = 12345 ,
312
- .presentationHint = Source::eSourcePresentationHintNormal};
308
+ Source source;
309
+ source.name = " testName" ;
310
+ source.path = " /path/to/source" ;
311
+ source.sourceReference = 12345 ;
312
+ source.presentationHint = Source::eSourcePresentationHintNormal;
313
+ scope.source = source;
313
314
314
315
llvm::Expected<Scope> deserialized_scope = roundtrip (scope);
315
316
ASSERT_THAT_EXPECTED (deserialized_scope, llvm::Succeeded ());
@@ -325,7 +326,6 @@ TEST(ProtocolTypesTest, Scope) {
325
326
EXPECT_EQ (scope.endColumn , deserialized_scope->endColumn );
326
327
327
328
EXPECT_THAT (deserialized_scope->source .has_value (), true );
328
- const Source &source = scope.source .value ();
329
329
const Source &deserialized_source = deserialized_scope->source .value ();
330
330
331
331
EXPECT_EQ (source.path , deserialized_source.path );
You can’t perform that action at this time.
0 commit comments