本文整理汇总了C#中IUnresolvedTypeDefinition类的典型用法代码示例。如果您正苦于以下问题:C# IUnresolvedTypeDefinition类的具体用法?C# IUnresolvedTypeDefinition怎么用?C# IUnresolvedTypeDefinition使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IUnresolvedTypeDefinition类属于命名空间,在下文中一共展示了IUnresolvedTypeDefinition类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateEventCreationCompletionData
public ICompletionData CreateEventCreationCompletionData(string varName, IType delegateType, IEvent evt,
string parameterDefinition,
IUnresolvedMember currentMember,
IUnresolvedTypeDefinition currentType)
{
return new CompletionData(varName);
}
示例2: AddType
public void AddType (IUnresolvedTypeDefinition type, string shortType)
{
if (type == null || string.IsNullOrEmpty (shortType) || usedTypes.Contains (shortType))
return;
usedTypes.Add (shortType);
result.Add (Factory.CreateTypeCompletionData (type, shortType));
}
示例3: SuggestedHandlerCompletionData
public SuggestedHandlerCompletionData (Project project, CodeMemberMethod methodInfo, IType codeBehindClass, IUnresolvedTypeDefinition codeBehindClassPart)
{
this.project = project;
this.methodInfo = methodInfo;
this.codeBehindClass = codeBehindClass;
this.codeBehindClassPart = codeBehindClassPart;
}
示例4: DefaultUnresolvedField
public DefaultUnresolvedField(IUnresolvedTypeDefinition declaringType, string name)
{
this.SymbolKind = SymbolKind.Field;
this.DeclaringTypeDefinition = declaringType;
this.Name = name;
if (declaringType != null)
this.UnresolvedFile = declaringType.UnresolvedFile;
}
示例5: DefaultUnresolvedTypeDefinition
public DefaultUnresolvedTypeDefinition(IUnresolvedTypeDefinition declaringTypeDefinition, string name)
{
this.SymbolKind = SymbolKind.TypeDefinition;
this.DeclaringTypeDefinition = declaringTypeDefinition;
this.namespaceName = declaringTypeDefinition.Namespace;
this.Name = name;
this.UnresolvedFile = declaringTypeDefinition.UnresolvedFile;
}
示例6: DefaultUnresolvedEvent
public DefaultUnresolvedEvent(IUnresolvedTypeDefinition declaringType, string name)
{
this.EntityType = EntityType.Event;
this.DeclaringTypeDefinition = declaringType;
this.Name = name;
if (declaringType != null)
this.ParsedFile = declaringType.ParsedFile;
}
示例7: DefaultUnresolvedTypeDefinition
public DefaultUnresolvedTypeDefinition(IUnresolvedTypeDefinition declaringTypeDefinition, string name)
{
this.EntityType = EntityType.TypeDefinition;
this.DeclaringTypeDefinition = declaringTypeDefinition;
this.namespaceName = declaringTypeDefinition.Namespace;
this.Name = name;
this.ParsedFile = declaringTypeDefinition.ParsedFile;
}
示例8: DefaultUnresolvedMethod
public DefaultUnresolvedMethod(IUnresolvedTypeDefinition declaringType, string name)
{
this.EntityType = EntityType.Method;
this.DeclaringTypeDefinition = declaringType;
this.Name = name;
if (declaringType != null)
this.UnresolvedFile = declaringType.UnresolvedFile;
}
示例9: VB6UnresolvedMethod
/// <summary>
/// Initializes a new instance of the <see cref="VB6UnresolvedMethod"/> class.
/// </summary>
/// <param name="method">The instance of <see cref="IVbMethod"/> that is the source of this entity.</param>
/// <param name="file">The file that is the source of this entity.</param>
/// <param name="typeReference">The <see cref="IUnresolvedTypeReference"/> that this member is a child of. May be null.</param>
/// <param name="typeDefinition">The <see cref="IUnresolvedTypeDefinition"/> that this entity is a child of. May be null.</param>
internal VB6UnresolvedMethod(IVbMethod method, IUnresolvedFile file, ITypeReference typeReference, IUnresolvedTypeDefinition typeDefinition)
: base(method, file, typeReference, typeDefinition)
{
if (method == null)
{
throw new ArgumentNullException("method");
}
}
示例10: NewPartialCompletionData
public NewPartialCompletionData(int declarationBegin, IUnresolvedTypeDefinition type, IUnresolvedMember member)
{
DeclarationBeginningIndex = declarationBegin;
Type = type;
Member = member;
// check this:
DeclarationCategory = type.SymbolKind.ResolveDeclarationCategoryFromSymbolKind();
SetDefaultText(member.Name);
}
示例11: EventCreationCompletionData
public EventCreationCompletionData(string handlerName, IType delegateType, IEvent evt, string parameterList, IUnresolvedMember callingMember, IUnresolvedTypeDefinition declaringType, CSharpResolver contextAtCaret)
{
if (string.IsNullOrEmpty(handlerName)) {
handlerName = (evt != null ? evt.Name : "Handle");
}
this.handlerName = handlerName;
this.DisplayText = StringParser.Parse("${res:CSharpBinding.Refactoring.EventCreation.EventHandlerText}", new[] { new StringTagPair("HandlerName", handlerName) });
this.delegateTypeReference = delegateType.ToTypeReference();
this.isStatic = callingMember != null && callingMember.IsStatic;
}
示例12: EventCreationCompletionData
public EventCreationCompletionData(string handlerName, IType delegateType, IEvent evt, string parameterList, IUnresolvedMember callingMember, IUnresolvedTypeDefinition declaringType, CSharpResolver contextAtCaret)
{
if (string.IsNullOrEmpty(handlerName)) {
handlerName = (evt != null ? evt.Name : "Handle");
}
this.handlerName = handlerName;
this.DisplayText = "<Create " + handlerName + ">";
this.delegateTypeReference = delegateType.ToTypeReference();
this.isStatic = callingMember != null && callingMember.IsStatic;
}
示例13: VB6UnresolvedEntityBase
/// <summary>
/// Initializes a new instance of the <see cref="VB6UnresolvedEntityBase"/> class.
/// </summary>
/// <param name="file">The file that is the source of this entity.</param>
/// <param name="typeDefinition">The <see cref="IUnresolvedTypeDefinition"/> that this entity is a child of. May be null.</param>
protected VB6UnresolvedEntityBase(IUnresolvedFile file, IUnresolvedTypeDefinition typeDefinition)
: this()
{
this.UnresolvedFile = file;
VB6UnresolvedFile vb6File = (VB6UnresolvedFile)file;
this.VbpProject = vb6File.Project;
this.DeclaringTypeDefinition = typeDefinition;
}
示例14: EventCompletionData
public EventCompletionData(string varName, IType delegateType, IEvent evt, string parameterDefinition, IUnresolvedMember currentMember, IUnresolvedTypeDefinition currentType)
{
SetDefaultText(varName);
DeclarationCategory = DeclarationCategory.Event;
// what should we do with parameterDefinition???
DelegateType = delegateType;
CurrentMember = currentMember;
CurrentType = currentType;
//Description = currentMember
}
示例15: MakeViewModel
ContextActionViewModel MakeViewModel(IUnresolvedTypeDefinition entity)
{
var ambience = AmbienceService.GetCurrentAmbience();
ambience.ConversionFlags = ConversionFlags.ShowDeclaringType | ConversionFlags.ShowTypeParameterList;
return new ContextActionViewModel {
Action = new GoToDomRegionAction(entity.Region),
Image = IconService.GetImageSource(IconService.GetImageForFile(entity.Region.FileName)),
Comment = string.Format("(in {0})", Path.GetDirectoryName(entity.Region.FileName)),
ChildActions = null
};
}