示例#1
0
 public void EnterFakeContext(Definition definition)
 {
     Require.Assigned(definition);
     Require.Assigned(currentDefinition);
     Require.Unassigned(savedDefinition);
     savedDefinition   = currentDefinition;
     currentDefinition = definition;
 }
示例#2
0
        public void EnterDefinitionContext(Definition definition)
        {
            Require.True(contexts.Count == 0);
            Require.Unassigned(currentDefinition);
            currentDefinition = definition;
            Context context = CreateContext();

            context.Setup(null, false);
            contexts.Push(context);
        }
示例#3
0
 public void SetImplicitFields(int slot, TypeReference type)
 {
     Require.Assigned(type);
     Require.Unassigned(implicitSlot);
     implicitSlot      = new ImplicitField();
     implicitSlot.slot = slot;
     implicitSlot.type = type;
     AssignSlot(slot);
     ReadSlot(slot);
 }
示例#4
0
 public void SetContextParameters(Parameters parameters)
 {
     Require.Assigned(parameters);
     Require.Unassigned(contextParameters);
     contextParameters = parameters;
 }