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