本文整理汇总了C#中FlexWiki.ExecutionContext.PushLocation方法的典型用法代码示例。如果您正苦于以下问题:C# ExecutionContext.PushLocation方法的具体用法?C# ExecutionContext.PushLocation怎么用?C# ExecutionContext.PushLocation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FlexWiki.ExecutionContext
的用法示例。
在下文中一共展示了ExecutionContext.PushLocation方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Expose
public override IBELObject Expose(ExecutionContext ctx)
{
try
{
ctx.PushLocation(Location);
return new BELString(Value);
}
finally
{
ctx.PopLocation();
}
}
示例2: Expose
public override IBELObject Expose(ExecutionContext ctx)
{
ArrayList parameters = null;
if (Parameters != null)
{
parameters = new ArrayList();
foreach (BlockParameterPTN p in Parameters.Parameters)
{
parameters.Add(new BlockParameter(p.Type, p.Identifier));
}
}
try
{
ctx.PushLocation(ParseTree.Location);
return new Block(ParseTree, parameters, ctx.CurrentScope);
}
finally
{
ctx.PopLocation();
}
}
示例3: Expose
public override IBELObject Expose(ExecutionContext ctx)
{
IBELObject answer = null;
ArrayList args = new ArrayList();
foreach (object x in AllArgs)
args.Add(x);
try
{
ctx.PushLocation(Location);
answer = ctx.FindAndInvoke(FullMethodName, args);
if (answer == null)
throw NoSuchMemberException.ForMember(Location, FullMethodName);
}
finally
{
ctx.PopLocation();
}
return answer;
}