Exemplo n.º 1
0
        public static NameResolutionContext TypeInstance(IntelliSenseCache cache, CodeType type)
        {
            Contract.Requires<ArgumentNullException>(type != null, "type");
            Contract.Ensures(Contract.Result<NameResolutionContext>() != null);

            throw new NotImplementedException();
        }
 public ImportContext(IntelliSenseCache cache, string path, bool importOnDemand, bool staticImport)
     : base(cache)
 {
     _path = path;
     _importOnDemand = importOnDemand;
     _staticImport = staticImport;
 }
Exemplo n.º 3
0
        public static NameResolutionContext StatementBlock(IntelliSenseCache cache, CodeStatementBlock statementBlock)
        {
            Contract.Requires<ArgumentNullException>(statementBlock != null, "statementBlock");
            Contract.Ensures(Contract.Result<NameResolutionContext>() != null);

            throw new NotImplementedException();
        }
Exemplo n.º 4
0
        public static NameResolutionContext Package(IntelliSenseCache cache, CodePackage package)
        {
            Contract.Requires<ArgumentNullException>(package != null, "package");
            Contract.Ensures(Contract.Result<NameResolutionContext>() != null);

            throw new NotImplementedException();
        }
Exemplo n.º 5
0
        public static NameResolutionContext Global(IntelliSenseCache cache)
        {
            Contract.Requires<ArgumentNullException>(cache != null, "cache");
            Contract.Ensures(Contract.Result<NameResolutionContext>() != null);

            return new GlobalContext(cache);
        }
            public AggregateContext(IntelliSenseCache cache, IEnumerable<NameResolutionContext> contexts)
                : base(cache)
            {
                Contract.Requires(cache != null);
                Contract.Requires(contexts != null);

                _contexts = contexts.ToArray();
            }
Exemplo n.º 7
0
        public static NameResolutionContext Import(IntelliSenseCache cache, string path, bool importOnDemand, bool staticImport)
        {
            Contract.Requires<ArgumentNullException>(path != null, "path");
            Contract.Requires<ArgumentException>(!string.IsNullOrEmpty(path));
            Contract.Ensures(Contract.Result<NameResolutionContext>() != null);

            return new ImportContext(cache, path, importOnDemand, staticImport);
        }
Exemplo n.º 8
0
        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);
        }
Exemplo n.º 9
0
        public static NameResolutionContext Aggregate(IntelliSenseCache cache, IEnumerable<NameResolutionContext> contexts)
        {
            Contract.Requires<ArgumentNullException>(cache != null, "cache");
            Contract.Requires<ArgumentNullException>(contexts != null, "contexts");
            Contract.Ensures(Contract.Result<NameResolutionContext>() != null);

            return new AggregateContext(cache, contexts);
        }
Exemplo n.º 10
0
        public CodePackage(IntelliSenseCache cache, string name, string fullName, CodeElement parent)
            : base(name, fullName, CodeLocation.Abstract, parent)
        {
            Contract.Requires(!string.IsNullOrEmpty(name));
            Contract.Requires(!string.IsNullOrEmpty(fullName));
            Contract.Requires(parent != null);

            _cache = cache;
        }
 public ImportContext(IntelliSenseCache cache, CodeImportStatement importStatement)
     : this(cache, importStatement.FullName, importStatement.ImportOnDemand, importStatement.StaticImport)
 {
     _importStatement = importStatement;
 }
 public GlobalContext(IntelliSenseCache cache)
     : base(cache)
 {
 }
Exemplo n.º 13
0
        private NameResolutionContext(IntelliSenseCache cache)
        {
            Contract.Requires(cache != null);

            _cache = cache;
        }