Skip to content
Browse files

Rename SourceMapping to SourceMap.

  • Loading branch information...
1 parent 43556a6 commit 31dc9c969fe6e66a888c02f4321db54f1fe12ccc @nex3 nex3 committed
Showing with 8 additions and 10 deletions.
  1. +1 −1 lib/sass/engine.rb
  2. +1 −1 lib/sass/tree/node.rb
  3. +2 −3 lib/sass/tree/root_node.rb
  4. +1 −1 lib/sass/tree/source_map.rb
  5. +3 −4 lib/sass/tree/visitors/to_css.rb
View
2 lib/sass/engine.rb
@@ -268,7 +268,7 @@ def render
# Render the template to CSS and return the source map.
#
- # @return [(String, Sass::Tree::SourceMapping)] The rendered CSS and the associated source map
+ # @return [(String, Sass::Tree::SourceMap)] The rendered CSS and the associated source map
# @raise [Sass::SyntaxError] if there's an error in the document
# @raise [Encoding::UndefinedConversionError] if the source encoding
# cannot be converted to UTF-8
View
2 lib/sass/tree/node.rb
@@ -141,7 +141,7 @@ def css
# Computes the CSS corresponding to this static CSS tree, along with
# the respective source map.
#
- # @return [(String, Sass::Tree::SourceMapping)] The resulting CSS and the source map
+ # @return [(String, Sass::Tree::SourceMap)] The resulting CSS and the source map
# @see Sass::Tree
def css_with_sourcemap
visitor = Sass::Tree::Visitors::ToCss.new(:build_source_mapping)
View
5 lib/sass/tree/root_node.rb
@@ -23,9 +23,8 @@ def render
# Runs the dynamic Sass code and computes the CSS for the tree, along with
# the sourcemap.
#
- # @return [(String, Sass::Tree::SourceMapping)] The compiled CSS, as well
- # as the source map.
- # @see #render
+ # @return [(String, Sass::Tree::SourceMap)] The compiled CSS, as well as
+ # the source map. @see #render
def render_with_sourcemap
css_tree.css_with_sourcemap
end
View
2 lib/sass/tree/source_map.rb
@@ -1,5 +1,5 @@
module Sass::Tree
- class SourceMapping
+ class SourceMap
# A mapping from one source range to another. Indicates that `input` was
# compiled to `output`.
#
View
7 lib/sass/tree/visitors/to_css.rb
@@ -6,15 +6,14 @@ class Sass::Tree::Visitors::ToCss < Sass::Tree::Visitors::Base
attr_reader :source_mapping
# @param build_source_mapping [Boolean] Whether to build a
- # \{Sass::Tree::SourceMapping} while creating the CSS output. The mapping
- # will be available from \{#source\_mapping} after the visitor has
- # completed.
+ # \{Sass::Tree::SourceMap} while creating the CSS output. The mapping will
+ # be available from \{#source\_mapping} after the visitor has completed.
def initialize(build_source_mapping = false)
@tabs = 0
@line = 1
@column = 1
@result = ""
- @source_mapping = Sass::Tree::SourceMapping.new if build_source_mapping
+ @source_mapping = Sass::Tree::SourceMap.new if build_source_mapping
end
# Runs the visitor on `node`.

0 comments on commit 31dc9c9

Please sign in to comment.
Something went wrong with that request. Please try again.