C# Класс GraphQL.Validation.Complexity.ComplexityAnalyzer

Наследование: IComplexityAnalyzer
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
Analyze ComplexityResult
GetImpactFromArgs double?
RecordFieldComplexity void

Открытые методы

Метод Описание
ComplexityAnalyzer ( int maxRecursionCount = 250 ) : System

Creates a new instance of ComplexityAnalyzer

Validate ( Document document, ComplexityConfiguration complexityParameters ) : void

Приватные методы

Метод Описание
Analyze ( Document doc, double avgImpact = 2.0d ) : ComplexityResult

Analyzes the complexity of a document.

GetImpactFromArgs ( INode node ) : double?
RecordFieldComplexity ( INode node, ComplexityResult result, double impact ) : void

Описание методов

ComplexityAnalyzer() публичный Метод

Creates a new instance of ComplexityAnalyzer
public ComplexityAnalyzer ( int maxRecursionCount = 250 ) : System
maxRecursionCount int /// Max. number of times to traverse tree nodes. GraphiQL queries take ~95 iterations, adjust as needed. ///
Результат System

Validate() публичный Метод

public Validate ( Document document, ComplexityConfiguration complexityParameters ) : void
document GraphQL.Language.AST.Document
complexityParameters ComplexityConfiguration
Результат void