コード例 #1
0
        public void Execute(JsonFormatterStrategyContext context)
        {
            if (context.IsProcessingString)
            {
                context.AppendCurrentChar();
                return;
            }

            context.IsProcessingVariableAssignment = true;
            context.AppendCurrentChar();
            context.AppendSpace();
        }
コード例 #2
0
        public void Execute(JsonFormatterStrategyContext context)
        {
            if (context.IsProcessingString)
            {
                context.AppendCurrentChar();
                return;
            }

            context.CloseCurrentScope();
            context.BuildContextIndents();
            context.AppendCurrentChar();
        }
コード例 #3
0
        public void Execute(JsonFormatterStrategyContext context)
        {
            if (context.IsProcessingString)
            {
                context.AppendCurrentChar();
                return;
            }

            context.CloseCurrentScope();
            context.BuildContextIndents();
            context.AppendCurrentChar();
        }
コード例 #4
0
        public void Execute(JsonFormatterStrategyContext context)
        {
            if (context.IsProcessingString)
            {
                context.AppendCurrentChar();
                return;
            }

            context.IsProcessingVariableAssignment = true;
            context.AppendCurrentChar();
            context.AppendSpace();
        }
コード例 #5
0
        public void Execute(JsonFormatterStrategyContext context)
        {
            if (context.IsProcessingString)
            {
                context.AppendCurrentChar();
                return;
            }

            context.AppendCurrentChar();
            context.EnterObjectScope();

            if (!IsBeginningOfNewLineAndIndentionLevel(context)) return;

            context.BuildContextIndents();
        }
コード例 #6
0
 public void Execute(JsonFormatterStrategyContext context)
 {
     if (context.IsProcessingString)
     {
         context.AppendCurrentChar();
     }
 }
コード例 #7
0
        public void Execute(JsonFormatterStrategyContext context)
        {
            if (!context.IsProcessingDoubleQuoteInitiatedString && !context.WasLastCharacterABackSlash)
                context.IsProcessingSingleQuoteInitiatedString = !context.IsProcessingSingleQuoteInitiatedString;

            context.AppendCurrentChar();
        }
コード例 #8
0
 public void Execute(JsonFormatterStrategyContext context)
 {
     if (context.IsProcessingString)
     {
         context.AppendCurrentChar();
     }
 }
コード例 #9
0
        public void Execute(JsonFormatterStrategyContext context)
        {
            if (context.IsProcessingString)
            {
                context.AppendCurrentChar();
                return;
            }

            context.AppendCurrentChar();
            context.EnterObjectScope();

            if (!IsBeginningOfNewLineAndIndentionLevel(context))
            {
                return;
            }

            context.BuildContextIndents();
        }
コード例 #10
0
        public void Execute(JsonFormatterStrategyContext context)
        {
            if (!context.IsProcessingSingleQuoteInitiatedString && !context.WasLastCharacterABackSlash)
            {
                context.IsProcessingDoubleQuoteInitiatedString = !context.IsProcessingDoubleQuoteInitiatedString;
            }

            context.AppendCurrentChar();
        }
コード例 #11
0
        public void Execute(JsonFormatterStrategyContext context)
        {
            if (context.IsProcessingString)
            {
                context.AppendCurrentChar();
                return;
            }

            PeformNonStringPrint(context);
        }
コード例 #12
0
        public void Execute(JsonFormatterStrategyContext context)
        {
            if (context.IsProcessingString)
            {
                context.AppendCurrentChar();
                return;
            }

            PeformNonStringPrint(context);
        }
コード例 #13
0
        public void Execute(JsonFormatterStrategyContext context)
        {
            context.AppendCurrentChar();

            if (context.IsProcessingString)
            {
                return;
            }

            context.BuildContextIndents();
            context.IsProcessingVariableAssignment = false;
        }
コード例 #14
0
        public void Execute(JsonFormatterStrategyContext context)
        {
            context.AppendCurrentChar();

            if (context.IsProcessingString)
            {
                return;
            }

            context.BuildContextIndents();
            context.IsProcessingVariableAssignment = false;
        }
コード例 #15
0
 public void Execute(JsonFormatterStrategyContext context)
 {
     context.AppendCurrentChar();
 }
コード例 #16
0
 private static void PeformNonStringPrint(JsonFormatterStrategyContext context)
 {
     context.CloseCurrentScope();
     context.BuildContextIndents();
     context.AppendCurrentChar();
 }
コード例 #17
0
 public void Execute(JsonFormatterStrategyContext context)
 {
     context.AppendCurrentChar();
 }
コード例 #18
0
 private static void PeformNonStringPrint(JsonFormatterStrategyContext context)
 {
     context.CloseCurrentScope();
     context.BuildContextIndents();
     context.AppendCurrentChar();
 }