34 references to HasErrors
Microsoft.CodeAnalysis.CSharp (34)
Binder\Binder_AnonymousTypes.cs (1)
65
hasError |= expression.
HasErrors
;
Binder\Binder_Expressions.cs (3)
915
bool hasErrors = node.
HasErrors
;
929
if (parent == null || node.
HasErrors
)
6411
if (!hasEnumerableInitializerType && !initializerSyntax.
HasErrors
&& !initializerType.IsErrorType())
Binder\Binder_Operators.cs (1)
4883
bool hasErrors = node.Right.
HasErrors
;
Binder\Binder_Query.cs (2)
938
if (ultimateReceiver.HasAnyErrors || node.
HasErrors
)
981
if (!receiver.HasAnyErrors && !node.
HasErrors
)
Binder\Binder_Statements.cs (3)
657
if (!node.
HasErrors
)
836
((VariableDeclarationSyntax)declarationNode).Variables.Count > 1 && !declarationNode.
HasErrors
)
882
if (!errorSyntax.
HasErrors
)
Binder\Binder_Symbols.cs (2)
494
if (!syntax.
HasErrors
)
517
if (!syntax.
HasErrors
)
Binder\BinderFactory.BinderFactoryVisitor.cs (1)
293
Debug.Assert(accessor is not null || parent.
HasErrors
);
Binder\ForEachLoopBinder.cs (2)
416
if (!node.
HasErrors
)
437
_syntax.
HasErrors
||
Binder\SwitchBinder.cs (2)
228
matchLabel.Pattern, ref unionType, SwitchGoverningType, permitDesignations: true, labelSyntax.
HasErrors
, tempDiagnosticBag, hasUnionMatching: out _);
500
if (!node.
HasErrors
)
Binder\SwitchBinder_Patterns.cs (4)
110
if (!p.Pattern.
HasErrors
&& !anyPreviousErrors)
249
bool hasErrors = node.
HasErrors
;
285
matchLabelSyntax.Pattern, ref unionType, SwitchGoverningType, permitDesignations: true, node.
HasErrors
, diagnostics, out bool hasUnionMatching);
291
node.
HasErrors
);
BoundTree\BoundNode.cs (1)
106
if (this.HasErrors || this.Syntax != null && this.Syntax.
HasErrors
)
CommandLine\CSharpCompiler.cs (1)
351
d => d.IsActive && !d.
HasErrors
&& d.Kind() == SyntaxKind.LineDirectiveTrivia))
Compilation\CSharpCompilation.cs (1)
864
if (root.
HasErrors
)
Compilation\CSharpSemanticModel.cs (1)
1359
else if (node.IsMissing || node.
HasErrors
|| node.Width == 0 || node.IsPartOfStructuredTrivia())
Symbols\ConstraintsHelper.cs (2)
618
if (typeSyntax.
HasErrors
)
692
var result = !typeSyntax.
HasErrors
&& CheckTypeConstraints(type, in args, diagnosticsBuilder, nullabilityDiagnosticsBuilderOpt: args.IncludeNullability ? diagnosticsBuilder : null,
Symbols\Source\LocalFunctionSymbol.cs (1)
303
|| returnTypeSyntax.
HasErrors
);
Symbols\Source\SourceFixedFieldSymbol.cs (1)
101
Debug.Assert(sizeConstant.IsIntegral || diagnostics.HasAnyErrors() || sizeExpression.
HasErrors
);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5752
bool reportMisplacedGlobalCode = !m.
HasErrors
;
Symbols\Source\SourceMethodSymbol.cs (1)
34
if (!returnTypeSyntax.
HasErrors
)
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
155
Debug.Assert(this.RefKind == RefKind.None || !returnType.IsVoidType() || returnTypeSyntax.
HasErrors
);
Syntax\CSharpLineDirectiveMap.cs (1)
98
if (!spanDirective.
HasErrors
&&
Syntax\SyntaxFactory.cs (1)
2380
if (!compilation.
HasErrors
)