コード例 #1
0
        public SynModuleDecl Mutate(SynModuleDecl input, FsharpCoreOrchestrator iterator)
        {
            var castinput = input as SynModuleDecl.NestedModule;

            var visitedDeclarations = iterator.Mutate(castinput.decls);

            return(SynModuleDecl.NewNestedModule(castinput.moduleInfo, castinput.isRecursive, visitedDeclarations, castinput.isContinuing, castinput.range));
        }
コード例 #2
0
        public SynModuleDecl Mutate(SynModuleDecl input, FsharpCoreOrchestrator iterator)
        {
            var castinput = input as SynModuleDecl.Let;

            var childlist = new List <SynBinding>();

            foreach (var binding in castinput.bindings)
            {
                childlist.Add(SynBinding.NewBinding(binding.accessibility, binding.kind, binding.mustInline, binding.isMutable, binding.attributes, binding.xmlDoc, binding.valData, binding.headPat, binding.returnInfo, iterator.Mutate(binding.expr), binding.range, binding.seqPoint));
            }
            return(SynModuleDecl.NewLet(castinput.isRecursive, ListModule.OfSeq(childlist), castinput.range));
        }
コード例 #3
0
        public SynExpr Mutate(SynExpr input, FsharpCoreOrchestrator iterator)
        {
            var castinput = input as SynExpr.IfThenElse;

            return(SynExpr.NewIfThenElse(iterator.Mutate(castinput.ifExpr), iterator.Mutate(castinput.thenExpr), iterator.Mutate(castinput.elseExpr.Value), castinput.spIfToThen, castinput.isFromErrorRecovery, castinput.ifToThenRange, castinput.range));
        }