本文整理汇总了C#中System.Management.Automation.Interpreter.InterpretedFrame类的典型用法代码示例。如果您正苦于以下问题:C# InterpretedFrame类的具体用法?C# InterpretedFrame怎么用?C# InterpretedFrame使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
InterpretedFrame类属于System.Management.Automation.Interpreter命名空间,在下文中一共展示了InterpretedFrame类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Run
public override int Run(InterpretedFrame frame)
{
int index = frame.StackIndex - this._argumentCount;
frame.Data[index] = this._site.Target(this._site, new ArgumentArray(frame.Data, index, this._argumentCount));
frame.StackIndex = index + 1;
return 1;
}
示例2: Run
public override int Run(InterpretedFrame frame)
{
object obj2 = frame.Pop();
object obj3 = frame.Pop();
frame.Push(ScriptingRuntimeHelpers.BooleanToObject((obj3 != null) && (obj3.GetType() == obj2)));
return 1;
}
示例3: Run
public override int Run(InterpretedFrame frame)
{
object obj2 = frame.Pop();
object obj3 = frame.Pop();
this._field.SetValue(obj3, obj2);
return 1;
}
示例4: Enter
internal System.Management.Automation.Interpreter.ThreadLocal<InterpretedFrame>.StorageInfo Enter()
{
var storageInfo = CurrentFrame.GetStorageInfo();
this._parent = storageInfo.Value;
storageInfo.Value = this;
return storageInfo;
}
示例5: Run
public override int Run(InterpretedFrame frame)
{
object value = frame.Pop();
object self = frame.Pop();
_field.SetValue(self, value);
return +1;
}
示例6: Run
public override int Run(InterpretedFrame frame)
{
object obj2 = frame.Data[frame.StackIndex - 2];
object obj3 = frame.Data[frame.StackIndex - 1];
frame.Data[frame.StackIndex - 2] = (short) (((short) obj2) * ((short) obj3));
frame.StackIndex--;
return 1;
}
示例7: Run
public override int Run(InterpretedFrame frame)
{
if ((bool) frame.Pop())
{
return base._offset;
}
return 1;
}
示例8: Run
public override int Run(InterpretedFrame frame)
{
object obj2 = frame.Data[frame.StackIndex - 2];
object obj3 = frame.Data[frame.StackIndex - 1];
frame.Data[frame.StackIndex - 2] = ((double) obj2) + ((double) obj3);
frame.StackIndex--;
return 1;
}
示例9: Run
public override int Run(InterpretedFrame frame)
{
object l = frame.Data[frame.StackIndex - 2];
object r = frame.Data[frame.StackIndex - 1];
frame.Data[frame.StackIndex - 2] = (UInt32)unchecked((UInt32)l - (UInt32)r);
frame.StackIndex--;
return +1;
}
示例10: Run
public override int Run(InterpretedFrame frame)
{
if (frame.Peek() != null)
{
return base._offset;
}
return 1;
}
示例11: Run
public override int Run(InterpretedFrame frame)
{
object l = frame.Data[frame.StackIndex - 2];
object r = frame.Data[frame.StackIndex - 1];
frame.Data[frame.StackIndex - 2] = (UInt16)((UInt16)l / (UInt16)r);
frame.StackIndex--;
return 1;
}
示例12: Run
public override int Run(InterpretedFrame frame)
{
frame.PopPendingContinuation();
if (!frame.IsJumpHappened())
{
return 1;
}
return frame.YieldToPendingContinuation();
}
示例13: GotoHandler
internal int GotoHandler(InterpretedFrame frame, object exception, out ExceptionHandler handler)
{
handler = this._handlers.FirstOrDefault<ExceptionHandler>(t => t.Matches(exception.GetType()));
if (handler == null)
{
return 0;
}
return frame.Goto(handler.LabelIndex, exception, true);
}
示例14: Run
public override int Run(InterpretedFrame frame)
{
int num;
if (!this._cases.TryGetValue((int) frame.Pop(), out num))
{
return 1;
}
return num;
}
示例15: Run
public override int Run(InterpretedFrame frame)
{
Exception exception = (Exception) frame.Pop();
if (this._rethrow)
{
throw new RethrowException();
}
throw exception;
}