| | |
| | | |
| | | class ImportContextDependency extends ContextDependency { |
| | | /** |
| | | * Creates an instance of ImportContextDependency. |
| | | * @param {ContextDependencyOptions} options options |
| | | * @param {Range} range range |
| | | * @param {Range} valueRange value range |
| | |
| | | } |
| | | |
| | | /** |
| | | * Returns an identifier to merge equal requests. |
| | | * @returns {string | null} an identifier to merge equal requests |
| | | */ |
| | | getResourceIdentifier() { |
| | | let str = super.getResourceIdentifier(); |
| | | |
| | | if (this.options.attributes) { |
| | | str += `|importAttributes${JSON.stringify(this.options.attributes)}`; |
| | | str += `|attributes${JSON.stringify(this.options.attributes)}`; |
| | | } |
| | | |
| | | return str; |
| | | } |
| | | |
| | | /** |
| | | * Serializes this instance into the provided serializer context. |
| | | * @param {ObjectSerializerContext} context context |
| | | */ |
| | | serialize(context) { |
| | |
| | | } |
| | | |
| | | /** |
| | | * Restores this instance from the provided deserializer context. |
| | | * @param {ObjectDeserializerContext} context context |
| | | */ |
| | | deserialize(context) { |