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