BatchedASTProcessor class

Advanced AST processor that implements batching and lazy evaluation for improved performance when processing multiple GraphQL documents.

Constructors

BatchedASTProcessor()

Properties

enableDebugLogging ↔ bool
Enable debug logging for troubleshooting
getter/setter pair
enableValidation ↔ bool
Enable validation checks (can be disabled in production for performance)
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearCaches() → void
Clear all caches to free memory
executeDeferredTransformations() → Future<void>
Execute all deferred transformations Should be called when lazy evaluation results are actually needed
getCacheStats() → Map<String, int>
Get cache statistics for monitoring
getPerformanceMetrics() → Map<String, dynamic>
Get comprehensive performance metrics
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
processBatch(List<DocumentNode> documents, List<TransformingVisitor> transformers, {bool enableLazyEvaluation = true}) → Future<List<DocumentNode>>
Process multiple documents in a single batch operation This reduces the overhead of individual AST traversals
processFragmentsBatch(List<FragmentDefinitionNode> fragments, List<TransformingVisitor> transformers) → Future<List<FragmentDefinitionNode>>
Process fragments in batch with optimized traversal
resetMetrics() → void
Reset performance metrics
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited