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; }
public static NameResolutionContext StatementBlock(IntelliSenseCache cache, CodeStatementBlock statementBlock) { Contract.Requires<ArgumentNullException>(statementBlock != null, "statementBlock"); Contract.Ensures(Contract.Result<NameResolutionContext>() != null); throw new NotImplementedException(); }
public static NameResolutionContext Package(IntelliSenseCache cache, CodePackage package) { Contract.Requires<ArgumentNullException>(package != null, "package"); Contract.Ensures(Contract.Result<NameResolutionContext>() != null); throw new NotImplementedException(); }
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(); }
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); }
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 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); }
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) { }
private NameResolutionContext(IntelliSenseCache cache) { Contract.Requires(cache != null); _cache = cache; }