1 write to Source
Microsoft.Build.Engine.OM.UnitTests (1)
ObjectModelRemoting\RemoteProjectsProviderMock\LinkedObjectsMap.cs (1)
232this.Source = source;
107 references to Source
Microsoft.Build.Engine.OM.UnitTests (107)
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectElementContainerLink.cs (1)
14public ProjectElementContainer ContainerXml => (ProjectElementContainer)Source;
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectElementLink.cs (17)
23public MockProjectElementContainerLinkRemoter Parent => (MockProjectElementContainerLinkRemoter)this.Export(Source.Parent); 25public MockProjectRootElementLinkRemoter ContainingProject => (MockProjectRootElementLinkRemoter)this.Export(Source.ContainingProject); 27public string ElementName => Source.ElementName; 29public string OuterElement => Source.OuterElement; 31public bool ExpressedAsAttribute { get => ProjectElementLink.GetExpressedAsAttribute(Source); set => ProjectElementLink.SetExpressedAsAttribute(Source, value); } 33public MockProjectElementLinkRemoter PreviousSibling => this.Export(Source.PreviousSibling); 35public MockProjectElementLinkRemoter NextSibling => this.Export(Source.NextSibling); 37public ElementLocation Location => Source.Location; 39public IReadOnlyCollection<XmlAttributeLink> Attributes => ProjectItemElementLink.GetAttributes(this.Source); 41public string PureText => ProjectItemElementLink.GetPureText(this.Source); 45this.Source.CopyFrom(element.Import(this.OwningCollection)); 51var result = ProjectElementLink.CreateNewInstance(Source, pre); 56=> ProjectElementLink.GetAttributeLocation(this.Source, attributeName); 60return ProjectElementLink.GetAttributeValue(this.Source, attributeName, nullIfNotExists); 65ProjectElementLink.SetOrRemoveAttribute(this.Source, name, value, clearAttributeCache, reason, param); 68ProjectElementLink.MarkDirty(this.Source, reason, param);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectExtensionsElementLink.cs (1)
14public ProjectExtensionsElement ExtensionXml => (ProjectExtensionsElement)Source;
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectImportElementLink.cs (1)
14public ProjectImportElement ImportElementXml => (ProjectImportElement)Source;
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectItemElementLink.cs (1)
14public ProjectItemElement ItemXml => (ProjectItemElement)Source;
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectMetadataElementLink.cs (1)
14public ProjectMetadataElement MetadataXml => (ProjectMetadataElement)Source;
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectPropertyElementLink.cs (1)
14public ProjectPropertyElement PropertyXml => (ProjectPropertyElement)Source;
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectRootElementLink.cs (2)
18private ProjectRootElement ProjectXml => (ProjectRootElement)Source; 145public void MarkDirty(string reason, string param) { ProjectElementLink.MarkDirty(this.Source, reason, param); }
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectTargetElementLink.cs (1)
14public ProjectTargetElement TargetXml => (ProjectTargetElement)Source;
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectTaskElementLink.cs (1)
14public ProjectTaskElement TaskXml => (ProjectTaskElement)Source;
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectUsingTaskBodyElementLink.cs (1)
14public ProjectUsingTaskBodyElement UsingTaskBodyXml => (ProjectUsingTaskBodyElement)Source;
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectUsingTaskParameterElementLink.cs (1)
14public ProjectUsingTaskParameterElement TaskParamXml => (ProjectUsingTaskParameterElement)Source;
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectItemDefinitionLink.cs (6)
21public MockProjectLinkRemoter Project => this.OwningCollection.Export<Project, MockProjectLinkRemoter>(this.Source.Project); 22public string ItemType => this.Source.ItemType; 23public ICollection<MockProjectMetadataLinkRemoter> Metadata => this.OwningCollection.ExportCollection<ProjectMetadata, MockProjectMetadataLinkRemoter>(this.Source.Metadata); 25=> this.OwningCollection.Export<ProjectMetadata, MockProjectMetadataLinkRemoter>(this.Source.GetMetadata(name)); 26public string GetMetadataValue(string name) => this.Source.GetMetadataValue(name); 28=> this.OwningCollection.Export<ProjectMetadata, MockProjectMetadataLinkRemoter>(this.Source.SetMetadataValue(name, unevaluatedValue));
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectItemLink.cs (12)
22public MockProjectLinkRemoter Project => this.OwningCollection.Export<Project, MockProjectLinkRemoter>(this.Source.Project); 23public MockProjectItemElementLinkRemoter Xml => (MockProjectItemElementLinkRemoter)this.OwningCollection.ExportElement(this.Source.Xml); 24public string EvaluatedInclude => this.Source.EvaluatedInclude; 25public ICollection<MockProjectMetadataLinkRemoter> MetadataCollection => this.OwningCollection.ExportCollection<ProjectMetadata, MockProjectMetadataLinkRemoter>(this.Source.Metadata); 26public ICollection<MockProjectMetadataLinkRemoter> DirectMetadata => this.OwningCollection.ExportCollection<ProjectMetadata, MockProjectMetadataLinkRemoter>(this.Source.DirectMetadata); 27public bool HasMetadata(string name) => this.Source.HasMetadata(name); 29=> this.OwningCollection.Export<ProjectMetadata, MockProjectMetadataLinkRemoter>(this.Source.GetMetadata(name)); 30public string GetMetadataValue(string name) => this.Source.GetMetadataValue(name); 32=> this.OwningCollection.Export<ProjectMetadata, MockProjectMetadataLinkRemoter>(this.Source.SetMetadataValue(name, unevaluatedValue, propagateMetadataToSiblingItems)); 33public bool RemoveMetadata(string name) => this.Source.RemoveMetadata(name); 34public void Rename(string name) => this.Source.Rename(name); 35public void ChangeItemType(string newItemType) => this.Source.ItemType = newItemType;
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectLink.cs (43)
28public MockProjectElementLinkRemoter Xml => this.OwningCollection.ExportElement(this.Source.Xml); 30public bool ThrowInsteadOfSplittingItemElement { get => this.Source.ThrowInsteadOfSplittingItemElement; set => this.Source.ThrowInsteadOfSplittingItemElement = value; } 32public bool IsDirty => this.Source.IsDirty; 37public IDictionary<string, string> GlobalProperties => this.Source.GlobalProperties; 38public ICollection<string> ItemTypes => this.Source.ItemTypes; 41=> this.OwningCollection.ExportCollection<ProjectProperty, MockProjectPropertyLinkRemoter>(this.Source.Properties); 43public IDictionary<string, List<string>> ConditionedProperties => this.Source.ConditionedProperties; 46=> this.OwningCollection.ExportDictionary<string, ProjectItemDefinition, MockProjectItemDefinitionLinkRemoter>(this.Source.ItemDefinitions); 48public ICollection<MockProjectItemLinkRemoter> Items => this.OwningCollection.ExportCollection<ProjectItem, MockProjectItemLinkRemoter>(this.Source.Items); 50public ICollection<MockProjectItemLinkRemoter> ItemsIgnoringCondition => this.OwningCollection.ExportCollection<ProjectItem, MockProjectItemLinkRemoter>(this.Source.ItemsIgnoringCondition); 52public IList<RemotedResolvedImport> Imports => this.Source.Imports.ConvertCollection<RemotedResolvedImport, ResolvedImport>((a) => a.Export(this.OwningCollection)); 55=> this.Source.Imports.ConvertCollection<RemotedResolvedImport, ResolvedImport>((a) => a.Export(this.OwningCollection)); 58=> this.OwningCollection.ExportCollection<ProjectProperty, MockProjectPropertyLinkRemoter>(this.Source.AllEvaluatedProperties); 62=> this.OwningCollection.ExportCollection<ProjectMetadata, MockProjectMetadataLinkRemoter>(this.Source.AllEvaluatedItemDefinitionMetadata); 64public ICollection<MockProjectItemLinkRemoter> AllEvaluatedItems => this.OwningCollection.ExportCollection<ProjectItem, MockProjectItemLinkRemoter>(this.Source.AllEvaluatedItems); 66public string ToolsVersion => this.Source.ToolsVersion; 67public string SubToolsetVersion => this.Source.SubToolsetVersion; 68public bool SkipEvaluation { get => this.Source.SkipEvaluation; set => this.Source.SkipEvaluation = value; } 69public bool DisableMarkDirty { get => this.Source.DisableMarkDirty; set => this.Source.DisableMarkDirty = value; } 70public bool IsBuildEnabled { get => this.Source.IsBuildEnabled; set => this.Source.IsBuildEnabled = value; } 71public int LastEvaluationId => this.Source.LastEvaluationId; 73=> this.OwningCollection.ExportCollection<ProjectItem, MockProjectItemLinkRemoter>(this.Source.AddItem(itemType, unevaluatedInclude, metadata)); 75=> this.OwningCollection.ExportCollection<ProjectItem, MockProjectItemLinkRemoter>(this.Source.AddItemFast(itemType, unevaluatedInclude, metadata)); 77public string ExpandString(string unexpandedValue) => this.Source.ExpandString(unexpandedValue); 80=> this.OwningCollection.ExportCollection<ProjectItem, MockProjectItemLinkRemoter>(this.Source.GetItems(itemType)); 83=> this.OwningCollection.ExportCollection<ProjectItem, MockProjectItemLinkRemoter>(this.Source.GetItemsByEvaluatedInclude(evaluatedInclude)); 86=> this.OwningCollection.ExportCollection<ProjectItem, MockProjectItemLinkRemoter>(this.Source.GetItemsIgnoringCondition(itemType)); 89=> this.OwningCollection.ExportCollection(this.Source.GetLogicalProject()); 91public MockProjectPropertyLinkRemoter GetProperty(string name) => this.OwningCollection.Export<ProjectProperty, MockProjectPropertyLinkRemoter>(this.Source.GetProperty(name)); 92public string GetPropertyValue(string name) => this.Source.GetPropertyValue(name); 93public void MarkDirty() => this.Source.MarkDirty(); 94public void ReevaluateIfNecessary(EvaluationContext evaluationContext) => this.Source.ReevaluateIfNecessary(evaluationContext); 95public bool RemoveGlobalProperty(string name) => this.Source.RemoveGlobalProperty(name); 97public bool RemoveItem(MockProjectItemLinkRemoter item) => this.Source.RemoveItem(this.OwningCollection.Import<ProjectItem, MockProjectItemLinkRemoter>(item)); 100=> this.Source.RemoveItems(this.OwningCollection.ImportCollection<ProjectItem, MockProjectItemLinkRemoter>(items)); 103=> this.Source.RemoveProperty(this.OwningCollection.Import<ProjectProperty, MockProjectPropertyLinkRemoter>(propertyRemoter)); 107this.Source.SaveLogicalProject(writer); 110public bool SetGlobalProperty(string name, string escapedValue) => this.Source.SetGlobalProperty(name, escapedValue); 113=> this.OwningCollection.Export<ProjectProperty, MockProjectPropertyLinkRemoter>(this.Source.SetProperty(name, unevaluatedValue));
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectMetadataLink.cs (4)
25var parent = ProjectMetadataLink.GetParent(this.Source); 41public MockProjectMetadataElementLinkRemoter Xml => (MockProjectMetadataElementLinkRemoter)this.OwningCollection.ExportElement(this.Source.Xml); 42public string EvaluatedValueEscaped => ProjectMetadataLink.GetEvaluatedValueEscaped(this.Source); 43public MockProjectMetadataLinkRemoter Predecessor => this.OwningCollection.Export<ProjectMetadata, MockProjectMetadataLinkRemoter>(this.Source.Predecessor);
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectPropertyLink.cs (11)
21public MockProjectLinkRemoter Project => this.OwningCollection.Export<Project, MockProjectLinkRemoter>(this.Source.Project); 22public MockProjectPropertyElementLinkRemoter Xml => (MockProjectPropertyElementLinkRemoter)this.ExportElement(this.Source.Xml); 23public string Name => this.Source.Name; 24public string EvaluatedIncludeEscaped => ProjectPropertyLink.GetEvaluatedValueEscaped(this.Source); 25public string UnevaluatedValue { get => this.Source.UnevaluatedValue; set => this.Source.UnevaluatedValue = value; } 26public bool IsEnvironmentProperty => this.Source.IsEnvironmentProperty; 27public bool IsGlobalProperty => this.Source.IsGlobalProperty; 28public bool IsReservedProperty => this.Source.IsReservedProperty; 29public MockProjectPropertyLinkRemoter Predecessor => this.OwningCollection.Export<ProjectProperty, MockProjectPropertyLinkRemoter>(this.Source.Predecessor); 30public bool IsImported => this.Source.IsImported;
ObjectModelRemoting\RemoteProjectsProviderMock\ExporterMock.cs (1)
107object IRemoterSource.RealObject => this.Source;
ObjectModelRemoting\RemoteProjectsProviderMock\LinkedObjectsMap.cs (1)
235public override object StrongReference => this.Source;