public void VisitPrimitiveType(PrimitiveType pt)
 {
     GenUfcsAndStaticProperties(pt);
 }
		ObjectValue EvaluatePrimitive (string exp, PrimitiveType t, ObjectValueFlags flags, ObjectPath path)
		{
			byte[] rawBytes;
			if (!Memory.Read ("(void[])" + exp, DGdbTools.SizeOf (t.TypeToken), out rawBytes))
				return ObjectValue.CreateError (ValueSource, path, t.ToCode (), "Can't read primitive '"+exp+"'", flags);

			return EvaluatePrimitive (rawBytes, 0, t, flags, path);
		}
		ObjectValue EvaluatePrimitive (byte[] rawBytes, int start, PrimitiveType t, ObjectValueFlags flags, ObjectPath path)
		{
			var evalResult = new EvaluationResult (DGdbTools.GetValueFunction (t.TypeToken)
			                                      (rawBytes, start, DisplayAsHex));
			return ObjectValue.CreatePrimitive (ValueSource, path, t.ToCode (), evalResult, flags);
		}
Esempio n. 4
0
		public void VisitPrimitiveType(PrimitiveType t)
		{
			sb.Append(DTokens.GetTokenString(t.TypeToken));
		}