本文整理汇总了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);
}
示例2:
void Cci.IMetadataExpression.Dispatch(Cci.MetadataVisitor visitor)
{
visitor.Visit(this);
}
示例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
}
示例4: Dispatch
public override void Dispatch(Cci.MetadataVisitor visitor)
{
visitor.Visit((Cci.IAssembly)this);
}
示例5: Dispatch
public void Dispatch(Cci.MetadataVisitor visitor)
{
visitor.Visit((Cci.IFieldDefinition)this);
}
示例6:
void Cci.IReference.Dispatch(Cci.MetadataVisitor visitor)
{
visitor.Visit((Cci.IMethodDefinition)this);
}
示例7: Dispatch
public sealed override void Dispatch(Cci.MetadataVisitor visitor)
{
visitor.Visit((Cci.IGenericTypeInstanceReference)this);
}
示例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);
}
}
}
示例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
}
示例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
}
示例11: Dispatch
public void Dispatch(Cci.MetadataVisitor visitor)
{
visitor.Visit((Cci.IMethodReference)this);
}
示例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);
}
}
示例13: Dispatch
public override void Dispatch(Cci.MetadataVisitor visitor)
{
visitor.Visit((Cci.IGenericMethodInstanceReference)this);
}
示例14:
void Cci.IReference.Dispatch(Cci.MetadataVisitor visitor)
{
visitor.Visit((Cci.IAssemblyReference)this);
}
示例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);
}
}