diff --git a/lib/solargraph/source.rb b/lib/solargraph/source.rb
index <HASH>..<HASH> 100644
--- a/lib/solargraph/source.rb
+++ b/lib/solargraph/source.rb
@@ -340,6 +340,7 @@ module Solargraph
     def parse
       node, comments = inner_parse(@fixed, filename)
       @node = node
+      @comments = comments
       process_parsed node, comments
       @parsed = true
     end
@@ -348,6 +349,7 @@ module Solargraph
       @fixed = @code.gsub(/[^\s]/, ' ')
       node, comments = inner_parse(@fixed, filename)
       @node = node
+      @comments = comments
       process_parsed node, comments
       @parsed = false
     end
Expose Source#comments for fragments.