Represents a string literal encoded by the containing source file encoding.
Inheritance: Expression
 public virtual void Exit(StringLiteral/*!*/ node) { }
 public virtual bool Enter(StringLiteral/*!*/ node) { return true; }
Exemple #3
0
 internal protected virtual void Walk(StringLiteral /*!*/ node)
 {
     Enter(node);
     Exit(node);
 }
 public virtual void Exit(StringLiteral /*!*/ node)
 {
 }
 public virtual bool Enter(StringLiteral /*!*/ node)
 {
     return(true);
 }
        private static StringLiteralEncoding CombineEncoding(StringLiteralEncoding encoding, StringLiteral literal) {
            if (encoding == StringLiteralEncoding.UTF8 || literal.IsUTF8) {
                return StringLiteralEncoding.UTF8;
            }

            if (encoding == StringLiteralEncoding.Ascii && literal.IsAscii) {
                return StringLiteralEncoding.Ascii;
            }

            return StringLiteralEncoding.Default;
        }