I'm looking at this method in ISymbol:
string ToMinimalDisplayString(SemanticModel semanticModel, int position, SymbolDisplayFormat format = null);
The documentation says that position is "A position in the source code (context)." What is the unit of measure of position? Is it a line number? In other words, can I use this value:
mySyntaxTree.GetLocation(myNode.Span).GetLineSpan().StartLinePosition.Line;
Edit: Some non-definitive experimenting suggests that it is not a line number, because when I use the above value, the method does not remove unnecessary namespaces. But the following value seems to give the right behaviour:
myNode.Span.Start;