protected override void Visit(RazorDirectiveTokenChunk chunk) { var filePath = chunk.Start.FilePath ?? _context.SourceFileName; var fileMappedLocation = new SourceLocation(filePath, chunk.Start.AbsoluteIndex, chunk.Start.LineIndex, chunk.Start.CharacterIndex); var documentLocation = new MappingLocation(fileMappedLocation, chunk.Value.Length); var token = new RazorDirectiveToken() { Descriptor = chunk.Descriptor, Value = chunk.Value, DocumentLocation = documentLocation }; _context.Builder.Add(token); }
protected virtual void Visit(RazorDirectiveTokenChunk chunk) { }