public void Visit(StringLiteral literal) { _codeStack.Peek().CodeExpression = new CodePrimitiveExpression(literal.Value); _codeStack.Peek().Scope = new ScopeData<Type> { Type = typeof(string), CodeDomReference = new CodeTypeReference(typeof(string)) }; }
public void Visit(StringLiteral literal, CommonTree tree) { Parent(tree).Children.Add(literal); SetLine(literal, tree); literal.Value = ParseLiteral(tree.Text); }