dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_semantics.tc,1.11,1.12


From: Gopal.V <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnet/cscc/csharp cs_semantics.tc,1.11,1.12
Date: Sun, 19 Jan 2003 02:50:11 -0500

Update of /cvsroot/dotgnu-pnet/pnet/cscc/csharp
In directory subversions:/tmp/cvs-serv20372/cscc/csharp

Modified Files:
        cs_semantics.tc 
Log Message:
improve error messages for missing types


Index: cs_semantics.tc
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/cscc/csharp/cs_semantics.tc,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** cs_semantics.tc     17 Dec 2002 17:31:28 -0000      1.11
--- cs_semantics.tc     19 Jan 2003 07:50:08 -0000      1.12
***************
*** 139,144 ****
                if(!CSSemIsError(value))
                {
!                       CCErrorOnLine(yygetfilename(type), yygetlinenum(type),
                                                  "invalid type specification");
                }
                return ILType_Int32;
--- 139,160 ----
                if(!CSSemIsError(value))
                {
!                       if(yyisa(type, ILNode_QualIdent) 
!                               || yyisa(type, ILNode_Identifier))
!                       {
!                               CCErrorOnLine(yygetfilename(type), 
yygetlinenum(type),
!                                                 "invalid type specification 
`%s' ", 
!                                                 ILQualIdentName(type,0));
!                       }
!                       else if(yyisa(type, ILNode_MemberAccess))
!                       {
!                               CCErrorOnLine(yygetfilename(type), 
yygetlinenum(type),
!                                                 "invalid type specification 
`%s' ", 
!                                                 ILMemberAccessName(type));
!                       }
!                       else
!                       {
!                               CCErrorOnLine(yygetfilename(type), 
yygetlinenum(type),
                                                  "invalid type specification");
+                       }
                }
                return ILType_Int32;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]