Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 protected virtual TResult handleLiteral(LiteralExpressionNode literal, TSource source, bool nested)
 {
     return(defaultHandler());
 }