public virtual void visit(ICommonParameterReferenceNode value)
 {
 }
Esempio n. 2
0
 private void AddrOfParameterNode(ICommonParameterReferenceNode value)
 {
     ParamInfo pi = helper.GetParameter(value.parameter);
     if (pi.kind == ParamKind.pkNone)
     {
         ParameterBuilder pb = pi.pb;
         //byte pos = (byte)(pb.Position-1);
         //***********************Kolay modified**********************
         byte pos = (byte)(pb.Position - 1);
         if (is_constructor || cur_meth.IsStatic == false) pos = (byte)pb.Position;
         else pos = (byte)(pb.Position - 1);
         //***********************End of Kolay modified**********************
         if (pos <= 255) il.Emit(OpCodes.Ldarga_S, pos);
         else il.Emit(OpCodes.Ldarga, pos);
     }
     else
     {
         FieldBuilder fb = pi.fb;
         MethInfo cur_mi = smi.Peek();
         int dist = (smi.Peek()).num_scope - pi.meth.num_scope;
         il.Emit(OpCodes.Ldloc, cur_mi.frame);
         for (int i = 0; i < dist; i++)
         {
             il.Emit(OpCodes.Ldfld, cur_mi.disp.parent);
             cur_mi = cur_mi.up_meth;
         }
         il.Emit(OpCodes.Ldflda, fb);
     }
 }
Esempio n. 3
0
		public virtual void visit(ICommonParameterReferenceNode value)
		{
		}
Esempio n. 4
0
 public void visit(ICommonParameterReferenceNode value)
 {
     string s = value.GetType().Name + ".";
     //prepare_node(value.parameter, "ICommonParameterReferenceNode.parameter");  
     prepare_string_node(value.static_depth.ToString(), s + "static_depth");
     prepare_node(value.type, s + "type");
     //prepare_node(value.Variable, "ICommonParameterReferenceNode.Variable");            
 }
Esempio n. 5
0
 public void visit(ICommonParameterReferenceNode value)
 {
     ISemanticNodeConverter.SourceTextBuilder.AddNodeInToStack(ISemanticNodeConverter.ConvertPABCNETNodeParameterReference("parameter_reference", value));
 }