GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — add tests · microsoft/TypeScript@b087ae0

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • tests/cases/fourslash
    • codeFixAddMissingMember17.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎tests/cases/fourslash/codeFixAddMissingMember17.ts‎

Copy file name to clipboard
+25Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/// <reference path='fourslash.ts' />
2+
3+
////class A {
4+
//// constructor() {
5+
//// this._x = 10;
6+
//// }
7+
////}
8+
9+
verify.codeFixAvailable([
10+
{ description: "Declare a private property '_x'" },
11+
{ description: "Declare property '_x'" },
12+
{ description: "Add index signature for property '_x'" }
13+
])
14+
15+
verify.codeFix({
16+
description: [ts.Diagnostics.Declare_a_private_property_0.message, "_x"],
17+
index: 0,
18+
newFileContent:
19+
`class A {
20+
private _x: number;
21+
constructor() {
22+
this._x = 10;
23+
}
24+
}`
25+
});

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.