示例#1
0
 public static CompleterError CreatePropertyError(IPropertySymbol property, UnformattedMessage message)
 {
     return new CompleterError(property.Node().SyntaxTree, message.Format(property.Name), property.NameToken());
 }
示例#2
0
 public static CompleterError CreateParameterError(IParameterSymbol parameter, UnformattedMessage message)
 {
     return new CompleterError(parameter.Node().SyntaxTree, message.Format(parameter.ContainingSymbol.Name), parameter.NameToken());
 }
示例#3
0
 public static CompleterError CreateMethodError(IMethodSymbol method, UnformattedMessage message, string methodName = null)
 {
     return new CompleterError(method.Node().SyntaxTree, message.Format(methodName ?? method.Name), method.NameToken());
 }
示例#4
0
 public static CompleterError CreateParameterError(IParameterSymbol parameter, UnformattedMessage message)
 {
     return(new CompleterError(parameter.Node().SyntaxTree, message.Format(parameter.ContainingSymbol.Name), parameter.NameToken()));
 }
示例#5
0
 public static CompleterError CreateMethodError(IMethodSymbol method, UnformattedMessage message, string methodName = null)
 {
     return(new CompleterError(method.Node().SyntaxTree, message.Format(methodName ?? method.Name), method.NameToken()));
 }
示例#6
0
 public static CompleterError CreatePropertyError(IPropertySymbol property, UnformattedMessage message)
 {
     return(new CompleterError(property.Node().SyntaxTree, message.Format(property.Name), property.NameToken()));
 }