//TODO duplicated code public static CompleterError CreateForTypeName(INamedTypeSymbol type, Message message) { return new CompleterError(type.Node().SyntaxTree, message, type.NameToken()); }
public static CompleterError CreateForPropertyName(IPropertySymbol property, Message message) { return new CompleterError(property.Node().SyntaxTree, message, property.NameToken()); }
public CompleterError(SyntaxTree tree, Message message, SyntaxToken token) : this(tree, message, tree.GetLineSpan(token.Span)) { }
public CompleterError(SyntaxNode node, Message message) : this(node.SyntaxTree, message, node.LineSpan()) { }
public CompleterError(SyntaxTree tree, Message message, FileLinePositionSpan span) { Tree = tree; Span = span; Message = message; }