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