@@ -81,7 +81,7 @@ export function getSmartSelectionRange(pos: number, sourceFile: SourceFile): Sel
8181 // 1. Blocks are effectively redundant with SyntaxLists.
8282 // 2. TemplateSpans, along with the SyntaxLists containing them, are a somewhat unintuitive grouping
8383 // of things that should be considered independently.
84- // 3. A VariableStatement’ s children are just a VaraiableDeclarationList and a semicolon.
84+ // 3. A VariableStatement' s children are just a VaraiableDeclarationList and a semicolon.
8585 // 4. A lone VariableDeclaration in a VaraibleDeclaration feels redundant with the VariableStatement.
8686 // Dive in without pushing a selection range.
8787 if ( isBlock ( node )
@@ -135,8 +135,8 @@ export function getSmartSelectionRange(pos: number, sourceFile: SourceFile): Sel
135135 break ;
136136 }
137137
138- // If we made it to the end of the for loop, we’ re done.
139- // In practice, I’ ve only seen this happen at the very end
138+ // If we made it to the end of the for loop, we' re done.
139+ // In practice, I' ve only seen this happen at the very end
140140 // of a SourceFile.
141141 if ( i === children . length - 1 ) {
142142 break outer;
@@ -153,7 +153,7 @@ export function getSmartSelectionRange(pos: number, sourceFile: SourceFile): Sel
153153 if ( ! selectionRange || (
154154 // Skip ranges that are identical to the parent
155155 ! textSpansEqual ( textSpan , selectionRange . textSpan ) &&
156- // Skip ranges that don’ t contain the original position
156+ // Skip ranges that don' t contain the original position
157157 textSpanIntersectsWithPosition ( textSpan , pos )
158158 ) ) {
159159 selectionRange = { textSpan, ...selectionRange && { parent : selectionRange } } ;
@@ -182,8 +182,8 @@ export function getSmartSelectionRange(pos: number, sourceFile: SourceFile): Sel
182182 * @param node The candidate node to snap to.
183183 */
184184function positionShouldSnapToNode ( sourceFile : SourceFile , pos : number , node : Node ) {
185- // Can’ t use 'ts.positionBelongsToNode()' here because it cleverly accounts
186- // for missing nodes, which can’ t really be considered when deciding what
185+ // Can' t use 'ts.positionBelongsToNode()' here because it cleverly accounts
186+ // for missing nodes, which can' t really be considered when deciding what
187187 // to select.
188188 Debug . assert ( node . pos <= pos ) ;
189189 if ( pos < node . end ) {
@@ -203,7 +203,7 @@ const isImport = or(isImportDeclaration, isImportEqualsDeclaration);
203203 * transforming them into an artificial tree according to their intuitive
204204 * grouping where no grouping actually exists in the parse tree. For example,
205205 * top-level imports are grouped into their own SyntaxList so they can be
206- * selected all together, even though in the AST they’ re just siblings of each
206+ * selected all together, even though in the AST they' re just siblings of each
207207 * other as well as of other top-level statements and declarations.
208208 */
209209function getSelectionChildren ( node : Node ) : readonly Node [ ] {
@@ -213,13 +213,13 @@ function getSelectionChildren(node: Node): readonly Node[] {
213213 }
214214
215215 // Mapped types _look_ like ObjectTypes with a single member,
216- // but in fact don’ t contain a SyntaxList or a node containing
217- // the “ key/value” pair like ObjectTypes do, but it seems intuitive
216+ // but in fact don' t contain a SyntaxList or a node containing
217+ // the " key/value" pair like ObjectTypes do, but it seems intuitive
218218 // that the selection would snap to those points. The philosophy
219219 // of choosing a selection range is not so much about what the
220220 // syntax currently _is_ as what the syntax might easily become
221221 // if the user is making a selection; e.g., we synthesize a selection
222- // around the “ key/value” pair not because there’ s a node there, but
222+ // around the " key/value" pair not because there' s a node there, but
223223 // because it allows the mapped type to become an object type with a
224224 // few keystrokes.
225225 if ( isMappedTypeNode ( node ) ) {
0 commit comments