Exemplo n.º 1
0
 public void AcceptStore(StoreStatement stmt)
 {
 }
Exemplo n.º 2
0
 public void AcceptStore(StoreStatement stmt)
 {
     throw new NotConvertibleToInlineExpressionException();
 }
Exemplo n.º 3
0
 public void AcceptStore(StoreStatement stmt)
 {
     stmt.Value.CheckConsistency();
 }
Exemplo n.º 4
0
        public virtual void Store(IStorableLiteral var, Expression val)
        {
            if (var == null || val == null)
                throw new ArgumentException();

            StoreStatement stmt = new StoreStatement()
            {
                Container = var,
                Value = val
            };
            _cstack.Peek().Statements.Add(stmt);
        }
Exemplo n.º 5
0
 public void AcceptStore(StoreStatement stmt)
 {
     stmt.Container = (IStorableLiteral)Lookup((Literal)stmt.Container);
     stmt.Value = SubstExpression(stmt.Value);
 }
Exemplo n.º 6
0
 public void AcceptStore(StoreStatement stmt)
 {
     stmt.Value = SubstExpression(stmt.Value);
 }
 public void AcceptStore(StoreStatement stmt)
 {
     RequireType(stmt.Container.Type, _design);
     stmt.Container.Accept(this);
     Resolve(stmt.Value);
 }
 public void AcceptStore(StoreStatement stmt)
 {
     object value = stmt.Value.Eval(Evaluator);
     _varValues[stmt.Container] = value;
     _execLeaf = stmt;
 }
 public override void AcceptStore(StoreStatement stmt)
 {
     var sref = stmt.Container as SignalRef;
     if (sref == null)
     {
         Success = false;
         return;
     }
     if (sref.Prop != SignalRef.EReferencedProperty.Next)
     {
         Success = false;
         return;
     }
     var cstmt = new ConcurrentStatement(sref, stmt.Value);
     Statements.Add(cstmt);
 }
Exemplo n.º 10
0
 public void AcceptStore(StoreStatement stmt)
 {
     GenerateComments(stmt);
     IStorableLiteral literal = stmt.Container;
     if (stmt.Container == null)
         _tw.Write("<???>");
     else if (literal.Type.HasIntrinsicTypeOverride &&
         literal.Type.IntrinsicTypeOverride == EIntrinsicTypes.File)
     {
         string file = _vhdg.GetLiteralNotation()((Literal)stmt.Container, LiteralReference.EMode.Direct);
         string open = stmt.Value.ToString(_vhdg);
         string line = string.Format(open, file);
         _tw.Write(line);
     }
     else
     {
         _tw.Write(_vhdg.GetLiteralNotation()((Literal)stmt.Container, LiteralReference.EMode.Direct));
         if (literal.StoreMode == EStoreMode.Transfer)
             _tw.Write(" <= ");
         else
             _tw.Write(" := ");
         _tw.Write(stmt.Value.ToString(_vhdg));
     }
     _tw.WriteLine(";");
 }
Exemplo n.º 11
0
 //      ALTERADA
 public void AcceptStore(StoreStatement stmt)
 {
     GenerateComments(stmt);
     IStorableLiteral literal = stmt.Container;
     if (stmt.Container == null)
         _tw.Write("// <???>");
     else
         _tw.Write(_SysCg.GetLiteralNotation()((Literal)stmt.Container, LiteralReference.EMode.Direct));
     if (literal.StoreMode == EStoreMode.Transfer)
     {
         if (stmt.Value.ResultType.CILType.IsEnum)
             //_tw.Write(".write(" + _SysCg.GetTypeDescriptorName(stmt.Value.ResultType) + "::" + stmt.Value.ToString(_SysCg) + ")");
             _tw.Write(".write(" + stmt.Value.ToString(_SysCg) + ")"); // Alteração a 15/04/2013
         else
             _tw.Write(".write(" + stmt.Value.ToString(_SysCg) + ")");
     }
     else
     {
         if (stmt.Value.ResultType.CILType.IsEnum)
             _tw.Write(" = " + stmt.Value.ToString(_SysCg) + ")");
             //_tw.Write(" = " + _SysCg.GetTypeDescriptorName(stmt.Value.ResultType) + "::" + stmt.Value.ToString(_SysCg));
         else
             _tw.Write(" = " + stmt.Value.ToString(_SysCg));
     }
     _tw.WriteLine(";");
 }