public void write_yield_unknown_ident(yield_unknown_ident _yield_unknown_ident)
		{
			write_ident(_yield_unknown_ident);
		}
 private SyntaxTree.addressed_value_funcname ProcessUnknownIdent(yield_unknown_ident unk)
 {
     if (CheckUnknownIdentNeedsClassCapture(unk))
     {
         return CaptureUnknownIdent(unk);
     }
     else
     {
         return unk.UnknownID;
     }
 }
		public void visit(yield_unknown_ident _yield_unknown_ident)
		{
			bw.Write((Int16)212);
			write_yield_unknown_ident(_yield_unknown_ident);
		}
 // frninja 12/05/16 - фикс для yield_unknown_ident
 public override void visit(yield_unknown_ident unk)
 {
     //yield_var_def_statement_with_unknown_type x;
     // Empty
 }
        private dot_node CaptureUnknownIdent(yield_unknown_ident unk)
        {
            string Consts__Self = YieldHelpers.YieldConsts.Self;

            return new dot_node(new dot_node(new ident("self"), new ident(Consts__Self)), unk.UnknownID);
        }
		public void write_yield_unknown_ident(yield_unknown_ident _yield_unknown_ident)
		{
			write_ident(_yield_unknown_ident);
			if (_yield_unknown_ident.UnknownID == null)
			{
				bw.Write((byte)0);
			}
			else
			{
				bw.Write((byte)1);
				_yield_unknown_ident.UnknownID.visit(this);
			}
			if (_yield_unknown_ident.ClassName == null)
			{
				bw.Write((byte)0);
			}
			else
			{
				bw.Write((byte)1);
				_yield_unknown_ident.ClassName.visit(this);
			}
		}
		public void read_yield_unknown_ident(yield_unknown_ident _yield_unknown_ident)
		{
			read_ident(_yield_unknown_ident);
			_yield_unknown_ident.UnknownID = _read_node() as ident;
			_yield_unknown_ident.ClassName = _read_node() as ident;
		}
		public void visit(yield_unknown_ident _yield_unknown_ident)
		{
			read_yield_unknown_ident(_yield_unknown_ident);
		}
Esempio n. 9
0
 private SyntaxTree.addressed_value_funcname ProcessUnknownIdent(yield_unknown_ident unk)
 {
     bool isStaticIdent;
     if (CheckUnknownIdentNeedsClassCapture(unk, out isStaticIdent))
     {
         var uid = CaptureUnknownIdent(unk, isStaticIdent);
         return uid;
     }
     else
     {
         return unk.UnknownID;
     }
 }
Esempio n. 10
0
        private dot_node CaptureUnknownIdent(yield_unknown_ident unk, bool isStaticIdent = false)
        {
            if (isStaticIdent)
            {
                return new dot_node(unk.ClassName, unk.UnknownID);
            }
            string Consts__Self = YieldHelpers.YieldConsts.Self;

            return new dot_node(new dot_node(new ident("self"), new ident(Consts__Self)), unk.UnknownID);
        }