private LiteralExpressionNode createLiteralExpression(LiteralKind literalKind) { var result = new LiteralExpressionNode { EndPosition = scanner.EndPosition }; setScannerState(result); result.LiteralKind = literalKind; result.ValueOffset = scanner.StartPosition; result.ValueLength = getLexicalUnitLength(); return result; }
protected virtual TResult handleLiteral(LiteralExpressionNode literal, TSource source, bool nested) { return(defaultHandler()); }