Skip to content

Commit

Permalink
Scripting/ScriptInstanceShared: Move to new FormattedMessage.Builder
Browse files Browse the repository at this point in the history
  • Loading branch information
Efruit committed Nov 9, 2021
1 parent 4fa99c4 commit 5b74bed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Robust.Shared.Scripting/ScriptInstanceShared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static ScriptInstanceShared()
"var x = 5 + 5; var y = (object) \"foobar\"; void Foo(object a) { } Foo(y); Foo(x)";
var script = await CSharpScript.RunAsync(code);
var msg = new FormattedMessage();
var msg = new FormattedMessage.Builder();
// Even run the syntax highlighter!
AddWithSyntaxHighlighting(script.Script, msg, code, new AdhocWorkspace());
});
Expand All @@ -101,7 +101,7 @@ public static bool HasReturnValue(Script script)
return _getDiagnosticArguments(diag);
}

public static void AddWithSyntaxHighlighting(Script script, FormattedMessage msg, string code,
public static void AddWithSyntaxHighlighting(Script script, FormattedMessage.Builder msg, string code,
Workspace workspace)
{
var compilation = script.GetCompilation();
Expand Down

0 comments on commit 5b74bed

Please sign in to comment.