private static void WriteStaticDirectory(ScriptWriter writer, ImmutableContextBase context, object value) { var directory = (StaticDirectory)value; writer.AppendToken(Constants.Names.DirectoryInterpolationFactory.ToString()); writer.AppendQuotedString(directory.Path.ToString(context.PathTable, PathFormat.Script), true, '`'); }
private static void WriteFileArtifact(ScriptWriter writer, ImmutableContextBase context, object value) { var file = (FileArtifact)value; writer.AppendToken(Constants.Names.FileInterpolationFactory.ToString()); writer.AppendQuotedString(file.Path.ToString(context.PathTable, PathFormat.Script), true, '`'); }
private static void WritePathAtom(ScriptWriter writer, ImmutableContextBase context, object value) { var atom = (PathAtom)value; writer.AppendToken(Constants.Names.PathAtomInterpolationFactory.ToString()); writer.AppendQuotedString(atom.ToString(context.StringTable), false, '`'); }
private static void WriteRelativePath(ScriptWriter writer, ImmutableContextBase context, object value) { var relativePath = (RelativePath)value; writer.AppendToken(Constants.Names.RelativePathInterpolationFactory.ToString()); writer.AppendQuotedString(relativePath.ToString(context.StringTable, PathFormat.Script), true, '`'); }
private static void WriteString(ScriptWriter writer, ImmutableContextBase context, object value) { writer.AppendQuotedString((string)value, false); }