/// <summary> /// Initialize builder with given assembly. /// </summary> /// <param name="declaringAssembly">Assembly where are declared definitions to built.</param> /// <exception cref="System.ArgumentNullException">declaringAssembly</exception> internal void Initialize(VsProjectAssembly declaringAssembly) { if (declaringAssembly == null) { throw new ArgumentNullException("declaringAssembly"); } DeclaringAssembly = declaringAssembly; }
/// <summary> /// Initialize instance of <see cref="ComponentSearcher"/> /// </summary> /// <param name="services"><see cref="TypeServices"/> used for resolving types' inheritance</param> /// <param name="assembly">Assembly using current searcher</param> internal ComponentSearcher(VsProjectAssembly assembly, TypeServices services) { if (services == null) { throw new ArgumentNullException("services"); } if (assembly == null) { throw new ArgumentNullException("assembly"); } _services = services; _assembly = assembly; }
internal CodeElementSearcher(VsProjectAssembly searchedAssembly) { _searchedAssembly = searchedAssembly; }
internal CodeElementIterator(VsProjectAssembly assembly) { _assembly = assembly; _currentElements = null; _currentPath = null; }
private CodeElementIterator(IEnumerable <ElementPosition> currentNodes, VsProjectAssembly assembly, PathInfo currentPath) { _currentElements = currentNodes; _assembly = assembly; _currentPath = currentPath; }
/// <summary> /// Get implicit namespaces defined for given type. /// </summary> /// <param name="type">Type which namespaces are requested.</param> /// <returns>Implicit namespaces.</returns> public static IEnumerable <string> GetImplicitNamespaces(TypeDescriptor type) { return(VsProjectAssembly.GetImplicitNamespaces(type)); }
internal InitializerGenerator(VsProjectAssembly declaringAssembly, AttributeInfo compositionAttribute, TypeMethodInfo compositionPoint) { _declaringAssembly = declaringAssembly; _compositionPoint = compositionPoint; _compositionAttribute = compositionAttribute; }