public static DefinitionSite CreateUnknownDefinitionSite() { var definitionSite = new DefinitionSite { kind = DefinitionSiteKind.UNKNOWN, }; return(definitionSite); }
public static DefinitionSite CreateDefinitionByConstructor(string constructor) { var definitionSite = new DefinitionSite { kind = DefinitionSiteKind.NEW, method = new CoReMethodName(constructor) }; return(definitionSite); }
public static DefinitionSite CreateDefinitionByField(IFieldName field) { var definitionSite = new DefinitionSite { kind = DefinitionSiteKind.FIELD, field = field.ToCoReName() }; return(definitionSite); }
public static DefinitionSite CreateDefinitionByField(string field) { var definitionSite = new DefinitionSite { kind = DefinitionSiteKind.FIELD, field = new CoReFieldName(field) }; return(definitionSite); }
public static DefinitionSite CreateDefinitionByReturn(IMethodName methodName) { var definitionSite = new DefinitionSite { kind = DefinitionSiteKind.RETURN, method = methodName.ToCoReName() }; return(definitionSite); }
public static DefinitionSite CreateDefinitionByReturn(string methodName) { var definitionSite = new DefinitionSite { kind = DefinitionSiteKind.RETURN, method = new CoReMethodName(methodName) }; return(definitionSite); }
public static DefinitionSite CreateDefinitionByParam(IMethodName methodName, int argIndex) { var definitionSite = new DefinitionSite { kind = DefinitionSiteKind.PARAM, method = methodName.ToCoReName(), argIndex = argIndex }; return(definitionSite); }
public static DefinitionSite CreateDefinitionByParam(string methodName, int argIndex) { var definitionSite = new DefinitionSite { kind = DefinitionSiteKind.PARAM, method = new CoReMethodName(methodName), argIndex = argIndex }; return(definitionSite); }
private bool Equals(DefinitionSite oth) { return(kind.Equals(oth.kind) && argIndex == oth.argIndex && Equals(method, oth.method) && Equals(field, oth.field)); }