can_close method

can_close

Defines interface for CanClose method.

Returns

The boolean result.

def can_close(self, descriptor, reason, context):
    ...
ParameterTypeDescription
descriptorBlockSyntaxDescriptorThe description.
reasonBlockClosingReasonThe reason.
contextIBlockParsingContextThe context.

See Also