Пример #1
0
 public bool Equals(UstList <T> compareList)
 {
     if (compareList == null)
     {
         return(false);
     }
     return(compareList.SequenceEqual(this));
 }
Пример #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");
 }
Пример #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);
        }
Пример #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>();
 }
Пример #6
0
 public LambdaExpression(string idName)
     : base(idName)
 {
     SemanticProperties = new UstList <string>();
 }