Exemple #1
0
        private List <string> GetMutatableList(MutatorParser.MutatableContext context)
        {
            var mutatableList = new List <string>();
            var idList        = context.idList();
            var fileList      = context.fileList();
            var symbolList    = context.symbolList();

            if (idList != null)
            {
                foreach (var id in idList.ID())
                {
                    mutatableList.Add(id.GetText());
                }
            }
            else if (fileList != null)
            {
                foreach (var fileGlob in fileList.FILEGLOB())
                {
                    mutatableList.Add(fileGlob.GetText());
                }
            }
            else if (symbolList != null)
            {
                foreach (var symbol in symbolList.SYMBOL())
                {
                    mutatableList.Add(symbol.GetText());
                }
            }
            return(mutatableList);
        }
Exemple #2
0
 public MutASTNode VisitMutatable([NotNull] MutatorParser.MutatableContext context)
 {
     throw new NotImplementedException("Should never be called");
 }