Created
January 27, 2019 22:49
-
-
Save controlflow/da25cf4769d52ab90ae21cbd65e047f5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (invocationExpression.InvokedExpression is IReferenceExpression invokedReferenceExpression | |
&& invokedReferenceExpression.TypeArgumentList != null | |
&& invokedReferenceExpression.TypeArgumentList.TypeArgumentNodes.Count == 0 | |
&& invokedReferenceExpression.TypeArgumentList.LAngle != null | |
&& invokedReferenceExpression.TypeArgumentList.RAngle != null) | |
{ | |
textControl.Caret.MoveTo(invokedReferenceExpression.TypeArgumentList.RAngle.GetDocumentStartOffset(), CaretVisualPlacement.DontScrollIfVisible); | |
return; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (invocationExpression.InvokedExpression is IReferenceExpression { | |
TypeArgumentList: { TypeArgumentNodes { Count: 0 }, LAngle: { }, RAngle: { } rAngle } | |
}) | |
{ | |
textControl.Caret.MoveTo(rAngle.GetDocumentStartOffset(), CaretVisualPlacement.DontScrollIfVisible); | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment