public class NoUnusedVariables extends AbstractRule
Constructor and Description |
---|
NoUnusedVariables(ValidationContext validationContext,
ValidationErrorCollector validationErrorCollector) |
Modifier and Type | Method and Description |
---|---|
void |
checkOperationDefinition(OperationDefinition operationDefinition) |
void |
checkVariable(VariableReference variableReference) |
void |
checkVariableDefinition(VariableDefinition variableDefinition) |
void |
leaveOperationDefinition(OperationDefinition operationDefinition) |
addError, addError, addError, checkArgument, checkDirective, checkDocument, checkField, checkFragmentDefinition, checkFragmentSpread, checkInlineFragment, checkSelectionSet, checkTypeName, documentFinished, getErrors, getQueryPath, getValidationContext, getValidationErrorCollector, getValidationUtil, isVisitFragmentSpreads, leaveSelectionSet, setVisitFragmentSpreads, toString
public NoUnusedVariables(ValidationContext validationContext, ValidationErrorCollector validationErrorCollector)
public void leaveOperationDefinition(OperationDefinition operationDefinition)
leaveOperationDefinition
in class AbstractRule
public void checkOperationDefinition(OperationDefinition operationDefinition)
checkOperationDefinition
in class AbstractRule
public void checkVariableDefinition(VariableDefinition variableDefinition)
checkVariableDefinition
in class AbstractRule
public void checkVariable(VariableReference variableReference)
checkVariable
in class AbstractRule