36 references to Error
Microsoft.CodeAnalysis (7)
MetadataReader\MetadataDecoder.cs (3)
1530
TypedConstantKind.
Error
;
2146
return new TypedConstant(type, TypedConstantKind.
Error
, null);
2157
return new TypedConstant(type, TypedConstantKind.
Error
, null);
Symbols\TypedConstant.cs (4)
27
Debug.Assert(type is object || kind == TypedConstantKind.
Error
);
137
if (_kind == TypedConstantKind.
Error
)
187
return TypedConstantKind.
Error
;
196
return TypedConstantKind.
Error
;
Microsoft.CodeAnalysis.CSharp (22)
Binder\Binder_Attributes.cs (13)
723
if (reorderedArgument.Kind == TypedConstantKind.
Error
)
741
Debug.Assert(hasErrors || reorderedArguments.All(arg => arg.Kind != TypedConstantKind.
Error
));
842
return VisitExpression(node, typedConstantKind, diagnostics, ref attrHasErrors, curArgumentHasErrors || typedConstantKind == TypedConstantKind.
Error
);
854
typedConstantKind = TypedConstantKind.
Error
;
871
return CreateTypedConstant(node, TypedConstantKind.
Error
, diagnostics, ref attrHasErrors, curArgumentHasErrors);
893
return new TypedConstant(spread.Expression.Type, TypedConstantKind.
Error
, value: null);
932
return CreateTypedConstant(node, TypedConstantKind.
Error
, diagnostics, ref attrHasErrors, curArgumentHasErrors);
978
return CreateTypedConstant(node, TypedConstantKind.
Error
, diagnostics, ref attrHasErrors, curArgumentHasErrors);
1000
initializer = ImmutableArray.Create(CreateTypedConstant(node, TypedConstantKind.
Error
, diagnostics, ref attrHasErrors, curArgumentHasErrors));
1018
if (typedConstantKind != TypedConstantKind.
Error
&& type.ContainsTypeParameter())
1039
typedConstantKind = TypedConstantKind.
Error
;
1042
if (typedConstantKind == TypedConstantKind.
Error
)
1050
return new TypedConstant(type, TypedConstantKind.
Error
, null);
Compiler\ClsComplianceChecker.cs (1)
286
paramType.Type.GetAttributeParameterTypedConstantKind(_compilation) == TypedConstantKind.
Error
)
Emitter\Model\AttributeDataAdapter.cs (1)
30
Debug.Assert(argument.Kind != TypedConstantKind.
Error
);
Symbols\TypeSymbolExtensions.cs (7)
240
return GetAttributeParameterTypedConstantKind(type, compilation) != TypedConstantKind.
Error
;
261
TypedConstantKind kind = TypedConstantKind.
Error
;
264
return TypedConstantKind.
Error
;
272
return TypedConstantKind.
Error
;
285
if (kind == TypedConstantKind.
Error
)
299
case TypedConstantKind.
Error
:
300
return TypedConstantKind.
Error
;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Attributes\AttributeTests.cs (1)
684
Assert.Equal(TypedConstantKind.
Error
, attrs[0].ConstructorArguments.Single().Kind);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\TypedConstantTests.cs (1)
97
new TypedConstant(_stringType, TypedConstantKind.
Error
, null));
Microsoft.CodeAnalysis.UnitTests (1)
CommonTypedConstantTests.cs (1)
62
new TypedConstant(_stringType, TypedConstantKind.
Error
, null));
Microsoft.CodeAnalysis.VisualBasic (1)
Binding\Binder_Attributes.vb (1)
896
Return New TypedConstant(type, TypedConstantKind.
Error
, Nothing)
Microsoft.Extensions.Logging.Generators (2)
LoggerMessageGenerator.Parser.cs (2)
140
if (typedConstant.Kind == TypedConstantKind.
Error
)
196
if (typedConstant.Kind == TypedConstantKind.
Error
)
System.Text.RegularExpressions.Generator (1)
RegexGenerator.Parser.cs (1)
69
if (generatedRegexAttr.ConstructorArguments.Any(ca => ca.Kind == TypedConstantKind.
Error
))