In This Article

PythonSyntaxLanguage Class

Represents a Python syntax language definition.

public class PythonSyntaxLanguage : SyntaxLanguage, ISyntaxLanguage, IKeyedObject, IServiceLocator, ICodeDocumentLifecycleEventSink, ICodeDocumentPropertyChangeEventSink
Inheritance:
object SyntaxLanguage object
Implements:
ISyntaxLanguage IKeyedObject IServiceLocator ICodeDocumentLifecycleEventSink ICodeDocumentPropertyChangeEventSink

Constructors

PythonSyntaxLanguage()

Initializes a new instance of the PythonSyntaxLanguage class.

public PythonSyntaxLanguage()

Methods

OnDocumentAttached(ICodeDocument)

Occurs when the specified ICodeDocument is attached to the language.

protected virtual void OnDocumentAttached(ICodeDocument document)
Parameter Type Description
document ICodeDocument

The ICodeDocument that is attached.

OnDocumentDetached(ICodeDocument)

Occurs when the specified ICodeDocument is detached from the language.

protected virtual void OnDocumentDetached(ICodeDocument document)
Parameter Type Description
document ICodeDocument

The ICodeDocument that is attached.

OnDocumentFileNameChanged(ICodeDocument, StringPropertyChangedEventArgs)

Occurs after the FileName property is changed on an ICodeDocument that uses this language.

protected virtual void OnDocumentFileNameChanged(ICodeDocument document, StringPropertyChangedEventArgs e)
Parameter Type Description
document ICodeDocument

The ICodeDocument whose FileName property is changed.

e StringPropertyChangedEventArgs

The StringPropertyChangedEventArgs that contains the event data.

OnDocumentParseDataChanged(ICodeDocument, ParseDataPropertyChangedEventArgs)

Occurs after the ParseData property is changed on an ICodeDocument that uses this language.

protected virtual void OnDocumentParseDataChanged(ICodeDocument document, ParseDataPropertyChangedEventArgs e)
Parameter Type Description
document ICodeDocument

The ICodeDocument whose ParseData property is changed.

e ParseDataPropertyChangedEventArgs

The ParseDataPropertyChangedEventArgs that contains the event data.

Inherited Members