resharper/resharper-unity/src/Unity/Odin/Feature/Services/CodeCompletion/AssetPath/OdinAssetListCodeCompletionProvider.cs [17:36]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - public override bool IsAvailableInCurrentContext(CSharpCodeCompletionContext context, ICSharpLiteralExpression literalExpression) { var solution = context.NodeInFile.GetSolution(); if (!OdinAttributeUtil.HasOdinSupport(solution)) return false; var nodeInFile = context.NodeInFile; var propertyAssignment = nodeInFile.GetContainingNode(); if (propertyAssignment == null) return false; var attribute = AttributeNavigator.GetByPropertyAssignment(propertyAssignment); if (attribute == null) return false; var type = attribute.TypeReference?.Resolve().Result.DeclaredElement as ITypeElement; if (type == null) return false; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - resharper/resharper-unity/src/Unity/Odin/Feature/Services/CodeCompletion/AssetPath/OdinAssetPathAndFolderCodeCompletionProvider.cs [14:33]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - public override bool IsAvailableInCurrentContext(CSharpCodeCompletionContext context, ICSharpLiteralExpression literalExpression) { var solution = context.NodeInFile.GetSolution(); if (!OdinAttributeUtil.HasOdinSupport(solution)) return false; var nodeInFile = context.NodeInFile; var propertyAssignment = nodeInFile.GetContainingNode(); if (propertyAssignment == null) return false; var attribute = AttributeNavigator.GetByPropertyAssignment(propertyAssignment); if (attribute == null) return false; var type = attribute.TypeReference?.Resolve().Result.DeclaredElement as ITypeElement; if (type == null) return false; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -