10 references to Document
Microsoft.CodeAnalysis.Features (10)
IntroduceVariable\AbstractIntroduceVariableService.State.cs (10)
79
var expressionType =
Document
.SemanticModel.GetTypeInfo(Expression, cancellationToken).Type;
85
!
Document
.SemanticModel.GetConstantValue(Expression, cancellationToken).HasValue)
91
.Select(n =>
Document
.SemanticModel.GetDeclaredSymbol(n, cancellationToken))
95
containingType ??=
Document
.SemanticModel.Compilation.ScriptClass;
103
IsConstant = IsExpressionConstant(
Document
, Expression, _service, cancellationToken);
241
_semanticMap ??=
Document
.SemanticModel.GetSemanticMap(Expression, cancellationToken);
274
var semanticFacts =
Document
.Project.Services.GetService<ISemanticFactsService>();
275
return semanticFacts.CanReplaceWithRValue(
Document
.SemanticModel, Expression, cancellationToken);
281
if (
Document
.SemanticModel.Compilation.ScriptClass != null)
298
if (
Document
.Document.SourceCodeKind != SourceCodeKind.Regular)