public static NodeTag CreateFile(string fileName, Language language, bool isNew) { var tag = new NodeTag { Type = NodeType.File, Language = language, IsNew = isNew }; tag.Sources.Add(fileName); return(tag); }
public static NodeTag CreatePackage(string fileName, Language language) { var tag = new NodeTag { Type = NodeType.Package, Language = language }; tag.Sources.Add(fileName); return(tag); }