示例#1
0
 public Reader(Blender blender)
 {
     this.lexer = blender.lexer;
     this.oldTreeCursor = blender.oldTreeCursor;
     this.changes = blender.changes;
     this.newPosition = blender.newPosition;
     this.changeDelta = blender.changeDelta;
     this.newDirectives = blender.newDirectives;
     this.oldDirectives = blender.oldDirectives;
     this.newLexerDrivenMode = blender.newLexerDrivenMode;
 }
示例#2
0
 public Reader(Blender blender)
 {
     _lexer = blender._lexer;
     _oldTreeCursor = blender._oldTreeCursor;
     _changes = blender._changes;
     _newPosition = blender._newPosition;
     _changeDelta = blender._changeDelta;
     _newDirectives = blender._newDirectives;
     _oldDirectives = blender._oldDirectives;
     _newLexerDrivenMode = blender._newLexerDrivenMode;
 }
示例#3
0
 private IEnumerable<InternalSyntax.BlendedNode> Blend(string text)
 {
     using (var lexer = new InternalSyntax.Lexer(SourceText.From(text), _options))
     {
         var blender = new InternalSyntax.Blender(lexer, null, null);
         InternalSyntax.BlendedNode result;
         do
         {
             result = blender.ReadToken(InternalSyntax.LexerMode.Syntax);
             blender = result.Blender;
             yield return result;
         }
         while (result.Token.Kind != SyntaxKind.EndOfFileToken);
     }
 }
 internal BlendedNode(CSharp.CSharpSyntaxNode node, SyntaxToken token, Blender blender)
 {
     this.Node = node;
     this.Token = token;
     this.Blender = blender;
 }
示例#5
0
 internal BlendedNode(CSharp.CSharpSyntaxNode node, SyntaxToken token, Blender blender)
 {
     this.Node    = node;
     this.Token   = token;
     this.Blender = blender;
 }