@@ -75,23 +75,26 @@ public void Start(CancellationToken token)
75
75
Tokens = stream ,
76
76
Attributes = attributes ,
77
77
Comments = comments ,
78
- Annotations = annotationListener . Annotations
78
+ Annotations = annotationListener . Annotations ,
79
+ Component = _component
79
80
} ) ;
80
81
}
81
82
catch ( COMException exception )
82
83
{
83
84
_logger . Error ( exception , "Exception thrown in thread {0}." , Thread . CurrentThread . ManagedThreadId ) ;
84
85
ParseFailure . Invoke ( this , new ParseFailureArgs
85
86
{
86
- Cause = exception
87
+ Cause = exception ,
88
+ Component = _component
87
89
} ) ;
88
90
}
89
91
catch ( SyntaxErrorException exception )
90
92
{
91
93
_logger . Error ( exception , "Exception thrown in thread {0}." , Thread . CurrentThread . ManagedThreadId ) ;
92
94
ParseFailure . Invoke ( this , new ParseFailureArgs
93
95
{
94
- Cause = exception
96
+ Cause = exception ,
97
+ Component = _component
95
98
} ) ;
96
99
}
97
100
catch ( OperationCanceledException )
@@ -124,6 +127,7 @@ private IEnumerable<CommentNode> QualifyAndUnionComments(QualifiedModuleName qua
124
127
125
128
public class ParseCompletionArgs
126
129
{
130
+ public VBComponent Component { get ; internal set ; }
127
131
public ITokenStream Tokens { get ; internal set ; }
128
132
public IParseTree ParseTree { get ; internal set ; }
129
133
public IDictionary < Tuple < string , DeclarationType > , Attributes > Attributes { get ; internal set ; }
@@ -133,6 +137,7 @@ public class ParseCompletionArgs
133
137
134
138
public class ParseFailureArgs
135
139
{
140
+ public VBComponent Component { get ; internal set ; }
136
141
public Exception Cause { get ; internal set ; }
137
142
}
138
143
0 commit comments