File tree Expand file tree Collapse file tree 2 files changed +2
-17
lines changed Expand file tree Collapse file tree 2 files changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,6 @@ public interface IParser
3434 Declarations AllDeclarations { get ; }
3535 [ DispId ( 4 ) ]
3636 Declarations UserDeclarations { get ; }
37- [ DispId ( 5 ) ]
38- void CancelParse ( ) ;
3937 }
4038
4139 [
@@ -165,15 +163,7 @@ public void BeginParse()
165163 // non-blocking call
166164 _dispatcher . Invoke ( ( ) => _state . OnParseRequested ( this ) ) ;
167165 }
168-
169- /// <summary>
170- /// Cancels the parse, if any, in progress
171- /// </summary>
172- public void CancelParse ( )
173- {
174- _parser . Cancel ( ) ;
175- }
176-
166+
177167 public delegate void OnStateChangedDelegate ( ParserState ParserState ) ;
178168 public event OnStateChangedDelegate OnStateChanged ;
179169
Original file line number Diff line number Diff line change @@ -187,12 +187,7 @@ protected virtual void BeginParse(object sender)
187187 Task . Run ( ( ) => ParseAll ( sender ) ) ;
188188 }
189189
190- public void Cancel ( )
191- {
192- Cancel ( true ) ;
193- }
194-
195- private void Cancel ( bool createNewTokenSource )
190+ private void Cancel ( bool createNewTokenSource = true )
196191 {
197192 lock ( CancellationSyncObject )
198193 {
You can’t perform that action at this time.
0 commit comments