提交 6c95d276 编写于 作者: M Martin Strecker

Add ConflictAnnotation for symbol references not in source.

上级 7d3c5be4
...@@ -304,7 +304,11 @@ private int NonParamsParameterCount(IMethodSymbol method) ...@@ -304,7 +304,11 @@ private int NonParamsParameterCount(IMethodSymbol method)
var parameterDeclaration = generator.ParameterDeclaration(parameterSymbol) var parameterDeclaration = generator.ParameterDeclaration(parameterSymbol)
.WithAdditionalAnnotations(Formatter.Annotation); .WithAdditionalAnnotations(Formatter.Annotation);
if (anySymbolReferencesNotInSource && methodDeclaration == method)
{
parameterDeclaration = parameterDeclaration.WithAdditionalAnnotations(
ConflictAnnotation.Create("One or more method declarations that needed to be updated are not available as source code."));
}
var existingParameters = generator.GetParameters(methodNode); var existingParameters = generator.GetParameters(methodNode);
var insertionIndex = isNamedArgument var insertionIndex = isNamedArgument
? existingParameters.Count ? existingParameters.Count
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册