示例#1
0
        public override MaxComplexityVisitorContext CreateScope()
        {
            var newContext =
                new MaxComplexityWithMultipliersVisitorContext(this);

            newContext.Scope = newContext;
            return(newContext);
        }
示例#2
0
 protected MaxComplexityWithMultipliersVisitorContext(
     ImmutableHashSet <string> fragmentPath,
     ImmutableList <IOutputField> fieldPath,
     MaxComplexityWithMultipliersVisitorContext context)
     : base(fragmentPath, fieldPath, context)
 {
     _variables = context._variables;
 }
示例#3
0
        public override MaxComplexityVisitorContext SetTypeContext(
            INamedOutputType typeContext)
        {
            var newContext =
                new MaxComplexityWithMultipliersVisitorContext(this);

            newContext.TypeContext = typeContext;
            return(newContext);
        }
示例#4
0
 protected MaxComplexityWithMultipliersVisitorContext(
     MaxComplexityWithMultipliersVisitorContext context)
     : base(context)
 {
     _variables = context._variables;
 }