Example #1
0
        /// <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;
        }
Example #2
0
        /// <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;
        }
Example #3
0
 internal CodeElementSearcher(VsProjectAssembly searchedAssembly)
 {
     _searchedAssembly = searchedAssembly;
 }
Example #4
0
 internal CodeElementIterator(VsProjectAssembly assembly)
 {
     _assembly        = assembly;
     _currentElements = null;
     _currentPath     = null;
 }
Example #5
0
 private CodeElementIterator(IEnumerable <ElementPosition> currentNodes, VsProjectAssembly assembly, PathInfo currentPath)
 {
     _currentElements = currentNodes;
     _assembly        = assembly;
     _currentPath     = currentPath;
 }
Example #6
0
 /// <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;
 }