StubCorrectionProducerContext class final

A stub implementation of CorrectionProducerContext, which can be used to instantiate a correction producer for the purpose of examining fixed properties on it.

This has several acceptable use cases:

  • checking the applicability of a correction producer,
  • testing purposes,
  • short-circuiting logic in a correction producer factory constructor that relies on the context's node property.
Implemented types

Properties

dartFixContext DartFixContext?
finalinherited
hashCode int
The hash code for this object.
no setterinherited
node → AstNode
finalinherited
path String
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
override
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance StubCorrectionProducerContext
final