示例#1
0
        public static int GetMemberInsertIndex(SyntaxList <MemberDeclarationSyntax> members, MemberDeclarationSyntax member)
        {
            if (member == null)
            {
                throw new ArgumentNullException(nameof(member));
            }

            return(GetMemberInsertIndex(members, MemberDeclarationComparer.GetOrderIndex(member)));
        }
示例#2
0
 public static int GetMemberInsertIndex(SyntaxList <MemberDeclarationSyntax> members, SyntaxKind kind)
 {
     return(GetMemberInsertIndex(members, MemberDeclarationComparer.GetOrderIndex(kind)));
 }