Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
annelo-msft committed Aug 7, 2023
1 parent 010a6b4 commit 7749725
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ public static CSharpAnalyzerTest<TAnalyzer, XUnitVerifier> CreateAnalyzer(string
{
ReferenceAssemblies = DefaultReferenceAssemblies,
SolutionTransforms = {(solution, projectId) =>
{
var project = solution.GetProject(projectId);
var parseOptions = (CSharpParseOptions)project.ParseOptions;
return solution.WithProjectParseOptions(projectId, parseOptions.WithLanguageVersion(languageVersion));
}},
{
var project = solution.GetProject(projectId);
var parseOptions = (CSharpParseOptions)project.ParseOptions;
return solution.WithProjectParseOptions(projectId, parseOptions.WithLanguageVersion(languageVersion));
}},
TestCode = source,
TestBehaviors = TestBehaviors.SkipGeneratedCodeCheck
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ static void CheckType(ISymbolAnalysisContext context, ITypeSymbol type, ISymbol
CheckType(context, parameterSymbol.Type, parameterSymbol);
break;
case IMethodSymbol methodSymbol:
if (methodSymbol.MethodKind == MethodKind.PropertyGet || methodSymbol.MethodKind == MethodKind.PropertySet)
{
return;
}
CheckType(context, methodSymbol.ReturnType, methodSymbol);
break;
case IEventSymbol eventSymbol:
Expand Down

0 comments on commit 7749725

Please sign in to comment.