public static NameResolutionContext Import(IntelliSenseCache cache, CodeImportStatement importStatement)
        {
            Contract.Requires<ArgumentNullException>(cache != null, "cache");
            Contract.Requires<ArgumentNullException>(importStatement != null, "importStatement");
            Contract.Ensures(Contract.Result<NameResolutionContext>() != null);

            return new ImportContext(cache, importStatement);
        }
        public static NameResolutionContext Import(IntelliSenseCache cache, CodeImportStatement importStatement)
        {
            Contract.Requires <ArgumentNullException>(cache != null, "cache");
            Contract.Requires <ArgumentNullException>(importStatement != null, "importStatement");
            Contract.Ensures(Contract.Result <NameResolutionContext>() != null);

            return(new ImportContext(cache, importStatement));
        }
 public ImportContext(IntelliSenseCache cache, CodeImportStatement importStatement)
     : this(cache, importStatement.FullName, importStatement.ImportOnDemand, importStatement.StaticImport)
 {
     _importStatement = importStatement;
 }
 public ImportContext(IntelliSenseCache cache, CodeImportStatement importStatement)
     : this(cache, importStatement.FullName, importStatement.ImportOnDemand, importStatement.StaticImport)
 {
     _importStatement = importStatement;
 }