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