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