Пример #1
0
 private CodeTypeReference BuildNativeType(XSharpParser.NativeTypeContext nativeType)
 {
     CodeTypeReference expr = null;
     //
     if ((nativeType.BYTE() != null) ||
         (nativeType.CHAR() != null) ||
         (nativeType.DWORD() != null) ||
         (nativeType.DYNAMIC() != null) ||
         (nativeType.INT() != null) ||
         (nativeType.INT64() != null) ||
         (nativeType.LOGIC() != null) ||
         (nativeType.LONGINT() != null) ||
         (nativeType.OBJECT() != null) ||
         (nativeType.PTR() != null) ||
         (nativeType.REAL4() != null) ||
         (nativeType.REAL8() != null) ||
         (nativeType.SHORTINT() != null) ||
         (nativeType.STRING() != null) ||
         (nativeType.UINT64() != null) ||
         (nativeType.VOID() != null) ||
         (nativeType.WORD() != null))
     {
         expr = BuildNativeType(nativeType.GetText());
     }
     //
     return expr;
 }