internal static IVersioned GetAggregate(IVersioned from, ProjectEntry with) { if (from == with) { // No aggregation return from; } if (from is AggregateProjectEntry) { // We can use our fast check to see if we're already in the aggregate // or if we have a known transition. return ((AggregateProjectEntry)from).AggregateWith(with); } // We're aggregating two random project entries. Debug.Assert(from is IProjectEntry); return with.ProjectState.GetAggregate((IProjectEntry)from, with); }
internal AggregateProjectEntry AggregateWith(ProjectEntry with) { if (_aggregating.Contains(with)) { // we're not adding any new types return this; } if (_next == null) { _next = new Dictionary<IProjectEntry, AggregateProjectEntry>(); } AggregateProjectEntry entry; if (!_next.TryGetValue(with, out entry)) { // We don't yet have the next transition, create it now. _next[with] = entry = with.ProjectState.GetAggregate(_aggregating, with); } return entry; }
internal static IVersioned GetAggregate(IVersioned from, ProjectEntry with) { if (from == with) { // No aggregation return(from); } if (from is AggregateProjectEntry) { // We can use our fast check to see if we're already in the aggregate // or if we have a known transition. return(((AggregateProjectEntry)from).AggregateWith(with)); } // We're aggregating two random project entries. Debug.Assert(from is IProjectEntry); return(with.ProjectState.GetAggregate((IProjectEntry)from, with)); }
internal AggregateProjectEntry AggregateWith(ProjectEntry with) { if (_aggregating.Contains(with)) { // we're not adding any new types return(this); } if (_next == null) { _next = new Dictionary <IProjectEntry, AggregateProjectEntry>(); } AggregateProjectEntry entry; if (!_next.TryGetValue(with, out entry)) { // We don't yet have the next transition, create it now. _next[with] = entry = with.ProjectState.GetAggregate(_aggregating, with); } return(entry); }
internal bool IsVisible(ProjectEntry assigningScope) { return true; }
internal bool IsVisible(ProjectEntry assigningScope) { return(true); }
public LocatedVariableDef(ProjectEntry entry, Node location) { _entry = entry; _location = location; _declaringVersion = entry.AnalysisVersion; }
internal bool IsVisible(ProjectEntry assigningScope) => true;
public ActivePythonParse(ProjectEntry entry, long expectedVersion) { _entry = entry; _expectedVersion = expectedVersion; }
public ActivePythonParse(ProjectEntry entry, long expected) { _entry = entry; _expected = expected; }
public LocatedVariableDef(ProjectEntry entry, EncodedLocation location) { Entry = entry; Location = location; DeclaringVersion = entry.AnalysisVersion; }
public XamlProjectEntry(string filename) { FilePath = filename; DocumentUri = ProjectEntry.MakeDocumentUri(FilePath); }
public override int GetHashCode() { return(Line.GetHashCode() ^ ProjectEntry.GetHashCode()); }