예제 #1
0
        private static IType TryGetQualifierExpressionType([NotNull] IReferenceExpression referenceExpression)
        {
            var qualifierExpression = referenceExpression.QualifierExpression;

            if (qualifierExpression.IsThisOrBaseOrNull())
            {
                var typeDeclaration = referenceExpression.GetContainingTypeDeclaration();
                if (typeDeclaration is IStructDeclaration {
                    DeclaredElement : { } structTypeElement
                })