public bool Equals(UstList <T> compareList) { if (compareList == null) { return(false); } return(compareList.SequenceEqual(this)); }
public ProjectWorkspace(string projectFilePath) { SourceFiles = new UstList <string>(); ProjectFilePath = projectFilePath; ProjectRootPath = Path.GetDirectoryName(projectFilePath); ProjectName = Path.GetFileNameWithoutExtension(projectFilePath); SourceFileResults = new UstList <RootUstNode>(); GeneratedBy = "Auto generated by the Codelyzer on: " + DateTime.Now.ToString("dddd, dd MMMM yyyy"); }
private static UstList <T> GetNodes <T>(UstNode node) where T : UstNode { UstList <T> nodes = new UstList <T>(); foreach (UstNode child in node.Children) { if (child != null) { if (child is T) { nodes.Add((T)child); } nodes.AddRange(GetNodes <T>(child)); } } return(nodes); }
public RootUstNode() : base(IdConstants.RootIdName) { References = new UstList <Reference>(); }
protected BaseMethodDeclaration(string idName) : base(idName) { Parameters = new UstList <Parameter>(); SemanticProperties = new UstList <string>(); }
public LambdaExpression(string idName) : base(idName) { SemanticProperties = new UstList <string>(); }