2 writes to Value
Aspire.Hosting.CodeGeneration.Go (2)
GoDeclarationScanner.cs (2)
323
Value
= tag
448
Value
= literal.Length >= 2 && literal[0] == '"' && literal[^1] == '"' ? literal[1..^1] : literal
8 references to Value
Aspire.Hosting.CodeGeneration.Go (4)
AtsGoCodeGenerator.ApiProjection.cs (4)
901
GoDeclarationKind.Field => member with { JsonName = ParseJsonName(declaration.
Value
) },
902
GoDeclarationKind.Constant => member with { Value = declaration.
Value
},
933
=> field.
Value
is null ? field.Signature : $"{field.Signature} `{field.
Value
}`";
Aspire.Hosting.CodeGeneration.Go.Tests (4)
GoApiExportTests.cs (4)
493
Assert.Equal("name,omitempty", declarations[1].
Value
![(declarations[1].
Value
!.IndexOf('"') + 1)..declarations[1].
Value
!.LastIndexOf('"')]);
494
Assert.Equal("fast", declarations[4].
Value
);