public IDeclaration?FindDeclarationCore(S.TypeSpecifier expr)
        {
            var lhs = FindDeclaration(expr.Identifiers[0]);

            //TODO
            return(lhs);
        }
Exemple #2
0
        public ITypeInfo FindType(S.TypeSpecifier expression)
        {
            var returnType = FindDeclaration(expression) as ITypeInfo;

            if (returnType == null)
            {
                Error(DiagnosticCode.InvalidOperandTypes, expression.Location);
            }

            return(returnType ?? PrimitiveType.Unknown);
        }