本文整理汇总了C#中UsageVector.Clone方法的典型用法代码示例。如果您正苦于以下问题:C# UsageVector.Clone方法的具体用法?C# UsageVector.Clone怎么用?C# UsageVector.Clone使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UsageVector
的用法示例。
在下文中一共展示了UsageVector.Clone方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SavedOrigin
protected SavedOrigin (SavedOrigin next, UsageVector vector)
{
Next = next;
Vector = vector.Clone ();
}
示例2: AddReturnOrigin
public override bool AddReturnOrigin (UsageVector vector, ExitStatement stmt)
{
vector = vector.Clone ();
vector.Location = stmt.loc;
vector.Next = return_origins;
return_origins = vector;
return false;
}
示例3: AddContinueOrigin
public override bool AddContinueOrigin (UsageVector vector, Location loc)
{
vector = vector.Clone ();
vector.Next = continue_origins;
continue_origins = vector;
return false;
}
示例4: AddGotoOrigin
public override bool AddGotoOrigin (UsageVector vector, Goto goto_stmt)
{
if (goto_stmt.Target != stmt.Name)
return Parent.AddGotoOrigin (vector, goto_stmt);
// backward jump
goto_stmt.SetResolvedTarget (stmt);
actual.MergeOrigins (vector.Clone ());
return false;
}
示例5: AddBreakOrigin
public override bool AddBreakOrigin (UsageVector vector, Location loc)
{
vector = vector.Clone ();
vector.Next = break_origins;
break_origins = vector;
return false;
}