private static void CalculateContext(SyntaxNode node, out string name, out int arity, out bool inAttributeContext, out bool hasIncompleteParentMember) { // Has to be a simple identifier or generic name. node.GetNameAndArityOfSimpleName(out name, out arity); inAttributeContext = node.IsAttributeName(); hasIncompleteParentMember = node.HasIncompleteParentMember(); }