当前位置: 首页>>代码示例>>C#>>正文


C# Cci.Visit方法代码示例

本文整理汇总了C#中Cci.Visit方法的典型用法代码示例。如果您正苦于以下问题:C# Cci.Visit方法的具体用法?C# Cci.Visit怎么用?C# Cci.Visit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Cci的用法示例。


在下文中一共展示了Cci.Visit方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Dispatch

 public override void Dispatch(Cci.MetadataVisitor visitor)
 {
     visitor.Visit((Cci.ISpecializedMethodReference)this);
 }
开发者ID:CAPCHIK,项目名称:roslyn,代码行数:4,代码来源:SpecializedMethodReference.cs

示例2:

 void Cci.IMetadataExpression.Dispatch(Cci.MetadataVisitor visitor)
 {
     visitor.Visit(this);
 }
开发者ID:pheede,项目名称:roslyn,代码行数:4,代码来源:PermissionSetAttribute.cs

示例3: if

        void Cci.IReference.Dispatch(Cci.MetadataVisitor visitor)
        {
            throw ExceptionUtilities.Unreachable;
            //We've not yet discovered a scenario in which we need this.
            //If you're hitting this exception, uncomment the code below
            //and add a unit test.
#if false
            Debug.Assert(this.IsDefinition);

            SymbolKind kind = this.ContainingSymbol.Kind;

            if (((Module)visitor.Context).SourceModule == this.ContainingModule)
            {
                if (kind == SymbolKind.NamedType)
                {
                    visitor.Visit((IGenericTypeParameter)this);
                }
                else if (kind == SymbolKind.Method)
                {
                    visitor.Visit((IGenericMethodParameter)this);
                }
                else
                {
                    throw new NotSupportedException();
                }
            }
            else
            {
                if (kind == SymbolKind.NamedType)
                {
                    visitor.Visit((IGenericTypeParameterReference)this);
                }
                else if (kind == SymbolKind.Method)
                {
                    visitor.Visit((IGenericMethodParameterReference)this);
                }
                else
                {
                    throw new NotSupportedException();
                }
            }
#endif
        }
开发者ID:Rickinio,项目名称:roslyn,代码行数:43,代码来源:TypeParameterSymbolAdapter.cs

示例4: Dispatch

 public override void Dispatch(Cci.MetadataVisitor visitor)
 {
     visitor.Visit((Cci.IAssembly)this);
 }
开发者ID:SoumikMukherjeeDOTNET,项目名称:roslyn,代码行数:4,代码来源:PEAssemblyBuilder.cs

示例5: Dispatch

 public void Dispatch(Cci.MetadataVisitor visitor)
 {
     visitor.Visit((Cci.IFieldDefinition)this);
 }
开发者ID:pheede,项目名称:roslyn,代码行数:4,代码来源:PrivateImplementationDetails.cs

示例6:

 void Cci.IReference.Dispatch(Cci.MetadataVisitor visitor)
 {
     visitor.Visit((Cci.IMethodDefinition)this);
 }
开发者ID:modulexcite,项目名称:pattern-matching-csharp,代码行数:4,代码来源:VtblGap.cs

示例7: Dispatch

 public sealed override void Dispatch(Cci.MetadataVisitor visitor)
 {
     visitor.Visit((Cci.IGenericTypeInstanceReference)this);
 }
开发者ID:XieShuquan,项目名称:roslyn,代码行数:4,代码来源:SpecializedGenericNestedTypeInstanceReference.cs

示例8:

        void Cci.IReference.Dispatch(Cci.MetadataVisitor visitor)
        {
            Debug.Assert(this.IsDefinitionOrDistinct());

            if (!this.IsDefinition)
            {
                if (this.IsGenericMethod)
                {
                    Debug.Assert(((Cci.IMethodReference)this).AsGenericMethodInstanceReference != null);
                    visitor.Visit((Cci.IGenericMethodInstanceReference)this);
                }
                else
                {
                    Debug.Assert(((Cci.IMethodReference)this).AsSpecializedMethodReference != null);
                    visitor.Visit((Cci.ISpecializedMethodReference)this);
                }
            }
            else
            {
                PEModuleBuilder moduleBeingBuilt = (PEModuleBuilder)visitor.Context.Module;
                if (this.ContainingModule == moduleBeingBuilt.SourceModule)
                {
                    Debug.Assert(((Cci.IMethodReference)this).GetResolvedMethod(visitor.Context) != null);
                    visitor.Visit((Cci.IMethodDefinition)this);
                }
                else
                {
                    visitor.Visit((Cci.IMethodReference)this);
                }
            }
        }
开发者ID:ehsansajjad465,项目名称:roslyn,代码行数:31,代码来源:MethodSymbolAdapter.cs

示例9:

        void Cci.IReference.Dispatch(Cci.MetadataVisitor visitor)
        {
            throw ExceptionUtilities.Unreachable;
            //We've not yet discovered a scenario in which we need this.
            //If you're hitting this exception. Uncomment the code below
            //and add a unit test.
#if false
            Module moduleBeingBuilt = (Module)visitor.Context;

            Debug.Assert(this.IsDefinitionOrDistinct());

            if (!this.IsDefinition)
            {
                if (this.Arity > 0)
                {
                    Debug.Assert(((ITypeReference)this).AsGenericTypeInstanceReference != null);
                    visitor.Visit((IGenericTypeInstanceReference)this);
                }
                else
                {
                    Debug.Assert(((ITypeReference)this).AsSpecializedNestedTypeReference != null);
                    visitor.Visit((ISpecializedNestedTypeReference)this);
                }
            }
            else
            {
                bool asDefinition = (this.ContainingModule == moduleBeingBuilt.SourceModule);

                if (this.ContainingType == null)
                {
                    if (asDefinition)
                    {
                        Debug.Assert(((ITypeReference)this).AsNamespaceTypeDefinition(moduleBeingBuilt) != null);
                        visitor.Visit((INamespaceTypeDefinition)this);
                    }
                    else
                    {
                        Debug.Assert(((ITypeReference)this).AsNamespaceTypeReference != null);
                        visitor.Visit((INamespaceTypeReference)this);
                    }
                }
                else
                {
                    if (asDefinition)
                    {
                        Debug.Assert(((ITypeReference)this).AsNestedTypeDefinition(moduleBeingBuilt) != null);
                        visitor.Visit((INestedTypeDefinition)this);
                    }
                    else
                    {
                        Debug.Assert(((ITypeReference)this).AsNestedTypeReference != null);
                        visitor.Visit((INestedTypeReference)this);
                    }
                }
            }
#endif
        }
开发者ID:pheede,项目名称:roslyn,代码行数:57,代码来源:NamedTypeSymbolAdapter.cs

示例10: if

        void Cci.IReference.Dispatch(Cci.MetadataVisitor visitor)
        {
            throw ExceptionUtilities.Unreachable;
            //At present we have no scenario that needs this method.
            //Should one arise, uncomment implementation and add a test.
#if false   
            Debug.Assert(this.IsDefinitionOrDistinct());

            if (!this.IsDefinition)
            {
                visitor.Visit((IParameterTypeInformation)this);
            }
            else if (this.ContainingModule == ((Module)visitor.Context).SourceModule)
            {
                visitor.Visit((IParameterDefinition)this);
            }
            else
            {
                visitor.Visit((IParameterTypeInformation)this);
            }
#endif
        }
开发者ID:CAPCHIK,项目名称:roslyn,代码行数:22,代码来源:ParameterSymbolAdapter.cs

示例11: Dispatch

 public void Dispatch(Cci.MetadataVisitor visitor)
 {
     visitor.Visit((Cci.IMethodReference)this);
 }
开发者ID:modulexcite,项目名称:pattern-matching-csharp,代码行数:4,代码来源:ArrayMembers.cs

示例12: if

        void Cci.IReference.Dispatch(Cci.MetadataVisitor visitor)
        {
            Debug.Assert(this.IsDefinitionOrDistinct());

            if (!this.IsDefinition)
            {
                visitor.Visit((Cci.ISpecializedFieldReference)this);
            }
            else if (this.ContainingModule == ((PEModuleBuilder)visitor.Context.Module).SourceModule)
            {
                visitor.Visit((Cci.IFieldDefinition)this);
            }
            else
            {
                visitor.Visit((Cci.IFieldReference)this);
            }
        }
开发者ID:SoumikMukherjeeDOTNET,项目名称:roslyn,代码行数:17,代码来源:FieldSymbolAdapter.cs

示例13: Dispatch

 public override void Dispatch(Cci.MetadataVisitor visitor)
 {
     visitor.Visit((Cci.IGenericMethodInstanceReference)this);
 }
开发者ID:CAPCHIK,项目名称:roslyn,代码行数:4,代码来源:SpecializedGenericMethodInstanceReference.cs

示例14:

 void Cci.IReference.Dispatch(Cci.MetadataVisitor visitor)
 {
     visitor.Visit((Cci.IAssemblyReference)this);
 }
开发者ID:AnthonyDGreen,项目名称:roslyn,代码行数:4,代码来源:ErrorType.cs

示例15: if

 void Cci.IReference.Dispatch(Cci.MetadataVisitor visitor)
 {
     if (((Cci.IMethodReference)this).AsGenericMethodInstanceReference != null)
     {
         visitor.Visit((Cci.IGenericMethodInstanceReference)this);
     }
     else if (((Cci.IMethodReference)this).AsSpecializedMethodReference != null)
     {
         visitor.Visit((Cci.ISpecializedMethodReference)this);
     }
     else
     {
         visitor.Visit((Cci.IMethodReference)this);
     }
 }
开发者ID:GuilhermeSa,项目名称:roslyn,代码行数:15,代码来源:ExpandedVarargsMethodReference.cs


注:本文中的Cci.Visit方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。