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