本文整理汇总了C#中Mono.CSharp.StructuralVisitor类的典型用法代码示例。如果您正苦于以下问题:C# StructuralVisitor类的具体用法?C# StructuralVisitor怎么用?C# StructuralVisitor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
StructuralVisitor类属于Mono.CSharp命名空间,在下文中一共展示了StructuralVisitor类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Accept
public override object Accept (StructuralVisitor visitor)
{
var ret = visitor.Visit (this);
if (visitor.AutoVisit) {
if (visitor.Skip) {
visitor.Skip = false;
return ret;
}
if (visitor.Continue)
this.target.Accept (visitor);
if (visitor.Continue)
this.source.Accept (visitor);
}
return ret;
}
开发者ID:rlfqudxo,项目名称:playscript-mono,代码行数:17,代码来源:assign.cs
示例2: Accept
public virtual object Accept (StructuralVisitor visitor)
{
return visitor.Visit (this);
}
开发者ID:95ulisse,项目名称:ILEdit,代码行数:4,代码来源:parameter.cs
示例3: Accept
public override void Accept (StructuralVisitor visitor)
{
visitor.Visit (this);
if (visitor.AutoVisit) {
if (visitor.Skip) {
visitor.Skip = false;
return;
}
foreach (var cont in containers) {
if (visitor.Continue && visitor.Depth >= VisitDepth.Namespaces)
cont.Accept (visitor);
}
}
}
开发者ID:johnv315,项目名称:playscript-mono,代码行数:15,代码来源:module.cs
示例4: Accept
public override void Accept (StructuralVisitor visitor)
{
visitor.Visit (this);
if (visitor.AutoVisit) {
if (visitor.Skip) {
visitor.Skip = false;
return;
}
foreach (var member in Members) {
if (visitor.Continue)
member.Accept (visitor);
}
}
}
开发者ID:rlfqudxo,项目名称:playscript-mono,代码行数:15,代码来源:enum.cs
示例5: Accept
public override void Accept (StructuralVisitor visitor)
{
visitor.Visit (this);
}
开发者ID:fvalette,项目名称:mono,代码行数:4,代码来源:class.cs
示例6: Accept
public override object Accept (StructuralVisitor visitor)
{
var ret = visitor.Visit (this);
if (visitor.AutoVisit) {
if (visitor.Continue && arguments != null) {
foreach (var arg in arguments) {
if (visitor.Continue)
arg.Expr.Accept (visitor);
}
}
}
return ret;
}
开发者ID:rlfqudxo,项目名称:playscript-mono,代码行数:15,代码来源:intrinsics.cs
示例7: Accept
public override void Accept (StructuralVisitor visitor)
{
visitor.Visit (this);
if (visitor.AutoVisit) {
if (visitor.Skip) {
visitor.Skip = false;
return;
}
if (visitor.Continue && this.Initializer != null && visitor.Depth >= VisitDepth.Initializers)
this.Initializer.Accept (visitor);
if (visitor.Continue && declarators != null && visitor.Depth >= VisitDepth.Initializers) {
foreach (var decl in declarators) {
if (visitor.Continue && decl.Initializer != null && decl.Initializer != null) {
decl.Initializer.Accept (visitor);
}
}
}
}
}
开发者ID:rlfqudxo,项目名称:playscript-mono,代码行数:20,代码来源:field.cs
示例8: Accept
public abstract void Accept (StructuralVisitor visitor);
开发者ID:ngraziano,项目名称:mono,代码行数:1,代码来源:class.cs
示例9: Accept
public override void Accept (StructuralVisitor visitor)
{
visitor.Visit (this);
AcceptChildContainers (visitor);
}
开发者ID:rlfqudxo,项目名称:playscript-mono,代码行数:6,代码来源:class.cs
示例10: AcceptChildContainers
protected void AcceptChildContainers (StructuralVisitor visitor)
{
if (visitor.AutoVisit) {
if (visitor.Skip) {
visitor.Skip = false;
return;
}
if (visitor.Continue && containers != null && containers.Count > 0) {
foreach (var container in containers) {
if (visitor.Continue) {
if (container is TypeDefinition && visitor.Depth >= VisitDepth.Types)
container.Accept (visitor);
else if (container is NamespaceContainer && visitor.Depth >= VisitDepth.Namespaces)
container.Accept (visitor);
}
}
}
}
}
开发者ID:rlfqudxo,项目名称:playscript-mono,代码行数:19,代码来源:class.cs
示例11: Accept
public override object Accept (StructuralVisitor visitor)
{
var ret = visitor.Visit (this);
if (visitor.AutoVisit) {
if (visitor.Continue)
this.Block.Accept (visitor);
}
return ret;
}
开发者ID:rlfqudxo,项目名称:playscript-mono,代码行数:11,代码来源:anonymous.cs
示例12: Accept
public override void Accept (StructuralVisitor visitor)
{
visitor.Visit (this);
if (visitor.AutoVisit && visitor.Depth >= VisitDepth.MethodBodies) {
if (visitor.Continue && Get != null && visitor.Depth >= VisitDepth.MethodBodies)
Get.Accept (visitor);
if (visitor.Continue && Set != null && visitor.Depth >= VisitDepth.MethodBodies)
Set.Accept (visitor);
}
}
开发者ID:rlfqudxo,项目名称:playscript-mono,代码行数:11,代码来源:property.cs
示例13: Accept
public override void Accept (StructuralVisitor visitor)
{
throw new InternalErrorException ("should not be called");
}
开发者ID:famousthom,项目名称:monodevelop,代码行数:4,代码来源:roottypes.cs
示例14: Accept
public override void Accept (StructuralVisitor visitor)
{
visitor.Visit (this);
if (visitor.AutoVisit) {
if (visitor.Skip) {
visitor.Skip = false;
return;
}
if (visitor.Continue)
this.block.Accept (visitor);
}
}
开发者ID:rlfqudxo,项目名称:playscript-mono,代码行数:13,代码来源:method.cs
示例15: Accept
public virtual void Accept (StructuralVisitor visitor)
{
visitor.Visit (this);
}
开发者ID:constructor-igor,项目名称:cudafy,代码行数:4,代码来源:decl.cs
示例16: Accept
public override void Accept (StructuralVisitor visitor)
{
base.Accept (visitor);
}
开发者ID:famousthom,项目名称:monodevelop,代码行数:4,代码来源:class.cs
示例17: Accept
public override object Accept (StructuralVisitor visitor)
{
var ret = visitor.Visit (this);
if (visitor.AutoVisit) {
if (visitor.Skip) {
visitor.Skip = false;
return ret;
}
if (visitor.Continue && elements != null) {
foreach (var elem in elements) {
if (visitor.Continue)
elem.Accept (visitor);
}
}
}
return ret;
}
开发者ID:johnv315,项目名称:playscript-mono,代码行数:19,代码来源:ps-lang.cs
示例18: Accept
public override object Accept (StructuralVisitor visitor)
{
return visitor.Visit (this);
}
开发者ID:rabink,项目名称:mono,代码行数:4,代码来源:anonymous.cs
示例19: Accept
public override object Accept (StructuralVisitor visitor)
{
var ret = visitor.Visit (this);
if (visitor.AutoVisit) {
if (visitor.Skip) {
visitor.Skip = false;
return ret;
}
if (visitor.Continue && this.expr != null)
this.expr.Accept (visitor);
}
return ret;
}
开发者ID:rlfqudxo,项目名称:playscript-mono,代码行数:15,代码来源:const.cs
注:本文中的Mono.CSharp.StructuralVisitor类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论