10 references to Document
Microsoft.CodeAnalysis.Features (10)
IntroduceVariable\AbstractIntroduceVariableService.State.cs (10)
80
var expressionType =
Document
.SemanticModel.GetTypeInfo(Expression, cancellationToken).Type;
86
!
Document
.SemanticModel.GetConstantValue(Expression, cancellationToken).HasValue)
92
.Select(n =>
Document
.SemanticModel.GetDeclaredSymbol(n, cancellationToken))
96
containingType ??=
Document
.SemanticModel.Compilation.ScriptClass;
116
IsConstant = IsExpressionConstant(
Document
, Expression, _service, cancellationToken);
254
_semanticMap ??=
Document
.SemanticModel.GetSemanticMap(Expression, cancellationToken);
287
var semanticFacts =
Document
.Project.Services.GetService<ISemanticFactsService>();
288
return semanticFacts.CanReplaceWithRValue(
Document
.SemanticModel, Expression, cancellationToken);
294
if (
Document
.SemanticModel.Compilation.ScriptClass != null)
311
if (
Document
.Document.SourceCodeKind != SourceCodeKind.Regular)