2 writes to IsOptional
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (2)
StaticWebAssetPathPattern.cs (2)
118token.IsOptional = true; 370IsOptional = false
6 references to IsOptional
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (6)
StaticWebAssetPathPattern.cs (5)
233if (applyPreferences && segment.IsOptional && !segment.IsPreferred) 254if (!foundAllValues && !segment.IsOptional) 309if (segment.IsOptional) 325if (IsLiteralSegment(segment) || !segment.IsOptional) 454if (segment.IsOptional)
StaticWebAssetPathSegment.cs (1)
54string.Concat(Parts.Select(p => p.IsLiteral ? p.Name.ToString() : $"{{{p.Name}}}").Prepend("#[").Append($"]{(IsOptional ? (IsPreferred ? "!" : "?") : "")}"));