Пример #1
0
        public static ParametersInfo Create(ConstructorDeclarationSyntax constructorDeclaration, bool allowMissing = false)
        {
            ParameterListSyntax parameterList = constructorDeclaration.ParameterList;

            if (!CheckParameterList(parameterList, allowMissing))
            {
                return(Default);
            }

            CSharpSyntaxNode body = constructorDeclaration.BodyOrExpressionBody();

            if (!Check(body, allowMissing))
            {
                return(Default);
            }

            return(new ParametersInfo(default(TypeParameterListSyntax), parameterList, body));
        }