Ejemplo n.º 1
0
            public ScriptSourceTextContainer(string resolvedPath)
            {
                this.resolvedPath = resolvedPath
                                    ?? throw new ArgumentNullException(nameof(resolvedPath));

                currentText = new ScriptSourceText(this, resolvedPath);
            }
Ejemplo n.º 2
0
            public void Reload()
            {
                var oldText = currentText;

                currentText = new ScriptSourceText(this, resolvedPath);
                TextChanged?.Invoke(
                    this,
                    new TextChangeEventArgs(
                        oldText,
                        currentText,
                        currentText.GetChangeRanges(oldText)));
            }