Pytocs.Syntax.Lexer.CreateStringLiteral C# (CSharp) Method

CreateStringLiteral() private method

private CreateStringLiteral ( bool longLiteral ) : Exp
longLiteral bool
return Exp
        private Exp CreateStringLiteral(bool longLiteral)
        {
            if (binaryString)
            {
                return new Bytes(sb.ToString(), filename, posStart, posEnd);
            }
            else
            {
                return new Str(sb.ToString(), filename, posStart, posEnd)
                {
                    Raw = rawString,
                    Unicode = unicodeString,
                    Long = longLiteral,
                };
            }
        }