Exemple #1
0
 public bool Equals(UstList <T> compareList)
 {
     if (compareList == null)
     {
         return(false);
     }
     return(compareList.SequenceEqual(this));
 }
Exemple #2
0
 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");
 }
Exemple #3
0
        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);
        }
Exemple #4
0
 public RootUstNode() : base(IdConstants.RootIdName)
 {
     References = new UstList <Reference>();
 }
 protected BaseMethodDeclaration(string idName)
     : base(idName)
 {
     Parameters         = new UstList <Parameter>();
     SemanticProperties = new UstList <string>();
 }
Exemple #6
0
 public LambdaExpression(string idName)
     : base(idName)
 {
     SemanticProperties = new UstList <string>();
 }