16 references to ERR_FeatureNotValidInExpressionTree
Microsoft.CodeAnalysis.CSharp (6)
Errors\ErrorFacts.cs (1)
1559case ErrorCode.ERR_FeatureNotValidInExpressionTree:
Lowering\DiagnosticsPass_ExpressionTrees.cs (3)
378Error(ErrorCode.ERR_FeatureNotValidInExpressionTree, node, "__reftype"); 388Error(ErrorCode.ERR_FeatureNotValidInExpressionTree, node, "__refvalue"); 398Error(ErrorCode.ERR_FeatureNotValidInExpressionTree, node, "__makeref");
Lowering\DiagnosticsPass_Warnings.cs (2)
258Error(ErrorCode.ERR_FeatureNotValidInExpressionTree, node, method); 280Error(ErrorCode.ERR_FeatureNotValidInExpressionTree, node, ">>>");
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\ArglistTests.cs (3)
143Diagnostic(ErrorCode.ERR_FeatureNotValidInExpressionTree, "__makeref(S)").WithArguments("__makeref").WithLocation(8, 44), 146Diagnostic(ErrorCode.ERR_FeatureNotValidInExpressionTree, "__reftype(default(TypedReference))").WithArguments("__reftype").WithLocation(9, 42), 152Diagnostic(ErrorCode.ERR_FeatureNotValidInExpressionTree, "__refvalue(default(TypedReference), int)").WithArguments("__refvalue").WithLocation(10, 41),
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (7)
Symbols\CheckedUserDefinedOperatorsTests.cs (1)
4844Diagnostic(ErrorCode.ERR_FeatureNotValidInExpressionTree, "x / x").WithArguments("C0.operator checked /(C0, C0)").WithLocation(22, 29)
Symbols\StaticAbstractMembersInInterfacesTests.cs (2)
9966Diagnostic(ErrorCode.ERR_FeatureNotValidInExpressionTree, "b / 4").WithArguments("I1.operator checked /(I1, int)").WithLocation(26, 78) 9986Diagnostic(ErrorCode.ERR_FeatureNotValidInExpressionTree, "b >>> 4").WithArguments(">>>").WithLocation(26, 78)
Symbols\UnsignedRightShiftTests.cs (4)
953Diagnostic(ErrorCode.ERR_FeatureNotValidInExpressionTree, "x >>> y").WithArguments(">>>").WithLocation(6, 86) 1914Diagnostic(ErrorCode.ERR_FeatureNotValidInExpressionTree, "x >>> y").WithArguments(">>>").WithLocation(6, 89) 2323Diagnostic(ErrorCode.ERR_FeatureNotValidInExpressionTree, "x >>> y").WithArguments(">>>").WithLocation(14, 84) 2543Diagnostic(ErrorCode.ERR_FeatureNotValidInExpressionTree, "x >>> y").WithArguments(">>>").WithLocation(14, 87)