Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self,
text_document: TextDocumentIdentifier,
position: Position,
work_done_token: Optional[bool] = None,
context: Optional['SignatureHelpContext'] = None):
TextDocumentPositionParams.__init__(self, text_document, position)
WorkDoneProgressParams.__init__(self, work_done_token)
self.context = context
def __init__(self,
text_document: TextDocumentIdentifier,
position: Position,
new_name: str,
work_done_token: Optional[bool] = None):
TextDocumentPositionParams.__init__(self, text_document, position)
WorkDoneProgressParams.__init__(self, work_done_token)
self.newName = new_name
WorkDoneProgressOptions,
WorkDoneProgressParams
)
class ReferenceClientCapabilities:
def __init__(self, dynamic_registration: Optional[bool] = False):
self.dynamicRegistration = dynamic_registration
class ReferenceOptions(WorkDoneProgressOptions):
def __init__(self, work_done_progress: Optional[ProgressToken] = None):
super().__init__(work_done_progress)
class ReferenceParams(TextDocumentPositionParams, WorkDoneProgressParams, PartialResultParams):
def __init__(self,
text_document: TextDocumentIdentifier,
position: Position,
context: 'ReferenceContext',
work_done_token: Optional[bool] = None,
partial_result_token: Optional[ProgressToken] = None):
TextDocumentPositionParams.__init__(self, text_document, position)
WorkDoneProgressParams.__init__(self, work_done_token)
PartialResultParams.__init__(self, partial_result_token)
self.context = context
class ReferenceContext:
def __init__(self, include_declaration: bool):
self.includeDeclaration = include_declaration
def __init__(self,
text_document: 'TextDocumentIdentifier',
work_done_token: Optional[bool] = None,
partial_result_token: Optional[ProgressToken] = None):
WorkDoneProgressParams.__init__(self, work_done_token)
PartialResultParams.__init__(self, partial_result_token)
self.textDocument = text_document
super().__init__(work_done_progress)
class TypeDefinitionRegistrationOptions(TypeDefinitionOptions,
TextDocumentRegistrationOptions,
StaticRegistrationOptions):
def __init__(self,
id: Optional[str] = None,
document_selector: Optional[DocumentSelector] = None,
work_done_progress: Optional[ProgressToken] = None):
TypeDefinitionOptions.__init__(self, work_done_progress)
TextDocumentRegistrationOptions.__init__(self, document_selector)
StaticRegistrationOptions.__init__(self, id)
class TypeDefinitionParams(TextDocumentPositionParams, WorkDoneProgressParams):
def __init__(self,
text_document: TextDocumentIdentifier,
position: Position,
work_done_token: Optional[bool] = None):
TextDocumentPositionParams.__init__(self, text_document, position)
WorkDoneProgressParams.__init__(self, work_done_token)
def __init__(self,
text_document: TextDocumentIdentifier,
work_done_token: Optional[bool] = None,
partial_result_token: Optional[ProgressToken] = None):
WorkDoneProgressParams.__init__(self, work_done_token)
PartialResultParams.__init__(self, partial_result_token)
self.textDocument = text_document