コード例 #1
0
            public ScriptSourceTextContainer(string resolvedPath)
            {
                this.resolvedPath = resolvedPath
                                    ?? throw new ArgumentNullException(nameof(resolvedPath));

                currentText = new ScriptSourceText(this, resolvedPath);
            }
コード例 #2
0
            public void Reload()
            {
                var oldText = currentText;

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