本文整理汇总了C#中Galaxy_Editor_2.Compiler.Generated.node.Node类的典型用法代码示例。如果您正苦于以下问题:C# Node类的具体用法?C# Node怎么用?C# Node使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Node类属于Galaxy_Editor_2.Compiler.Generated.node命名空间,在下文中一共展示了Node类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: ReplaceBy
public void ReplaceBy(Node node)
{
if(parent_node != null)
{
parent_node.ReplaceChild(this, node);
}
}
开发者ID:cg-source,项目名称:GalaxyEditorPlusPlus,代码行数:7,代码来源:nodes.cs
示例2: CloneMethod
public CloneMethod(SharedData data, Dictionary<AALocalDecl, PLvalue> localMap, Node currentCloneNode, ExtraCheckDelegate extraCheck = null)
{
this.data = data;
this.localMap = localMap;
this.currentCloneNode = currentCloneNode;
this.extraCheck = extraCheck;
}
开发者ID:Whimsyduke,项目名称:GalaxyEditorPlusPlus,代码行数:7,代码来源:CloneMethod.cs
示例3: DefaultIn
public override void DefaultIn(Node node)
{
if (node is PStm)
{
internalAssignments.Clear();
}
base.DefaultIn(node);
}
开发者ID:Whimsyduke,项目名称:GalaxyEditorPlusPlus,代码行数:8,代码来源:AssignFixup.cs
示例4: Insert
public Node Insert(Node node, AExpStm newStm)
{
//Node must be a node for an AExpStm
Node newNode = new Node(newStm);
foreach (Node successor in node.Successors)
{
newNode.AddSucc(successor);
}
foreach (Node successor in newNode.Successors)
{
node.RemoveSucc(successor);
}
node.AddSucc(newNode);
Nodes.Insert(Nodes.IndexOf(node) + 1, newNode);
return newNode;
}
开发者ID:Whimsyduke,项目名称:GalaxyEditorPlusPlus,代码行数:16,代码来源:ControlFlowGraph.cs
示例5: DefaultOut
public override void DefaultOut(Node node)
{
if (node is PType)
{
Link((PType) node, node);
}
else if (node is PExp)
{
Link(data.ExpTypes[(PExp) node], node);
}
else if (node is PLvalue && !(node.Parent() is ASyncInvokeExp || node.Parent() is AAsyncInvokeStm))
{
Link(data.LvalueTypes[(PLvalue)node], node);
}
base.DefaultOut(node);
}
开发者ID:Whimsyduke,项目名称:GalaxyEditorPlusPlus,代码行数:16,代码来源:MakeEnrichmentLinks.cs
示例6: Remove
public void Remove(Node node)
{
Nodes.Remove(node);
//Set succ/pred of succ/pred nodes
foreach (Node predecessor in node.Predecessors)
{
foreach (Node successor in node.Successors)
{
predecessor.AddSucc(successor);
}
}
//Remove node from succ/pred lists
for (int i = node.Predecessors.Count - 1; i >= 0; i--)
{
Node predecessor = node.Predecessors[i];
node.RemovePred(predecessor);
}
for (int i = node.Successors.Count - 1; i >= 0; i--)
{
Node successor = node.Successors[i];
node.RemoveSucc(successor);
}
}
开发者ID:Whimsyduke,项目名称:GalaxyEditorPlusPlus,代码行数:23,代码来源:ControlFlowGraph.cs
示例7: RemoveChild
internal override void RemoveChild(Node child)
{
if (_token_ == child)
{
_token_ = null;
return;
}
}
开发者ID:Whimsyduke,项目名称:GalaxyEditorPlusPlus,代码行数:8,代码来源:prods.cs
示例8: ReplaceChild
internal override void ReplaceChild(Node oldChild, Node newChild)
{
}
开发者ID:Whimsyduke,项目名称:GalaxyEditorPlusPlus,代码行数:3,代码来源:prods.cs
示例9: DefaultIn
public override void DefaultIn(Node node)
{
if (node is PStm)
{
safeVariables = new List<VariableDecl>();
PStm prev = GetPrevious((PStm) node);
if (prev != null)
{
safeVariables.AddRange(safeVariablesAfterStatement[prev]);
}
unsafeVariables = new List<VariableDecl>();
}
base.DefaultIn(node);
}
开发者ID:Whimsyduke,项目名称:GalaxyEditorPlusPlus,代码行数:14,代码来源:PointerNullFixes.cs
注:本文中的Galaxy_Editor_2.Compiler.Generated.node.Node类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论