예제 #1
0
        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, '`');
        }
예제 #2
0
        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, '`');
        }
예제 #3
0
        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, '`');
        }
예제 #4
0
        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, '`');
        }
예제 #5
0
 private static void WriteString(ScriptWriter writer, ImmutableContextBase context, object value)
 {
     writer.AppendQuotedString((string)value, false);
 }