63 references to NotAvailable
Microsoft.CodeAnalysis (1)
ConstantValue.cs (1)
365return (size == 0) ? ConstantValue.NotAvailable : ConstantValue.Create(size);
Microsoft.CodeAnalysis.CSharp (62)
Binder\Binder_Attributes.cs (1)
574lvalue = new BoundFieldAccess(nameSyntax, null, fieldSymbol, ConstantValue.NotAvailable, resultKind, fieldSymbol.Type);
Binder\Binder_Conversions.cs (9)
2036constantValueOpt: ConstantValue.NotAvailable, 2118constantValueOpt: ConstantValue.NotAvailable, 2156constantValueOpt: ConstantValue.NotAvailable, 2208expr = new BoundConversion(syntax, source, conversion, @checked: false, explicitCastInCode: isCast, conversionGroup, constantValueOpt: ConstantValue.NotAvailable, type: delegateType, hasErrors: true) { WasCompilerGenerated = source.WasCompilerGenerated }; 2251constantValueOpt: ConstantValue.NotAvailable, 2275return new BoundConversion(syntax, group, conversion, @checked: false, explicitCastInCode: isCast, conversionGroup, constantValueOpt: ConstantValue.NotAvailable, type: destination, hasErrors: hasErrors) { WasCompilerGenerated = group.WasCompilerGenerated }; 2348DefaultValueFromAttributes: ConstantValue.NotAvailable 2528constantValueOpt: ConstantValue.NotAvailable, 2543constantValueOpt: ConstantValue.NotAvailable,
Binder\Binder_Invocation.cs (2)
1472defaultValue = new BoundFieldAccess(syntax, null, fieldSymbol, ConstantValue.NotAvailable) { WasCompilerGenerated = true }; 1707else if (defaultConstantValue == ConstantValue.NotAvailable)
Binder\Binder_Operators.cs (8)
814constantValueOpt: ConstantValue.NotAvailable, 917return new BoundBinaryOperator(node, kind, ConstantValue.NotAvailable, methodOpt: null, constrainedToTypeOpt: null, LookupResultKind.Empty, left, right, GetBinaryOperatorErrorType(kind, diagnostics, node), true); 1405return new BoundBinaryOperator(node, kind, ConstantValue.NotAvailable, methodOpt: null, constrainedToTypeOpt: null, 1526ConstantValue.NotAvailable, 1537return new BoundBinaryOperator(node, kind, left, right, ConstantValue.NotAvailable, methodOpt: null, constrainedToTypeOpt: null, lookupResult, originalUserDefinedOperators, CreateErrorType(), true); 4166return new BoundUnaryOperator(node, kind, operand, ConstantValue.NotAvailable, 4187constantValueOpt: ConstantValue.NotAvailable, 4204ConstantValue.NotAvailable,
Binder\Binder_Statements.cs (6)
2663return BoundConversion.Synthesized(node, BindToTypeForErrorRecovery(expr), Conversion.NoConversion, false, explicitCastInCode: false, conversionGroupOpt: null, ConstantValue.NotAvailable, boolean, hasErrors: true); 2675ConstantValue.NotAvailable, 2727return BoundConversion.Synthesized(node, expr, Conversion.NoConversion, false, explicitCastInCode: false, conversionGroupOpt: null, ConstantValue.NotAvailable, boolean, hasErrors: true); 2746return new BoundUnaryOperator(node, signature.Kind, resultOperand, ConstantValue.NotAvailable, signature.Method, signature.ConstrainedToTypeOpt, resultKind, originalUserDefinedOperators, signature.ReturnType) 3358exceptionSource = new BoundLocal(declaration, local, ConstantValue.NotAvailable, local.Type); 3370if (boundFilter.ConstantValueOpt != ConstantValue.NotAvailable)
Binder\ForEachLoopBinder.cs (2)
667ConstantValue.NotAvailable, 1581ConstantValue.NotAvailable,
Binder\Semantics\Conversions\Conversions.cs (1)
76if (defaultValue != ConstantValue.NotAvailable)
Compiler\MethodBodySynthesizer.cs (5)
122new BoundFieldAccess(syntax, thisReference, hostObjectField, ConstantValue.NotAvailable) { WasCompilerGenerated = true }, 132ConstantValue.NotAvailable, 150new BoundFieldAccess(syntax, thisReference, field, ConstantValue.NotAvailable) { WasCompilerGenerated = true }, 161ConstantValue.NotAvailable, 188var fieldAccess = new BoundFieldAccess(syntax, thisReference, field, ConstantValue.NotAvailable) { WasCompilerGenerated = true };
FlowAnalysis\NullableWalker.cs (1)
8359return expr.ConstantValueOpt == ConstantValue.NotAvailable || !expr.ConstantValueOpt.IsNull || expr.IsSuppressed ? NullableAnnotation.NotAnnotated : NullableAnnotation.Annotated;
Lowering\LocalRewriter\LocalRewriter.cs (1)
318var result = new BoundFieldAccess(node.Syntax, new BoundThisReference(node.Syntax, primaryCtor.ContainingType), field, ConstantValue.NotAvailable, LookupResultKind.Viable, node.Type);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (4)
756return new BoundUnaryOperator(syntax, UnaryOperatorKind.BoolLogicalNegation, converted, ConstantValue.NotAvailable, MethodSymbol.None, constrainedToTypeOpt: null, LookupResultKind.Viable, boolean) 1647ConstantValue.NotAvailable, 2008new BoundUnaryOperator(syntax, UnaryOperatorKind.BoolLogicalNegation, call, ConstantValue.NotAvailable, null, constrainedToTypeOpt: null, LookupResultKind.Viable, returnType); 2300ConstantValue.NotAvailable,
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (3)
1326MakeConversionNode(null, syntax, conditional.Consequence, conversion, @checked, explicitCastInCode: false, constantValueOpt: ConstantValue.NotAvailable, rewrittenType: type), 1327MakeConversionNode(null, syntax, conditional.Alternative, conversion, @checked, explicitCastInCode: false, constantValueOpt: ConstantValue.NotAvailable, rewrittenType: type), 1328ConstantValue.NotAvailable,
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
573new BoundConditionalOperator(factory.Syntax, false, condition, consequenceAssignment, alternativeAssignment, ConstantValue.NotAvailable, localType, wasTargetTyped: false, localType));
Lowering\LocalRewriter\LocalRewriter_Literal.cs (1)
159constantValueOpt: ConstantValue.NotAvailable, initializerExpressionOpt: null, type: ctor.ContainingType);
Lowering\LocalRewriter\LocalRewriter_PreviousSubmissionReference.cs (1)
24return new BoundFieldAccess(syntax, thisReference, targetScriptReference, ConstantValue.NotAvailable);
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (2)
343ConstantValue.NotAvailable, 999return RewriteConditionalOperator(syntax, condition, consequence, alternative, ConstantValue.NotAvailable, operand.Type, isRef: false);
Lowering\SyntheticBoundNodeFactory.cs (4)
251return new BoundFieldAccess(Syntax, receiver, f, ConstantValue.NotAvailable, LookupResultKind.Viable, f.Type) { WasCompilerGenerated = true }; 575expression = BoundConversion.Synthesized(Syntax, expression, conversion, false, explicitCastInCode: false, conversionGroupOpt: null, ConstantValue.NotAvailable, CurrentFunction.ReturnType); 644return new BoundBinaryOperator(this.Syntax, kind, ConstantValue.NotAvailable, methodOpt: null, constrainedToTypeOpt: null, LookupResultKind.Viable, left, right, type) { WasCompilerGenerated = true }; 1888new BoundUnaryOperator(syntax, UnaryOperatorKind.BoolLogicalNegation, call, ConstantValue.NotAvailable, methodOpt: null, constrainedToTypeOpt: null, LookupResultKind.Viable, returnType);
Symbols\Metadata\PE\PEParameterSymbol.cs (1)
272_lazyDefaultValue = ConstantValue.NotAvailable;
Symbols\Source\SourceComplexParameterSymbol.cs (4)
114return (data != null && data.DefaultParameterValue != ConstantValue.Unset) ? data.DefaultParameterValue : ConstantValue.NotAvailable; 273DefaultValueFromAttributes == ConstantValue.NotAvailable) 369return ConstantValue.NotAvailable; 375return ConstantValue.NotAvailable;
Symbols\Source\SourceParameterSymbolBase.cs (2)
90if (defaultValue != ConstantValue.NotAvailable && 93sourceParameter.DefaultValueFromAttributes == ConstantValue.NotAvailable)
Symbols\Source\SourceSimpleParameterSymbol.cs (1)
162get { return ConstantValue.NotAvailable; }
Symbols\Synthesized\SynthesizedParameterSymbol.cs (2)
209if (defaultValue != ConstantValue.NotAvailable && 210DefaultValueFromAttributes == ConstantValue.NotAvailable &&