Skip to content

Commit

Permalink
removes dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
tesar-tech committed Nov 26, 2024
1 parent dc1fdb3 commit 49d4325
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,21 +143,6 @@ PropertyDeclarationSyntax propertySyntax

string expressionString = QualifyExpressionSyntax(compilation, fieldInitializerValue);
return new Optional<object>(expressionString);

var semanticModel = compilation.GetSemanticModel( fieldDeclaration.SyntaxTree );

// Attempt to get symbol info for the initializer
var symbolInfo = semanticModel.GetSymbolInfo( fieldInitializerValue );

if ( symbolInfo.Symbol != null )
{
return new Optional<object>( symbolInfo.Symbol.ToString() );//Blazorise.Color.Default
}
else
{
var defaultValue = fieldInitializerValue.ToString();
return new Optional<object>( defaultValue );//Color.Default
}
}

private static Optional<object> TryToGetConstantValueFromPropertyInitializer( Compilation compilation, PropertyDeclarationSyntax propertySyntax )
Expand Down

0 comments on commit 49d4325

Please sign in to comment.