private void ProcessEqualsKey(SyntaxEditor syntaxEditor)
 {
     this.resolver = syntaxEditor.Document.LanguageData as DotNetProjectResolver;
     CSharpExtendedSyntaxLanguage.ForceSynchronousReparse(syntaxEditor.Document);
     if (!this.IsEventInsertion(syntaxEditor))
     {
         return;
     }
     this.isPotentiallyAddingEvent = this.InitializeEventData();
 }
 private void ProcessTabKey(SyntaxEditor syntaxEditor)
 {
     if (!this.isPotentiallyAddingEvent)
     {
         return;
     }
     if (this.EventInserted != null)
     {
         CSharpExtendedSyntaxLanguage.ForceSynchronousReparse(syntaxEditor.Document);
         DotNetContext context = this.GetContext(syntaxEditor, syntaxEditor.Caret.Offset, false, false);
         if (context != null)
         {
             this.EventInserted((object)this, new InsertEventHandlerEventArgs(this.returnType, this.methodName, this.parameters, this.GetEventConstructor(), context.MemberDeclarationNode.DeclaringType.Resolve(this.resolver)));
         }
     }
     this.isPotentiallyAddingEvent = false;
 }