public static int GetMemberInsertIndex(SyntaxList <MemberDeclarationSyntax> members, MemberDeclarationSyntax member) { if (member == null) { throw new ArgumentNullException(nameof(member)); } return(GetMemberInsertIndex(members, MemberDeclarationComparer.GetOrderIndex(member))); }
public static int GetMemberInsertIndex(SyntaxList <MemberDeclarationSyntax> members, SyntaxKind kind) { return(GetMemberInsertIndex(members, MemberDeclarationComparer.GetOrderIndex(kind))); }