51 references to Add
Microsoft.CodeAnalysis.VisualBasic (51)
Parser\BlockContexts\BlockContext.vb (8)
431
Add
(node)
451
Add
(Parser.ReportSyntaxError(node, ERRID.ERR_ElseNoMatchingIf))
460
Add
(Parser.ReportSyntaxError(node, ERRID.ERR_ElseIfNoMatchingIf))
477
Add
(Parser.ReportSyntaxError(node, ERRID.ERR_CaseNoSelect))
483
Add
(Parser.ReportSyntaxError(node, ERRID.ERR_CaseElseNoSelect))
509
Add
(Parser.ReportSyntaxError(node, If(node.Kind = SyntaxKind.CatchStatement, ERRID.ERR_CatchNoMatchingTry, ERRID.ERR_FinallyNoMatchingTry)))
527
Add
(node)
534
Add
(node)
Parser\BlockContexts\CompilationUnitContext.vb (3)
44
Add
(node)
52
Add
(node)
60
Add
(node)
Parser\BlockContexts\DeclarationContext.vb (14)
96
Add
(node)
127
Add
(node)
148
Add
(node)
165
Add
(node)
169
Add
(node)
173
Add
(node)
177
Add
(node)
188
Add
(node)
192
Add
(node)
210
Add
(node)
222
Add
(node)
226
Add
(node)
232
Add
(node)
242
Add
(node)
Parser\BlockContexts\EnumDeclarationBlockContext.vb (2)
37
Add
(node)
42
Add
(Parser.ReportSyntaxError(node, ERRID.ERR_InvInsideEnum))
Parser\BlockContexts\EventBlockContext.vb (1)
38
Add
(node)
Parser\BlockContexts\ExecutableStatementContext.vb (1)
78
Add
(node)
Parser\BlockContexts\FinallyPartBlock.vb (2)
30
Add
(Parser.ReportSyntaxError(node, ERRID.ERR_CatchAfterFinally))
36
Add
(Parser.ReportSyntaxError(node, ERRID.ERR_FinallyAfterFinally))
Parser\BlockContexts\InterfaceDeclarationBlockContext.vb (11)
42
Add
(node)
66
Add
(node)
71
Add
(node)
76
Add
(node)
80
Add
(Parser.ReportSyntaxError(node, ERRID.ERR_NewInInterface))
88
Add
(eventStatement)
103
Add
(Parser.ReportSyntaxError(node, ERRID.ERR_InterfaceMemberSyntax))
107
Add
(node)
114
Add
(node)
127
Add
(Parser.ReportSyntaxError(node, ERRID.ERR_InvInsideInterface))
142
Add
(Parser.ReportSyntaxError(node, ERRID.ERR_InvInsideInterface))
Parser\BlockContexts\NamespaceBlockContext.vb (1)
43
Add
(node)
Parser\BlockContexts\PropertyBlockContext.vb (2)
63
Add
(node)
140
context.
Add
(beginBlockStmt)
Parser\BlockContexts\SingleLineElseContext.vb (1)
46
Add
(Parser.ReportSyntaxError(node, If(node.Kind = SyntaxKind.CatchStatement, ERRID.ERR_CatchNoMatchingTry, ERRID.ERR_FinallyNoMatchingTry)))
Parser\BlockContexts\SingleLineIfBlockContext.vb (2)
38
Add
(Parser.ReportSyntaxError(node, ERRID.ERR_ExpectedEOS))
55
Add
(Parser.ReportSyntaxError(node, If(node.Kind = SyntaxKind.CatchStatement, ERRID.ERR_CatchNoMatchingTry, ERRID.ERR_FinallyNoMatchingTry)))
Parser\BlockContexts\TypeBlockContext.vb (2)
49
Add
(node)
60
Add
(node)
Parser\ParseExpression.vb (1)
1803
_context.
Add
(ReportSyntaxError(statement, ERRID.ERR_InvInsideEndsProc))