private ConsumedFile AddConsumedFile(FileArtifact file, ContentFlag flag) { if (!m_consumedFilesByPath.TryGetValue(file, out var consumedFile)) { consumedFile = new ConsumedFile() { File = m_analyzer.GetEntry(file), Flags = file.IsSourceFile ? ContentFlag.Source : ContentFlag.Output }; m_consumedFilesByPath[file] = consumedFile; } consumedFile.Flags |= flag; return(consumedFile); }
public bool HasFlag(ContentFlag flag) { return((Flags & flag) == flag); }
public void AddConsumedFile(FileArtifact file, DirectoryArtifact directory, ContentFlag flag) { var consumedFile = AddConsumedFile(file, flag); m_consumer.FileDependencies.Add( new FileReference() { ConsumedFile = consumedFile, Directory = m_analyzer.GetEntry(directory) }); if (m_analyzer.TryResolve(file, m_consumer, out FileArtifact resolvedFile)) { var resolvedConsumedFile = AddConsumedFile(resolvedFile, flag); resolvedConsumedFile.AddFlag(ContentFlag.Copy); consumedFile.SourceFile = resolvedConsumedFile; resolvedConsumedFile.FinalFile = consumedFile; m_consumer.FileDependencies.Add( new FileReference() { ConsumedFile = resolvedConsumedFile, Directory = m_analyzer.GetEntry(directory) }); } }
public ConsumedFile AddFlag(ContentFlag flag) { Flags |= flag; return(this); }
public void AddFlag(ContentFlag flag) { Flags |= flag; }
private string Describe(ContentFlag flags) { return(flags.ToString()); }
private void AddFlag(AbsolutePath path, ContentFlag flag) { m_deployedFileFlags.AddOrUpdate(path, flag, (k, _flag) => _flag, (k, oldFlags, _flag) => oldFlags | flag); }
private string Write59_ContentFlag(ContentFlag v) { switch (v) { case ContentFlag.contflags_edit: return "contflags_edit"; case ContentFlag.contflags_substsize: return "contflags_substsize"; case ContentFlag.contflags_substdatetime: return "contflags_substdatetime"; case ContentFlag.contflags_substdate: return "contflags_substdate"; case ContentFlag.contflags_substtime: return "contflags_substtime"; case ContentFlag.contflags_substattributes: return "contflags_substattributes"; case ContentFlag.contflags_substattributestr: return "contflags_substattributestr"; case ContentFlag.contflags_passthrough_size_float: return "contflags_passthrough_size_float"; case ContentFlag.contflags_fieldedit: return "contflags_fieldedit"; } return XmlSerializationWriter.FromEnum((long) v, new string[] { "contflags_edit", "contflags_substsize", "contflags_substdatetime", "contflags_substdate", "contflags_substtime", "contflags_substattributes", "contflags_substattributestr", "contflags_passthrough_size_float", "contflags_substmask", "contflags_fieldedit" }, new long[] { 1L, 2L, 4L, 6L, 8L, 10L, 12L, 14L, 14L, 0x10L }, "Nomad.FileSystem.Property.Providers.Wdx.ContentFlag"); }