diff --git a/microsoft/typescript-go b/microsoft/typescript-go index dcebe5348..20bf4fc90 160000 --- a/microsoft/typescript-go +++ b/microsoft/typescript-go @@ -1 +1 @@ -Subproject commit dcebe5348dc64b60a4743ffd148281ee000f2af1 +Subproject commit 20bf4fc90d3d38016f07fda1fb972eedc715bb02 diff --git a/pkg/ast/ast.go b/pkg/ast/ast.go index 404193858..c2e020e0a 100644 --- a/pkg/ast/ast.go +++ b/pkg/ast/ast.go @@ -263,6 +263,12 @@ func (n *Node) TemplateLiteralLikeData() *TemplateLiteralLikeBase { } func (n *Node) KindString() string { return n.Kind.String() } func (n *Node) KindValue() int16 { return int16(n.Kind) } +func (n *Node) Decorators() []*Node { + if n.Modifiers() == nil { + return nil + } + return core.Filter(n.Modifiers().Nodes, IsDecorator) +} type MutableNode Node @@ -6300,7 +6306,7 @@ func (node *BinaryExpression) computeSubtreeFacts() SubtreeFacts { propagateSubtreeFacts(node.Type) | propagateSubtreeFacts(node.OperatorToken) | propagateSubtreeFacts(node.Right) | - core.IfElse(node.OperatorToken.Kind == KindInKeyword && IsPrivateIdentifier(node.Left), SubtreeContainsClassFields, SubtreeFactsNone) + core.IfElse(node.OperatorToken.Kind == KindInKeyword && IsPrivateIdentifier(node.Left), SubtreeContainsClassFields|SubtreeContainsPrivateIdentifierInExpression, SubtreeFactsNone) } func (node *BinaryExpression) setModifiers(modifiers *ModifierList) { node.modifiers = modifiers } @@ -6753,9 +6759,13 @@ func (node *PropertyAccessExpression) Clone(f NodeFactoryCoercible) *Node { func (node *PropertyAccessExpression) Name() *DeclarationName { return node.name } func (node *PropertyAccessExpression) computeSubtreeFacts() SubtreeFacts { + privateName := SubtreeFactsNone + if !IsIdentifier(node.name) { + privateName = SubtreeContainsPrivateIdentifierInExpression + } return propagateSubtreeFacts(node.Expression) | propagateSubtreeFacts(node.QuestionDotToken) | - propagateSubtreeFacts(node.name) + propagateSubtreeFacts(node.name) | privateName } func (node *PropertyAccessExpression) propagateSubtreeFacts() SubtreeFacts { @@ -10791,6 +10801,8 @@ type SourceFile struct { tokenFactory *NodeFactory declarationMapMu sync.Mutex declarationMap map[string][]*Node + nameTableOnce sync.Once + nameTable map[string]int } func (f *NodeFactory) NewSourceFile(opts SourceFileParseOptions, text string, statements *NodeList, endOfFileToken *TokenNode) *Node { @@ -10934,6 +10946,39 @@ func (node *SourceFile) ECMALineMap() []core.TextPos { return lineMap } +// GetNameTable returns a map of all names in the file to their positions. +// If the name appears more than once, the value is -1. +func (file *SourceFile) GetNameTable() map[string]int { + file.nameTableOnce.Do(func() { + nameTable := make(map[string]int, file.IdentifierCount) + + var walk func(node *Node) bool + walk = func(node *Node) bool { + if IsIdentifier(node) && !isTagName(node) && node.Text() != "" || + IsStringOrNumericLiteralLike(node) && literalIsName(node) || + IsPrivateIdentifier(node) { + text := node.Text() + if _, ok := nameTable[text]; ok { + nameTable[text] = -1 + } else { + nameTable[text] = node.Pos() + } + } + + node.ForEachChild(walk) + jsdocNodes := node.JSDoc(file) + for _, jsdoc := range jsdocNodes { + jsdoc.ForEachChild(walk) + } + return false + } + file.ForEachChild(walk) + + file.nameTable = nameTable + }) + return file.nameTable +} + func (node *SourceFile) IsBound() bool { return node.isBound.Load() } diff --git a/pkg/ast/subtreefacts.go b/pkg/ast/subtreefacts.go index 9b205f4bc..f25b15259 100644 --- a/pkg/ast/subtreefacts.go +++ b/pkg/ast/subtreefacts.go @@ -37,6 +37,7 @@ const ( SubtreeContainsClassFields SubtreeContainsDecorators SubtreeContainsIdentifier + SubtreeContainsPrivateIdentifierInExpression SubtreeFactsComputed // NOTE: This should always be last SubtreeFactsNone SubtreeFacts = 0 diff --git a/pkg/ast/utilities.go b/pkg/ast/utilities.go index 78cf0c9f6..17ced3e78 100644 --- a/pkg/ast/utilities.go +++ b/pkg/ast/utilities.go @@ -3941,3 +3941,242 @@ func IsPotentiallyExecutableNode(node *Node) bool { } return IsClassDeclaration(node) || IsEnumDeclaration(node) || IsModuleDeclaration(node) } + +func HasAbstractModifier(node *Node) bool { + return HasSyntacticModifier(node, ModifierFlagsAbstract) +} + +func HasAmbientModifier(node *Node) bool { + return HasSyntacticModifier(node, ModifierFlagsAmbient) +} + +func NodeCanBeDecorated(useLegacyDecorators bool, node *Node, parent *Node, grandparent *Node) bool { + // private names cannot be used with decorators yet + if useLegacyDecorators && node.Name() != nil && IsPrivateIdentifier(node.Name()) { + return false + } + switch node.Kind { + case KindClassDeclaration: + // class declarations are valid targets + return true + case KindClassExpression: + // class expressions are valid targets for native decorators + return !useLegacyDecorators + case KindPropertyDeclaration: + // property declarations are valid if their parent is a class declaration. + return parent != nil && (useLegacyDecorators && IsClassDeclaration(parent) || + !useLegacyDecorators && IsClassLike(parent) && !HasAbstractModifier(node) && !HasAmbientModifier(node)) + case KindGetAccessor, KindSetAccessor, KindMethodDeclaration: + // if this method has a body and its parent is a class declaration, this is a valid target. + return parent != nil && node.Body() != nil && (useLegacyDecorators && IsClassDeclaration(parent) || + !useLegacyDecorators && IsClassLike(parent)) + case KindParameter: + // TODO(rbuckton): Parameter decorator support for ES decorators must wait until it is standardized + if !useLegacyDecorators { + return false + } + // if the parameter's parent has a body and its grandparent is a class declaration, this is a valid target. + return parent != nil && parent.Body() != nil && + (parent.Kind == KindConstructor || parent.Kind == KindMethodDeclaration || parent.Kind == KindSetAccessor) && + GetThisParameter(parent) != node && grandparent != nil && grandparent.Kind == KindClassDeclaration + } + + return false +} + +func ClassOrConstructorParameterIsDecorated(useLegacyDecorators bool, node *Node) bool { + if nodeIsDecorated(useLegacyDecorators, node, nil, nil) { + return true + } + constructor := GetFirstConstructorWithBody(node) + return constructor != nil && ChildIsDecorated(useLegacyDecorators, constructor, node) +} + +func ClassElementOrClassElementParameterIsDecorated(useLegacyDecorators bool, node *Node, parent *Node) bool { + var parameters *NodeList + if IsAccessor(node) { + decls := GetAllAccessorDeclarations(parent.Members(), node) + var firstAccessorWithDecorators *Node + if HasDecorators(decls.FirstAccessor) { + firstAccessorWithDecorators = decls.FirstAccessor + } else if HasDecorators(decls.SecondAccessor) { + firstAccessorWithDecorators = decls.SecondAccessor + } + if firstAccessorWithDecorators == nil || node != firstAccessorWithDecorators { + return false + } + if decls.SetAccessor != nil { + parameters = decls.SetAccessor.Parameters + } + } else if IsMethodDeclaration(node) { + parameters = node.ParameterList() + } + if nodeIsDecorated(useLegacyDecorators, node, parent, nil) { + return true + } + if parameters != nil && len(parameters.Nodes) > 0 { + for _, parameter := range parameters.Nodes { + if IsThisParameter(parameter) { + continue + } + if nodeIsDecorated(useLegacyDecorators, parameter, node, parent) { + return true + } + } + } + return false +} + +func nodeIsDecorated(useLegacyDecorators bool, node *Node, parent *Node, grandparent *Node) bool { + return HasDecorators(node) && NodeCanBeDecorated(useLegacyDecorators, node, parent, grandparent) +} + +func NodeOrChildIsDecorated(useLegacyDecorators bool, node *Node, parent *Node, grandparent *Node) bool { + return nodeIsDecorated(useLegacyDecorators, node, parent, grandparent) || ChildIsDecorated(useLegacyDecorators, node, parent) +} + +func ChildIsDecorated(useLegacyDecorators bool, node *Node, parent *Node) bool { + switch node.Kind { + case KindClassDeclaration, KindClassExpression: + return core.Some(node.Members(), func(m *Node) bool { + return NodeOrChildIsDecorated(useLegacyDecorators, m, node, parent) + }) + case KindMethodDeclaration, + KindSetAccessor, + KindConstructor: + return core.Some(node.Parameters(), func(p *Node) bool { + return nodeIsDecorated(useLegacyDecorators, p, node, parent) + }) + default: + return false + } +} + +type AllAccessorDeclarations struct { + FirstAccessor *AccessorDeclaration + SecondAccessor *AccessorDeclaration + SetAccessor *SetAccessorDeclaration + GetAccessor *GetAccessorDeclaration +} + +func GetAllAccessorDeclarationsForDeclaration(accessor *AccessorDeclaration, declarationsOfSymbol []*Node) AllAccessorDeclarations { + var otherKind Kind + if accessor.Kind == KindSetAccessor { + otherKind = KindGetAccessor + } else if accessor.Kind == KindGetAccessor { + otherKind = KindSetAccessor + } else { + panic(fmt.Sprintf("Unexpected node kind %q", accessor.Kind)) + } + // otherAccessor := ast.GetDeclarationOfKind(c.getSymbolOfDeclaration(accessor), otherKind) + var otherAccessor *AccessorDeclaration + for _, d := range declarationsOfSymbol { + if d.Kind == otherKind { + otherAccessor = d + break + } + } + + var firstAccessor *AccessorDeclaration + var secondAccessor *AccessorDeclaration + if otherAccessor != nil && (otherAccessor.Pos() < accessor.Pos()) { + firstAccessor = otherAccessor + secondAccessor = accessor + } else { + firstAccessor = accessor + secondAccessor = otherAccessor + } + + var setAccessor *SetAccessorDeclaration + var getAccessor *GetAccessorDeclaration + if accessor.Kind == KindSetAccessor { + setAccessor = accessor.AsSetAccessorDeclaration() + if otherAccessor != nil { + getAccessor = otherAccessor.AsGetAccessorDeclaration() + } + } else { + getAccessor = accessor.AsGetAccessorDeclaration() + if otherAccessor != nil { + setAccessor = otherAccessor.AsSetAccessorDeclaration() + } + } + + return AllAccessorDeclarations{ + FirstAccessor: firstAccessor, + SecondAccessor: secondAccessor, + SetAccessor: setAccessor, + GetAccessor: getAccessor, + } +} + +func GetAllAccessorDeclarations(parentDeclarations []*Node, accessor *AccessorDeclaration) AllAccessorDeclarations { + if HasDynamicName(accessor) { + // dynamic names can only be match up via checker symbol lookup, just return an object with just this accessor + return GetAllAccessorDeclarationsForDeclaration(accessor, []*Node{accessor}) + } + + accessorName := GetPropertyNameForPropertyNameNode(accessor.Name()) + accessorStatic := IsStatic(accessor) + var matches []*Node + for _, member := range parentDeclarations { + if !IsAccessor(member) || IsStatic(member) != accessorStatic { + continue + } + memberName := GetPropertyNameForPropertyNameNode(member.Name()) + if memberName == accessorName { + matches = append(matches, member) + } + } + return GetAllAccessorDeclarationsForDeclaration(accessor, matches) +} + +func IsAsyncFunction(node *Node) bool { + switch node.Kind { + case KindFunctionDeclaration, KindFunctionExpression, KindArrowFunction, KindMethodDeclaration: + data := node.BodyData() + return data.Body != nil && data.AsteriskToken == nil && HasSyntacticModifier(node, ModifierFlagsAsync) + } + return false +} + +/** + * Gets the most likely element type for a TypeNode. This is not an exhaustive test + * as it assumes a rest argument can only be an array type (either T[], or Array). + * + * @param node The type node. + * + * @internal + */ +func GetRestParameterElementType(node *ParameterDeclarationNode) *Node { + if node == nil { + return node + } + if node.Kind == KindArrayType { + return node.AsArrayTypeNode().ElementType + } + if node.Kind == KindTypeReference && node.AsTypeReferenceNode().TypeArguments != nil { + return core.FirstOrNil(node.AsTypeReferenceNode().TypeArguments.Nodes) + } + return nil +} + +func isTagName(node *Node) bool { + return node.Parent != nil && IsJSDocTag(node.Parent) && node.Parent.TagName() == node +} + +// We want to store any numbers/strings if they were a name that could be +// related to a declaration. So, if we have 'import x = require("something")' +// then we want 'something' to be in the name table. Similarly, if we have +// "a['propname']" then we want to store "propname" in the name table. +func literalIsName(node *Node) bool { + return IsDeclarationName(node) || + node.Parent.Kind == KindExternalModuleReference || + isArgumentOfElementAccessExpression(node) || + IsLiteralComputedPropertyDeclarationName(node) +} + +func isArgumentOfElementAccessExpression(node *Node) bool { + return node != nil && node.Parent != nil && + node.Parent.Kind == KindElementAccessExpression && + node.Parent.AsElementAccessExpression().ArgumentExpression == node +} diff --git a/pkg/binder/binder.go b/pkg/binder/binder.go index 0b6fa47a1..9f14c2499 100644 --- a/pkg/binder/binder.go +++ b/pkg/binder/binder.go @@ -2648,15 +2648,6 @@ func getOptionalSymbolFlagForNode(node *ast.Node) ast.SymbolFlags { return core.IfElse(postfixToken != nil && postfixToken.Kind == ast.KindQuestionToken, ast.SymbolFlagsOptional, ast.SymbolFlagsNone) } -func isAsyncFunction(node *ast.Node) bool { - switch node.Kind { - case ast.KindFunctionDeclaration, ast.KindFunctionExpression, ast.KindArrowFunction, ast.KindMethodDeclaration: - data := node.BodyData() - return data.Body != nil && data.AsteriskToken == nil && ast.HasSyntacticModifier(node, ast.ModifierFlagsAsync) - } - return false -} - func isFunctionSymbol(symbol *ast.Symbol) bool { d := symbol.ValueDeclaration if d != nil { diff --git a/pkg/checker/checker.go b/pkg/checker/checker.go index 930fd57d5..c0468b704 100644 --- a/pkg/checker/checker.go +++ b/pkg/checker/checker.go @@ -4547,7 +4547,7 @@ func (c *Checker) checkMembersForOverrideModifier(node *ast.Node, t *Type, typeW } baseStaticType := c.getBaseConstructorTypeOfClass(t) for _, member := range node.Members() { - if !hasAmbientModifier(member) { + if !ast.HasAmbientModifier(member) { if ast.IsConstructorDeclaration(member) { for _, param := range member.Parameters() { if ast.IsParameterPropertyDeclaration(param, member) { @@ -4600,7 +4600,7 @@ func (c *Checker) checkMemberForOverrideModifier(node *ast.Node, staticType *Typ return } if baseProp != nil && len(baseProp.Declarations) != 0 && !memberHasOverrideModifier && c.compilerOptions.NoImplicitOverride.IsTrue() && node.Flags&ast.NodeFlagsAmbient == 0 { - baseHasAbstract := core.Some(baseProp.Declarations, hasAbstractModifier) + baseHasAbstract := core.Some(baseProp.Declarations, ast.HasAbstractModifier) if !baseHasAbstract { message := core.IfElse(ast.IsParameter(member), core.IfElse(isJs, diagnostics.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0, diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0), @@ -4608,7 +4608,7 @@ func (c *Checker) checkMemberForOverrideModifier(node *ast.Node, staticType *Typ c.error(member, message, c.TypeToString(baseWithThis)) return } - if hasAbstractModifier(member) && baseHasAbstract { + if ast.HasAbstractModifier(member) && baseHasAbstract { c.error(member, diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0, c.TypeToString(baseWithThis)) } } @@ -4790,7 +4790,7 @@ func (c *Checker) checkPropertyInitialization(node *ast.Node) { } func (c *Checker) isPropertyWithoutInitializer(node *ast.Node) bool { - return ast.IsPropertyDeclaration(node) && !hasAbstractModifier(node) && !isExclamationToken(node.PostfixToken()) && node.Initializer() == nil + return ast.IsPropertyDeclaration(node) && !ast.HasAbstractModifier(node) && !isExclamationToken(node.PostfixToken()) && node.Initializer() == nil } func (c *Checker) isPropertyInitializedInStaticBlocks(propName *ast.Node, propType *Type, staticBlocks []*ast.Node, startPos int, endPos int) bool { @@ -5822,7 +5822,7 @@ func (c *Checker) checkVarDeclaredNamesNotShadowed(node *ast.Node) { func (c *Checker) checkDecorators(node *ast.Node) { // skip this check for nodes that cannot have decorators. These should have already had an error reported by // checkGrammarModifiers. - if !ast.CanHaveDecorators(node) || !ast.HasDecorators(node) || !nodeCanBeDecorated(c.legacyDecorators, node, node.Parent, node.Parent.Parent) { + if !ast.CanHaveDecorators(node) || !ast.HasDecorators(node) || !ast.NodeCanBeDecorated(c.legacyDecorators, node, node.Parent, node.Parent.Parent) { return } firstDecorator := core.Find(node.ModifierNodes(), ast.IsDecorator) @@ -21282,56 +21282,6 @@ func isConflictingPrivateProperty(prop *ast.Symbol) bool { return prop.ValueDeclaration == nil && prop.CheckFlags&ast.CheckFlagsContainsPrivate != 0 } -type allAccessorDeclarations struct { - firstAccessor *ast.AccessorDeclaration - secondAccessor *ast.AccessorDeclaration - setAccessor *ast.SetAccessorDeclaration - getAccessor *ast.GetAccessorDeclaration -} - -func (c *Checker) getAllAccessorDeclarationsForDeclaration(accessor *ast.AccessorDeclaration) allAccessorDeclarations { - var otherKind ast.Kind - if accessor.Kind == ast.KindSetAccessor { - otherKind = ast.KindGetAccessor - } else if accessor.Kind == ast.KindGetAccessor { - otherKind = ast.KindSetAccessor - } else { - panic(fmt.Sprintf("Unexpected node kind %q", accessor.Kind)) - } - otherAccessor := ast.GetDeclarationOfKind(c.getSymbolOfDeclaration(accessor), otherKind) - - var firstAccessor *ast.AccessorDeclaration - var secondAccessor *ast.AccessorDeclaration - if otherAccessor != nil && (otherAccessor.Pos() < accessor.Pos()) { - firstAccessor = otherAccessor - secondAccessor = accessor - } else { - firstAccessor = accessor - secondAccessor = otherAccessor - } - - var setAccessor *ast.SetAccessorDeclaration - var getAccessor *ast.GetAccessorDeclaration - if accessor.Kind == ast.KindSetAccessor { - setAccessor = accessor.AsSetAccessorDeclaration() - if otherAccessor != nil { - getAccessor = otherAccessor.AsGetAccessorDeclaration() - } - } else { - getAccessor = accessor.AsGetAccessorDeclaration() - if otherAccessor != nil { - setAccessor = otherAccessor.AsSetAccessorDeclaration() - } - } - - return allAccessorDeclarations{ - firstAccessor: firstAccessor, - secondAccessor: secondAccessor, - setAccessor: setAccessor, - getAccessor: getAccessor, - } -} - func (c *Checker) getTypeArguments(t *Type) []*Type { d := t.AsTypeReference() if d.resolvedTypeArguments == nil { @@ -27518,7 +27468,7 @@ func (c *Checker) markLinkedReferences(location *ast.Node, hint ReferenceHint, p if !c.compilerOptions.EmitDecoratorMetadata.IsTrue() { return } - if !ast.CanHaveDecorators(location) || !ast.HasDecorators(location) || location.Modifiers() == nil || !nodeCanBeDecorated(c.legacyDecorators, location, location.Parent, location.Parent.Parent) { + if !ast.CanHaveDecorators(location) || !ast.HasDecorators(location) || location.Modifiers() == nil || !ast.NodeCanBeDecorated(c.legacyDecorators, location, location.Parent, location.Parent.Parent) { return } @@ -27731,7 +27681,119 @@ func (c *Checker) markExportSpecifierAliasReferenced(location *ast.ExportSpecifi } func (c *Checker) markDecoratorAliasReferenced(node *ast.Node /*HasDecorators*/) { - // !!! Implement if/when we support emitDecoratorMetadata + if c.compilerOptions.EmitDecoratorMetadata.IsFalseOrUnknown() { + return + } + firstDecorator := core.FirstOrNil(node.Decorators()) + if firstDecorator == nil { + return + } + + // c.checkExternalEmitHelpers(firstDecorator, ExternalEmitHelpersMetadata) // !!! `importHelpers` checking missing? + + // we only need to perform these checks if we are emitting serialized type metadata for the target of a decorator. + switch node.Kind { + case ast.KindClassDeclaration: + ctor := ast.GetFirstConstructorWithBody(node) + if ctor != nil { + for _, p := range ctor.Parameters() { + c.markDecoratorMedataDataTypeNodeAsReferenced(c.getParameterTypeNodeForDecoratorCheck(p)) + } + } + case ast.KindGetAccessor, ast.KindSetAccessor: + otherKind := ast.KindSetAccessor + if node.Kind == ast.KindSetAccessor { + otherKind = ast.KindGetAccessor + } + otherAccessor := ast.GetDeclarationOfKind(c.getSymbolOfDeclaration(node), otherKind) + annotation := c.getAnnotatedAccessorTypeNode(node) + if annotation == nil && otherAccessor != nil { + annotation = c.getAnnotatedAccessorTypeNode(otherAccessor) + } + c.markDecoratorMedataDataTypeNodeAsReferenced(annotation) + case ast.KindMethodDeclaration: + for _, p := range node.Parameters() { + c.markDecoratorMedataDataTypeNodeAsReferenced(c.getParameterTypeNodeForDecoratorCheck(p)) + } + c.markDecoratorMedataDataTypeNodeAsReferenced(node.Type()) + case ast.KindPropertyDeclaration: + c.markDecoratorMedataDataTypeNodeAsReferenced(node.Type()) + case ast.KindParameter: + c.markDecoratorMedataDataTypeNodeAsReferenced(c.getParameterTypeNodeForDecoratorCheck(node)) + containingSignature := node.Parent + for _, p := range containingSignature.Parameters() { + c.markDecoratorMedataDataTypeNodeAsReferenced(c.getParameterTypeNodeForDecoratorCheck(p)) + } + c.markDecoratorMedataDataTypeNodeAsReferenced(containingSignature.Type()) + } +} + +func (c *Checker) getParameterTypeNodeForDecoratorCheck(node *ast.ParameterDeclarationNode) *ast.Node { + typeNode := node.Type() + if node.AsParameterDeclaration().DotDotDotToken != nil { + return ast.GetRestParameterElementType(typeNode) + } + return typeNode +} + +func (c *Checker) markDecoratorMedataDataTypeNodeAsReferenced(node *ast.Node /*TypeNode*/) { + entityName := c.getEntityNameForDecoratorMetadata(node) + if entityName != nil && ast.IsEntityName(entityName) { + c.markEntityNameOrEntityExpressionAsReference(entityName, true) + } +} + +func (c *Checker) getEntityNameForDecoratorMetadata(node *ast.Node) *ast.Node { + if node == nil { + return node + } + switch node.Kind { + case ast.KindIntersectionType: + return c.getEntityNameForDecoratorMetadataFromTypeList(node.AsIntersectionTypeNode().Types.Nodes) + case ast.KindUnionType: + return c.getEntityNameForDecoratorMetadataFromTypeList(node.AsUnionTypeNode().Types.Nodes) + case ast.KindConditionalType: + return c.getEntityNameForDecoratorMetadataFromTypeList([]*ast.Node{node.AsConditionalTypeNode().TrueType, node.AsConditionalTypeNode().FalseType}) + case ast.KindParenthesizedType: + return c.getEntityNameForDecoratorMetadata(node.AsParenthesizedTypeNode().Type) + case ast.KindNamedTupleMember: + return c.getEntityNameForDecoratorMetadata(node.AsNamedTupleMember().Type) + case ast.KindTypeReference: + return node.AsTypeReferenceNode().TypeName + } + return nil +} + +func (c *Checker) getEntityNameForDecoratorMetadataFromTypeList(typeNodes []*ast.Node) *ast.Node { + var commonEntityName *ast.Node + for _, typeNode := range typeNodes { + if typeNode.Kind == ast.KindNeverKeyword { + continue // Always elide `never` from the union/intersection if possible + } + if !c.strictNullChecks && (typeNode.Kind == ast.KindLiteralType && typeNode.AsLiteralTypeNode().Literal.Kind == ast.KindNullKeyword || typeNode.Kind == ast.KindUndefinedKeyword) { + continue // Elide null and undefined from unions for metadata, just like what we did prior to the implementation of strict null checks + } + individualEntityName := c.getEntityNameForDecoratorMetadata(typeNode) + if individualEntityName == nil { + // Individual is something like string number + // So it would be serialized to either that type or object + // Safe to return here + return nil + } + + if commonEntityName == nil { + commonEntityName = individualEntityName + } else { + // Note this is in sync with the transformation that happens for type node. + // Keep this in sync with serializeUnionOrIntersectionType + // Verify if they refer to same entity and is identifier + // return undefined if they dont match because we would emit object + if !ast.IsIdentifier(commonEntityName) || !ast.IsIdentifier(individualEntityName) || commonEntityName.AsIdentifier().Text != individualEntityName.AsIdentifier().Text { + return nil + } + } + } + return commonEntityName } func (c *Checker) markAliasReferenced(symbol *ast.Symbol, location *ast.Node) { diff --git a/pkg/checker/emitresolver.go b/pkg/checker/emitresolver.go index 1eebff79b..770988042 100644 --- a/pkg/checker/emitresolver.go +++ b/pkg/checker/emitresolver.go @@ -1116,3 +1116,95 @@ func (r *EmitResolver) GetConstantValue(node *ast.Node) any { defer r.checkerMu.Unlock() return r.checker.GetConstantValue(node) } + +func (r *EmitResolver) GetTypeReferenceSerializationKind(typeName *ast.Node, location *ast.Node) printer.TypeReferenceSerializationKind { + // typeName = emitContext.ParseNode(typeName) + // location = emitContext.ParseNode(location) + r.checkerMu.Lock() + defer r.checkerMu.Unlock() + + if typeName == nil || location == nil { + return printer.TypeReferenceSerializationKindUnknown + } + + // Resolve the symbol as a value to ensure the type can be reached at runtime during emit. + isTypeOnly := false + if ast.IsQualifiedName(typeName) { + rootValueSymbol := r.checker.resolveEntityName(ast.GetFirstIdentifier(typeName), ast.SymbolFlagsValue, true, true, location) + + if rootValueSymbol != nil && len(rootValueSymbol.Declarations) > 0 { + isTypeOnly = core.Every(rootValueSymbol.Declarations, ast.IsTypeOnlyImportOrExportDeclaration) + } + } + valueSymbol := r.checker.resolveEntityName(typeName, ast.SymbolFlagsValue, true, true, location) + resolvedValueSymbol := valueSymbol + if valueSymbol != nil && valueSymbol.Flags&ast.SymbolFlagsAlias != 0 { + resolvedValueSymbol = r.checker.resolveAlias(valueSymbol) + } + + isTypeOnly = isTypeOnly || (valueSymbol != nil && r.checker.getTypeOnlyAliasDeclarationEx(valueSymbol, ast.SymbolFlagsValue) != nil) + + // Resolve the symbol as a type so that we can provide a more useful hint for the type serializer. + typeSymbol := r.checker.resolveEntityName(typeName, ast.SymbolFlagsType, true, true, location) + resolvedTypeSymbol := typeSymbol + if typeSymbol != nil && typeSymbol.Flags&ast.SymbolFlagsAlias != 0 { + resolvedTypeSymbol = r.checker.resolveAlias(typeSymbol) + } + // In case the value symbol can't be resolved (e.g. because of missing declarations), use type symbol for reachability check. + isTypeOnly = isTypeOnly || (typeSymbol != nil && r.checker.getTypeOnlyAliasDeclarationEx(typeSymbol, ast.SymbolFlagsType) != nil) + + if resolvedValueSymbol != nil && resolvedValueSymbol == resolvedTypeSymbol { + globalPromiseSymbol := r.checker.getGlobalPromiseConstructorSymbol() + if globalPromiseSymbol != nil && resolvedValueSymbol == globalPromiseSymbol { + return printer.TypeReferenceSerializationKindPromise + } + + constructorType := r.checker.getTypeOfSymbol(resolvedValueSymbol) + if constructorType != nil && r.checker.isConstructorType(constructorType) { + if isTypeOnly { + return printer.TypeReferenceSerializationKindTypeWithCallSignature + } + return printer.TypeReferenceSerializationKindTypeWithConstructSignatureAndValue + } + } + + // We might not be able to resolve type symbol so use unknown type in that case (eg error case) + if resolvedTypeSymbol == nil { + if isTypeOnly { + return printer.TypeReferenceSerializationKindObjectType + } + return printer.TypeReferenceSerializationKindUnknown + } + + type_ := r.checker.getDeclaredTypeOfSymbol(resolvedTypeSymbol) + if r.checker.isErrorType(type_) { + if isTypeOnly { + return printer.TypeReferenceSerializationKindObjectType + } + return printer.TypeReferenceSerializationKindUnknown + } + + if type_.flags&TypeFlagsAnyOrUnknown != 0 { + return printer.TypeReferenceSerializationKindObjectType + } else if r.checker.isTypeAssignableToKind(type_, TypeFlagsVoid|TypeFlagsNullable|TypeFlagsNever) { + return printer.TypeReferenceSerializationKindVoidNullableOrNeverType + } else if r.checker.isTypeAssignableToKind(type_, TypeFlagsBooleanLike) { + return printer.TypeReferenceSerializationKindBooleanType + } else if r.checker.isTypeAssignableToKind(type_, TypeFlagsNumberLike) { + return printer.TypeReferenceSerializationKindNumberLikeType + } else if r.checker.isTypeAssignableToKind(type_, TypeFlagsBigIntLike) { + return printer.TypeReferenceSerializationKindBigIntLikeType + } else if r.checker.isTypeAssignableToKind(type_, TypeFlagsStringLike) { + return printer.TypeReferenceSerializationKindStringLikeType + } else if isTupleType(type_) { + return printer.TypeReferenceSerializationKindArrayLikeType + } else if r.checker.isTypeAssignableToKind(type_, TypeFlagsESSymbolLike) { + return printer.TypeReferenceSerializationKindESSymbolType + } else if r.checker.isFunctionType(type_) { + return printer.TypeReferenceSerializationKindTypeWithCallSignature + } else if r.checker.isArrayType(type_) { + return printer.TypeReferenceSerializationKindArrayLikeType + } else { + return printer.TypeReferenceSerializationKindObjectType + } +} diff --git a/pkg/checker/grammarchecks.go b/pkg/checker/grammarchecks.go index a42fbfd96..b156fcc30 100644 --- a/pkg/checker/grammarchecks.go +++ b/pkg/checker/grammarchecks.go @@ -235,15 +235,15 @@ func (c *Checker) checkGrammarModifiers(node *ast.Node /*Union[HasModifiers, Has modifiers := node.ModifierNodes() for _, modifier := range modifiers { if ast.IsDecorator(modifier) { - if !nodeCanBeDecorated(c.legacyDecorators, node, node.Parent, node.Parent.Parent) { + if !ast.NodeCanBeDecorated(c.legacyDecorators, node, node.Parent, node.Parent.Parent) { if node.Kind == ast.KindMethodDeclaration && !ast.NodeIsPresent(node.Body()) { return c.grammarErrorOnFirstToken(node, diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload) } else { return c.grammarErrorOnFirstToken(node, diagnostics.Decorators_are_not_valid_here) } } else if c.legacyDecorators && (node.Kind == ast.KindGetAccessor || node.Kind == ast.KindSetAccessor) { - accessors := c.getAllAccessorDeclarationsForDeclaration(node) - if ast.HasDecorators(accessors.firstAccessor) && node == accessors.secondAccessor { + accessors := ast.GetAllAccessorDeclarationsForDeclaration(node, c.getSymbolOfDeclaration(node).Declarations) + if ast.HasDecorators(accessors.FirstAccessor) && node == accessors.SecondAccessor { return c.grammarErrorOnFirstToken(node, diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name) } } @@ -1943,7 +1943,7 @@ func (c *Checker) checkGrammarProperty(node *ast.Node /*Union[PropertyDeclaratio return c.grammarErrorOnNode(postfixToken, diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions) case propDecl.Type == nil: return c.grammarErrorOnNode(postfixToken, diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations) - case !ast.IsClassLike(node.Parent) || node.Flags&ast.NodeFlagsAmbient != 0 || ast.IsStatic(node) || hasAbstractModifier(node): + case !ast.IsClassLike(node.Parent) || node.Flags&ast.NodeFlagsAmbient != 0 || ast.IsStatic(node) || ast.HasAbstractModifier(node): return c.grammarErrorOnNode(postfixToken, diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context) } } diff --git a/pkg/checker/utilities.go b/pkg/checker/utilities.go index e4121566a..25609e883 100644 --- a/pkg/checker/utilities.go +++ b/pkg/checker/utilities.go @@ -60,14 +60,6 @@ func hasOverrideModifier(node *ast.Node) bool { return ast.HasSyntacticModifier(node, ast.ModifierFlagsOverride) } -func hasAbstractModifier(node *ast.Node) bool { - return ast.HasSyntacticModifier(node, ast.ModifierFlagsAbstract) -} - -func hasAmbientModifier(node *ast.Node) bool { - return ast.HasSyntacticModifier(node, ast.ModifierFlagsAmbient) -} - func hasAsyncModifier(node *ast.Node) bool { return ast.HasSyntacticModifier(node, ast.ModifierFlagsAsync) } @@ -169,40 +161,6 @@ func IsInTypeQuery(node *ast.Node) bool { }) != nil } -func nodeCanBeDecorated(useLegacyDecorators bool, node *ast.Node, parent *ast.Node, grandparent *ast.Node) bool { - // private names cannot be used with decorators yet - if useLegacyDecorators && node.Name() != nil && ast.IsPrivateIdentifier(node.Name()) { - return false - } - switch node.Kind { - case ast.KindClassDeclaration: - // class declarations are valid targets - return true - case ast.KindClassExpression: - // class expressions are valid targets for native decorators - return !useLegacyDecorators - case ast.KindPropertyDeclaration: - // property declarations are valid if their parent is a class declaration. - return parent != nil && (useLegacyDecorators && ast.IsClassDeclaration(parent) || - !useLegacyDecorators && ast.IsClassLike(parent) && !hasAbstractModifier(node) && !hasAmbientModifier(node)) - case ast.KindGetAccessor, ast.KindSetAccessor, ast.KindMethodDeclaration: - // if this method has a body and its parent is a class declaration, this is a valid target. - return parent != nil && node.Body() != nil && (useLegacyDecorators && ast.IsClassDeclaration(parent) || - !useLegacyDecorators && ast.IsClassLike(parent)) - case ast.KindParameter: - // TODO(rbuckton): Parameter decorator support for ES decorators must wait until it is standardized - if !useLegacyDecorators { - return false - } - // if the parameter's parent has a body and its grandparent is a class declaration, this is a valid target. - return parent != nil && parent.Body() != nil && - (parent.Kind == ast.KindConstructor || parent.Kind == ast.KindMethodDeclaration || parent.Kind == ast.KindSetAccessor) && - ast.GetThisParameter(parent) != node && grandparent != nil && grandparent.Kind == ast.KindClassDeclaration - } - - return false -} - func canHaveLocals(node *ast.Node) bool { switch node.Kind { case ast.KindArrowFunction, ast.KindBlock, ast.KindCallSignature, ast.KindCaseBlock, ast.KindCatchClause, @@ -1764,7 +1722,7 @@ func (c *Checker) isUncheckedJSSuggestion(node *ast.Node, suggestion *ast.Symbol suggestion.ValueDeclaration == nil || !ast.IsClassLike(suggestion.ValueDeclaration) || len(ast.GetExtendsHeritageClauseElements(suggestion.ValueDeclaration)) != 0 || - classOrConstructorParameterIsDecorated(suggestion.ValueDeclaration) + ast.ClassOrConstructorParameterIsDecorated(false, suggestion.ValueDeclaration) return !(file != declarationFile && declarationFile != nil && ast.IsGlobalSourceFile(declarationFile.AsNode())) && !(excludeClasses && suggestion != nil && suggestion.Flags&ast.SymbolFlagsClass != 0 && suggestionHasNoExtendsOrDecorators) && !(node != nil && excludeClasses && ast.IsPropertyAccessExpression(node) && node.Expression().Kind == ast.KindThisKeyword && suggestionHasNoExtendsOrDecorators) @@ -1773,39 +1731,6 @@ func (c *Checker) isUncheckedJSSuggestion(node *ast.Node, suggestion *ast.Symbol return false } -func classOrConstructorParameterIsDecorated(node *ast.Node) bool { - if nodeIsDecorated(node, nil, nil) { - return true - } - constructor := ast.GetFirstConstructorWithBody(node) - return constructor != nil && childIsDecorated(constructor, node) -} - -func nodeIsDecorated(node *ast.Node, parent *ast.Node, grandparent *ast.Node) bool { - return ast.HasDecorators(node) && nodeCanBeDecorated(false, node, parent, grandparent) -} - -func nodeOrChildIsDecorated(node *ast.Node, parent *ast.Node, grandparent *ast.Node) bool { - return nodeIsDecorated(node, parent, grandparent) || childIsDecorated(node, parent) -} - -func childIsDecorated(node *ast.Node, parent *ast.Node) bool { - switch node.Kind { - case ast.KindClassDeclaration, ast.KindClassExpression: - return core.Some(node.Members(), func(m *ast.Node) bool { - return nodeOrChildIsDecorated(m, node, parent) - }) - case ast.KindMethodDeclaration, - ast.KindSetAccessor, - ast.KindConstructor: - return core.Some(node.Parameters(), func(p *ast.Node) bool { - return nodeIsDecorated(p, node, parent) - }) - default: - return false - } -} - // Returns if a type is or consists of a JSLiteral object type // In addition to objects which are directly literals, // * unions where every element is a jsliteral diff --git a/pkg/compiler/emitter.go b/pkg/compiler/emitter.go index 804a1194d..bd1e4fd66 100644 --- a/pkg/compiler/emitter.go +++ b/pkg/compiler/emitter.go @@ -85,7 +85,7 @@ func getScriptTransformers(emitContext *printer.EmitContext, host printer.EmitHo var emitResolver printer.EmitResolver var referenceResolver binder.ReferenceResolver - if importElisionEnabled || options.GetJSXTransformEnabled() || !options.GetIsolatedModules() { // full emit resolver is needed for import ellision and const enum inlining + if importElisionEnabled || options.GetJSXTransformEnabled() || !options.GetIsolatedModules() || options.EmitDecoratorMetadata.IsTrue() { // full emit resolver is needed for import ellision and const enum inlining emitResolver = host.GetEmitResolver() emitResolver.MarkLinkedReferencesRecursively(sourceFile) referenceResolver = emitResolver @@ -103,6 +103,11 @@ func getScriptTransformers(emitContext *printer.EmitContext, host printer.EmitHo // transform TypeScript syntax { + // use type nodes to add metadata decorators + if options.EmitDecoratorMetadata.IsTrue() { + tx = append(tx, tstransforms.NewMetadataTransformer(&opts)) + } + // erase types tx = append(tx, tstransforms.NewTypeEraserTransformer(&opts)) @@ -113,6 +118,10 @@ func getScriptTransformers(emitContext *printer.EmitContext, host printer.EmitHo // transform `enum`, `namespace`, and parameter properties tx = append(tx, tstransforms.NewRuntimeSyntaxTransformer(&opts)) + + if options.ExperimentalDecorators.IsTrue() { + tx = append(tx, tstransforms.NewLegacyDecoratorsTransformer(&opts)) + } } // !!! transform legacy decorator syntax @@ -163,6 +172,7 @@ func (e *emitter) emitJSFile(sourceFile *ast.SourceFile, jsFilePath string, sour SourceMap: options.SourceMap.IsTrue(), InlineSourceMap: options.InlineSourceMap.IsTrue(), InlineSources: options.InlineSources.IsTrue(), + Target: options.Target, // !!! } diff --git a/pkg/compiler/program.go b/pkg/compiler/program.go index 13fd22408..72b7e0754 100644 --- a/pkg/compiler/program.go +++ b/pkg/compiler/program.go @@ -830,7 +830,9 @@ func (p *Program) verifyCompilerOptions() { } } - // !!! emitDecoratorMetadata + if options.EmitDecoratorMetadata.IsTrue() && options.ExperimentalDecorators.IsFalseOrUnknown() { + createDiagnosticForOptionName(diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, "emitDecoratorMetadata", "experimentalDecorators") + } if options.JsxFactory != "" { if options.ReactNamespace != "" { diff --git a/pkg/execute/incremental/snapshot.go b/pkg/execute/incremental/snapshot.go index 24414daef..5acdb5b1d 100644 --- a/pkg/execute/incremental/snapshot.go +++ b/pkg/execute/incremental/snapshot.go @@ -29,7 +29,7 @@ func (f *FileInfo) AffectsGlobalScope() bool { return f.affectsGlo func (f *FileInfo) ImpliedNodeFormat() core.ResolutionMode { return f.impliedNodeFormat } func ComputeHash(text string, hashWithText bool) string { - hashBytes := xxh3.Hash128([]byte(text)).Bytes() + hashBytes := xxh3.HashString128(text).Bytes() hash := hex.EncodeToString(hashBytes[:]) if hashWithText { hash += "-" + text diff --git a/pkg/fourslash/_scripts/convertFourslash.mts b/pkg/fourslash/_scripts/convertFourslash.mts index 8d5aaaede..d958369d8 100644 --- a/pkg/fourslash/_scripts/convertFourslash.mts +++ b/pkg/fourslash/_scripts/convertFourslash.mts @@ -9,18 +9,12 @@ const stradaFourslashPath = path.resolve(import.meta.dirname, "../", "../", "../ let inputFileSet: Set | undefined; -const failingTestsPath = path.join(import.meta.dirname, "failingTests.txt"); const manualTestsPath = path.join(import.meta.dirname, "manualTests.txt"); const outputDir = path.join(import.meta.dirname, "../", "tests", "gen"); const unparsedFiles: string[] = []; -function getFailingTests(): Set { - const failingTestsList = fs.readFileSync(failingTestsPath, "utf-8").split("\n").map(line => line.trim().substring(4)).filter(line => line.length > 0); - return new Set(failingTestsList); -} - function getManualTests(): Set { if (!fs.existsSync(manualTestsPath)) { return new Set(); @@ -43,13 +37,13 @@ export function main() { fs.rmSync(outputDir, { recursive: true, force: true }); fs.mkdirSync(outputDir, { recursive: true }); - parseTypeScriptFiles(getFailingTests(), getManualTests(), stradaFourslashPath); + parseTypeScriptFiles(getManualTests(), stradaFourslashPath); console.log(unparsedFiles.join("\n")); const gofmt = which.sync("go"); cp.execFileSync(gofmt, ["tool", "mvdan.cc/gofumpt", "-lang=go1.25", "-w", outputDir]); } -function parseTypeScriptFiles(failingTests: Set, manualTests: Set, folder: string): void { +function parseTypeScriptFiles(manualTests: Set, folder: string): void { const files = fs.readdirSync(folder); files.forEach(file => { @@ -60,14 +54,14 @@ function parseTypeScriptFiles(failingTests: Set, manualTests: Set, test: GoTest, isServer: boolean): string { +function generateGoTest(test: GoTest, isServer: boolean): string { const testName = (test.name[0].toUpperCase() + test.name.substring(1)).replaceAll("-", "_").replaceAll(/[^a-zA-Z0-9_]/g, ""); const content = test.content; const commands = test.commands.map(cmd => generateCmd(cmd)).join("\n"); @@ -3305,8 +3299,8 @@ import ( ) func Test${testName}(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - ${failingTests.has(testName) ? "t.Skip()" : ""} defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = ${content} f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/_scripts/crashingTests.txt b/pkg/fourslash/_scripts/crashingTests.txt new file mode 100644 index 000000000..c8ceb4d30 --- /dev/null +++ b/pkg/fourslash/_scripts/crashingTests.txt @@ -0,0 +1,12 @@ +TestCompletionsAfterJSDoc +TestCompletionsImport_require_addToExisting +TestCompletionsUniqueSymbol_import +TestFindReferencesBindingPatternInJsdocNoCrash1 +TestFindReferencesBindingPatternInJsdocNoCrash2 +TestGetOccurrencesIfElseBroken +TestImportNameCodeFix_importType8 +TestJsdocLink2 +TestJsdocLink3 +TestJsdocLink6 +TestQuickInfoAlias +TestQuickInfoBindingPatternInJsdocNoCrash1 diff --git a/pkg/fourslash/_scripts/updateFailing.mts b/pkg/fourslash/_scripts/updateFailing.mts index 5ddf65585..f9a98379e 100644 --- a/pkg/fourslash/_scripts/updateFailing.mts +++ b/pkg/fourslash/_scripts/updateFailing.mts @@ -2,37 +2,42 @@ import * as cp from "child_process"; import * as fs from "fs"; import path from "path"; import which from "which"; -import { main as convertFourslash } from "./convertFourslash.mts"; const failingTestsPath = path.join(import.meta.dirname, "failingTests.txt"); +const crashingTestsPath = path.join(import.meta.dirname, "crashingTests.txt"); function main() { - const oldFailingTests = fs.readFileSync(failingTestsPath, "utf-8"); - fs.writeFileSync(failingTestsPath, "", "utf-8"); - convertFourslash(); const go = which.sync("go"); let testOutput: string; try { - testOutput = cp.execFileSync(go, ["test", "-v", "./internal/fourslash/tests/gen"], { encoding: "utf-8" }); + // Run tests with TSGO_FOURSLASH_IGNORE_FAILING=1 to run all tests including those in failingTests.txt + testOutput = cp.execFileSync(go, ["test", "-v", "./internal/fourslash/tests/gen"], { + encoding: "utf-8", + env: { ...process.env, TSGO_FOURSLASH_IGNORE_FAILING: "1" }, + }); } catch (error) { testOutput = (error as { stdout: string; }).stdout as string; } const panicRegex = /^panic/m; if (panicRegex.test(testOutput)) { - fs.writeFileSync(failingTestsPath, oldFailingTests, "utf-8"); throw new Error("Unrecovered panic detected in tests\n" + testOutput); } const failRegex = /--- FAIL: ([\S]+)/gm; const failingTests: string[] = []; + const crashingRegex = /^=== (?:NAME|CONT) ([\S]+)\n.*InternalError.*$/gm; + const crashingTests: string[] = []; let match; while ((match = failRegex.exec(testOutput)) !== null) { failingTests.push(match[1]); } + while ((match = crashingRegex.exec(testOutput)) !== null) { + crashingTests.push(match[1]); + } fs.writeFileSync(failingTestsPath, failingTests.sort((a, b) => a.localeCompare(b, "en-US")).join("\n") + "\n", "utf-8"); - convertFourslash(); + fs.writeFileSync(crashingTestsPath, crashingTests.sort((a, b) => a.localeCompare(b, "en-US")).join("\n") + "\n", "utf-8"); } main(); diff --git a/pkg/fourslash/skip_if_failing.go b/pkg/fourslash/skip_if_failing.go new file mode 100644 index 000000000..146509060 --- /dev/null +++ b/pkg/fourslash/skip_if_failing.go @@ -0,0 +1,53 @@ +package fourslash + +import ( + "bufio" + "os" + "path/filepath" + "runtime" + "strings" + "sync" + "testing" +) + +var failingTests = sync.OnceValue(func() map[string]struct{} { + failingTestsSet := make(map[string]struct{}) + + // Get the path to failingTests.txt relative to this source file + _, thisFile, _, ok := runtime.Caller(0) + if !ok { + return failingTestsSet + } + + failingTestsPath := filepath.Join(filepath.Dir(thisFile), "_scripts", "failingTests.txt") //nolint:forbidigo + + file, err := os.Open(failingTestsPath) //nolint:forbidigo + if err != nil { + return failingTestsSet + } + defer file.Close() //nolint:forbidigo + + scanner := bufio.NewScanner(file) + for scanner.Scan() { + line := strings.TrimSpace(scanner.Text()) + if line != "" { + failingTestsSet[line] = struct{}{} + } + } + return failingTestsSet +}) + +// SkipIfFailing checks if the current test is in the failingTests.txt file +// and skips it unless the TSGO_FOURSLASH_IGNORE_FAILING environment variable is set. +// This allows tests to be marked as failing without modifying the test files themselves. +func SkipIfFailing(t *testing.T) { + t.Helper() + + if os.Getenv("TSGO_FOURSLASH_IGNORE_FAILING") != "" { //nolint:forbidigo + return + } + + if _, found := failingTests()[t.Name()]; found { + t.Skip("Test is in failingTests.txt") + } +} diff --git a/pkg/fourslash/tests/gen/addDeclareToFunction_test.go b/pkg/fourslash/tests/gen/addDeclareToFunction_test.go index b12c50532..e54f2e124 100644 --- a/pkg/fourslash/tests/gen/addDeclareToFunction_test.go +++ b/pkg/fourslash/tests/gen/addDeclareToFunction_test.go @@ -8,8 +8,8 @@ import ( ) func TestAddDeclareToFunction(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/function parseInt(s/*2*/:string):number;` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/addDeclareToModule_test.go b/pkg/fourslash/tests/gen/addDeclareToModule_test.go index 1be0f7d26..7480fa0b4 100644 --- a/pkg/fourslash/tests/gen/addDeclareToModule_test.go +++ b/pkg/fourslash/tests/gen/addDeclareToModule_test.go @@ -8,8 +8,8 @@ import ( ) func TestAddDeclareToModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/**/module mAmbient { module m3 { } diff --git a/pkg/fourslash/tests/gen/addDuplicateSetter_test.go b/pkg/fourslash/tests/gen/addDuplicateSetter_test.go index f4b3de984..71b48720e 100644 --- a/pkg/fourslash/tests/gen/addDuplicateSetter_test.go +++ b/pkg/fourslash/tests/gen/addDuplicateSetter_test.go @@ -8,8 +8,8 @@ import ( ) func TestAddDuplicateSetter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { set foo(value) { } diff --git a/pkg/fourslash/tests/gen/addFunctionAboveMultiLineLambdaExpression_test.go b/pkg/fourslash/tests/gen/addFunctionAboveMultiLineLambdaExpression_test.go index c06269a40..bb022dd7e 100644 --- a/pkg/fourslash/tests/gen/addFunctionAboveMultiLineLambdaExpression_test.go +++ b/pkg/fourslash/tests/gen/addFunctionAboveMultiLineLambdaExpression_test.go @@ -8,8 +8,8 @@ import ( ) func TestAddFunctionAboveMultiLineLambdaExpression(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/**/ () => diff --git a/pkg/fourslash/tests/gen/addFunctionInDuplicatedConstructorClassBody_test.go b/pkg/fourslash/tests/gen/addFunctionInDuplicatedConstructorClassBody_test.go index c4a6eddb1..3cbda5fd0 100644 --- a/pkg/fourslash/tests/gen/addFunctionInDuplicatedConstructorClassBody_test.go +++ b/pkg/fourslash/tests/gen/addFunctionInDuplicatedConstructorClassBody_test.go @@ -8,8 +8,8 @@ import ( ) func TestAddFunctionInDuplicatedConstructorClassBody(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { constructor() { } diff --git a/pkg/fourslash/tests/gen/addInterfaceMemberAboveClass_test.go b/pkg/fourslash/tests/gen/addInterfaceMemberAboveClass_test.go index 003b85ec0..85fd74c62 100644 --- a/pkg/fourslash/tests/gen/addInterfaceMemberAboveClass_test.go +++ b/pkg/fourslash/tests/gen/addInterfaceMemberAboveClass_test.go @@ -8,8 +8,8 @@ import ( ) func TestAddInterfaceMemberAboveClass(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = ` interface Intersection { diff --git a/pkg/fourslash/tests/gen/addInterfaceToNotSatisfyConstraint_test.go b/pkg/fourslash/tests/gen/addInterfaceToNotSatisfyConstraint_test.go index cf84ade9b..5d949b1c0 100644 --- a/pkg/fourslash/tests/gen/addInterfaceToNotSatisfyConstraint_test.go +++ b/pkg/fourslash/tests/gen/addInterfaceToNotSatisfyConstraint_test.go @@ -8,8 +8,8 @@ import ( ) func TestAddInterfaceToNotSatisfyConstraint(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface A { a: number; diff --git a/pkg/fourslash/tests/gen/addMemberToModule_test.go b/pkg/fourslash/tests/gen/addMemberToModule_test.go index e70dbf10b..c046b505a 100644 --- a/pkg/fourslash/tests/gen/addMemberToModule_test.go +++ b/pkg/fourslash/tests/gen/addMemberToModule_test.go @@ -8,8 +8,8 @@ import ( ) func TestAddMemberToModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module A { /*var*/ diff --git a/pkg/fourslash/tests/gen/addSignaturePartial_test.go b/pkg/fourslash/tests/gen/addSignaturePartial_test.go index 2f44f1fe4..0cee99e46 100644 --- a/pkg/fourslash/tests/gen/addSignaturePartial_test.go +++ b/pkg/fourslash/tests/gen/addSignaturePartial_test.go @@ -8,8 +8,8 @@ import ( ) func TestAddSignaturePartial(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/aliasMergingWithNamespace_test.go b/pkg/fourslash/tests/gen/aliasMergingWithNamespace_test.go index b2aa0fe08..35651366b 100644 --- a/pkg/fourslash/tests/gen/aliasMergingWithNamespace_test.go +++ b/pkg/fourslash/tests/gen/aliasMergingWithNamespace_test.go @@ -8,8 +8,8 @@ import ( ) func TestAliasMergingWithNamespace(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `namespace bar { } import bar = bar/**/;` diff --git a/pkg/fourslash/tests/gen/aliasToVarUsedAsType_test.go b/pkg/fourslash/tests/gen/aliasToVarUsedAsType_test.go index d8cd73f73..b228695f2 100644 --- a/pkg/fourslash/tests/gen/aliasToVarUsedAsType_test.go +++ b/pkg/fourslash/tests/gen/aliasToVarUsedAsType_test.go @@ -8,8 +8,8 @@ import ( ) func TestAliasToVarUsedAsType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/**/ module A { diff --git a/pkg/fourslash/tests/gen/allowLateBoundSymbolsOverwriteEarlyBoundSymbols_test.go b/pkg/fourslash/tests/gen/allowLateBoundSymbolsOverwriteEarlyBoundSymbols_test.go index c3d121134..8bdfaf3cd 100644 --- a/pkg/fourslash/tests/gen/allowLateBoundSymbolsOverwriteEarlyBoundSymbols_test.go +++ b/pkg/fourslash/tests/gen/allowLateBoundSymbolsOverwriteEarlyBoundSymbols_test.go @@ -8,8 +8,8 @@ import ( ) func TestAllowLateBoundSymbolsOverwriteEarlyBoundSymbols(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export {}; const prop = "abc"; diff --git a/pkg/fourslash/tests/gen/ambientShorthandFindAllRefs_test.go b/pkg/fourslash/tests/gen/ambientShorthandFindAllRefs_test.go index 1825db59f..65cd9132f 100644 --- a/pkg/fourslash/tests/gen/ambientShorthandFindAllRefs_test.go +++ b/pkg/fourslash/tests/gen/ambientShorthandFindAllRefs_test.go @@ -8,8 +8,8 @@ import ( ) func TestAmbientShorthandFindAllRefs(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: declarations.d.ts declare module "jquery"; diff --git a/pkg/fourslash/tests/gen/ambientShorthandGotoDefinition_test.go b/pkg/fourslash/tests/gen/ambientShorthandGotoDefinition_test.go index dafae7b4a..e8b554195 100644 --- a/pkg/fourslash/tests/gen/ambientShorthandGotoDefinition_test.go +++ b/pkg/fourslash/tests/gen/ambientShorthandGotoDefinition_test.go @@ -8,8 +8,8 @@ import ( ) func TestAmbientShorthandGotoDefinition(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: declarations.d.ts declare module /*module*/"jquery" diff --git a/pkg/fourslash/tests/gen/ambientVariablesWithSameName_test.go b/pkg/fourslash/tests/gen/ambientVariablesWithSameName_test.go index 35c3adff9..794247da2 100644 --- a/pkg/fourslash/tests/gen/ambientVariablesWithSameName_test.go +++ b/pkg/fourslash/tests/gen/ambientVariablesWithSameName_test.go @@ -8,8 +8,8 @@ import ( ) func TestAmbientVariablesWithSameName(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare module M { export var x: string; diff --git a/pkg/fourslash/tests/gen/annotateWithTypeFromJSDoc2_test.go b/pkg/fourslash/tests/gen/annotateWithTypeFromJSDoc2_test.go index 0955aa8a6..ecbf9aa36 100644 --- a/pkg/fourslash/tests/gen/annotateWithTypeFromJSDoc2_test.go +++ b/pkg/fourslash/tests/gen/annotateWithTypeFromJSDoc2_test.go @@ -8,8 +8,8 @@ import ( ) func TestAnnotateWithTypeFromJSDoc2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: test123.ts /** @type {number} */ diff --git a/pkg/fourslash/tests/gen/argumentsAreAvailableAfterEditsAtEndOfFunction_test.go b/pkg/fourslash/tests/gen/argumentsAreAvailableAfterEditsAtEndOfFunction_test.go index cd9b36489..83e430831 100644 --- a/pkg/fourslash/tests/gen/argumentsAreAvailableAfterEditsAtEndOfFunction_test.go +++ b/pkg/fourslash/tests/gen/argumentsAreAvailableAfterEditsAtEndOfFunction_test.go @@ -10,8 +10,8 @@ import ( ) func TestArgumentsAreAvailableAfterEditsAtEndOfFunction(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module Test1 { class Person { diff --git a/pkg/fourslash/tests/gen/argumentsIndexExpression_test.go b/pkg/fourslash/tests/gen/argumentsIndexExpression_test.go index b1149af8e..381921b79 100644 --- a/pkg/fourslash/tests/gen/argumentsIndexExpression_test.go +++ b/pkg/fourslash/tests/gen/argumentsIndexExpression_test.go @@ -8,8 +8,8 @@ import ( ) func TestArgumentsIndexExpression(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f() { var x = /**/arguments[0]; diff --git a/pkg/fourslash/tests/gen/arityErrorAfterStringCompletions_test.go b/pkg/fourslash/tests/gen/arityErrorAfterStringCompletions_test.go index 7a8d95293..fd0b665c1 100644 --- a/pkg/fourslash/tests/gen/arityErrorAfterStringCompletions_test.go +++ b/pkg/fourslash/tests/gen/arityErrorAfterStringCompletions_test.go @@ -9,8 +9,8 @@ import ( ) func TestArityErrorAfterStringCompletions(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true diff --git a/pkg/fourslash/tests/gen/arrayCallAndConstructTypings_test.go b/pkg/fourslash/tests/gen/arrayCallAndConstructTypings_test.go index bd0feeec5..8c08a506d 100644 --- a/pkg/fourslash/tests/gen/arrayCallAndConstructTypings_test.go +++ b/pkg/fourslash/tests/gen/arrayCallAndConstructTypings_test.go @@ -8,8 +8,8 @@ import ( ) func TestArrayCallAndConstructTypings(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var a/*1*/1 = new Array(); var a/*2*/2 = new Array(1); diff --git a/pkg/fourslash/tests/gen/asConstRefsNoErrors1_test.go b/pkg/fourslash/tests/gen/asConstRefsNoErrors1_test.go index 62d67e067..a4fa8a6bb 100644 --- a/pkg/fourslash/tests/gen/asConstRefsNoErrors1_test.go +++ b/pkg/fourslash/tests/gen/asConstRefsNoErrors1_test.go @@ -8,8 +8,8 @@ import ( ) func TestAsConstRefsNoErrors1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Tex { type = 'Text' as /**/const; diff --git a/pkg/fourslash/tests/gen/asConstRefsNoErrors2_test.go b/pkg/fourslash/tests/gen/asConstRefsNoErrors2_test.go index 045c99d74..df5370e6f 100644 --- a/pkg/fourslash/tests/gen/asConstRefsNoErrors2_test.go +++ b/pkg/fourslash/tests/gen/asConstRefsNoErrors2_test.go @@ -8,8 +8,8 @@ import ( ) func TestAsConstRefsNoErrors2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Tex { type = 'Text'; diff --git a/pkg/fourslash/tests/gen/asConstRefsNoErrors3_test.go b/pkg/fourslash/tests/gen/asConstRefsNoErrors3_test.go index 4f503025c..bb68b878e 100644 --- a/pkg/fourslash/tests/gen/asConstRefsNoErrors3_test.go +++ b/pkg/fourslash/tests/gen/asConstRefsNoErrors3_test.go @@ -8,8 +8,8 @@ import ( ) func TestAsConstRefsNoErrors3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @checkJs: true // @Filename: file.js diff --git a/pkg/fourslash/tests/gen/asOperatorCompletion2_test.go b/pkg/fourslash/tests/gen/asOperatorCompletion2_test.go index d90d4a839..c47c3760c 100644 --- a/pkg/fourslash/tests/gen/asOperatorCompletion2_test.go +++ b/pkg/fourslash/tests/gen/asOperatorCompletion2_test.go @@ -9,8 +9,8 @@ import ( ) func TestAsOperatorCompletion2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type T = number; var x; diff --git a/pkg/fourslash/tests/gen/asOperatorCompletion3_test.go b/pkg/fourslash/tests/gen/asOperatorCompletion3_test.go index aaf8a22b2..6fbf35d86 100644 --- a/pkg/fourslash/tests/gen/asOperatorCompletion3_test.go +++ b/pkg/fourslash/tests/gen/asOperatorCompletion3_test.go @@ -9,8 +9,8 @@ import ( ) func TestAsOperatorCompletion3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type T = number; var x; diff --git a/pkg/fourslash/tests/gen/asOperatorCompletion_test.go b/pkg/fourslash/tests/gen/asOperatorCompletion_test.go index 9ca5ed81b..6e64a2ce6 100644 --- a/pkg/fourslash/tests/gen/asOperatorCompletion_test.go +++ b/pkg/fourslash/tests/gen/asOperatorCompletion_test.go @@ -9,8 +9,8 @@ import ( ) func TestAsOperatorCompletion(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type T = number; var x; diff --git a/pkg/fourslash/tests/gen/assertContextualType_test.go b/pkg/fourslash/tests/gen/assertContextualType_test.go index d4fc243e7..7cce4b878 100644 --- a/pkg/fourslash/tests/gen/assertContextualType_test.go +++ b/pkg/fourslash/tests/gen/assertContextualType_test.go @@ -8,8 +8,8 @@ import ( ) func TestAssertContextualType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `<(aa: number) =>void >(function myFn(b/**/b) { });` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/augmentedTypesClass1_test.go b/pkg/fourslash/tests/gen/augmentedTypesClass1_test.go index fad8ae8f6..d21e52e2a 100644 --- a/pkg/fourslash/tests/gen/augmentedTypesClass1_test.go +++ b/pkg/fourslash/tests/gen/augmentedTypesClass1_test.go @@ -10,8 +10,8 @@ import ( ) func TestAugmentedTypesClass1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class c5b { public foo() { } } module c5b { export var y = 2; } // should be ok diff --git a/pkg/fourslash/tests/gen/augmentedTypesClass3Fourslash_test.go b/pkg/fourslash/tests/gen/augmentedTypesClass3Fourslash_test.go index ecd2d9529..446889401 100644 --- a/pkg/fourslash/tests/gen/augmentedTypesClass3Fourslash_test.go +++ b/pkg/fourslash/tests/gen/augmentedTypesClass3Fourslash_test.go @@ -10,8 +10,8 @@ import ( ) func TestAugmentedTypesClass3Fourslash(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class c/*1*/5b { public foo() { } } namespace c/*2*/5b { export var y = 2; } // should be ok diff --git a/pkg/fourslash/tests/gen/augmentedTypesModule1_test.go b/pkg/fourslash/tests/gen/augmentedTypesModule1_test.go index d094e8523..6324d7201 100644 --- a/pkg/fourslash/tests/gen/augmentedTypesModule1_test.go +++ b/pkg/fourslash/tests/gen/augmentedTypesModule1_test.go @@ -9,8 +9,8 @@ import ( ) func TestAugmentedTypesModule1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module m1c { export interface I { foo(): void; } diff --git a/pkg/fourslash/tests/gen/augmentedTypesModule2_test.go b/pkg/fourslash/tests/gen/augmentedTypesModule2_test.go index 144a16665..f9c2ef6e9 100644 --- a/pkg/fourslash/tests/gen/augmentedTypesModule2_test.go +++ b/pkg/fourslash/tests/gen/augmentedTypesModule2_test.go @@ -9,8 +9,8 @@ import ( ) func TestAugmentedTypesModule2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function /*11*/m2f(x: number) { }; namespace m2f { export interface I { foo(): void } } diff --git a/pkg/fourslash/tests/gen/augmentedTypesModule3_test.go b/pkg/fourslash/tests/gen/augmentedTypesModule3_test.go index 948495a98..29b6b6e20 100644 --- a/pkg/fourslash/tests/gen/augmentedTypesModule3_test.go +++ b/pkg/fourslash/tests/gen/augmentedTypesModule3_test.go @@ -9,8 +9,8 @@ import ( ) func TestAugmentedTypesModule3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function m2g() { }; module m2g { export class C { foo(x: number) { } } } diff --git a/pkg/fourslash/tests/gen/augmentedTypesModule4_test.go b/pkg/fourslash/tests/gen/augmentedTypesModule4_test.go index 954b8226f..a0586a5cc 100644 --- a/pkg/fourslash/tests/gen/augmentedTypesModule4_test.go +++ b/pkg/fourslash/tests/gen/augmentedTypesModule4_test.go @@ -9,8 +9,8 @@ import ( ) func TestAugmentedTypesModule4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module m3d { export var y = 2; } declare class m3d { foo(): void } diff --git a/pkg/fourslash/tests/gen/augmentedTypesModule5_test.go b/pkg/fourslash/tests/gen/augmentedTypesModule5_test.go index 81cc0d471..999c8f2f2 100644 --- a/pkg/fourslash/tests/gen/augmentedTypesModule5_test.go +++ b/pkg/fourslash/tests/gen/augmentedTypesModule5_test.go @@ -9,8 +9,8 @@ import ( ) func TestAugmentedTypesModule5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare class m3e { foo(): void } module m3e { export var y = 2; } diff --git a/pkg/fourslash/tests/gen/augmentedTypesModule6_test.go b/pkg/fourslash/tests/gen/augmentedTypesModule6_test.go index 89a696e50..90f276dcf 100644 --- a/pkg/fourslash/tests/gen/augmentedTypesModule6_test.go +++ b/pkg/fourslash/tests/gen/augmentedTypesModule6_test.go @@ -9,8 +9,8 @@ import ( ) func TestAugmentedTypesModule6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare class m3f { foo(x: number): void } module m3f { export interface I { foo(): void } } diff --git a/pkg/fourslash/tests/gen/autoFormattingOnPasting_test.go b/pkg/fourslash/tests/gen/autoFormattingOnPasting_test.go index cb50211e6..209d2dc31 100644 --- a/pkg/fourslash/tests/gen/autoFormattingOnPasting_test.go +++ b/pkg/fourslash/tests/gen/autoFormattingOnPasting_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoFormattingOnPasting(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module TestModule { /**/ diff --git a/pkg/fourslash/tests/gen/autoImportAllowImportingTsExtensionsPackageJsonImports1_test.go b/pkg/fourslash/tests/gen/autoImportAllowImportingTsExtensionsPackageJsonImports1_test.go index 067f1b7a5..2d81c32a8 100644 --- a/pkg/fourslash/tests/gen/autoImportAllowImportingTsExtensionsPackageJsonImports1_test.go +++ b/pkg/fourslash/tests/gen/autoImportAllowImportingTsExtensionsPackageJsonImports1_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportAllowImportingTsExtensionsPackageJsonImports1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @allowImportingTsExtensions: true diff --git a/pkg/fourslash/tests/gen/autoImportAllowImportingTsExtensionsPackageJsonImports2_test.go b/pkg/fourslash/tests/gen/autoImportAllowImportingTsExtensionsPackageJsonImports2_test.go index 0fcf2de08..fbc86c515 100644 --- a/pkg/fourslash/tests/gen/autoImportAllowImportingTsExtensionsPackageJsonImports2_test.go +++ b/pkg/fourslash/tests/gen/autoImportAllowImportingTsExtensionsPackageJsonImports2_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportAllowImportingTsExtensionsPackageJsonImports2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /tsconfig.json { diff --git a/pkg/fourslash/tests/gen/autoImportBundlerBlockRelativeNodeModulesPaths_test.go b/pkg/fourslash/tests/gen/autoImportBundlerBlockRelativeNodeModulesPaths_test.go index 96f14e8a2..fde433b73 100644 --- a/pkg/fourslash/tests/gen/autoImportBundlerBlockRelativeNodeModulesPaths_test.go +++ b/pkg/fourslash/tests/gen/autoImportBundlerBlockRelativeNodeModulesPaths_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportBundlerBlockRelativeNodeModulesPaths(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @moduleResolution: bundler diff --git a/pkg/fourslash/tests/gen/autoImportBundlerExports_test.go b/pkg/fourslash/tests/gen/autoImportBundlerExports_test.go index 34c3354af..20a4444c3 100644 --- a/pkg/fourslash/tests/gen/autoImportBundlerExports_test.go +++ b/pkg/fourslash/tests/gen/autoImportBundlerExports_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportBundlerExports(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @moduleResolution: bundler diff --git a/pkg/fourslash/tests/gen/autoImportCompletionAmbientMergedModule1_test.go b/pkg/fourslash/tests/gen/autoImportCompletionAmbientMergedModule1_test.go index 1f575821a..acf579137 100644 --- a/pkg/fourslash/tests/gen/autoImportCompletionAmbientMergedModule1_test.go +++ b/pkg/fourslash/tests/gen/autoImportCompletionAmbientMergedModule1_test.go @@ -10,8 +10,8 @@ import ( ) func TestAutoImportCompletionAmbientMergedModule1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @module: commonjs diff --git a/pkg/fourslash/tests/gen/autoImportCompletionExportEqualsWithDefault1_test.go b/pkg/fourslash/tests/gen/autoImportCompletionExportEqualsWithDefault1_test.go index 3360254d2..08445a7ea 100644 --- a/pkg/fourslash/tests/gen/autoImportCompletionExportEqualsWithDefault1_test.go +++ b/pkg/fourslash/tests/gen/autoImportCompletionExportEqualsWithDefault1_test.go @@ -10,8 +10,8 @@ import ( ) func TestAutoImportCompletionExportEqualsWithDefault1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @module: commonjs diff --git a/pkg/fourslash/tests/gen/autoImportCompletionExportListAugmentation1_test.go b/pkg/fourslash/tests/gen/autoImportCompletionExportListAugmentation1_test.go index 87ce26f36..0a1a36547 100644 --- a/pkg/fourslash/tests/gen/autoImportCompletionExportListAugmentation1_test.go +++ b/pkg/fourslash/tests/gen/autoImportCompletionExportListAugmentation1_test.go @@ -10,8 +10,8 @@ import ( ) func TestAutoImportCompletionExportListAugmentation1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /node_modules/@sapphire/pieces/index.d.ts diff --git a/pkg/fourslash/tests/gen/autoImportCompletionExportListAugmentation2_test.go b/pkg/fourslash/tests/gen/autoImportCompletionExportListAugmentation2_test.go index 090693045..609bbf2cc 100644 --- a/pkg/fourslash/tests/gen/autoImportCompletionExportListAugmentation2_test.go +++ b/pkg/fourslash/tests/gen/autoImportCompletionExportListAugmentation2_test.go @@ -10,8 +10,8 @@ import ( ) func TestAutoImportCompletionExportListAugmentation2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /node_modules/@sapphire/pieces/index.d.ts diff --git a/pkg/fourslash/tests/gen/autoImportCompletionExportListAugmentation3_test.go b/pkg/fourslash/tests/gen/autoImportCompletionExportListAugmentation3_test.go index 7a2694995..bd360fc34 100644 --- a/pkg/fourslash/tests/gen/autoImportCompletionExportListAugmentation3_test.go +++ b/pkg/fourslash/tests/gen/autoImportCompletionExportListAugmentation3_test.go @@ -10,8 +10,8 @@ import ( ) func TestAutoImportCompletionExportListAugmentation3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /node_modules/@sapphire/pieces/index.d.ts diff --git a/pkg/fourslash/tests/gen/autoImportCompletionExportListAugmentation4_test.go b/pkg/fourslash/tests/gen/autoImportCompletionExportListAugmentation4_test.go index d203d5481..4e651a2e2 100644 --- a/pkg/fourslash/tests/gen/autoImportCompletionExportListAugmentation4_test.go +++ b/pkg/fourslash/tests/gen/autoImportCompletionExportListAugmentation4_test.go @@ -10,8 +10,8 @@ import ( ) func TestAutoImportCompletionExportListAugmentation4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /node_modules/@sapphire/pieces/index.d.ts diff --git a/pkg/fourslash/tests/gen/autoImportCrossPackage_pathsAndSymlink_test.go b/pkg/fourslash/tests/gen/autoImportCrossPackage_pathsAndSymlink_test.go index c2872e493..bf0dc0919 100644 --- a/pkg/fourslash/tests/gen/autoImportCrossPackage_pathsAndSymlink_test.go +++ b/pkg/fourslash/tests/gen/autoImportCrossPackage_pathsAndSymlink_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportCrossPackage_pathsAndSymlink(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/packages/common/package.json { diff --git a/pkg/fourslash/tests/gen/autoImportCrossProject_baseUrl_toDist_test.go b/pkg/fourslash/tests/gen/autoImportCrossProject_baseUrl_toDist_test.go index 0eb2cebb8..7fcf48732 100644 --- a/pkg/fourslash/tests/gen/autoImportCrossProject_baseUrl_toDist_test.go +++ b/pkg/fourslash/tests/gen/autoImportCrossProject_baseUrl_toDist_test.go @@ -9,8 +9,8 @@ import ( ) func TestAutoImportCrossProject_baseUrl_toDist(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/common/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/autoImportCrossProject_paths_sharedOutDir_test.go b/pkg/fourslash/tests/gen/autoImportCrossProject_paths_sharedOutDir_test.go index 16a78c71b..7b3e097ee 100644 --- a/pkg/fourslash/tests/gen/autoImportCrossProject_paths_sharedOutDir_test.go +++ b/pkg/fourslash/tests/gen/autoImportCrossProject_paths_sharedOutDir_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportCrossProject_paths_sharedOutDir(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.base.json { diff --git a/pkg/fourslash/tests/gen/autoImportCrossProject_paths_stripSrc_test.go b/pkg/fourslash/tests/gen/autoImportCrossProject_paths_stripSrc_test.go index 959a3b123..cfb1dbf6f 100644 --- a/pkg/fourslash/tests/gen/autoImportCrossProject_paths_stripSrc_test.go +++ b/pkg/fourslash/tests/gen/autoImportCrossProject_paths_stripSrc_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportCrossProject_paths_stripSrc(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/packages/app/package.json { "name": "app", "dependencies": { "dep": "*" } } diff --git a/pkg/fourslash/tests/gen/autoImportCrossProject_paths_toDist2_test.go b/pkg/fourslash/tests/gen/autoImportCrossProject_paths_toDist2_test.go index 7e866846c..a41283e79 100644 --- a/pkg/fourslash/tests/gen/autoImportCrossProject_paths_toDist2_test.go +++ b/pkg/fourslash/tests/gen/autoImportCrossProject_paths_toDist2_test.go @@ -9,8 +9,8 @@ import ( ) func TestAutoImportCrossProject_paths_toDist2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/common/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/autoImportCrossProject_paths_toDist_test.go b/pkg/fourslash/tests/gen/autoImportCrossProject_paths_toDist_test.go index e2ff4459c..94f824352 100644 --- a/pkg/fourslash/tests/gen/autoImportCrossProject_paths_toDist_test.go +++ b/pkg/fourslash/tests/gen/autoImportCrossProject_paths_toDist_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportCrossProject_paths_toDist(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/packages/app/package.json { "name": "app", "dependencies": { "dep": "*" } } diff --git a/pkg/fourslash/tests/gen/autoImportCrossProject_paths_toSrc_test.go b/pkg/fourslash/tests/gen/autoImportCrossProject_paths_toSrc_test.go index 3b89e4b48..5620288a0 100644 --- a/pkg/fourslash/tests/gen/autoImportCrossProject_paths_toSrc_test.go +++ b/pkg/fourslash/tests/gen/autoImportCrossProject_paths_toSrc_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportCrossProject_paths_toSrc(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/packages/app/package.json { "name": "app", "dependencies": { "dep": "*" } } diff --git a/pkg/fourslash/tests/gen/autoImportCrossProject_symlinks_stripSrc_test.go b/pkg/fourslash/tests/gen/autoImportCrossProject_symlinks_stripSrc_test.go index aa69ac357..27547f912 100644 --- a/pkg/fourslash/tests/gen/autoImportCrossProject_symlinks_stripSrc_test.go +++ b/pkg/fourslash/tests/gen/autoImportCrossProject_symlinks_stripSrc_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportCrossProject_symlinks_stripSrc(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/packages/app/package.json { "name": "app", "dependencies": { "dep": "*" } } diff --git a/pkg/fourslash/tests/gen/autoImportCrossProject_symlinks_toDist_test.go b/pkg/fourslash/tests/gen/autoImportCrossProject_symlinks_toDist_test.go index d5db8a5c6..1ddce533a 100644 --- a/pkg/fourslash/tests/gen/autoImportCrossProject_symlinks_toDist_test.go +++ b/pkg/fourslash/tests/gen/autoImportCrossProject_symlinks_toDist_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportCrossProject_symlinks_toDist(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/packages/app/package.json { "name": "app", "dependencies": { "dep": "*" } } diff --git a/pkg/fourslash/tests/gen/autoImportCrossProject_symlinks_toSrc_test.go b/pkg/fourslash/tests/gen/autoImportCrossProject_symlinks_toSrc_test.go index 2fa73c3f7..5df5af008 100644 --- a/pkg/fourslash/tests/gen/autoImportCrossProject_symlinks_toSrc_test.go +++ b/pkg/fourslash/tests/gen/autoImportCrossProject_symlinks_toSrc_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportCrossProject_symlinks_toSrc(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/packages/app/package.json { "name": "app", "dependencies": { "dep": "*" } } diff --git a/pkg/fourslash/tests/gen/autoImportFileExcludePatterns2_test.go b/pkg/fourslash/tests/gen/autoImportFileExcludePatterns2_test.go index d8f5fc0f6..ea35eb6fd 100644 --- a/pkg/fourslash/tests/gen/autoImportFileExcludePatterns2_test.go +++ b/pkg/fourslash/tests/gen/autoImportFileExcludePatterns2_test.go @@ -12,8 +12,8 @@ import ( ) func TestAutoImportFileExcludePatterns2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /lib/components/button/Button.ts export function Button() {} diff --git a/pkg/fourslash/tests/gen/autoImportFileExcludePatterns3_test.go b/pkg/fourslash/tests/gen/autoImportFileExcludePatterns3_test.go index da2de765e..6d42e2b3d 100644 --- a/pkg/fourslash/tests/gen/autoImportFileExcludePatterns3_test.go +++ b/pkg/fourslash/tests/gen/autoImportFileExcludePatterns3_test.go @@ -11,8 +11,8 @@ import ( ) func TestAutoImportFileExcludePatterns3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @Filename: /ambient1.d.ts diff --git a/pkg/fourslash/tests/gen/autoImportJsDocImport1_test.go b/pkg/fourslash/tests/gen/autoImportJsDocImport1_test.go index 294b334a9..dd3f445c7 100644 --- a/pkg/fourslash/tests/gen/autoImportJsDocImport1_test.go +++ b/pkg/fourslash/tests/gen/autoImportJsDocImport1_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportJsDocImport1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @verbatimModuleSyntax: true // @target: esnext diff --git a/pkg/fourslash/tests/gen/autoImportModuleNone1_test.go b/pkg/fourslash/tests/gen/autoImportModuleNone1_test.go index 31b867409..c67523861 100644 --- a/pkg/fourslash/tests/gen/autoImportModuleNone1_test.go +++ b/pkg/fourslash/tests/gen/autoImportModuleNone1_test.go @@ -9,8 +9,8 @@ import ( ) func TestAutoImportModuleNone1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: none // @moduleResolution: bundler diff --git a/pkg/fourslash/tests/gen/autoImportModuleNone2_test.go b/pkg/fourslash/tests/gen/autoImportModuleNone2_test.go index 98b070b2d..3e3c6856b 100644 --- a/pkg/fourslash/tests/gen/autoImportModuleNone2_test.go +++ b/pkg/fourslash/tests/gen/autoImportModuleNone2_test.go @@ -11,8 +11,8 @@ import ( ) func TestAutoImportModuleNone2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: none // @moduleResolution: bundler diff --git a/pkg/fourslash/tests/gen/autoImportNoPackageJson_commonjs_test.go b/pkg/fourslash/tests/gen/autoImportNoPackageJson_commonjs_test.go index 4c4568638..3a5c61ca0 100644 --- a/pkg/fourslash/tests/gen/autoImportNoPackageJson_commonjs_test.go +++ b/pkg/fourslash/tests/gen/autoImportNoPackageJson_commonjs_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportNoPackageJson_commonjs(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @Filename: /node_modules/lit/index.d.cts diff --git a/pkg/fourslash/tests/gen/autoImportNoPackageJson_nodenext_test.go b/pkg/fourslash/tests/gen/autoImportNoPackageJson_nodenext_test.go index b1112c087..1bd789926 100644 --- a/pkg/fourslash/tests/gen/autoImportNoPackageJson_nodenext_test.go +++ b/pkg/fourslash/tests/gen/autoImportNoPackageJson_nodenext_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportNoPackageJson_nodenext(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /node_modules/lit/index.d.cts diff --git a/pkg/fourslash/tests/gen/autoImportNodeModuleSymlinkRenamed_test.go b/pkg/fourslash/tests/gen/autoImportNodeModuleSymlinkRenamed_test.go index 5b956d16c..7e09678d4 100644 --- a/pkg/fourslash/tests/gen/autoImportNodeModuleSymlinkRenamed_test.go +++ b/pkg/fourslash/tests/gen/autoImportNodeModuleSymlinkRenamed_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportNodeModuleSymlinkRenamed(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/solution/package.json { diff --git a/pkg/fourslash/tests/gen/autoImportNodeNextJSRequire_test.go b/pkg/fourslash/tests/gen/autoImportNodeNextJSRequire_test.go index 89b5e1355..1eb323e5c 100644 --- a/pkg/fourslash/tests/gen/autoImportNodeNextJSRequire_test.go +++ b/pkg/fourslash/tests/gen/autoImportNodeNextJSRequire_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportNodeNextJSRequire(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @allowJs: true diff --git a/pkg/fourslash/tests/gen/autoImportPackageJsonExportsSpecifierEndsInTs_test.go b/pkg/fourslash/tests/gen/autoImportPackageJsonExportsSpecifierEndsInTs_test.go index da0de3a7a..5c30ddd9d 100644 --- a/pkg/fourslash/tests/gen/autoImportPackageJsonExportsSpecifierEndsInTs_test.go +++ b/pkg/fourslash/tests/gen/autoImportPackageJsonExportsSpecifierEndsInTs_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportPackageJsonExportsSpecifierEndsInTs(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /node_modules/pkg/package.json diff --git a/pkg/fourslash/tests/gen/autoImportPackageJsonFilterExistingImport2_test.go b/pkg/fourslash/tests/gen/autoImportPackageJsonFilterExistingImport2_test.go index 0c0bbb0b6..60eaf55c3 100644 --- a/pkg/fourslash/tests/gen/autoImportPackageJsonFilterExistingImport2_test.go +++ b/pkg/fourslash/tests/gen/autoImportPackageJsonFilterExistingImport2_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportPackageJsonFilterExistingImport2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: preserve // @Filename: /home/src/workspaces/project/node_modules/@types/react/index.d.ts diff --git a/pkg/fourslash/tests/gen/autoImportPackageJsonFilterExistingImport3_test.go b/pkg/fourslash/tests/gen/autoImportPackageJsonFilterExistingImport3_test.go index 8b49505fe..f57a9fa04 100644 --- a/pkg/fourslash/tests/gen/autoImportPackageJsonFilterExistingImport3_test.go +++ b/pkg/fourslash/tests/gen/autoImportPackageJsonFilterExistingImport3_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportPackageJsonFilterExistingImport3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: preserve // @Filename: /home/src/workspaces/project/node_modules/@types/node/index.d.ts diff --git a/pkg/fourslash/tests/gen/autoImportPackageJsonImportsCaseSensitivity_test.go b/pkg/fourslash/tests/gen/autoImportPackageJsonImportsCaseSensitivity_test.go index 4dc66e548..05baa7e45 100644 --- a/pkg/fourslash/tests/gen/autoImportPackageJsonImportsCaseSensitivity_test.go +++ b/pkg/fourslash/tests/gen/autoImportPackageJsonImportsCaseSensitivity_test.go @@ -9,8 +9,8 @@ import ( ) func TestAutoImportPackageJsonImportsCaseSensitivity(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @allowImportingTsExtensions: true diff --git a/pkg/fourslash/tests/gen/autoImportPackageJsonImportsConditions_test.go b/pkg/fourslash/tests/gen/autoImportPackageJsonImportsConditions_test.go index f96fc9463..79f158652 100644 --- a/pkg/fourslash/tests/gen/autoImportPackageJsonImportsConditions_test.go +++ b/pkg/fourslash/tests/gen/autoImportPackageJsonImportsConditions_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportPackageJsonImportsConditions(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/autoImportPackageJsonImportsLength1_test.go b/pkg/fourslash/tests/gen/autoImportPackageJsonImportsLength1_test.go index 64b26aa6e..cb03e89fe 100644 --- a/pkg/fourslash/tests/gen/autoImportPackageJsonImportsLength1_test.go +++ b/pkg/fourslash/tests/gen/autoImportPackageJsonImportsLength1_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportPackageJsonImportsLength1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/autoImportPackageJsonImportsLength2_test.go b/pkg/fourslash/tests/gen/autoImportPackageJsonImportsLength2_test.go index 7e3f7e868..d0435c170 100644 --- a/pkg/fourslash/tests/gen/autoImportPackageJsonImportsLength2_test.go +++ b/pkg/fourslash/tests/gen/autoImportPackageJsonImportsLength2_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportPackageJsonImportsLength2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPattern_js_test.go b/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPattern_js_test.go index acd8b8088..e0bae4395 100644 --- a/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPattern_js_test.go +++ b/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPattern_js_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportPackageJsonImportsPattern_js(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPattern_js_ts_test.go b/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPattern_js_ts_test.go index e73bc6b0c..39a6f1d4f 100644 --- a/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPattern_js_ts_test.go +++ b/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPattern_js_ts_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportPackageJsonImportsPattern_js_ts(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPattern_test.go b/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPattern_test.go index f1559adf7..5afb457fa 100644 --- a/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPattern_test.go +++ b/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPattern_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportPackageJsonImportsPattern(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPattern_ts_js_test.go b/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPattern_ts_js_test.go index 0ea789077..392bc52b4 100644 --- a/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPattern_ts_js_test.go +++ b/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPattern_ts_js_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportPackageJsonImportsPattern_ts_js(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPattern_ts_test.go b/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPattern_ts_test.go index c8a8dd278..a3ecc3510 100644 --- a/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPattern_ts_test.go +++ b/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPattern_ts_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportPackageJsonImportsPattern_ts(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPattern_ts_ts_test.go b/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPattern_ts_ts_test.go index af1754097..3c20e05f5 100644 --- a/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPattern_ts_ts_test.go +++ b/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPattern_ts_ts_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportPackageJsonImportsPattern_ts_ts(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPreference1_test.go b/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPreference1_test.go index b75cb6832..146b35135 100644 --- a/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPreference1_test.go +++ b/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPreference1_test.go @@ -9,8 +9,8 @@ import ( ) func TestAutoImportPackageJsonImportsPreference1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPreference2_test.go b/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPreference2_test.go index 936942cb8..adde98f52 100644 --- a/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPreference2_test.go +++ b/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPreference2_test.go @@ -9,8 +9,8 @@ import ( ) func TestAutoImportPackageJsonImportsPreference2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPreference3_test.go b/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPreference3_test.go index c56a5636a..378a68771 100644 --- a/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPreference3_test.go +++ b/pkg/fourslash/tests/gen/autoImportPackageJsonImportsPreference3_test.go @@ -9,8 +9,8 @@ import ( ) func TestAutoImportPackageJsonImportsPreference3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/autoImportPackageJsonImports_capsInPath1_test.go b/pkg/fourslash/tests/gen/autoImportPackageJsonImports_capsInPath1_test.go index 490016ce3..7ab40599b 100644 --- a/pkg/fourslash/tests/gen/autoImportPackageJsonImports_capsInPath1_test.go +++ b/pkg/fourslash/tests/gen/autoImportPackageJsonImports_capsInPath1_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportPackageJsonImports_capsInPath1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /Dev/package.json diff --git a/pkg/fourslash/tests/gen/autoImportPackageJsonImports_capsInPath2_test.go b/pkg/fourslash/tests/gen/autoImportPackageJsonImports_capsInPath2_test.go index f73c60c64..a20b0c3c6 100644 --- a/pkg/fourslash/tests/gen/autoImportPackageJsonImports_capsInPath2_test.go +++ b/pkg/fourslash/tests/gen/autoImportPackageJsonImports_capsInPath2_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportPackageJsonImports_capsInPath2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /Dev/package.json diff --git a/pkg/fourslash/tests/gen/autoImportPackageJsonImports_js_test.go b/pkg/fourslash/tests/gen/autoImportPackageJsonImports_js_test.go index 48697ccb8..35816ca9d 100644 --- a/pkg/fourslash/tests/gen/autoImportPackageJsonImports_js_test.go +++ b/pkg/fourslash/tests/gen/autoImportPackageJsonImports_js_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportPackageJsonImports_js(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/autoImportPackageJsonImports_ts_test.go b/pkg/fourslash/tests/gen/autoImportPackageJsonImports_ts_test.go index 4673e477e..48e03c707 100644 --- a/pkg/fourslash/tests/gen/autoImportPackageJsonImports_ts_test.go +++ b/pkg/fourslash/tests/gen/autoImportPackageJsonImports_ts_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportPackageJsonImports_ts(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/autoImportPackageRootPathExtension_test.go b/pkg/fourslash/tests/gen/autoImportPackageRootPathExtension_test.go index 29315cb9e..921d98d71 100644 --- a/pkg/fourslash/tests/gen/autoImportPackageRootPathExtension_test.go +++ b/pkg/fourslash/tests/gen/autoImportPackageRootPathExtension_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportPackageRootPathExtension(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /node_modules/pkg/package.json diff --git a/pkg/fourslash/tests/gen/autoImportPackageRootPathTypeModule_test.go b/pkg/fourslash/tests/gen/autoImportPackageRootPathTypeModule_test.go index b1c1eabf3..88601fef8 100644 --- a/pkg/fourslash/tests/gen/autoImportPackageRootPathTypeModule_test.go +++ b/pkg/fourslash/tests/gen/autoImportPackageRootPathTypeModule_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportPackageRootPathTypeModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /node_modules/pkg/package.json diff --git a/pkg/fourslash/tests/gen/autoImportPackageRootPath_test.go b/pkg/fourslash/tests/gen/autoImportPackageRootPath_test.go index 86555a8aa..b080f1c69 100644 --- a/pkg/fourslash/tests/gen/autoImportPackageRootPath_test.go +++ b/pkg/fourslash/tests/gen/autoImportPackageRootPath_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportPackageRootPath(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /node_modules/pkg/package.json diff --git a/pkg/fourslash/tests/gen/autoImportPathsAliasesAndBarrels_test.go b/pkg/fourslash/tests/gen/autoImportPathsAliasesAndBarrels_test.go index 80c0c345b..b6e1d0bd4 100644 --- a/pkg/fourslash/tests/gen/autoImportPathsAliasesAndBarrels_test.go +++ b/pkg/fourslash/tests/gen/autoImportPathsAliasesAndBarrels_test.go @@ -11,8 +11,8 @@ import ( ) func TestAutoImportPathsAliasesAndBarrels(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /tsconfig.json { diff --git a/pkg/fourslash/tests/gen/autoImportPathsConfigDir_test.go b/pkg/fourslash/tests/gen/autoImportPathsConfigDir_test.go index 6ab9b9c4a..c5f09414c 100644 --- a/pkg/fourslash/tests/gen/autoImportPathsConfigDir_test.go +++ b/pkg/fourslash/tests/gen/autoImportPathsConfigDir_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportPathsConfigDir(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tsconfig.json { diff --git a/pkg/fourslash/tests/gen/autoImportPathsNodeModules_test.go b/pkg/fourslash/tests/gen/autoImportPathsNodeModules_test.go index 13a714898..ffd3ecdf0 100644 --- a/pkg/fourslash/tests/gen/autoImportPathsNodeModules_test.go +++ b/pkg/fourslash/tests/gen/autoImportPathsNodeModules_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportPathsNodeModules(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tsconfig.json { diff --git a/pkg/fourslash/tests/gen/autoImportPaths_test.go b/pkg/fourslash/tests/gen/autoImportPaths_test.go index 564e3ad08..eada20990 100644 --- a/pkg/fourslash/tests/gen/autoImportPaths_test.go +++ b/pkg/fourslash/tests/gen/autoImportPaths_test.go @@ -9,8 +9,8 @@ import ( ) func TestAutoImportPaths(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /package1/jsconfig.json { diff --git a/pkg/fourslash/tests/gen/autoImportPnpm_test.go b/pkg/fourslash/tests/gen/autoImportPnpm_test.go index 20615f9a5..548b452e7 100644 --- a/pkg/fourslash/tests/gen/autoImportPnpm_test.go +++ b/pkg/fourslash/tests/gen/autoImportPnpm_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportPnpm(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /tsconfig.json { "compilerOptions": { "module": "commonjs" } } diff --git a/pkg/fourslash/tests/gen/autoImportProvider4_test.go b/pkg/fourslash/tests/gen/autoImportProvider4_test.go index 8007d4b12..5f9e4d93e 100644 --- a/pkg/fourslash/tests/gen/autoImportProvider4_test.go +++ b/pkg/fourslash/tests/gen/autoImportProvider4_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportProvider4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/a/package.json { "dependencies": { "b": "*" } } diff --git a/pkg/fourslash/tests/gen/autoImportProvider5_test.go b/pkg/fourslash/tests/gen/autoImportProvider5_test.go index d8b636ddd..ac3457b86 100644 --- a/pkg/fourslash/tests/gen/autoImportProvider5_test.go +++ b/pkg/fourslash/tests/gen/autoImportProvider5_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportProvider5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/package.json { "dependencies": { "react-hook-form": "*" } } diff --git a/pkg/fourslash/tests/gen/autoImportProvider6_test.go b/pkg/fourslash/tests/gen/autoImportProvider6_test.go index f88dc235a..1b86160ad 100644 --- a/pkg/fourslash/tests/gen/autoImportProvider6_test.go +++ b/pkg/fourslash/tests/gen/autoImportProvider6_test.go @@ -11,8 +11,8 @@ import ( ) func TestAutoImportProvider6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { "compilerOptions": { "module": "commonjs", "lib": ["es2019"] } } diff --git a/pkg/fourslash/tests/gen/autoImportProvider9_test.go b/pkg/fourslash/tests/gen/autoImportProvider9_test.go index e32511c93..0faecb99d 100644 --- a/pkg/fourslash/tests/gen/autoImportProvider9_test.go +++ b/pkg/fourslash/tests/gen/autoImportProvider9_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportProvider9(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: preserve // @Filename: /home/src/workspaces/project/index.ts diff --git a/pkg/fourslash/tests/gen/autoImportProvider_exportMap1_test.go b/pkg/fourslash/tests/gen/autoImportProvider_exportMap1_test.go index 59c321579..68ea6438f 100644 --- a/pkg/fourslash/tests/gen/autoImportProvider_exportMap1_test.go +++ b/pkg/fourslash/tests/gen/autoImportProvider_exportMap1_test.go @@ -11,8 +11,8 @@ import ( ) func TestAutoImportProvider_exportMap1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/autoImportProvider_exportMap2_test.go b/pkg/fourslash/tests/gen/autoImportProvider_exportMap2_test.go index 3879bd304..3efe724e9 100644 --- a/pkg/fourslash/tests/gen/autoImportProvider_exportMap2_test.go +++ b/pkg/fourslash/tests/gen/autoImportProvider_exportMap2_test.go @@ -11,8 +11,8 @@ import ( ) func TestAutoImportProvider_exportMap2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/autoImportProvider_exportMap3_test.go b/pkg/fourslash/tests/gen/autoImportProvider_exportMap3_test.go index cd547ea47..04479dd0c 100644 --- a/pkg/fourslash/tests/gen/autoImportProvider_exportMap3_test.go +++ b/pkg/fourslash/tests/gen/autoImportProvider_exportMap3_test.go @@ -11,8 +11,8 @@ import ( ) func TestAutoImportProvider_exportMap3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/autoImportProvider_exportMap4_test.go b/pkg/fourslash/tests/gen/autoImportProvider_exportMap4_test.go index e07d0a84f..4a4215c68 100644 --- a/pkg/fourslash/tests/gen/autoImportProvider_exportMap4_test.go +++ b/pkg/fourslash/tests/gen/autoImportProvider_exportMap4_test.go @@ -11,8 +11,8 @@ import ( ) func TestAutoImportProvider_exportMap4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/autoImportProvider_exportMap5_test.go b/pkg/fourslash/tests/gen/autoImportProvider_exportMap5_test.go index 6b6a8e5cd..3c853bd29 100644 --- a/pkg/fourslash/tests/gen/autoImportProvider_exportMap5_test.go +++ b/pkg/fourslash/tests/gen/autoImportProvider_exportMap5_test.go @@ -11,8 +11,8 @@ import ( ) func TestAutoImportProvider_exportMap5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @types package lookup // @Filename: /home/src/workspaces/project/tsconfig.json diff --git a/pkg/fourslash/tests/gen/autoImportProvider_exportMap6_test.go b/pkg/fourslash/tests/gen/autoImportProvider_exportMap6_test.go index 473c86e4c..7ebf7659a 100644 --- a/pkg/fourslash/tests/gen/autoImportProvider_exportMap6_test.go +++ b/pkg/fourslash/tests/gen/autoImportProvider_exportMap6_test.go @@ -11,8 +11,8 @@ import ( ) func TestAutoImportProvider_exportMap6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @types package should be ignored because implementation package has types // @Filename: /home/src/workspaces/project/tsconfig.json diff --git a/pkg/fourslash/tests/gen/autoImportProvider_exportMap7_test.go b/pkg/fourslash/tests/gen/autoImportProvider_exportMap7_test.go index db5972957..b0b7850c4 100644 --- a/pkg/fourslash/tests/gen/autoImportProvider_exportMap7_test.go +++ b/pkg/fourslash/tests/gen/autoImportProvider_exportMap7_test.go @@ -11,8 +11,8 @@ import ( ) func TestAutoImportProvider_exportMap7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/autoImportProvider_exportMap8_test.go b/pkg/fourslash/tests/gen/autoImportProvider_exportMap8_test.go index b16c18c18..103b28d5f 100644 --- a/pkg/fourslash/tests/gen/autoImportProvider_exportMap8_test.go +++ b/pkg/fourslash/tests/gen/autoImportProvider_exportMap8_test.go @@ -11,8 +11,8 @@ import ( ) func TestAutoImportProvider_exportMap8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/autoImportProvider_exportMap9_test.go b/pkg/fourslash/tests/gen/autoImportProvider_exportMap9_test.go index 00b9251b5..5e9d38338 100644 --- a/pkg/fourslash/tests/gen/autoImportProvider_exportMap9_test.go +++ b/pkg/fourslash/tests/gen/autoImportProvider_exportMap9_test.go @@ -11,8 +11,8 @@ import ( ) func TestAutoImportProvider_exportMap9(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/autoImportProvider_globalTypingsCache_test.go b/pkg/fourslash/tests/gen/autoImportProvider_globalTypingsCache_test.go index 4eaea413f..e99c8becd 100644 --- a/pkg/fourslash/tests/gen/autoImportProvider_globalTypingsCache_test.go +++ b/pkg/fourslash/tests/gen/autoImportProvider_globalTypingsCache_test.go @@ -11,8 +11,8 @@ import ( ) func TestAutoImportProvider_globalTypingsCache(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/Library/Caches/typescript/node_modules/@types/react-router-dom/package.json { "name": "@types/react-router-dom", "version": "16.8.4", "types": "index.d.ts" } diff --git a/pkg/fourslash/tests/gen/autoImportProvider_importsMap1_test.go b/pkg/fourslash/tests/gen/autoImportProvider_importsMap1_test.go index cf9715e5a..c26ecfff3 100644 --- a/pkg/fourslash/tests/gen/autoImportProvider_importsMap1_test.go +++ b/pkg/fourslash/tests/gen/autoImportProvider_importsMap1_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportProvider_importsMap1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/autoImportProvider_importsMap2_test.go b/pkg/fourslash/tests/gen/autoImportProvider_importsMap2_test.go index 39661a28f..0696d4c49 100644 --- a/pkg/fourslash/tests/gen/autoImportProvider_importsMap2_test.go +++ b/pkg/fourslash/tests/gen/autoImportProvider_importsMap2_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportProvider_importsMap2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/autoImportProvider_importsMap3_test.go b/pkg/fourslash/tests/gen/autoImportProvider_importsMap3_test.go index 36d42e4ce..0fd0e686b 100644 --- a/pkg/fourslash/tests/gen/autoImportProvider_importsMap3_test.go +++ b/pkg/fourslash/tests/gen/autoImportProvider_importsMap3_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportProvider_importsMap3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/autoImportProvider_importsMap4_test.go b/pkg/fourslash/tests/gen/autoImportProvider_importsMap4_test.go index c3c241855..0b38c94f5 100644 --- a/pkg/fourslash/tests/gen/autoImportProvider_importsMap4_test.go +++ b/pkg/fourslash/tests/gen/autoImportProvider_importsMap4_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportProvider_importsMap4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/autoImportProvider_importsMap5_test.go b/pkg/fourslash/tests/gen/autoImportProvider_importsMap5_test.go index 2e7006424..a4a76a034 100644 --- a/pkg/fourslash/tests/gen/autoImportProvider_importsMap5_test.go +++ b/pkg/fourslash/tests/gen/autoImportProvider_importsMap5_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportProvider_importsMap5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/autoImportProvider_namespaceSameNameAsIntrinsic_test.go b/pkg/fourslash/tests/gen/autoImportProvider_namespaceSameNameAsIntrinsic_test.go index b1cde3fea..89d4227ca 100644 --- a/pkg/fourslash/tests/gen/autoImportProvider_namespaceSameNameAsIntrinsic_test.go +++ b/pkg/fourslash/tests/gen/autoImportProvider_namespaceSameNameAsIntrinsic_test.go @@ -11,8 +11,8 @@ import ( ) func TestAutoImportProvider_namespaceSameNameAsIntrinsic(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/node_modules/fp-ts/package.json { "name": "fp-ts", "version": "0.10.4" } diff --git a/pkg/fourslash/tests/gen/autoImportProvider_pnpm_test.go b/pkg/fourslash/tests/gen/autoImportProvider_pnpm_test.go index 5a73544c0..c30bdf6ea 100644 --- a/pkg/fourslash/tests/gen/autoImportProvider_pnpm_test.go +++ b/pkg/fourslash/tests/gen/autoImportProvider_pnpm_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportProvider_pnpm(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { "compilerOptions": { "module": "commonjs" } } diff --git a/pkg/fourslash/tests/gen/autoImportProvider_referencesCrash_test.go b/pkg/fourslash/tests/gen/autoImportProvider_referencesCrash_test.go index b5cd3a11a..a588271dc 100644 --- a/pkg/fourslash/tests/gen/autoImportProvider_referencesCrash_test.go +++ b/pkg/fourslash/tests/gen/autoImportProvider_referencesCrash_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportProvider_referencesCrash(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/a/package.json {} diff --git a/pkg/fourslash/tests/gen/autoImportProvider_wildcardExports1_test.go b/pkg/fourslash/tests/gen/autoImportProvider_wildcardExports1_test.go index df0e2be1d..c6d23b867 100644 --- a/pkg/fourslash/tests/gen/autoImportProvider_wildcardExports1_test.go +++ b/pkg/fourslash/tests/gen/autoImportProvider_wildcardExports1_test.go @@ -11,8 +11,8 @@ import ( ) func TestAutoImportProvider_wildcardExports1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/node_modules/pkg/package.json { diff --git a/pkg/fourslash/tests/gen/autoImportProvider_wildcardExports2_test.go b/pkg/fourslash/tests/gen/autoImportProvider_wildcardExports2_test.go index 4de243600..a239bfadc 100644 --- a/pkg/fourslash/tests/gen/autoImportProvider_wildcardExports2_test.go +++ b/pkg/fourslash/tests/gen/autoImportProvider_wildcardExports2_test.go @@ -11,8 +11,8 @@ import ( ) func TestAutoImportProvider_wildcardExports2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/node_modules/pkg/package.json { diff --git a/pkg/fourslash/tests/gen/autoImportProvider_wildcardExports3_test.go b/pkg/fourslash/tests/gen/autoImportProvider_wildcardExports3_test.go index c5d96e86e..db5aebd56 100644 --- a/pkg/fourslash/tests/gen/autoImportProvider_wildcardExports3_test.go +++ b/pkg/fourslash/tests/gen/autoImportProvider_wildcardExports3_test.go @@ -11,8 +11,8 @@ import ( ) func TestAutoImportProvider_wildcardExports3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/packages/ui/package.json { diff --git a/pkg/fourslash/tests/gen/autoImportReExportFromAmbientModule_test.go b/pkg/fourslash/tests/gen/autoImportReExportFromAmbientModule_test.go index 67377a321..16c870001 100644 --- a/pkg/fourslash/tests/gen/autoImportReExportFromAmbientModule_test.go +++ b/pkg/fourslash/tests/gen/autoImportReExportFromAmbientModule_test.go @@ -11,8 +11,8 @@ import ( ) func TestAutoImportReExportFromAmbientModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/autoImportRelativePathToMonorepoPackage_test.go b/pkg/fourslash/tests/gen/autoImportRelativePathToMonorepoPackage_test.go index 8cc2a1030..d4ac11c2e 100644 --- a/pkg/fourslash/tests/gen/autoImportRelativePathToMonorepoPackage_test.go +++ b/pkg/fourslash/tests/gen/autoImportRelativePathToMonorepoPackage_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportRelativePathToMonorepoPackage(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/autoImportRootDirs_test.go b/pkg/fourslash/tests/gen/autoImportRootDirs_test.go index f0668eb2b..18723f351 100644 --- a/pkg/fourslash/tests/gen/autoImportRootDirs_test.go +++ b/pkg/fourslash/tests/gen/autoImportRootDirs_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportRootDirs(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /tsconfig.json { diff --git a/pkg/fourslash/tests/gen/autoImportSameNameDefaultExported_test.go b/pkg/fourslash/tests/gen/autoImportSameNameDefaultExported_test.go index a3a7d3000..08e0afde5 100644 --- a/pkg/fourslash/tests/gen/autoImportSameNameDefaultExported_test.go +++ b/pkg/fourslash/tests/gen/autoImportSameNameDefaultExported_test.go @@ -11,8 +11,8 @@ import ( ) func TestAutoImportSameNameDefaultExported(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @Filename: /node_modules/antd/index.d.ts diff --git a/pkg/fourslash/tests/gen/autoImportSortCaseSensitivity1_test.go b/pkg/fourslash/tests/gen/autoImportSortCaseSensitivity1_test.go index f47ee35e5..874ee8e21 100644 --- a/pkg/fourslash/tests/gen/autoImportSortCaseSensitivity1_test.go +++ b/pkg/fourslash/tests/gen/autoImportSortCaseSensitivity1_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportSortCaseSensitivity1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /exports1.ts export const a = 0; diff --git a/pkg/fourslash/tests/gen/autoImportSortCaseSensitivity2_test.go b/pkg/fourslash/tests/gen/autoImportSortCaseSensitivity2_test.go index f70b90c14..11fdb2ffa 100644 --- a/pkg/fourslash/tests/gen/autoImportSortCaseSensitivity2_test.go +++ b/pkg/fourslash/tests/gen/autoImportSortCaseSensitivity2_test.go @@ -11,8 +11,8 @@ import ( ) func TestAutoImportSortCaseSensitivity2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export interface HasBar { bar: number } diff --git a/pkg/fourslash/tests/gen/autoImportSpecifierExcludeRegexes1_test.go b/pkg/fourslash/tests/gen/autoImportSpecifierExcludeRegexes1_test.go index b01e88c12..36a079d9e 100644 --- a/pkg/fourslash/tests/gen/autoImportSpecifierExcludeRegexes1_test.go +++ b/pkg/fourslash/tests/gen/autoImportSpecifierExcludeRegexes1_test.go @@ -12,8 +12,8 @@ import ( ) func TestAutoImportSpecifierExcludeRegexes1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: preserve // @Filename: /node_modules/lib/index.d.ts diff --git a/pkg/fourslash/tests/gen/autoImportSpecifierExcludeRegexes2_test.go b/pkg/fourslash/tests/gen/autoImportSpecifierExcludeRegexes2_test.go index b2f192f98..e70ddf4b1 100644 --- a/pkg/fourslash/tests/gen/autoImportSpecifierExcludeRegexes2_test.go +++ b/pkg/fourslash/tests/gen/autoImportSpecifierExcludeRegexes2_test.go @@ -9,8 +9,8 @@ import ( ) func TestAutoImportSpecifierExcludeRegexes2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /tsconfig.json { diff --git a/pkg/fourslash/tests/gen/autoImportSpecifierExcludeRegexes3_test.go b/pkg/fourslash/tests/gen/autoImportSpecifierExcludeRegexes3_test.go index 554e30b6f..5d132c760 100644 --- a/pkg/fourslash/tests/gen/autoImportSpecifierExcludeRegexes3_test.go +++ b/pkg/fourslash/tests/gen/autoImportSpecifierExcludeRegexes3_test.go @@ -9,8 +9,8 @@ import ( ) func TestAutoImportSpecifierExcludeRegexes3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: preserve // @Filename: /node_modules/pkg/package.json diff --git a/pkg/fourslash/tests/gen/autoImportSymlinkCaseSensitive_test.go b/pkg/fourslash/tests/gen/autoImportSymlinkCaseSensitive_test.go index e5c817034..337e0f2e1 100644 --- a/pkg/fourslash/tests/gen/autoImportSymlinkCaseSensitive_test.go +++ b/pkg/fourslash/tests/gen/autoImportSymlinkCaseSensitive_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportSymlinkCaseSensitive(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /tsconfig.json { "compilerOptions": { "module": "commonjs" } } diff --git a/pkg/fourslash/tests/gen/autoImportTypeImport1_test.go b/pkg/fourslash/tests/gen/autoImportTypeImport1_test.go index 881c247e6..8cf7a29dc 100644 --- a/pkg/fourslash/tests/gen/autoImportTypeImport1_test.go +++ b/pkg/fourslash/tests/gen/autoImportTypeImport1_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportTypeImport1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @verbatimModuleSyntax: true // @target: esnext diff --git a/pkg/fourslash/tests/gen/autoImportTypeImport2_test.go b/pkg/fourslash/tests/gen/autoImportTypeImport2_test.go index 2571f00e6..497eb6e2c 100644 --- a/pkg/fourslash/tests/gen/autoImportTypeImport2_test.go +++ b/pkg/fourslash/tests/gen/autoImportTypeImport2_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportTypeImport2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @verbatimModuleSyntax: true // @target: esnext diff --git a/pkg/fourslash/tests/gen/autoImportTypeImport3_test.go b/pkg/fourslash/tests/gen/autoImportTypeImport3_test.go index 9cb22fed6..354175f5b 100644 --- a/pkg/fourslash/tests/gen/autoImportTypeImport3_test.go +++ b/pkg/fourslash/tests/gen/autoImportTypeImport3_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportTypeImport3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @verbatimModuleSyntax: true // @target: esnext diff --git a/pkg/fourslash/tests/gen/autoImportTypeImport4_test.go b/pkg/fourslash/tests/gen/autoImportTypeImport4_test.go index a41601c29..dbcf62617 100644 --- a/pkg/fourslash/tests/gen/autoImportTypeImport4_test.go +++ b/pkg/fourslash/tests/gen/autoImportTypeImport4_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportTypeImport4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @verbatimModuleSyntax: true // @target: esnext diff --git a/pkg/fourslash/tests/gen/autoImportTypeImport5_test.go b/pkg/fourslash/tests/gen/autoImportTypeImport5_test.go index 05de8ff22..95588e657 100644 --- a/pkg/fourslash/tests/gen/autoImportTypeImport5_test.go +++ b/pkg/fourslash/tests/gen/autoImportTypeImport5_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportTypeImport5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @verbatimModuleSyntax: true // @target: esnext diff --git a/pkg/fourslash/tests/gen/autoImportTypeOnlyPreferred1_test.go b/pkg/fourslash/tests/gen/autoImportTypeOnlyPreferred1_test.go index c637c036e..fd5c0a2e0 100644 --- a/pkg/fourslash/tests/gen/autoImportTypeOnlyPreferred1_test.go +++ b/pkg/fourslash/tests/gen/autoImportTypeOnlyPreferred1_test.go @@ -11,8 +11,8 @@ import ( ) func TestAutoImportTypeOnlyPreferred1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @verbatimModuleSyntax: true // @module: esnext diff --git a/pkg/fourslash/tests/gen/autoImportTypeOnlyPreferred2_test.go b/pkg/fourslash/tests/gen/autoImportTypeOnlyPreferred2_test.go index 2c7583674..5007ebf97 100644 --- a/pkg/fourslash/tests/gen/autoImportTypeOnlyPreferred2_test.go +++ b/pkg/fourslash/tests/gen/autoImportTypeOnlyPreferred2_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportTypeOnlyPreferred2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /node_modules/react/index.d.ts export interface ComponentType {} diff --git a/pkg/fourslash/tests/gen/autoImportVerbatimTypeOnly1_test.go b/pkg/fourslash/tests/gen/autoImportVerbatimTypeOnly1_test.go index 0e6f832f5..6e520e174 100644 --- a/pkg/fourslash/tests/gen/autoImportVerbatimTypeOnly1_test.go +++ b/pkg/fourslash/tests/gen/autoImportVerbatimTypeOnly1_test.go @@ -10,8 +10,8 @@ import ( ) func TestAutoImportVerbatimTypeOnly1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @verbatimModuleSyntax: true diff --git a/pkg/fourslash/tests/gen/autoImport_node12_node_modules1_test.go b/pkg/fourslash/tests/gen/autoImport_node12_node_modules1_test.go index b1f4a38c8..052289499 100644 --- a/pkg/fourslash/tests/gen/autoImport_node12_node_modules1_test.go +++ b/pkg/fourslash/tests/gen/autoImport_node12_node_modules1_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImport_node12_node_modules1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node16 // @Filename: /node_modules/undici/index.d.ts diff --git a/pkg/fourslash/tests/gen/autoImportsCustomConditions_test.go b/pkg/fourslash/tests/gen/autoImportsCustomConditions_test.go index 8b941e4fa..c38b0b2a3 100644 --- a/pkg/fourslash/tests/gen/autoImportsCustomConditions_test.go +++ b/pkg/fourslash/tests/gen/autoImportsCustomConditions_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutoImportsCustomConditions(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @moduleResolution: bundler diff --git a/pkg/fourslash/tests/gen/autoImportsNodeNext1_test.go b/pkg/fourslash/tests/gen/autoImportsNodeNext1_test.go index ec4c9e936..f02b4825e 100644 --- a/pkg/fourslash/tests/gen/autoImportsNodeNext1_test.go +++ b/pkg/fourslash/tests/gen/autoImportsNodeNext1_test.go @@ -9,8 +9,8 @@ import ( ) func TestAutoImportsNodeNext1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /node_modules/pack/package.json diff --git a/pkg/fourslash/tests/gen/autoImportsWithRootDirsAndRootedPath01_test.go b/pkg/fourslash/tests/gen/autoImportsWithRootDirsAndRootedPath01_test.go index 1728bf1a4..f1206ab85 100644 --- a/pkg/fourslash/tests/gen/autoImportsWithRootDirsAndRootedPath01_test.go +++ b/pkg/fourslash/tests/gen/autoImportsWithRootDirsAndRootedPath01_test.go @@ -9,8 +9,8 @@ import ( ) func TestAutoImportsWithRootDirsAndRootedPath01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /dir/foo.ts export function foo() {} diff --git a/pkg/fourslash/tests/gen/automaticConstructorToggling_test.go b/pkg/fourslash/tests/gen/automaticConstructorToggling_test.go index bbdd5e573..cf08bbeda 100644 --- a/pkg/fourslash/tests/gen/automaticConstructorToggling_test.go +++ b/pkg/fourslash/tests/gen/automaticConstructorToggling_test.go @@ -8,8 +8,8 @@ import ( ) func TestAutomaticConstructorToggling(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A { } class B {/*B*/ } diff --git a/pkg/fourslash/tests/gen/basicClassMembers_test.go b/pkg/fourslash/tests/gen/basicClassMembers_test.go index 1e62c3ac7..b922a02b1 100644 --- a/pkg/fourslash/tests/gen/basicClassMembers_test.go +++ b/pkg/fourslash/tests/gen/basicClassMembers_test.go @@ -9,8 +9,8 @@ import ( ) func TestBasicClassMembers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class n { constructor (public x: number, public y: number, private z: string) { } diff --git a/pkg/fourslash/tests/gen/bestCommonTypeObjectLiterals1_test.go b/pkg/fourslash/tests/gen/bestCommonTypeObjectLiterals1_test.go index 4fbba7f87..45cb237fc 100644 --- a/pkg/fourslash/tests/gen/bestCommonTypeObjectLiterals1_test.go +++ b/pkg/fourslash/tests/gen/bestCommonTypeObjectLiterals1_test.go @@ -8,8 +8,8 @@ import ( ) func TestBestCommonTypeObjectLiterals1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var a = { name: 'bob', age: 18 }; var b = { name: 'jim', age: 20 }; diff --git a/pkg/fourslash/tests/gen/bestCommonTypeObjectLiterals_test.go b/pkg/fourslash/tests/gen/bestCommonTypeObjectLiterals_test.go index 040b5a8b1..bf75cffa1 100644 --- a/pkg/fourslash/tests/gen/bestCommonTypeObjectLiterals_test.go +++ b/pkg/fourslash/tests/gen/bestCommonTypeObjectLiterals_test.go @@ -8,8 +8,8 @@ import ( ) func TestBestCommonTypeObjectLiterals(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var a = { name: 'bob', age: 18 }; var b = { name: 'jim', age: 20 }; diff --git a/pkg/fourslash/tests/gen/callHierarchyAccessor_test.go b/pkg/fourslash/tests/gen/callHierarchyAccessor_test.go index ca8523afe..cb94adea7 100644 --- a/pkg/fourslash/tests/gen/callHierarchyAccessor_test.go +++ b/pkg/fourslash/tests/gen/callHierarchyAccessor_test.go @@ -8,8 +8,8 @@ import ( ) func TestCallHierarchyAccessor(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo() { new C().bar; diff --git a/pkg/fourslash/tests/gen/callHierarchyCallExpressionByConstNamedFunctionExpression_test.go b/pkg/fourslash/tests/gen/callHierarchyCallExpressionByConstNamedFunctionExpression_test.go index 33a092be0..a9503f305 100644 --- a/pkg/fourslash/tests/gen/callHierarchyCallExpressionByConstNamedFunctionExpression_test.go +++ b/pkg/fourslash/tests/gen/callHierarchyCallExpressionByConstNamedFunctionExpression_test.go @@ -8,8 +8,8 @@ import ( ) func TestCallHierarchyCallExpressionByConstNamedFunctionExpression(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo() { bar(); diff --git a/pkg/fourslash/tests/gen/callHierarchyClassPropertyArrowFunction_test.go b/pkg/fourslash/tests/gen/callHierarchyClassPropertyArrowFunction_test.go index 2d8f0455a..d99534a3a 100644 --- a/pkg/fourslash/tests/gen/callHierarchyClassPropertyArrowFunction_test.go +++ b/pkg/fourslash/tests/gen/callHierarchyClassPropertyArrowFunction_test.go @@ -8,8 +8,8 @@ import ( ) func TestCallHierarchyClassPropertyArrowFunction(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { caller = () => { diff --git a/pkg/fourslash/tests/gen/callHierarchyClassStaticBlock2_test.go b/pkg/fourslash/tests/gen/callHierarchyClassStaticBlock2_test.go index b199e2210..9410c1621 100644 --- a/pkg/fourslash/tests/gen/callHierarchyClassStaticBlock2_test.go +++ b/pkg/fourslash/tests/gen/callHierarchyClassStaticBlock2_test.go @@ -8,8 +8,8 @@ import ( ) func TestCallHierarchyClassStaticBlock2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { /**/static { diff --git a/pkg/fourslash/tests/gen/callHierarchyClassStaticBlock_test.go b/pkg/fourslash/tests/gen/callHierarchyClassStaticBlock_test.go index 162321a42..43e2f4472 100644 --- a/pkg/fourslash/tests/gen/callHierarchyClassStaticBlock_test.go +++ b/pkg/fourslash/tests/gen/callHierarchyClassStaticBlock_test.go @@ -8,8 +8,8 @@ import ( ) func TestCallHierarchyClassStaticBlock(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { static { diff --git a/pkg/fourslash/tests/gen/callHierarchyClass_test.go b/pkg/fourslash/tests/gen/callHierarchyClass_test.go index 2276b920d..bbc8b71db 100644 --- a/pkg/fourslash/tests/gen/callHierarchyClass_test.go +++ b/pkg/fourslash/tests/gen/callHierarchyClass_test.go @@ -8,8 +8,8 @@ import ( ) func TestCallHierarchyClass(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo() { bar(); diff --git a/pkg/fourslash/tests/gen/callHierarchyConstNamedArrowFunction_test.go b/pkg/fourslash/tests/gen/callHierarchyConstNamedArrowFunction_test.go index 688ea991b..6fb9df93c 100644 --- a/pkg/fourslash/tests/gen/callHierarchyConstNamedArrowFunction_test.go +++ b/pkg/fourslash/tests/gen/callHierarchyConstNamedArrowFunction_test.go @@ -8,8 +8,8 @@ import ( ) func TestCallHierarchyConstNamedArrowFunction(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo() { bar(); diff --git a/pkg/fourslash/tests/gen/callHierarchyConstNamedClassExpression_test.go b/pkg/fourslash/tests/gen/callHierarchyConstNamedClassExpression_test.go index 61268d75c..7b45c3baa 100644 --- a/pkg/fourslash/tests/gen/callHierarchyConstNamedClassExpression_test.go +++ b/pkg/fourslash/tests/gen/callHierarchyConstNamedClassExpression_test.go @@ -8,8 +8,8 @@ import ( ) func TestCallHierarchyConstNamedClassExpression(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo() { new Bar(); diff --git a/pkg/fourslash/tests/gen/callHierarchyConstNamedFunctionExpression_test.go b/pkg/fourslash/tests/gen/callHierarchyConstNamedFunctionExpression_test.go index e1439308c..bfbb1e572 100644 --- a/pkg/fourslash/tests/gen/callHierarchyConstNamedFunctionExpression_test.go +++ b/pkg/fourslash/tests/gen/callHierarchyConstNamedFunctionExpression_test.go @@ -8,8 +8,8 @@ import ( ) func TestCallHierarchyConstNamedFunctionExpression(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo() { bar(); diff --git a/pkg/fourslash/tests/gen/callHierarchyContainerNameServer_test.go b/pkg/fourslash/tests/gen/callHierarchyContainerNameServer_test.go index 6c618a68e..e16d65b9f 100644 --- a/pkg/fourslash/tests/gen/callHierarchyContainerNameServer_test.go +++ b/pkg/fourslash/tests/gen/callHierarchyContainerNameServer_test.go @@ -8,8 +8,8 @@ import ( ) func TestCallHierarchyContainerNameServer(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function /**/f() {} diff --git a/pkg/fourslash/tests/gen/callHierarchyContainerName_test.go b/pkg/fourslash/tests/gen/callHierarchyContainerName_test.go index 1609b00b3..d3ec93936 100644 --- a/pkg/fourslash/tests/gen/callHierarchyContainerName_test.go +++ b/pkg/fourslash/tests/gen/callHierarchyContainerName_test.go @@ -8,8 +8,8 @@ import ( ) func TestCallHierarchyContainerName(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function /**/f() {} diff --git a/pkg/fourslash/tests/gen/callHierarchyCrossFile_test.go b/pkg/fourslash/tests/gen/callHierarchyCrossFile_test.go index 2e2374f5d..8f1c2e7ba 100644 --- a/pkg/fourslash/tests/gen/callHierarchyCrossFile_test.go +++ b/pkg/fourslash/tests/gen/callHierarchyCrossFile_test.go @@ -8,8 +8,8 @@ import ( ) func TestCallHierarchyCrossFile(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: /a.ts export function /**/createModelReference() {} diff --git a/pkg/fourslash/tests/gen/callHierarchyDecorator_test.go b/pkg/fourslash/tests/gen/callHierarchyDecorator_test.go index 66592de73..6091eda58 100644 --- a/pkg/fourslash/tests/gen/callHierarchyDecorator_test.go +++ b/pkg/fourslash/tests/gen/callHierarchyDecorator_test.go @@ -8,8 +8,8 @@ import ( ) func TestCallHierarchyDecorator(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @experimentalDecorators: true @bar diff --git a/pkg/fourslash/tests/gen/callHierarchyExportDefaultClass_test.go b/pkg/fourslash/tests/gen/callHierarchyExportDefaultClass_test.go index 5800da265..6ef7b785d 100644 --- a/pkg/fourslash/tests/gen/callHierarchyExportDefaultClass_test.go +++ b/pkg/fourslash/tests/gen/callHierarchyExportDefaultClass_test.go @@ -8,8 +8,8 @@ import ( ) func TestCallHierarchyExportDefaultClass(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: main.ts import Bar from "./other"; diff --git a/pkg/fourslash/tests/gen/callHierarchyExportDefaultFunction_test.go b/pkg/fourslash/tests/gen/callHierarchyExportDefaultFunction_test.go index 2d810dc5c..364a558b6 100644 --- a/pkg/fourslash/tests/gen/callHierarchyExportDefaultFunction_test.go +++ b/pkg/fourslash/tests/gen/callHierarchyExportDefaultFunction_test.go @@ -8,8 +8,8 @@ import ( ) func TestCallHierarchyExportDefaultFunction(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: main.ts import bar from "./other"; diff --git a/pkg/fourslash/tests/gen/callHierarchyExportEqualsFunction_test.go b/pkg/fourslash/tests/gen/callHierarchyExportEqualsFunction_test.go index df123e464..e122f1cf2 100644 --- a/pkg/fourslash/tests/gen/callHierarchyExportEqualsFunction_test.go +++ b/pkg/fourslash/tests/gen/callHierarchyExportEqualsFunction_test.go @@ -8,8 +8,8 @@ import ( ) func TestCallHierarchyExportEqualsFunction(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: main.ts import bar = require("./other"); diff --git a/pkg/fourslash/tests/gen/callHierarchyFile_test.go b/pkg/fourslash/tests/gen/callHierarchyFile_test.go index ecbb927a1..145bcab07 100644 --- a/pkg/fourslash/tests/gen/callHierarchyFile_test.go +++ b/pkg/fourslash/tests/gen/callHierarchyFile_test.go @@ -8,8 +8,8 @@ import ( ) func TestCallHierarchyFile(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `foo(); function /**/foo() { diff --git a/pkg/fourslash/tests/gen/callHierarchyFunctionAmbiguity1_test.go b/pkg/fourslash/tests/gen/callHierarchyFunctionAmbiguity1_test.go index 8e6de3b54..5ead4077f 100644 --- a/pkg/fourslash/tests/gen/callHierarchyFunctionAmbiguity1_test.go +++ b/pkg/fourslash/tests/gen/callHierarchyFunctionAmbiguity1_test.go @@ -8,8 +8,8 @@ import ( ) func TestCallHierarchyFunctionAmbiguity1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: a.d.ts declare function foo(x?: number): void; diff --git a/pkg/fourslash/tests/gen/callHierarchyFunctionAmbiguity2_test.go b/pkg/fourslash/tests/gen/callHierarchyFunctionAmbiguity2_test.go index 7fedf047d..61bfc7cee 100644 --- a/pkg/fourslash/tests/gen/callHierarchyFunctionAmbiguity2_test.go +++ b/pkg/fourslash/tests/gen/callHierarchyFunctionAmbiguity2_test.go @@ -8,8 +8,8 @@ import ( ) func TestCallHierarchyFunctionAmbiguity2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: a.d.ts declare function /**/foo(x?: number): void; diff --git a/pkg/fourslash/tests/gen/callHierarchyFunctionAmbiguity3_test.go b/pkg/fourslash/tests/gen/callHierarchyFunctionAmbiguity3_test.go index 532658c86..d9ea6f604 100644 --- a/pkg/fourslash/tests/gen/callHierarchyFunctionAmbiguity3_test.go +++ b/pkg/fourslash/tests/gen/callHierarchyFunctionAmbiguity3_test.go @@ -8,8 +8,8 @@ import ( ) func TestCallHierarchyFunctionAmbiguity3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: a.d.ts declare function foo(x?: number): void; diff --git a/pkg/fourslash/tests/gen/callHierarchyFunctionAmbiguity4_test.go b/pkg/fourslash/tests/gen/callHierarchyFunctionAmbiguity4_test.go index 0fe4df607..60e1844dd 100644 --- a/pkg/fourslash/tests/gen/callHierarchyFunctionAmbiguity4_test.go +++ b/pkg/fourslash/tests/gen/callHierarchyFunctionAmbiguity4_test.go @@ -8,8 +8,8 @@ import ( ) func TestCallHierarchyFunctionAmbiguity4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: a.d.ts declare function foo(x?: number): void; diff --git a/pkg/fourslash/tests/gen/callHierarchyFunctionAmbiguity5_test.go b/pkg/fourslash/tests/gen/callHierarchyFunctionAmbiguity5_test.go index e19bea1f9..473f551cd 100644 --- a/pkg/fourslash/tests/gen/callHierarchyFunctionAmbiguity5_test.go +++ b/pkg/fourslash/tests/gen/callHierarchyFunctionAmbiguity5_test.go @@ -8,8 +8,8 @@ import ( ) func TestCallHierarchyFunctionAmbiguity5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: a.d.ts declare function foo(x?: number): void; diff --git a/pkg/fourslash/tests/gen/callHierarchyFunction_test.go b/pkg/fourslash/tests/gen/callHierarchyFunction_test.go index e39437048..c3c818bfc 100644 --- a/pkg/fourslash/tests/gen/callHierarchyFunction_test.go +++ b/pkg/fourslash/tests/gen/callHierarchyFunction_test.go @@ -8,8 +8,8 @@ import ( ) func TestCallHierarchyFunction(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo() { bar(); diff --git a/pkg/fourslash/tests/gen/callHierarchyInterfaceMethod_test.go b/pkg/fourslash/tests/gen/callHierarchyInterfaceMethod_test.go index 1d0bcb782..d6d08a667 100644 --- a/pkg/fourslash/tests/gen/callHierarchyInterfaceMethod_test.go +++ b/pkg/fourslash/tests/gen/callHierarchyInterfaceMethod_test.go @@ -8,8 +8,8 @@ import ( ) func TestCallHierarchyInterfaceMethod(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { /**/foo(): void; diff --git a/pkg/fourslash/tests/gen/callHierarchyJsxElement_test.go b/pkg/fourslash/tests/gen/callHierarchyJsxElement_test.go index dbd58a013..742332aec 100644 --- a/pkg/fourslash/tests/gen/callHierarchyJsxElement_test.go +++ b/pkg/fourslash/tests/gen/callHierarchyJsxElement_test.go @@ -8,8 +8,8 @@ import ( ) func TestCallHierarchyJsxElement(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @jsx: preserve // @filename: main.tsx diff --git a/pkg/fourslash/tests/gen/callHierarchyTaggedTemplate_test.go b/pkg/fourslash/tests/gen/callHierarchyTaggedTemplate_test.go index 94b35983e..a184cf8e1 100644 --- a/pkg/fourslash/tests/gen/callHierarchyTaggedTemplate_test.go +++ b/pkg/fourslash/tests/gen/callHierarchyTaggedTemplate_test.go @@ -8,8 +8,8 @@ import ( ) func TestCallHierarchyTaggedTemplate(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo() { bar` + "`" + `a${1}b` + "`" + `; diff --git a/pkg/fourslash/tests/gen/callSignatureHelp_test.go b/pkg/fourslash/tests/gen/callSignatureHelp_test.go index 772745586..e278c1351 100644 --- a/pkg/fourslash/tests/gen/callSignatureHelp_test.go +++ b/pkg/fourslash/tests/gen/callSignatureHelp_test.go @@ -8,8 +8,8 @@ import ( ) func TestCallSignatureHelp(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface C { (): number; diff --git a/pkg/fourslash/tests/gen/calledUnionsOfDissimilarTyeshaveGoodDisplay_test.go b/pkg/fourslash/tests/gen/calledUnionsOfDissimilarTyeshaveGoodDisplay_test.go index 04c31ef7e..9e07a72b3 100644 --- a/pkg/fourslash/tests/gen/calledUnionsOfDissimilarTyeshaveGoodDisplay_test.go +++ b/pkg/fourslash/tests/gen/calledUnionsOfDissimilarTyeshaveGoodDisplay_test.go @@ -8,8 +8,8 @@ import ( ) func TestCalledUnionsOfDissimilarTyeshaveGoodDisplay(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const callableThing1: | ((o1: {x: number}) => void) diff --git a/pkg/fourslash/tests/gen/chainedFatArrowFormatting_test.go b/pkg/fourslash/tests/gen/chainedFatArrowFormatting_test.go index 75cc42820..ea9c06b12 100644 --- a/pkg/fourslash/tests/gen/chainedFatArrowFormatting_test.go +++ b/pkg/fourslash/tests/gen/chainedFatArrowFormatting_test.go @@ -8,8 +8,8 @@ import ( ) func TestChainedFatArrowFormatting(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var fn = () => () => null/**/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/classExtendsInterfaceSigHelp1_test.go b/pkg/fourslash/tests/gen/classExtendsInterfaceSigHelp1_test.go index 5744b8db7..9363fb5cf 100644 --- a/pkg/fourslash/tests/gen/classExtendsInterfaceSigHelp1_test.go +++ b/pkg/fourslash/tests/gen/classExtendsInterfaceSigHelp1_test.go @@ -8,8 +8,8 @@ import ( ) func TestClassExtendsInterfaceSigHelp1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { public foo(x: string); diff --git a/pkg/fourslash/tests/gen/classInterfaceInsert_test.go b/pkg/fourslash/tests/gen/classInterfaceInsert_test.go index d59ee0ab4..ad70797db 100644 --- a/pkg/fourslash/tests/gen/classInterfaceInsert_test.go +++ b/pkg/fourslash/tests/gen/classInterfaceInsert_test.go @@ -8,8 +8,8 @@ import ( ) func TestClassInterfaceInsert(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Intersection { dist: number; diff --git a/pkg/fourslash/tests/gen/cloduleAsBaseClass2_test.go b/pkg/fourslash/tests/gen/cloduleAsBaseClass2_test.go index f2ba58b40..7262159c9 100644 --- a/pkg/fourslash/tests/gen/cloduleAsBaseClass2_test.go +++ b/pkg/fourslash/tests/gen/cloduleAsBaseClass2_test.go @@ -11,8 +11,8 @@ import ( ) func TestCloduleAsBaseClass2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: cloduleAsBaseClass2_0.ts class A { diff --git a/pkg/fourslash/tests/gen/cloduleAsBaseClass_test.go b/pkg/fourslash/tests/gen/cloduleAsBaseClass_test.go index 8a9d21e16..c4f985409 100644 --- a/pkg/fourslash/tests/gen/cloduleAsBaseClass_test.go +++ b/pkg/fourslash/tests/gen/cloduleAsBaseClass_test.go @@ -11,8 +11,8 @@ import ( ) func TestCloduleAsBaseClass(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A { constructor(x: number) { } diff --git a/pkg/fourslash/tests/gen/cloduleTypeOf1_test.go b/pkg/fourslash/tests/gen/cloduleTypeOf1_test.go index c55403800..09242b7b2 100644 --- a/pkg/fourslash/tests/gen/cloduleTypeOf1_test.go +++ b/pkg/fourslash/tests/gen/cloduleTypeOf1_test.go @@ -11,8 +11,8 @@ import ( ) func TestCloduleTypeOf1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { static foo(x: number) { } diff --git a/pkg/fourslash/tests/gen/closedCommentsInConstructor_test.go b/pkg/fourslash/tests/gen/closedCommentsInConstructor_test.go index 5643eaf15..cf9332543 100644 --- a/pkg/fourslash/tests/gen/closedCommentsInConstructor_test.go +++ b/pkg/fourslash/tests/gen/closedCommentsInConstructor_test.go @@ -8,8 +8,8 @@ import ( ) func TestClosedCommentsInConstructor(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { constructor(/* /**/ */) { } diff --git a/pkg/fourslash/tests/gen/codeCompletionEscaping_test.go b/pkg/fourslash/tests/gen/codeCompletionEscaping_test.go index 94145278a..43bc3eaed 100644 --- a/pkg/fourslash/tests/gen/codeCompletionEscaping_test.go +++ b/pkg/fourslash/tests/gen/codeCompletionEscaping_test.go @@ -11,8 +11,8 @@ import ( ) func TestCodeCompletionEscaping(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.js // @allowJs: true diff --git a/pkg/fourslash/tests/gen/codeFixCannotFindModule_suggestion_falsePositive_test.go b/pkg/fourslash/tests/gen/codeFixCannotFindModule_suggestion_falsePositive_test.go index 109ae063c..384aabc20 100644 --- a/pkg/fourslash/tests/gen/codeFixCannotFindModule_suggestion_falsePositive_test.go +++ b/pkg/fourslash/tests/gen/codeFixCannotFindModule_suggestion_falsePositive_test.go @@ -8,8 +8,8 @@ import ( ) func TestCodeFixCannotFindModule_suggestion_falsePositive(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @moduleResolution: bundler // @resolveJsonModule: true diff --git a/pkg/fourslash/tests/gen/codeFixInferFromUsageBindingElement_test.go b/pkg/fourslash/tests/gen/codeFixInferFromUsageBindingElement_test.go index b9b3922fc..abecb25e3 100644 --- a/pkg/fourslash/tests/gen/codeFixInferFromUsageBindingElement_test.go +++ b/pkg/fourslash/tests/gen/codeFixInferFromUsageBindingElement_test.go @@ -8,8 +8,8 @@ import ( ) func TestCodeFixInferFromUsageBindingElement(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f([car, cdr]) { return car + cdr + 1 diff --git a/pkg/fourslash/tests/gen/codeFixRemoveUnnecessaryAwait_mixedUnion_test.go b/pkg/fourslash/tests/gen/codeFixRemoveUnnecessaryAwait_mixedUnion_test.go index 5bef20667..733288f42 100644 --- a/pkg/fourslash/tests/gen/codeFixRemoveUnnecessaryAwait_mixedUnion_test.go +++ b/pkg/fourslash/tests/gen/codeFixRemoveUnnecessaryAwait_mixedUnion_test.go @@ -8,8 +8,8 @@ import ( ) func TestCodeFixRemoveUnnecessaryAwait_mixedUnion(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @target: esnext async function fn1(a: Promise | void) { diff --git a/pkg/fourslash/tests/gen/codeFixRemoveUnnecessaryAwait_notAvailableOnReturn_test.go b/pkg/fourslash/tests/gen/codeFixRemoveUnnecessaryAwait_notAvailableOnReturn_test.go index 43ef32d90..56955cbc6 100644 --- a/pkg/fourslash/tests/gen/codeFixRemoveUnnecessaryAwait_notAvailableOnReturn_test.go +++ b/pkg/fourslash/tests/gen/codeFixRemoveUnnecessaryAwait_notAvailableOnReturn_test.go @@ -8,8 +8,8 @@ import ( ) func TestCodeFixRemoveUnnecessaryAwait_notAvailableOnReturn(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @target: esnext async function fn(): Promise { diff --git a/pkg/fourslash/tests/gen/codeFixSpellingJs3_test.go b/pkg/fourslash/tests/gen/codeFixSpellingJs3_test.go index ca1b398a8..cb6578d8d 100644 --- a/pkg/fourslash/tests/gen/codeFixSpellingJs3_test.go +++ b/pkg/fourslash/tests/gen/codeFixSpellingJs3_test.go @@ -8,8 +8,8 @@ import ( ) func TestCodeFixSpellingJs3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowjs: true // @noEmit: true diff --git a/pkg/fourslash/tests/gen/codeFixSpellingJs5_test.go b/pkg/fourslash/tests/gen/codeFixSpellingJs5_test.go index 3f7243401..61af21d98 100644 --- a/pkg/fourslash/tests/gen/codeFixSpellingJs5_test.go +++ b/pkg/fourslash/tests/gen/codeFixSpellingJs5_test.go @@ -8,8 +8,8 @@ import ( ) func TestCodeFixSpellingJs5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowjs: true // @noEmit: true diff --git a/pkg/fourslash/tests/gen/codeFixSpellingJs6_test.go b/pkg/fourslash/tests/gen/codeFixSpellingJs6_test.go index 8909dda1e..11f0ec060 100644 --- a/pkg/fourslash/tests/gen/codeFixSpellingJs6_test.go +++ b/pkg/fourslash/tests/gen/codeFixSpellingJs6_test.go @@ -8,8 +8,8 @@ import ( ) func TestCodeFixSpellingJs6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowjs: true // @checkjs: false diff --git a/pkg/fourslash/tests/gen/codeFixSpellingJs7_test.go b/pkg/fourslash/tests/gen/codeFixSpellingJs7_test.go index bf2b8a9f9..605046b7d 100644 --- a/pkg/fourslash/tests/gen/codeFixSpellingJs7_test.go +++ b/pkg/fourslash/tests/gen/codeFixSpellingJs7_test.go @@ -8,8 +8,8 @@ import ( ) func TestCodeFixSpellingJs7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowjs: true // @noEmit: true diff --git a/pkg/fourslash/tests/gen/codeFixSpellingJs8_test.go b/pkg/fourslash/tests/gen/codeFixSpellingJs8_test.go index 51aca8646..e82d56e2f 100644 --- a/pkg/fourslash/tests/gen/codeFixSpellingJs8_test.go +++ b/pkg/fourslash/tests/gen/codeFixSpellingJs8_test.go @@ -8,8 +8,8 @@ import ( ) func TestCodeFixSpellingJs8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowjs: true // @noEmit: true diff --git a/pkg/fourslash/tests/gen/codeFixUnreachableCode_noSuggestionIfDisabled_test.go b/pkg/fourslash/tests/gen/codeFixUnreachableCode_noSuggestionIfDisabled_test.go index 23dced848..264e491d5 100644 --- a/pkg/fourslash/tests/gen/codeFixUnreachableCode_noSuggestionIfDisabled_test.go +++ b/pkg/fourslash/tests/gen/codeFixUnreachableCode_noSuggestionIfDisabled_test.go @@ -8,8 +8,8 @@ import ( ) func TestCodeFixUnreachableCode_noSuggestionIfDisabled(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowUnreachableCode: true if (false) 0;` diff --git a/pkg/fourslash/tests/gen/codeFixUnusedLabel_noSuggestionIfDisabled_test.go b/pkg/fourslash/tests/gen/codeFixUnusedLabel_noSuggestionIfDisabled_test.go index bd8d68664..5a9c22ac4 100644 --- a/pkg/fourslash/tests/gen/codeFixUnusedLabel_noSuggestionIfDisabled_test.go +++ b/pkg/fourslash/tests/gen/codeFixUnusedLabel_noSuggestionIfDisabled_test.go @@ -8,8 +8,8 @@ import ( ) func TestCodeFixUnusedLabel_noSuggestionIfDisabled(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowUnusedLabels: true foo: while (true) {}` diff --git a/pkg/fourslash/tests/gen/commentsEnumsFourslash_test.go b/pkg/fourslash/tests/gen/commentsEnumsFourslash_test.go index 830c30876..28eaf3328 100644 --- a/pkg/fourslash/tests/gen/commentsEnumsFourslash_test.go +++ b/pkg/fourslash/tests/gen/commentsEnumsFourslash_test.go @@ -10,8 +10,8 @@ import ( ) func TestCommentsEnumsFourslash(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** Enum of colors*/ enum /*1*/Colors { diff --git a/pkg/fourslash/tests/gen/commentsExternalModulesFourslash_test.go b/pkg/fourslash/tests/gen/commentsExternalModulesFourslash_test.go index bb3311d06..5efe8cf19 100644 --- a/pkg/fourslash/tests/gen/commentsExternalModulesFourslash_test.go +++ b/pkg/fourslash/tests/gen/commentsExternalModulesFourslash_test.go @@ -10,8 +10,8 @@ import ( ) func TestCommentsExternalModulesFourslash(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: commentsExternalModules_file0.ts /** Namespace comment*/ diff --git a/pkg/fourslash/tests/gen/commentsImportDeclaration_test.go b/pkg/fourslash/tests/gen/commentsImportDeclaration_test.go index eb32d90e8..026af5df3 100644 --- a/pkg/fourslash/tests/gen/commentsImportDeclaration_test.go +++ b/pkg/fourslash/tests/gen/commentsImportDeclaration_test.go @@ -10,8 +10,8 @@ import ( ) func TestCommentsImportDeclaration(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: commentsImportDeclaration_file0.ts /** NamespaceComment*/ diff --git a/pkg/fourslash/tests/gen/commentsInheritanceFourslash_test.go b/pkg/fourslash/tests/gen/commentsInheritanceFourslash_test.go index 08ea3cb5a..f825b0bf5 100644 --- a/pkg/fourslash/tests/gen/commentsInheritanceFourslash_test.go +++ b/pkg/fourslash/tests/gen/commentsInheritanceFourslash_test.go @@ -10,8 +10,8 @@ import ( ) func TestCommentsInheritanceFourslash(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** i1 is interface with properties*/ interface i1 { diff --git a/pkg/fourslash/tests/gen/commentsInterfaceFourslash_test.go b/pkg/fourslash/tests/gen/commentsInterfaceFourslash_test.go index 60ffd4a42..c64550654 100644 --- a/pkg/fourslash/tests/gen/commentsInterfaceFourslash_test.go +++ b/pkg/fourslash/tests/gen/commentsInterfaceFourslash_test.go @@ -10,8 +10,8 @@ import ( ) func TestCommentsInterfaceFourslash(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** this is interface 1*/ interface i/*1*/1 { diff --git a/pkg/fourslash/tests/gen/commentsLinePreservation_test.go b/pkg/fourslash/tests/gen/commentsLinePreservation_test.go index 54f5b49db..f622b4492 100644 --- a/pkg/fourslash/tests/gen/commentsLinePreservation_test.go +++ b/pkg/fourslash/tests/gen/commentsLinePreservation_test.go @@ -8,8 +8,8 @@ import ( ) func TestCommentsLinePreservation(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** This is firstLine * This is second Line diff --git a/pkg/fourslash/tests/gen/commentsOverloadsFourslash_test.go b/pkg/fourslash/tests/gen/commentsOverloadsFourslash_test.go index fed4e768b..f7e4fae3a 100644 --- a/pkg/fourslash/tests/gen/commentsOverloadsFourslash_test.go +++ b/pkg/fourslash/tests/gen/commentsOverloadsFourslash_test.go @@ -10,8 +10,8 @@ import ( ) func TestCommentsOverloadsFourslash(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** this is signature 1*/ function /*1*/f1(/**param a*/a: number): number; diff --git a/pkg/fourslash/tests/gen/commentsUnion_test.go b/pkg/fourslash/tests/gen/commentsUnion_test.go index 5fdab5470..a4e0026ba 100644 --- a/pkg/fourslash/tests/gen/commentsUnion_test.go +++ b/pkg/fourslash/tests/gen/commentsUnion_test.go @@ -8,8 +8,8 @@ import ( ) func TestCommentsUnion(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var a: Array | Array; a./*1*/length` diff --git a/pkg/fourslash/tests/gen/commentsVariables_test.go b/pkg/fourslash/tests/gen/commentsVariables_test.go index b0a409423..674092c64 100644 --- a/pkg/fourslash/tests/gen/commentsVariables_test.go +++ b/pkg/fourslash/tests/gen/commentsVariables_test.go @@ -10,8 +10,8 @@ import ( ) func TestCommentsVariables(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** This is my variable*/ var myV/*1*/ariable = 10; diff --git a/pkg/fourslash/tests/gen/completionAfterAtChar_test.go b/pkg/fourslash/tests/gen/completionAfterAtChar_test.go index ce29d6d88..bc2a84513 100644 --- a/pkg/fourslash/tests/gen/completionAfterAtChar_test.go +++ b/pkg/fourslash/tests/gen/completionAfterAtChar_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionAfterAtChar(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `@a/**/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/completionAfterBackslashFollowingString_test.go b/pkg/fourslash/tests/gen/completionAfterBackslashFollowingString_test.go index 29a961b81..f8d1c4f0e 100644 --- a/pkg/fourslash/tests/gen/completionAfterBackslashFollowingString_test.go +++ b/pkg/fourslash/tests/gen/completionAfterBackslashFollowingString_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionAfterBackslashFollowingString(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `Harness.newLine = ""\n/**/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/completionAfterBrace_test.go b/pkg/fourslash/tests/gen/completionAfterBrace_test.go index cb66816b7..78984fab2 100644 --- a/pkg/fourslash/tests/gen/completionAfterBrace_test.go +++ b/pkg/fourslash/tests/gen/completionAfterBrace_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionAfterBrace(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = ` }/**/ diff --git a/pkg/fourslash/tests/gen/completionAfterDotDotDot_test.go b/pkg/fourslash/tests/gen/completionAfterDotDotDot_test.go index 471b4ad08..2d5e7b664 100644 --- a/pkg/fourslash/tests/gen/completionAfterDotDotDot_test.go +++ b/pkg/fourslash/tests/gen/completionAfterDotDotDot_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionAfterDotDotDot(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `.../**/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/completionAfterNewline2_test.go b/pkg/fourslash/tests/gen/completionAfterNewline2_test.go index b7aec5ae3..9d1743dc5 100644 --- a/pkg/fourslash/tests/gen/completionAfterNewline2_test.go +++ b/pkg/fourslash/tests/gen/completionAfterNewline2_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionAfterNewline2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let foo = 5 as const /*1*/ /*2*/` diff --git a/pkg/fourslash/tests/gen/completionAfterNewline_test.go b/pkg/fourslash/tests/gen/completionAfterNewline_test.go index 553f85b27..e95be341c 100644 --- a/pkg/fourslash/tests/gen/completionAfterNewline_test.go +++ b/pkg/fourslash/tests/gen/completionAfterNewline_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionAfterNewline(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let foo /*1*/ /*2*/ diff --git a/pkg/fourslash/tests/gen/completionAfterQuestionDot_test.go b/pkg/fourslash/tests/gen/completionAfterQuestionDot_test.go index 3813e386f..52b7b6338 100644 --- a/pkg/fourslash/tests/gen/completionAfterQuestionDot_test.go +++ b/pkg/fourslash/tests/gen/completionAfterQuestionDot_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionAfterQuestionDot(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true class User { diff --git a/pkg/fourslash/tests/gen/completionAmbientPropertyDeclaration_test.go b/pkg/fourslash/tests/gen/completionAmbientPropertyDeclaration_test.go index 5a4cf3128..0fe73f16f 100644 --- a/pkg/fourslash/tests/gen/completionAmbientPropertyDeclaration_test.go +++ b/pkg/fourslash/tests/gen/completionAmbientPropertyDeclaration_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionAmbientPropertyDeclaration(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { /*1*/ declare property: number; diff --git a/pkg/fourslash/tests/gen/completionAsKeyword_test.go b/pkg/fourslash/tests/gen/completionAsKeyword_test.go index 9eb9d7bc1..e3575aeca 100644 --- a/pkg/fourslash/tests/gen/completionAsKeyword_test.go +++ b/pkg/fourslash/tests/gen/completionAsKeyword_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionAsKeyword(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const x = this /*1*/ function foo() { diff --git a/pkg/fourslash/tests/gen/completionAtCaseClause_test.go b/pkg/fourslash/tests/gen/completionAtCaseClause_test.go index f3090a6d7..5e3dd0af6 100644 --- a/pkg/fourslash/tests/gen/completionAtCaseClause_test.go +++ b/pkg/fourslash/tests/gen/completionAtCaseClause_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionAtCaseClause(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `case /**/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/completionAtDottedNamespace_test.go b/pkg/fourslash/tests/gen/completionAtDottedNamespace_test.go index 85880565e..9930af8e4 100644 --- a/pkg/fourslash/tests/gen/completionAtDottedNamespace_test.go +++ b/pkg/fourslash/tests/gen/completionAtDottedNamespace_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionAtDottedNamespace(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `namespace wwer./**/w` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/completionAutoInsertQuestionDot_test.go b/pkg/fourslash/tests/gen/completionAutoInsertQuestionDot_test.go index bc275582d..56a7419ef 100644 --- a/pkg/fourslash/tests/gen/completionAutoInsertQuestionDot_test.go +++ b/pkg/fourslash/tests/gen/completionAutoInsertQuestionDot_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionAutoInsertQuestionDot(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface User { diff --git a/pkg/fourslash/tests/gen/completionBeforeSemanticDiagnosticsInArrowFunction1_test.go b/pkg/fourslash/tests/gen/completionBeforeSemanticDiagnosticsInArrowFunction1_test.go index 60cef10fa..581ab1c93 100644 --- a/pkg/fourslash/tests/gen/completionBeforeSemanticDiagnosticsInArrowFunction1_test.go +++ b/pkg/fourslash/tests/gen/completionBeforeSemanticDiagnosticsInArrowFunction1_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionBeforeSemanticDiagnosticsInArrowFunction1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var f4 = (x: T/**/ ) => { }` diff --git a/pkg/fourslash/tests/gen/completionCloneQuestionToken_test.go b/pkg/fourslash/tests/gen/completionCloneQuestionToken_test.go index ebaa96b2a..669ed8d14 100644 --- a/pkg/fourslash/tests/gen/completionCloneQuestionToken_test.go +++ b/pkg/fourslash/tests/gen/completionCloneQuestionToken_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionCloneQuestionToken(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /file2.ts type TCallback = (options: T) => any; diff --git a/pkg/fourslash/tests/gen/completionDetailsOfContextSensitiveParameterNoCrash_test.go b/pkg/fourslash/tests/gen/completionDetailsOfContextSensitiveParameterNoCrash_test.go index 09d9b0000..7ca3089c1 100644 --- a/pkg/fourslash/tests/gen/completionDetailsOfContextSensitiveParameterNoCrash_test.go +++ b/pkg/fourslash/tests/gen/completionDetailsOfContextSensitiveParameterNoCrash_test.go @@ -8,8 +8,8 @@ import ( ) func TestCompletionDetailsOfContextSensitiveParameterNoCrash(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true type __ = never; diff --git a/pkg/fourslash/tests/gen/completionEntryAfterASIExpressionInClass_test.go b/pkg/fourslash/tests/gen/completionEntryAfterASIExpressionInClass_test.go index 19f2fe453..eabf1374d 100644 --- a/pkg/fourslash/tests/gen/completionEntryAfterASIExpressionInClass_test.go +++ b/pkg/fourslash/tests/gen/completionEntryAfterASIExpressionInClass_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionEntryAfterASIExpressionInClass(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Parent { protected shouldWork() { diff --git a/pkg/fourslash/tests/gen/completionEntryClassMembersWithInferredFunctionReturnType1_test.go b/pkg/fourslash/tests/gen/completionEntryClassMembersWithInferredFunctionReturnType1_test.go index bbbb3b1c3..aa7f2907b 100644 --- a/pkg/fourslash/tests/gen/completionEntryClassMembersWithInferredFunctionReturnType1_test.go +++ b/pkg/fourslash/tests/gen/completionEntryClassMembersWithInferredFunctionReturnType1_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionEntryClassMembersWithInferredFunctionReturnType1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: /tokenizer.ts export default abstract class Tokenizer { diff --git a/pkg/fourslash/tests/gen/completionEntryForArgumentConstrainedToString_test.go b/pkg/fourslash/tests/gen/completionEntryForArgumentConstrainedToString_test.go index a394afa68..139068dca 100644 --- a/pkg/fourslash/tests/gen/completionEntryForArgumentConstrainedToString_test.go +++ b/pkg/fourslash/tests/gen/completionEntryForArgumentConstrainedToString_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionEntryForArgumentConstrainedToString(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function test

(p: P): void; diff --git a/pkg/fourslash/tests/gen/completionEntryForArrayElementConstrainedToString2_test.go b/pkg/fourslash/tests/gen/completionEntryForArrayElementConstrainedToString2_test.go index 9f007a900..dcda1447f 100644 --- a/pkg/fourslash/tests/gen/completionEntryForArrayElementConstrainedToString2_test.go +++ b/pkg/fourslash/tests/gen/completionEntryForArrayElementConstrainedToString2_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionEntryForArrayElementConstrainedToString2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function test(a: { foo: T[] }): void diff --git a/pkg/fourslash/tests/gen/completionEntryForArrayElementConstrainedToString_test.go b/pkg/fourslash/tests/gen/completionEntryForArrayElementConstrainedToString_test.go index 61a8c9e3d..153203cda 100644 --- a/pkg/fourslash/tests/gen/completionEntryForArrayElementConstrainedToString_test.go +++ b/pkg/fourslash/tests/gen/completionEntryForArrayElementConstrainedToString_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionEntryForArrayElementConstrainedToString(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function test(a: { foo: T[] }): void diff --git a/pkg/fourslash/tests/gen/completionEntryForClassMembers_StaticWhenBaseTypeIsNotResolved_test.go b/pkg/fourslash/tests/gen/completionEntryForClassMembers_StaticWhenBaseTypeIsNotResolved_test.go index 75318e266..03136e4ea 100644 --- a/pkg/fourslash/tests/gen/completionEntryForClassMembers_StaticWhenBaseTypeIsNotResolved_test.go +++ b/pkg/fourslash/tests/gen/completionEntryForClassMembers_StaticWhenBaseTypeIsNotResolved_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionEntryForClassMembers_StaticWhenBaseTypeIsNotResolved(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts import React from 'react' diff --git a/pkg/fourslash/tests/gen/completionEntryForConst_test.go b/pkg/fourslash/tests/gen/completionEntryForConst_test.go index 22d572a01..32c7f0167 100644 --- a/pkg/fourslash/tests/gen/completionEntryForConst_test.go +++ b/pkg/fourslash/tests/gen/completionEntryForConst_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionEntryForConst(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const c = "s"; /*1*/ diff --git a/pkg/fourslash/tests/gen/completionEntryForDeferredMappedTypeMembers_test.go b/pkg/fourslash/tests/gen/completionEntryForDeferredMappedTypeMembers_test.go index d2ce6cb83..37a149469 100644 --- a/pkg/fourslash/tests/gen/completionEntryForDeferredMappedTypeMembers_test.go +++ b/pkg/fourslash/tests/gen/completionEntryForDeferredMappedTypeMembers_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionEntryForDeferredMappedTypeMembers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: test.ts interface A { a: A } diff --git a/pkg/fourslash/tests/gen/completionEntryForPropertyConstrainedToString_test.go b/pkg/fourslash/tests/gen/completionEntryForPropertyConstrainedToString_test.go index 6299baa35..be718fe8c 100644 --- a/pkg/fourslash/tests/gen/completionEntryForPropertyConstrainedToString_test.go +++ b/pkg/fourslash/tests/gen/completionEntryForPropertyConstrainedToString_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionEntryForPropertyConstrainedToString(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function test

(p: { type: P }): void; diff --git a/pkg/fourslash/tests/gen/completionEntryForPropertyFromUnionOfModuleType_test.go b/pkg/fourslash/tests/gen/completionEntryForPropertyFromUnionOfModuleType_test.go index 0c4e8a945..6eab07267 100644 --- a/pkg/fourslash/tests/gen/completionEntryForPropertyFromUnionOfModuleType_test.go +++ b/pkg/fourslash/tests/gen/completionEntryForPropertyFromUnionOfModuleType_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionEntryForPropertyFromUnionOfModuleType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module E { export var n = 1; diff --git a/pkg/fourslash/tests/gen/completionEntryForShorthandPropertyAssignment_test.go b/pkg/fourslash/tests/gen/completionEntryForShorthandPropertyAssignment_test.go index 9400ce533..888b25a96 100644 --- a/pkg/fourslash/tests/gen/completionEntryForShorthandPropertyAssignment_test.go +++ b/pkg/fourslash/tests/gen/completionEntryForShorthandPropertyAssignment_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionEntryForShorthandPropertyAssignment(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var person: {name:string; id:number} = {n/**/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/completionEntryForUnionProperty2_test.go b/pkg/fourslash/tests/gen/completionEntryForUnionProperty2_test.go index aa7bcef00..5ffbda818 100644 --- a/pkg/fourslash/tests/gen/completionEntryForUnionProperty2_test.go +++ b/pkg/fourslash/tests/gen/completionEntryForUnionProperty2_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionEntryForUnionProperty2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface One { commonProperty: string; diff --git a/pkg/fourslash/tests/gen/completionEntryForUnionProperty_test.go b/pkg/fourslash/tests/gen/completionEntryForUnionProperty_test.go index e3a6bac5d..072bcc3db 100644 --- a/pkg/fourslash/tests/gen/completionEntryForUnionProperty_test.go +++ b/pkg/fourslash/tests/gen/completionEntryForUnionProperty_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionEntryForUnionProperty(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface One { commonProperty: number; diff --git a/pkg/fourslash/tests/gen/completionEntryOnNarrowedType_test.go b/pkg/fourslash/tests/gen/completionEntryOnNarrowedType_test.go index e941bcc74..8cd1a1877 100644 --- a/pkg/fourslash/tests/gen/completionEntryOnNarrowedType_test.go +++ b/pkg/fourslash/tests/gen/completionEntryOnNarrowedType_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionEntryOnNarrowedType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(strOrNum: string | number) { /*1*/ diff --git a/pkg/fourslash/tests/gen/completionExportFrom_test.go b/pkg/fourslash/tests/gen/completionExportFrom_test.go index 2a9d9e9f8..f48b6337d 100644 --- a/pkg/fourslash/tests/gen/completionExportFrom_test.go +++ b/pkg/fourslash/tests/gen/completionExportFrom_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionExportFrom(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export * /*1*/; export {} /*2*/;` diff --git a/pkg/fourslash/tests/gen/completionForComputedStringProperties_test.go b/pkg/fourslash/tests/gen/completionForComputedStringProperties_test.go index 3e1e51a0d..51b4e44dc 100644 --- a/pkg/fourslash/tests/gen/completionForComputedStringProperties_test.go +++ b/pkg/fourslash/tests/gen/completionForComputedStringProperties_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionForComputedStringProperties(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const p2 = "p2"; interface A { diff --git a/pkg/fourslash/tests/gen/completionForMetaProperty_test.go b/pkg/fourslash/tests/gen/completionForMetaProperty_test.go index 6298278f3..67cd79ee7 100644 --- a/pkg/fourslash/tests/gen/completionForMetaProperty_test.go +++ b/pkg/fourslash/tests/gen/completionForMetaProperty_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionForMetaProperty(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `import./*1*/; new./*2*/; diff --git a/pkg/fourslash/tests/gen/completionForObjectProperty_test.go b/pkg/fourslash/tests/gen/completionForObjectProperty_test.go index 79b461264..86aed5e60 100644 --- a/pkg/fourslash/tests/gen/completionForObjectProperty_test.go +++ b/pkg/fourslash/tests/gen/completionForObjectProperty_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionForObjectProperty(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export const foo = { bar: 'baz' }; diff --git a/pkg/fourslash/tests/gen/completionForQuotedPropertyInPropertyAssignment1_test.go b/pkg/fourslash/tests/gen/completionForQuotedPropertyInPropertyAssignment1_test.go index 18f38aa06..c47747367 100644 --- a/pkg/fourslash/tests/gen/completionForQuotedPropertyInPropertyAssignment1_test.go +++ b/pkg/fourslash/tests/gen/completionForQuotedPropertyInPropertyAssignment1_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionForQuotedPropertyInPropertyAssignment1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export interface Configfiles { jspm: string; diff --git a/pkg/fourslash/tests/gen/completionForQuotedPropertyInPropertyAssignment2_test.go b/pkg/fourslash/tests/gen/completionForQuotedPropertyInPropertyAssignment2_test.go index 17a23e0f5..201b5e77b 100644 --- a/pkg/fourslash/tests/gen/completionForQuotedPropertyInPropertyAssignment2_test.go +++ b/pkg/fourslash/tests/gen/completionForQuotedPropertyInPropertyAssignment2_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionForQuotedPropertyInPropertyAssignment2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export interface Config { files: ConfigFiles diff --git a/pkg/fourslash/tests/gen/completionForQuotedPropertyInPropertyAssignment3_test.go b/pkg/fourslash/tests/gen/completionForQuotedPropertyInPropertyAssignment3_test.go index d8035f745..09c3ed88c 100644 --- a/pkg/fourslash/tests/gen/completionForQuotedPropertyInPropertyAssignment3_test.go +++ b/pkg/fourslash/tests/gen/completionForQuotedPropertyInPropertyAssignment3_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionForQuotedPropertyInPropertyAssignment3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = ` let configFiles1: { jspm: string; diff --git a/pkg/fourslash/tests/gen/completionForQuotedPropertyInPropertyAssignment4_test.go b/pkg/fourslash/tests/gen/completionForQuotedPropertyInPropertyAssignment4_test.go index 310deadec..aa2beb6d7 100644 --- a/pkg/fourslash/tests/gen/completionForQuotedPropertyInPropertyAssignment4_test.go +++ b/pkg/fourslash/tests/gen/completionForQuotedPropertyInPropertyAssignment4_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionForQuotedPropertyInPropertyAssignment4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export interface ConfigFiles { jspm: string; diff --git a/pkg/fourslash/tests/gen/completionForStringLiteral11_test.go b/pkg/fourslash/tests/gen/completionForStringLiteral11_test.go index a7b27252c..bc26ea62d 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteral11_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteral11_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionForStringLiteral11(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type As = 'arf' | 'abacus' | 'abaddon'; let a: As; diff --git a/pkg/fourslash/tests/gen/completionForStringLiteral12_test.go b/pkg/fourslash/tests/gen/completionForStringLiteral12_test.go index 77b2ec04a..1b99f3e90 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteral12_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteral12_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionForStringLiteral12(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(x: "bla"): void; function foo(x: "bla"): void; diff --git a/pkg/fourslash/tests/gen/completionForStringLiteral13_test.go b/pkg/fourslash/tests/gen/completionForStringLiteral13_test.go index bdbf52e7e..45d8e4d6c 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteral13_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteral13_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionForStringLiteral13(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface SymbolConstructor { readonly species: symbol; diff --git a/pkg/fourslash/tests/gen/completionForStringLiteral14_test.go b/pkg/fourslash/tests/gen/completionForStringLiteral14_test.go index 97e793794..c1d6c938f 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteral14_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteral14_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionForStringLiteral14(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { a: string; diff --git a/pkg/fourslash/tests/gen/completionForStringLiteral15_test.go b/pkg/fourslash/tests/gen/completionForStringLiteral15_test.go index afea7abfa..f2a0b0abc 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteral15_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteral15_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionForStringLiteral15(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let x: { [_ in "foo"]: string } = { "[|/**/|]" diff --git a/pkg/fourslash/tests/gen/completionForStringLiteral16_test.go b/pkg/fourslash/tests/gen/completionForStringLiteral16_test.go index 2e80c2267..48d94209b 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteral16_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteral16_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionForStringLiteral16(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { a: string; diff --git a/pkg/fourslash/tests/gen/completionForStringLiteral2_test.go b/pkg/fourslash/tests/gen/completionForStringLiteral2_test.go index 3b8685e68..2957b74a9 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteral2_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteral2_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionForStringLiteral2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var o = { foo() { }, diff --git a/pkg/fourslash/tests/gen/completionForStringLiteral3_test.go b/pkg/fourslash/tests/gen/completionForStringLiteral3_test.go index af078e7e8..560b920ae 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteral3_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteral3_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionForStringLiteral3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function f(a: "A", b: number): void; declare function f(a: "B", b: number): void; diff --git a/pkg/fourslash/tests/gen/completionForStringLiteral4_test.go b/pkg/fourslash/tests/gen/completionForStringLiteral4_test.go index e97702a6c..a2e43199c 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteral4_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteral4_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionForStringLiteral4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: in.js diff --git a/pkg/fourslash/tests/gen/completionForStringLiteral5_test.go b/pkg/fourslash/tests/gen/completionForStringLiteral5_test.go index 0d0adc917..88b4f4feb 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteral5_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteral5_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionForStringLiteral5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { foo: string; diff --git a/pkg/fourslash/tests/gen/completionForStringLiteral8_test.go b/pkg/fourslash/tests/gen/completionForStringLiteral8_test.go index 521af3b34..f5b0d972b 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteral8_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteral8_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionForStringLiteral8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type As = 'arf' | 'abacus' | 'abaddon'; let a: As; diff --git a/pkg/fourslash/tests/gen/completionForStringLiteralExport_test.go b/pkg/fourslash/tests/gen/completionForStringLiteralExport_test.go index 453ab51f8..f7386baa1 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteralExport_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteralExport_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionForStringLiteralExport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @typeRoots: my_typings // @Filename: test.ts diff --git a/pkg/fourslash/tests/gen/completionForStringLiteralFromSignature2_test.go b/pkg/fourslash/tests/gen/completionForStringLiteralFromSignature2_test.go index 6fd49568b..5b94cffff 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteralFromSignature2_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteralFromSignature2_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionForStringLiteralFromSignature2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function f(a: "x"): void; declare function f(a: string, b: number): void; diff --git a/pkg/fourslash/tests/gen/completionForStringLiteralFromSignature_test.go b/pkg/fourslash/tests/gen/completionForStringLiteralFromSignature_test.go index 630bf614c..1666b87b2 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteralFromSignature_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteralFromSignature_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionForStringLiteralFromSignature(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function f(a: "x"): void; declare function f(a: string): void; diff --git a/pkg/fourslash/tests/gen/completionForStringLiteralImport1_test.go b/pkg/fourslash/tests/gen/completionForStringLiteralImport1_test.go index 7a9e7ac90..5262767b9 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteralImport1_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteralImport1_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionForStringLiteralImport1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @typeRoots: my_typings // @Filename: test.ts diff --git a/pkg/fourslash/tests/gen/completionForStringLiteralImport2_test.go b/pkg/fourslash/tests/gen/completionForStringLiteralImport2_test.go index edd7e6358..aa29d35f5 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteralImport2_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteralImport2_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionForStringLiteralImport2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @typeRoots: my_typings // @Filename: test.ts diff --git a/pkg/fourslash/tests/gen/completionForStringLiteralInIndexedAccess01_test.go b/pkg/fourslash/tests/gen/completionForStringLiteralInIndexedAccess01_test.go index ecc3aba1f..872125f71 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteralInIndexedAccess01_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteralInIndexedAccess01_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionForStringLiteralInIndexedAccess01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { foo: string; diff --git a/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport10_test.go b/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport10_test.go index 4d9b131c0..70cb4c006 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport10_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport10_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionForStringLiteralNonrelativeImport10(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @moduleResolution: classic // @Filename: dir1/dir2/dir3/dir4/test0.ts diff --git a/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport12_test.go b/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport12_test.go index 2134f333c..2d103697a 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport12_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport12_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionForStringLiteralNonrelativeImport12(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tests/test0.ts import * as foo1 from "m/*import_as0*/ diff --git a/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport14_test.go b/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport14_test.go index 64f028475..858ef96f6 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport14_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport14_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionForStringLiteralNonrelativeImport14(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tsconfig.json { diff --git a/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport16_test.go b/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport16_test.go index 857c1ff87..23a45bc9f 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport16_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport16_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionForStringLiteralNonrelativeImport16(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tsconfig.json { diff --git a/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport17_test.go b/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport17_test.go index 5383e045f..efd21d3f7 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport17_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport17_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionForStringLiteralNonrelativeImport17(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tsconfig.json { diff --git a/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport18_test.go b/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport18_test.go index 492240d9c..ca9891322 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport18_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport18_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionForStringLiteralNonrelativeImport18(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tsconfig.json { diff --git a/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport2_test.go b/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport2_test.go index 9f13a3bdb..4276ae7e8 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport2_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport2_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionForStringLiteralNonrelativeImport2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tests/test0.ts import * as foo1 from "fake-module//*import_as0*/ diff --git a/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport3_test.go b/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport3_test.go index 7e0d46ec2..a679f4596 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport3_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport3_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionForStringLiteralNonrelativeImport3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: tests/test0.ts diff --git a/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport4_test.go b/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport4_test.go index 2017acb5f..1e86bd01e 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport4_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport4_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionForStringLiteralNonrelativeImport4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: dir1/dir2/dir3/dir4/test0.ts import * as foo1 from "f/*import_as0*/ diff --git a/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport7_test.go b/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport7_test.go index 70e9907e6..cc4c151b8 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport7_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport7_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionForStringLiteralNonrelativeImport7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @baseUrl: tests/cases/fourslash/modules // @Filename: tests/test0.ts diff --git a/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport8_test.go b/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport8_test.go index 9758df683..b407053f7 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport8_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport8_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionForStringLiteralNonrelativeImport8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tsconfig.json { diff --git a/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport9_test.go b/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport9_test.go index 361e571d0..3ba07162a 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport9_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImport9_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionForStringLiteralNonrelativeImport9(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tsconfig.json { diff --git a/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings1_test.go b/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings1_test.go index 758714077..c46ca366d 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings1_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings1_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionForStringLiteralNonrelativeImportTypings1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @typeRoots: my_typings,my_other_typings // @Filename: tests/test0.ts diff --git a/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings2_test.go b/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings2_test.go index 751582958..41f2e875f 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings2_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings2_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionForStringLiteralNonrelativeImportTypings2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @typeRoots: my_typings,my_other_typings // @types: module-x,module-z diff --git a/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings3_test.go b/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings3_test.go index 8881ae0c3..0f6cf2241 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings3_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteralNonrelativeImportTypings3_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionForStringLiteralNonrelativeImportTypings3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: subdirectory/test0.ts /// diff --git a/pkg/fourslash/tests/gen/completionForStringLiteralRelativeImport4_test.go b/pkg/fourslash/tests/gen/completionForStringLiteralRelativeImport4_test.go index c0338fe22..bcd225b1a 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteralRelativeImport4_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteralRelativeImport4_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionForStringLiteralRelativeImport4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @rootDirs: /sub/src1,/src2 // @Filename: /src2/test0.ts diff --git a/pkg/fourslash/tests/gen/completionForStringLiteralRelativeImport5_test.go b/pkg/fourslash/tests/gen/completionForStringLiteralRelativeImport5_test.go index 8bee70cf6..e199d1624 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteralRelativeImport5_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteralRelativeImport5_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionForStringLiteralRelativeImport5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @rootDirs: /repo/src1,/repo/src2/,/repo/generated1,/repo/generated2/ // @Filename: /dir/secret_file.ts diff --git a/pkg/fourslash/tests/gen/completionForStringLiteralRelativeImport6_test.go b/pkg/fourslash/tests/gen/completionForStringLiteralRelativeImport6_test.go index 2700eb385..9c3d82a5e 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteralRelativeImport6_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteralRelativeImport6_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionForStringLiteralRelativeImport6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @rootDirs: /repo/src1,/repo/src2/,/repo/generated1,/repo/generated2/ // @Filename: /repo/src1/test1.ts diff --git a/pkg/fourslash/tests/gen/completionForStringLiteralRelativeImportAllowJSTrue_test.go b/pkg/fourslash/tests/gen/completionForStringLiteralRelativeImportAllowJSTrue_test.go index 96c8e685e..3ff261490 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteralRelativeImportAllowJSTrue_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteralRelativeImportAllowJSTrue_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionForStringLiteralRelativeImportAllowJSTrue(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: test0.ts diff --git a/pkg/fourslash/tests/gen/completionForStringLiteralWithDynamicImport_test.go b/pkg/fourslash/tests/gen/completionForStringLiteralWithDynamicImport_test.go index 08a481404..1083cc251 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteralWithDynamicImport_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteralWithDynamicImport_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionForStringLiteralWithDynamicImport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @typeRoots: my_typings // @Filename: test.ts diff --git a/pkg/fourslash/tests/gen/completionForStringLiteral_details_test.go b/pkg/fourslash/tests/gen/completionForStringLiteral_details_test.go index 2e7165054..0aa537840 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteral_details_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteral_details_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionForStringLiteral_details(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /other.ts export const x = 0; diff --git a/pkg/fourslash/tests/gen/completionForStringLiteral_mappedTypeMembers_test.go b/pkg/fourslash/tests/gen/completionForStringLiteral_mappedTypeMembers_test.go index e3fba008a..538473dec 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteral_mappedTypeMembers_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteral_mappedTypeMembers_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionForStringLiteral_mappedTypeMembers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type Foo = { a: string; diff --git a/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference1_test.go b/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference1_test.go index 239661ccb..3b46a05c2 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference1_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference1_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionForStringLiteral_quotePreference1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum A { A, diff --git a/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference2_test.go b/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference2_test.go index c11a67873..6ae9aa719 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference2_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference2_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionForStringLiteral_quotePreference2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const a = { '#': 'a' diff --git a/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference3_test.go b/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference3_test.go index 9972bee37..e5c4869b1 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference3_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference3_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionForStringLiteral_quotePreference3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const a = { "#": "a" diff --git a/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference4_test.go b/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference4_test.go index dfb961ce5..c9f2d66aa 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference4_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference4_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionForStringLiteral_quotePreference4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type T = 0 | 1; const t: T = /**/` diff --git a/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference5_test.go b/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference5_test.go index be429c41d..128c8bcf0 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference5_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference5_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionForStringLiteral_quotePreference5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type T = "0" | "1"; const t: T = /**/` diff --git a/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference6_test.go b/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference6_test.go index 7b126e6f6..95fb7cbc0 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference6_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference6_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionForStringLiteral_quotePreference6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type T = "0" | "1"; const t: T = /**/` diff --git a/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference7_test.go b/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference7_test.go index 015fa0dad..b1301d7f7 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference7_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference7_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionForStringLiteral_quotePreference7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: /a.ts export const a = null; diff --git a/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference8_test.go b/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference8_test.go index c2994b8b1..4ec5d21d5 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference8_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference8_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionForStringLiteral_quotePreference8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: /a.ts export const a = null; diff --git a/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference_test.go b/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference_test.go index b78fe66ce..128a18d85 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteral_quotePreference_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionForStringLiteral_quotePreference(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum A { A, diff --git a/pkg/fourslash/tests/gen/completionForStringLiteral_test.go b/pkg/fourslash/tests/gen/completionForStringLiteral_test.go index 6c8df39d5..3a86f35c3 100644 --- a/pkg/fourslash/tests/gen/completionForStringLiteral_test.go +++ b/pkg/fourslash/tests/gen/completionForStringLiteral_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionForStringLiteral(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type Options = "Option 1" | "Option 2" | "Option 3"; var x: Options = "[|/*1*/Option 3|]"; diff --git a/pkg/fourslash/tests/gen/completionImportMetaWithGlobalDeclaration_test.go b/pkg/fourslash/tests/gen/completionImportMetaWithGlobalDeclaration_test.go index 1802df724..6303c2a84 100644 --- a/pkg/fourslash/tests/gen/completionImportMetaWithGlobalDeclaration_test.go +++ b/pkg/fourslash/tests/gen/completionImportMetaWithGlobalDeclaration_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionImportMetaWithGlobalDeclaration(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts import./*1*/ diff --git a/pkg/fourslash/tests/gen/completionImportMeta_test.go b/pkg/fourslash/tests/gen/completionImportMeta_test.go index 937e8ebab..851a7f704 100644 --- a/pkg/fourslash/tests/gen/completionImportMeta_test.go +++ b/pkg/fourslash/tests/gen/completionImportMeta_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionImportMeta(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts import./*1*/ diff --git a/pkg/fourslash/tests/gen/completionImportModuleSpecifierEndingDts_test.go b/pkg/fourslash/tests/gen/completionImportModuleSpecifierEndingDts_test.go index 8ed797e17..ea6c45671 100644 --- a/pkg/fourslash/tests/gen/completionImportModuleSpecifierEndingDts_test.go +++ b/pkg/fourslash/tests/gen/completionImportModuleSpecifierEndingDts_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionImportModuleSpecifierEndingDts(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename:test.d.ts export declare class Test {} diff --git a/pkg/fourslash/tests/gen/completionImportModuleSpecifierEndingJs_test.go b/pkg/fourslash/tests/gen/completionImportModuleSpecifierEndingJs_test.go index ec7b41d17..93c5fc7d2 100644 --- a/pkg/fourslash/tests/gen/completionImportModuleSpecifierEndingJs_test.go +++ b/pkg/fourslash/tests/gen/completionImportModuleSpecifierEndingJs_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionImportModuleSpecifierEndingJs(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@allowJs: true //@Filename:test.js diff --git a/pkg/fourslash/tests/gen/completionImportModuleSpecifierEndingJsx_test.go b/pkg/fourslash/tests/gen/completionImportModuleSpecifierEndingJsx_test.go index 1d16d176e..ee2c0ff82 100644 --- a/pkg/fourslash/tests/gen/completionImportModuleSpecifierEndingJsx_test.go +++ b/pkg/fourslash/tests/gen/completionImportModuleSpecifierEndingJsx_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionImportModuleSpecifierEndingJsx(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@allowJs: true //@jsx:preserve diff --git a/pkg/fourslash/tests/gen/completionImportModuleSpecifierEndingTs_test.go b/pkg/fourslash/tests/gen/completionImportModuleSpecifierEndingTs_test.go index 2ff2e2a2c..cc2ba8236 100644 --- a/pkg/fourslash/tests/gen/completionImportModuleSpecifierEndingTs_test.go +++ b/pkg/fourslash/tests/gen/completionImportModuleSpecifierEndingTs_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionImportModuleSpecifierEndingTs(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename:test.ts export function f(){ diff --git a/pkg/fourslash/tests/gen/completionImportModuleSpecifierEndingTsxPreserve_test.go b/pkg/fourslash/tests/gen/completionImportModuleSpecifierEndingTsxPreserve_test.go index f76e7ee3a..976cea3d5 100644 --- a/pkg/fourslash/tests/gen/completionImportModuleSpecifierEndingTsxPreserve_test.go +++ b/pkg/fourslash/tests/gen/completionImportModuleSpecifierEndingTsxPreserve_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionImportModuleSpecifierEndingTsxPreserve(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@jsx:preserve //@Filename:test.tsx diff --git a/pkg/fourslash/tests/gen/completionImportModuleSpecifierEndingTsxReact_test.go b/pkg/fourslash/tests/gen/completionImportModuleSpecifierEndingTsxReact_test.go index 6e8ba3345..dd32bb902 100644 --- a/pkg/fourslash/tests/gen/completionImportModuleSpecifierEndingTsxReact_test.go +++ b/pkg/fourslash/tests/gen/completionImportModuleSpecifierEndingTsxReact_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionImportModuleSpecifierEndingTsxReact(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@jsx:react //@Filename:test.tsx diff --git a/pkg/fourslash/tests/gen/completionImportModuleSpecifierEndingUnsupportedExtension_test.go b/pkg/fourslash/tests/gen/completionImportModuleSpecifierEndingUnsupportedExtension_test.go index 94fc10685..77d0e5958 100644 --- a/pkg/fourslash/tests/gen/completionImportModuleSpecifierEndingUnsupportedExtension_test.go +++ b/pkg/fourslash/tests/gen/completionImportModuleSpecifierEndingUnsupportedExtension_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionImportModuleSpecifierEndingUnsupportedExtension(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename:index.css body {} diff --git a/pkg/fourslash/tests/gen/completionInAugmentedClassModule_test.go b/pkg/fourslash/tests/gen/completionInAugmentedClassModule_test.go index 0864b8a3a..3840a9d3f 100644 --- a/pkg/fourslash/tests/gen/completionInAugmentedClassModule_test.go +++ b/pkg/fourslash/tests/gen/completionInAugmentedClassModule_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionInAugmentedClassModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare class m3f { foo(x: number): void } module m3f { export interface I { foo(): void } } diff --git a/pkg/fourslash/tests/gen/completionInChecks1_test.go b/pkg/fourslash/tests/gen/completionInChecks1_test.go index 567f78a7b..5e7f014fd 100644 --- a/pkg/fourslash/tests/gen/completionInChecks1_test.go +++ b/pkg/fourslash/tests/gen/completionInChecks1_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionInChecks1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @target: esnext declare const obj: { diff --git a/pkg/fourslash/tests/gen/completionInFunctionLikeBody_includesPrimitiveTypes_test.go b/pkg/fourslash/tests/gen/completionInFunctionLikeBody_includesPrimitiveTypes_test.go index f965cff57..3694140ff 100644 --- a/pkg/fourslash/tests/gen/completionInFunctionLikeBody_includesPrimitiveTypes_test.go +++ b/pkg/fourslash/tests/gen/completionInFunctionLikeBody_includesPrimitiveTypes_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionInFunctionLikeBody_includesPrimitiveTypes(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { } class Bar { } diff --git a/pkg/fourslash/tests/gen/completionInIncompleteCallExpression_test.go b/pkg/fourslash/tests/gen/completionInIncompleteCallExpression_test.go index b74147011..8f2123a15 100644 --- a/pkg/fourslash/tests/gen/completionInIncompleteCallExpression_test.go +++ b/pkg/fourslash/tests/gen/completionInIncompleteCallExpression_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionInIncompleteCallExpression(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var array = [1, 2, 4] function a4(x, y, z) { } diff --git a/pkg/fourslash/tests/gen/completionInJSDocFunctionNew_test.go b/pkg/fourslash/tests/gen/completionInJSDocFunctionNew_test.go index b2f5f9fbb..cbe29a424 100644 --- a/pkg/fourslash/tests/gen/completionInJSDocFunctionNew_test.go +++ b/pkg/fourslash/tests/gen/completionInJSDocFunctionNew_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionInJSDocFunctionNew(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/completionInJSDocFunctionThis_test.go b/pkg/fourslash/tests/gen/completionInJSDocFunctionThis_test.go index fb17d7bdd..16639c90c 100644 --- a/pkg/fourslash/tests/gen/completionInJSDocFunctionThis_test.go +++ b/pkg/fourslash/tests/gen/completionInJSDocFunctionThis_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionInJSDocFunctionThis(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/completionInJsDocQualifiedNames_test.go b/pkg/fourslash/tests/gen/completionInJsDocQualifiedNames_test.go index c56e48b0f..9ed9780f0 100644 --- a/pkg/fourslash/tests/gen/completionInJsDocQualifiedNames_test.go +++ b/pkg/fourslash/tests/gen/completionInJsDocQualifiedNames_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionInJsDocQualifiedNames(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /node_modules/foo/index.d.ts diff --git a/pkg/fourslash/tests/gen/completionInJsDoc_test.go b/pkg/fourslash/tests/gen/completionInJsDoc_test.go index 058d168f7..bcce08b77 100644 --- a/pkg/fourslash/tests/gen/completionInJsDoc_test.go +++ b/pkg/fourslash/tests/gen/completionInJsDoc_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionInJsDoc(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/completionInNamedImportLocation_test.go b/pkg/fourslash/tests/gen/completionInNamedImportLocation_test.go index 4e9a197d4..b94f139ef 100644 --- a/pkg/fourslash/tests/gen/completionInNamedImportLocation_test.go +++ b/pkg/fourslash/tests/gen/completionInNamedImportLocation_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionInNamedImportLocation(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: file.ts export var x = 10; diff --git a/pkg/fourslash/tests/gen/completionInTypeOf1_test.go b/pkg/fourslash/tests/gen/completionInTypeOf1_test.go index 131dd0e3c..e29d4ed46 100644 --- a/pkg/fourslash/tests/gen/completionInTypeOf1_test.go +++ b/pkg/fourslash/tests/gen/completionInTypeOf1_test.go @@ -8,8 +8,8 @@ import ( ) func TestCompletionInTypeOf1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module m1c { export interface I { foo(): void; } diff --git a/pkg/fourslash/tests/gen/completionInTypeOf2_test.go b/pkg/fourslash/tests/gen/completionInTypeOf2_test.go index 780175204..b941cfa9d 100644 --- a/pkg/fourslash/tests/gen/completionInTypeOf2_test.go +++ b/pkg/fourslash/tests/gen/completionInTypeOf2_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionInTypeOf2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module m1c { export class C { foo(): void; } diff --git a/pkg/fourslash/tests/gen/completionInUncheckedJSFile_test.go b/pkg/fourslash/tests/gen/completionInUncheckedJSFile_test.go index 30b7c96fe..e85cb4438 100644 --- a/pkg/fourslash/tests/gen/completionInUncheckedJSFile_test.go +++ b/pkg/fourslash/tests/gen/completionInUncheckedJSFile_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionInUncheckedJSFile(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: false diff --git a/pkg/fourslash/tests/gen/completionInfoWithExplicitTypeArguments_test.go b/pkg/fourslash/tests/gen/completionInfoWithExplicitTypeArguments_test.go index ba515005e..820ce3c5c 100644 --- a/pkg/fourslash/tests/gen/completionInfoWithExplicitTypeArguments_test.go +++ b/pkg/fourslash/tests/gen/completionInfoWithExplicitTypeArguments_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionInfoWithExplicitTypeArguments(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { x: number; y: number; } diff --git a/pkg/fourslash/tests/gen/completionInsideFunctionContainsArguments_test.go b/pkg/fourslash/tests/gen/completionInsideFunctionContainsArguments_test.go index 594b9064f..b6d549441 100644 --- a/pkg/fourslash/tests/gen/completionInsideFunctionContainsArguments_test.go +++ b/pkg/fourslash/tests/gen/completionInsideFunctionContainsArguments_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionInsideFunctionContainsArguments(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function testArguments() {/*1*/} /*2*/ diff --git a/pkg/fourslash/tests/gen/completionInsideObjectLiteralExpressionWithInstantiatedClassType_test.go b/pkg/fourslash/tests/gen/completionInsideObjectLiteralExpressionWithInstantiatedClassType_test.go index 95db94488..0f72dcda9 100644 --- a/pkg/fourslash/tests/gen/completionInsideObjectLiteralExpressionWithInstantiatedClassType_test.go +++ b/pkg/fourslash/tests/gen/completionInsideObjectLiteralExpressionWithInstantiatedClassType_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionInsideObjectLiteralExpressionWithInstantiatedClassType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C1 { public a: string; diff --git a/pkg/fourslash/tests/gen/completionJSDocNamePath_test.go b/pkg/fourslash/tests/gen/completionJSDocNamePath_test.go index b7d6df538..4e748273a 100644 --- a/pkg/fourslash/tests/gen/completionJSDocNamePath_test.go +++ b/pkg/fourslash/tests/gen/completionJSDocNamePath_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionJSDocNamePath(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noLib: true /** diff --git a/pkg/fourslash/tests/gen/completionListAfterAnyType_test.go b/pkg/fourslash/tests/gen/completionListAfterAnyType_test.go index 4e2ad44dc..01a043f13 100644 --- a/pkg/fourslash/tests/gen/completionListAfterAnyType_test.go +++ b/pkg/fourslash/tests/gen/completionListAfterAnyType_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListAfterAnyType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare class myString { charAt(pos: number): string; diff --git a/pkg/fourslash/tests/gen/completionListAfterClassExtends_test.go b/pkg/fourslash/tests/gen/completionListAfterClassExtends_test.go index 6401bb764..4c164a4f8 100644 --- a/pkg/fourslash/tests/gen/completionListAfterClassExtends_test.go +++ b/pkg/fourslash/tests/gen/completionListAfterClassExtends_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListAfterClassExtends(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module Bar { export class Bleah { diff --git a/pkg/fourslash/tests/gen/completionListAfterFunction2_test.go b/pkg/fourslash/tests/gen/completionListAfterFunction2_test.go index 3b651b681..ea43c772d 100644 --- a/pkg/fourslash/tests/gen/completionListAfterFunction2_test.go +++ b/pkg/fourslash/tests/gen/completionListAfterFunction2_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListAfterFunction2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// Outside the function expression declare var f1: (a: number) => void; /*1*/ diff --git a/pkg/fourslash/tests/gen/completionListAfterFunction3_test.go b/pkg/fourslash/tests/gen/completionListAfterFunction3_test.go index 6c9a5c2a9..370948035 100644 --- a/pkg/fourslash/tests/gen/completionListAfterFunction3_test.go +++ b/pkg/fourslash/tests/gen/completionListAfterFunction3_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListAfterFunction3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// Outside the function expression var x1 = (a: number) => { }/*1*/; diff --git a/pkg/fourslash/tests/gen/completionListAfterFunction_test.go b/pkg/fourslash/tests/gen/completionListAfterFunction_test.go index 02308ff4b..6121f78c0 100644 --- a/pkg/fourslash/tests/gen/completionListAfterFunction_test.go +++ b/pkg/fourslash/tests/gen/completionListAfterFunction_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListAfterFunction(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// Outside the function declare function f1(a: number);/*1*/ diff --git a/pkg/fourslash/tests/gen/completionListAfterInvalidCharacter_test.go b/pkg/fourslash/tests/gen/completionListAfterInvalidCharacter_test.go index 80d41d8e5..c69e3d69e 100644 --- a/pkg/fourslash/tests/gen/completionListAfterInvalidCharacter_test.go +++ b/pkg/fourslash/tests/gen/completionListAfterInvalidCharacter_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListAfterInvalidCharacter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// Completion after invalid character module testModule { diff --git a/pkg/fourslash/tests/gen/completionListAfterNumericLiteral1_test.go b/pkg/fourslash/tests/gen/completionListAfterNumericLiteral1_test.go index f1d27ffaf..62fb43407 100644 --- a/pkg/fourslash/tests/gen/completionListAfterNumericLiteral1_test.go +++ b/pkg/fourslash/tests/gen/completionListAfterNumericLiteral1_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListAfterNumericLiteral1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `5../**/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/completionListAfterNumericLiteral_test.go b/pkg/fourslash/tests/gen/completionListAfterNumericLiteral_test.go index b4961a952..ec6094e2a 100644 --- a/pkg/fourslash/tests/gen/completionListAfterNumericLiteral_test.go +++ b/pkg/fourslash/tests/gen/completionListAfterNumericLiteral_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListAfterNumericLiteral(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: f1.ts 0./*dotOnNumberExpressions1*/ diff --git a/pkg/fourslash/tests/gen/completionListAfterObjectLiteral1_test.go b/pkg/fourslash/tests/gen/completionListAfterObjectLiteral1_test.go index 0fb047714..81d35dcc5 100644 --- a/pkg/fourslash/tests/gen/completionListAfterObjectLiteral1_test.go +++ b/pkg/fourslash/tests/gen/completionListAfterObjectLiteral1_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListAfterObjectLiteral1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var v = { x: 4, y: 3 }./**/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/completionListAfterPropertyName_test.go b/pkg/fourslash/tests/gen/completionListAfterPropertyName_test.go index 46b184c10..aedad664d 100644 --- a/pkg/fourslash/tests/gen/completionListAfterPropertyName_test.go +++ b/pkg/fourslash/tests/gen/completionListAfterPropertyName_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListAfterPropertyName(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts class Test1 { diff --git a/pkg/fourslash/tests/gen/completionListAfterRegularExpressionLiteral01_test.go b/pkg/fourslash/tests/gen/completionListAfterRegularExpressionLiteral01_test.go index 67a530b3d..611bb780d 100644 --- a/pkg/fourslash/tests/gen/completionListAfterRegularExpressionLiteral01_test.go +++ b/pkg/fourslash/tests/gen/completionListAfterRegularExpressionLiteral01_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionListAfterRegularExpressionLiteral01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let v = 100; /a/./**/` diff --git a/pkg/fourslash/tests/gen/completionListAfterRegularExpressionLiteral02_test.go b/pkg/fourslash/tests/gen/completionListAfterRegularExpressionLiteral02_test.go index e101ae4aa..3f6eeddf4 100644 --- a/pkg/fourslash/tests/gen/completionListAfterRegularExpressionLiteral02_test.go +++ b/pkg/fourslash/tests/gen/completionListAfterRegularExpressionLiteral02_test.go @@ -8,8 +8,8 @@ import ( ) func TestCompletionListAfterRegularExpressionLiteral02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let v = 100; let x = /absidey//**/` diff --git a/pkg/fourslash/tests/gen/completionListAfterRegularExpressionLiteral03_test.go b/pkg/fourslash/tests/gen/completionListAfterRegularExpressionLiteral03_test.go index 481ca473c..2672be195 100644 --- a/pkg/fourslash/tests/gen/completionListAfterRegularExpressionLiteral03_test.go +++ b/pkg/fourslash/tests/gen/completionListAfterRegularExpressionLiteral03_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListAfterRegularExpressionLiteral03(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let v = 100; let x = /absidey/ diff --git a/pkg/fourslash/tests/gen/completionListAfterRegularExpressionLiteral04_test.go b/pkg/fourslash/tests/gen/completionListAfterRegularExpressionLiteral04_test.go index 2ca90009c..47bb250fb 100644 --- a/pkg/fourslash/tests/gen/completionListAfterRegularExpressionLiteral04_test.go +++ b/pkg/fourslash/tests/gen/completionListAfterRegularExpressionLiteral04_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListAfterRegularExpressionLiteral04(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let v = 100; let x = /absidey/ /**/` diff --git a/pkg/fourslash/tests/gen/completionListAfterRegularExpressionLiteral05_test.go b/pkg/fourslash/tests/gen/completionListAfterRegularExpressionLiteral05_test.go index c2b079238..119e41275 100644 --- a/pkg/fourslash/tests/gen/completionListAfterRegularExpressionLiteral05_test.go +++ b/pkg/fourslash/tests/gen/completionListAfterRegularExpressionLiteral05_test.go @@ -8,8 +8,8 @@ import ( ) func TestCompletionListAfterRegularExpressionLiteral05(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let v = 100; let x = /absidey/g/**/` diff --git a/pkg/fourslash/tests/gen/completionListAfterRegularExpressionLiteral1_test.go b/pkg/fourslash/tests/gen/completionListAfterRegularExpressionLiteral1_test.go index 46b3fb894..d1e5d0af3 100644 --- a/pkg/fourslash/tests/gen/completionListAfterRegularExpressionLiteral1_test.go +++ b/pkg/fourslash/tests/gen/completionListAfterRegularExpressionLiteral1_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionListAfterRegularExpressionLiteral1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/a/./**/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/completionListAfterSlash_test.go b/pkg/fourslash/tests/gen/completionListAfterSlash_test.go index afc48e85f..d9da905ed 100644 --- a/pkg/fourslash/tests/gen/completionListAfterSlash_test.go +++ b/pkg/fourslash/tests/gen/completionListAfterSlash_test.go @@ -8,8 +8,8 @@ import ( ) func TestCompletionListAfterSlash(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var a = 0; a/./**/` diff --git a/pkg/fourslash/tests/gen/completionListAfterSpreadOperator01_test.go b/pkg/fourslash/tests/gen/completionListAfterSpreadOperator01_test.go index f01bb4c29..ec7e73ef8 100644 --- a/pkg/fourslash/tests/gen/completionListAfterSpreadOperator01_test.go +++ b/pkg/fourslash/tests/gen/completionListAfterSpreadOperator01_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListAfterSpreadOperator01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let v = [1,2,3,4]; let x = [.../**/` diff --git a/pkg/fourslash/tests/gen/completionListAfterStringLiteral1_test.go b/pkg/fourslash/tests/gen/completionListAfterStringLiteral1_test.go index 4416a92ad..2873502e3 100644 --- a/pkg/fourslash/tests/gen/completionListAfterStringLiteral1_test.go +++ b/pkg/fourslash/tests/gen/completionListAfterStringLiteral1_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionListAfterStringLiteral1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `"a"./**/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/completionListAfterStringLiteralTypeWithNoSubstitutionTemplateLiteral_test.go b/pkg/fourslash/tests/gen/completionListAfterStringLiteralTypeWithNoSubstitutionTemplateLiteral_test.go index e78682fdb..c74a404bf 100644 --- a/pkg/fourslash/tests/gen/completionListAfterStringLiteralTypeWithNoSubstitutionTemplateLiteral_test.go +++ b/pkg/fourslash/tests/gen/completionListAfterStringLiteralTypeWithNoSubstitutionTemplateLiteral_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionListAfterStringLiteralTypeWithNoSubstitutionTemplateLiteral(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let count: 'one' | 'two'; count = ` + "`" + `[|/**/|]` + "`" + `` diff --git a/pkg/fourslash/tests/gen/completionListAndMemberListOnCommentedDot_test.go b/pkg/fourslash/tests/gen/completionListAndMemberListOnCommentedDot_test.go index f4b342d0e..ca0ecac24 100644 --- a/pkg/fourslash/tests/gen/completionListAndMemberListOnCommentedDot_test.go +++ b/pkg/fourslash/tests/gen/completionListAndMemberListOnCommentedDot_test.go @@ -8,8 +8,8 @@ import ( ) func TestCompletionListAndMemberListOnCommentedDot(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module M { export class C { public pub = 0; private priv = 1; } diff --git a/pkg/fourslash/tests/gen/completionListAndMemberListOnCommentedLine_test.go b/pkg/fourslash/tests/gen/completionListAndMemberListOnCommentedLine_test.go index 77e659256..a13225522 100644 --- a/pkg/fourslash/tests/gen/completionListAndMemberListOnCommentedLine_test.go +++ b/pkg/fourslash/tests/gen/completionListAndMemberListOnCommentedLine_test.go @@ -8,8 +8,8 @@ import ( ) func TestCompletionListAndMemberListOnCommentedLine(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// /**/ var` diff --git a/pkg/fourslash/tests/gen/completionListAndMemberListOnCommentedWhiteSpace_test.go b/pkg/fourslash/tests/gen/completionListAndMemberListOnCommentedWhiteSpace_test.go index c0cb52030..ee54ef4c1 100644 --- a/pkg/fourslash/tests/gen/completionListAndMemberListOnCommentedWhiteSpace_test.go +++ b/pkg/fourslash/tests/gen/completionListAndMemberListOnCommentedWhiteSpace_test.go @@ -8,8 +8,8 @@ import ( ) func TestCompletionListAndMemberListOnCommentedWhiteSpace(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module M { export class C { public pub = 0; private priv = 1; } diff --git a/pkg/fourslash/tests/gen/completionListAtBeginningOfFile01_test.go b/pkg/fourslash/tests/gen/completionListAtBeginningOfFile01_test.go index 33789f829..b276f110d 100644 --- a/pkg/fourslash/tests/gen/completionListAtBeginningOfFile01_test.go +++ b/pkg/fourslash/tests/gen/completionListAtBeginningOfFile01_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListAtBeginningOfFile01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/ var x = 0, y = 1, z = 2; diff --git a/pkg/fourslash/tests/gen/completionListAtBeginningOfIdentifierInArrowFunction01_test.go b/pkg/fourslash/tests/gen/completionListAtBeginningOfIdentifierInArrowFunction01_test.go index 0d8d606d8..f562cd02a 100644 --- a/pkg/fourslash/tests/gen/completionListAtBeginningOfIdentifierInArrowFunction01_test.go +++ b/pkg/fourslash/tests/gen/completionListAtBeginningOfIdentifierInArrowFunction01_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListAtBeginningOfIdentifierInArrowFunction01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `xyz => /*1*/x` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/completionListAtDeclarationOfParameterType_test.go b/pkg/fourslash/tests/gen/completionListAtDeclarationOfParameterType_test.go index 46f2c7740..1a82201fe 100644 --- a/pkg/fourslash/tests/gen/completionListAtDeclarationOfParameterType_test.go +++ b/pkg/fourslash/tests/gen/completionListAtDeclarationOfParameterType_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListAtDeclarationOfParameterType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module Bar { export class Bleah { diff --git a/pkg/fourslash/tests/gen/completionListAtEOF1_test.go b/pkg/fourslash/tests/gen/completionListAtEOF1_test.go index 6e5035750..17970f12c 100644 --- a/pkg/fourslash/tests/gen/completionListAtEOF1_test.go +++ b/pkg/fourslash/tests/gen/completionListAtEOF1_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListAtEOF1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `if(0 === ''.` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/completionListAtEOF2_test.go b/pkg/fourslash/tests/gen/completionListAtEOF2_test.go index 09cc29211..3eb224294 100644 --- a/pkg/fourslash/tests/gen/completionListAtEOF2_test.go +++ b/pkg/fourslash/tests/gen/completionListAtEOF2_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListAtEOF2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module Shapes { export class Point { diff --git a/pkg/fourslash/tests/gen/completionListAtEOF_test.go b/pkg/fourslash/tests/gen/completionListAtEOF_test.go index 45de66a02..7727075c6 100644 --- a/pkg/fourslash/tests/gen/completionListAtEOF_test.go +++ b/pkg/fourslash/tests/gen/completionListAtEOF_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListAtEOF(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var a;` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/completionListAtEndOfWordInArrowFunction01_test.go b/pkg/fourslash/tests/gen/completionListAtEndOfWordInArrowFunction01_test.go index 55e45acd7..871c3615b 100644 --- a/pkg/fourslash/tests/gen/completionListAtEndOfWordInArrowFunction01_test.go +++ b/pkg/fourslash/tests/gen/completionListAtEndOfWordInArrowFunction01_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListAtEndOfWordInArrowFunction01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `xyz => x/*1*/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/completionListAtEndOfWordInArrowFunction02_test.go b/pkg/fourslash/tests/gen/completionListAtEndOfWordInArrowFunction02_test.go index c090b944b..416ad2beb 100644 --- a/pkg/fourslash/tests/gen/completionListAtEndOfWordInArrowFunction02_test.go +++ b/pkg/fourslash/tests/gen/completionListAtEndOfWordInArrowFunction02_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionListAtEndOfWordInArrowFunction02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `(d, defaultIsAnInvalidParameterName) => d/*1*/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/completionListAtEndOfWordInArrowFunction03_test.go b/pkg/fourslash/tests/gen/completionListAtEndOfWordInArrowFunction03_test.go index 3d658e0ef..b4d9e1b61 100644 --- a/pkg/fourslash/tests/gen/completionListAtEndOfWordInArrowFunction03_test.go +++ b/pkg/fourslash/tests/gen/completionListAtEndOfWordInArrowFunction03_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionListAtEndOfWordInArrowFunction03(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `(d, defaultIsAnInvalidParameterName) => default/*1*/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/completionListAtIdentifierDefinitionLocations_Generics_test.go b/pkg/fourslash/tests/gen/completionListAtIdentifierDefinitionLocations_Generics_test.go index 0fc070adb..7685b16fc 100644 --- a/pkg/fourslash/tests/gen/completionListAtIdentifierDefinitionLocations_Generics_test.go +++ b/pkg/fourslash/tests/gen/completionListAtIdentifierDefinitionLocations_Generics_test.go @@ -8,8 +8,8 @@ import ( ) func TestCompletionListAtIdentifierDefinitionLocations_Generics(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface A = T extends { a: (x: infer /*1*/) => void; b: (x: infer U/*2*/) => void } diff --git a/pkg/fourslash/tests/gen/completionListAtIdentifierDefinitionLocations_interfaces_test.go b/pkg/fourslash/tests/gen/completionListAtIdentifierDefinitionLocations_interfaces_test.go index 9e3886c2b..99a8bacc4 100644 --- a/pkg/fourslash/tests/gen/completionListAtIdentifierDefinitionLocations_interfaces_test.go +++ b/pkg/fourslash/tests/gen/completionListAtIdentifierDefinitionLocations_interfaces_test.go @@ -8,8 +8,8 @@ import ( ) func TestCompletionListAtIdentifierDefinitionLocations_interfaces(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var aa = 1; interface /*interfaceName1*/ diff --git a/pkg/fourslash/tests/gen/completionListAtIdentifierDefinitionLocations_properties_test.go b/pkg/fourslash/tests/gen/completionListAtIdentifierDefinitionLocations_properties_test.go index 359216298..05e64c022 100644 --- a/pkg/fourslash/tests/gen/completionListAtIdentifierDefinitionLocations_properties_test.go +++ b/pkg/fourslash/tests/gen/completionListAtIdentifierDefinitionLocations_properties_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListAtIdentifierDefinitionLocations_properties(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var aa = 1; class A1 { diff --git a/pkg/fourslash/tests/gen/completionListAtIdentifierDefinitionLocations_varDeclarations_test.go b/pkg/fourslash/tests/gen/completionListAtIdentifierDefinitionLocations_varDeclarations_test.go index 6afd569e2..280c0721a 100644 --- a/pkg/fourslash/tests/gen/completionListAtIdentifierDefinitionLocations_varDeclarations_test.go +++ b/pkg/fourslash/tests/gen/completionListAtIdentifierDefinitionLocations_varDeclarations_test.go @@ -8,8 +8,8 @@ import ( ) func TestCompletionListAtIdentifierDefinitionLocations_varDeclarations(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var aa = 1; var /*varName1*/ diff --git a/pkg/fourslash/tests/gen/completionListAtInvalidLocations_test.go b/pkg/fourslash/tests/gen/completionListAtInvalidLocations_test.go index a277c07cb..e92a75fcb 100644 --- a/pkg/fourslash/tests/gen/completionListAtInvalidLocations_test.go +++ b/pkg/fourslash/tests/gen/completionListAtInvalidLocations_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListAtInvalidLocations(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var v1 = ''; " /*openString1*/ diff --git a/pkg/fourslash/tests/gen/completionListAtNodeBoundary_test.go b/pkg/fourslash/tests/gen/completionListAtNodeBoundary_test.go index e476c3113..1759d0aea 100644 --- a/pkg/fourslash/tests/gen/completionListAtNodeBoundary_test.go +++ b/pkg/fourslash/tests/gen/completionListAtNodeBoundary_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListAtNodeBoundary(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Iterator { (value: T, index: any, list: any): U; diff --git a/pkg/fourslash/tests/gen/completionListAtThisType_test.go b/pkg/fourslash/tests/gen/completionListAtThisType_test.go index e77064106..66846a3fc 100644 --- a/pkg/fourslash/tests/gen/completionListAtThisType_test.go +++ b/pkg/fourslash/tests/gen/completionListAtThisType_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListAtThisType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Test { foo() {} diff --git a/pkg/fourslash/tests/gen/completionListBeforeKeyword_test.go b/pkg/fourslash/tests/gen/completionListBeforeKeyword_test.go index f840c774c..200efe588 100644 --- a/pkg/fourslash/tests/gen/completionListBeforeKeyword_test.go +++ b/pkg/fourslash/tests/gen/completionListBeforeKeyword_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListBeforeKeyword(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// Completion after dot in named type, when the following line has a keyword module TypeModule1 { diff --git a/pkg/fourslash/tests/gen/completionListBeforeNewScope01_test.go b/pkg/fourslash/tests/gen/completionListBeforeNewScope01_test.go index eba6694c2..8fa78f953 100644 --- a/pkg/fourslash/tests/gen/completionListBeforeNewScope01_test.go +++ b/pkg/fourslash/tests/gen/completionListBeforeNewScope01_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListBeforeNewScope01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `p/*1*/ diff --git a/pkg/fourslash/tests/gen/completionListBeforeNewScope02_test.go b/pkg/fourslash/tests/gen/completionListBeforeNewScope02_test.go index 0fe8aa881..c30c69d29 100644 --- a/pkg/fourslash/tests/gen/completionListBeforeNewScope02_test.go +++ b/pkg/fourslash/tests/gen/completionListBeforeNewScope02_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListBeforeNewScope02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `a/*1*/ diff --git a/pkg/fourslash/tests/gen/completionListBuilderLocations_Modules_test.go b/pkg/fourslash/tests/gen/completionListBuilderLocations_Modules_test.go index 56f3f02e6..d0f36f659 100644 --- a/pkg/fourslash/tests/gen/completionListBuilderLocations_Modules_test.go +++ b/pkg/fourslash/tests/gen/completionListBuilderLocations_Modules_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListBuilderLocations_Modules(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module A/*moduleName1*/ module A./*moduleName2*/` diff --git a/pkg/fourslash/tests/gen/completionListBuilderLocations_VariableDeclarations_test.go b/pkg/fourslash/tests/gen/completionListBuilderLocations_VariableDeclarations_test.go index b6999d4a9..a859e293a 100644 --- a/pkg/fourslash/tests/gen/completionListBuilderLocations_VariableDeclarations_test.go +++ b/pkg/fourslash/tests/gen/completionListBuilderLocations_VariableDeclarations_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListBuilderLocations_VariableDeclarations(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = a/*var1*/ var x = (b/*var2*/ diff --git a/pkg/fourslash/tests/gen/completionListBuilderLocations_parameters_test.go b/pkg/fourslash/tests/gen/completionListBuilderLocations_parameters_test.go index 2b3e3639f..06fde89fc 100644 --- a/pkg/fourslash/tests/gen/completionListBuilderLocations_parameters_test.go +++ b/pkg/fourslash/tests/gen/completionListBuilderLocations_parameters_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListBuilderLocations_parameters(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var aa = 1; class bar1{ constructor(/*1*/ diff --git a/pkg/fourslash/tests/gen/completionListBuilderLocations_properties_test.go b/pkg/fourslash/tests/gen/completionListBuilderLocations_properties_test.go index 45adc0370..6cde10a4a 100644 --- a/pkg/fourslash/tests/gen/completionListBuilderLocations_properties_test.go +++ b/pkg/fourslash/tests/gen/completionListBuilderLocations_properties_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListBuilderLocations_properties(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var aa = 1; class A1 { diff --git a/pkg/fourslash/tests/gen/completionListCladule_test.go b/pkg/fourslash/tests/gen/completionListCladule_test.go index 1b07b4391..e5d66293b 100644 --- a/pkg/fourslash/tests/gen/completionListCladule_test.go +++ b/pkg/fourslash/tests/gen/completionListCladule_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionListCladule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { doStuff(): number { return 0; } diff --git a/pkg/fourslash/tests/gen/completionListClassMembersWithSuperClassFromUnknownNamespace_test.go b/pkg/fourslash/tests/gen/completionListClassMembersWithSuperClassFromUnknownNamespace_test.go index 66784b09a..837ba673f 100644 --- a/pkg/fourslash/tests/gen/completionListClassMembersWithSuperClassFromUnknownNamespace_test.go +++ b/pkg/fourslash/tests/gen/completionListClassMembersWithSuperClassFromUnknownNamespace_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListClassMembersWithSuperClassFromUnknownNamespace(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Child extends Namespace.Parent { /**/ diff --git a/pkg/fourslash/tests/gen/completionListClassMembers_test.go b/pkg/fourslash/tests/gen/completionListClassMembers_test.go index 36331c5ef..57eae3daa 100644 --- a/pkg/fourslash/tests/gen/completionListClassMembers_test.go +++ b/pkg/fourslash/tests/gen/completionListClassMembers_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionListClassMembers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Class { private privateInstanceMethod() { } diff --git a/pkg/fourslash/tests/gen/completionListClassPrivateFields_test.go b/pkg/fourslash/tests/gen/completionListClassPrivateFields_test.go index c9b7a80a7..8be77beee 100644 --- a/pkg/fourslash/tests/gen/completionListClassPrivateFields_test.go +++ b/pkg/fourslash/tests/gen/completionListClassPrivateFields_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListClassPrivateFields(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A { #private = 1; diff --git a/pkg/fourslash/tests/gen/completionListClassThisJS_test.go b/pkg/fourslash/tests/gen/completionListClassThisJS_test.go index 8c72b0cd5..97743c52b 100644 --- a/pkg/fourslash/tests/gen/completionListClassThisJS_test.go +++ b/pkg/fourslash/tests/gen/completionListClassThisJS_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionListClassThisJS(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: completionListClassThisJS.js // @allowJs: true diff --git a/pkg/fourslash/tests/gen/completionListDefaultTypeArgumentPositionTypeOnly_test.go b/pkg/fourslash/tests/gen/completionListDefaultTypeArgumentPositionTypeOnly_test.go index bb195846b..2ab3d70f2 100644 --- a/pkg/fourslash/tests/gen/completionListDefaultTypeArgumentPositionTypeOnly_test.go +++ b/pkg/fourslash/tests/gen/completionListDefaultTypeArgumentPositionTypeOnly_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListDefaultTypeArgumentPositionTypeOnly(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const foo = "foo"; function test1() {}` diff --git a/pkg/fourslash/tests/gen/completionListEnumMembers_test.go b/pkg/fourslash/tests/gen/completionListEnumMembers_test.go index f85ca655e..309aba3de 100644 --- a/pkg/fourslash/tests/gen/completionListEnumMembers_test.go +++ b/pkg/fourslash/tests/gen/completionListEnumMembers_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListEnumMembers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum Foo { bar, diff --git a/pkg/fourslash/tests/gen/completionListEnumValues_test.go b/pkg/fourslash/tests/gen/completionListEnumValues_test.go index 69a017a37..74cc95e0d 100644 --- a/pkg/fourslash/tests/gen/completionListEnumValues_test.go +++ b/pkg/fourslash/tests/gen/completionListEnumValues_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListEnumValues(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum Colors { Red, diff --git a/pkg/fourslash/tests/gen/completionListForDerivedType1_test.go b/pkg/fourslash/tests/gen/completionListForDerivedType1_test.go index 7c931dfb6..4323724c2 100644 --- a/pkg/fourslash/tests/gen/completionListForDerivedType1_test.go +++ b/pkg/fourslash/tests/gen/completionListForDerivedType1_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionListForDerivedType1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IFoo { bar(): IFoo; diff --git a/pkg/fourslash/tests/gen/completionListForExportEquals2_test.go b/pkg/fourslash/tests/gen/completionListForExportEquals2_test.go index a46d362e7..362cce8de 100644 --- a/pkg/fourslash/tests/gen/completionListForExportEquals2_test.go +++ b/pkg/fourslash/tests/gen/completionListForExportEquals2_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionListForExportEquals2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /node_modules/foo/index.d.ts export = Foo; diff --git a/pkg/fourslash/tests/gen/completionListForExportEquals_test.go b/pkg/fourslash/tests/gen/completionListForExportEquals_test.go index ba71c1e7f..786efb926 100644 --- a/pkg/fourslash/tests/gen/completionListForExportEquals_test.go +++ b/pkg/fourslash/tests/gen/completionListForExportEquals_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionListForExportEquals(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /node_modules/foo/index.d.ts export = Foo; diff --git a/pkg/fourslash/tests/gen/completionListForGenericInstance1_test.go b/pkg/fourslash/tests/gen/completionListForGenericInstance1_test.go index 658e06b78..3b4705777 100644 --- a/pkg/fourslash/tests/gen/completionListForGenericInstance1_test.go +++ b/pkg/fourslash/tests/gen/completionListForGenericInstance1_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionListForGenericInstance1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Iterator { (value: T, index: any, list: any): U diff --git a/pkg/fourslash/tests/gen/completionListForNonExportedMemberInAmbientModuleWithExportAssignment1_test.go b/pkg/fourslash/tests/gen/completionListForNonExportedMemberInAmbientModuleWithExportAssignment1_test.go index 60b1868d6..37a1844b1 100644 --- a/pkg/fourslash/tests/gen/completionListForNonExportedMemberInAmbientModuleWithExportAssignment1_test.go +++ b/pkg/fourslash/tests/gen/completionListForNonExportedMemberInAmbientModuleWithExportAssignment1_test.go @@ -8,8 +8,8 @@ import ( ) func TestCompletionListForNonExportedMemberInAmbientModuleWithExportAssignment1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: completionListForNonExportedMemberInAmbientModuleWithExportAssignment1_file0.ts var x: Date; diff --git a/pkg/fourslash/tests/gen/completionListForObjectSpread_test.go b/pkg/fourslash/tests/gen/completionListForObjectSpread_test.go index 9d597a5ac..7e3687ff0 100644 --- a/pkg/fourslash/tests/gen/completionListForObjectSpread_test.go +++ b/pkg/fourslash/tests/gen/completionListForObjectSpread_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionListForObjectSpread(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let o = { a: 1, b: 'no' } let o2 = { b: 'yes', c: true } diff --git a/pkg/fourslash/tests/gen/completionListForRest_test.go b/pkg/fourslash/tests/gen/completionListForRest_test.go index 0aa96a7bd..9304a7d6c 100644 --- a/pkg/fourslash/tests/gen/completionListForRest_test.go +++ b/pkg/fourslash/tests/gen/completionListForRest_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionListForRest(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Gen { x: number; diff --git a/pkg/fourslash/tests/gen/completionListForShorthandPropertyAssignment2_test.go b/pkg/fourslash/tests/gen/completionListForShorthandPropertyAssignment2_test.go index 1fc964d96..2cc743432 100644 --- a/pkg/fourslash/tests/gen/completionListForShorthandPropertyAssignment2_test.go +++ b/pkg/fourslash/tests/gen/completionListForShorthandPropertyAssignment2_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListForShorthandPropertyAssignment2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var person: {name:string; id: number} = { n/**/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/completionListForShorthandPropertyAssignment_test.go b/pkg/fourslash/tests/gen/completionListForShorthandPropertyAssignment_test.go index 769b58a80..1ea720ba1 100644 --- a/pkg/fourslash/tests/gen/completionListForShorthandPropertyAssignment_test.go +++ b/pkg/fourslash/tests/gen/completionListForShorthandPropertyAssignment_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListForShorthandPropertyAssignment(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var person: {name:string; id: number} = { n/**/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/completionListForTransitivelyExportedMembers01_test.go b/pkg/fourslash/tests/gen/completionListForTransitivelyExportedMembers01_test.go index 5900f3819..7d5838298 100644 --- a/pkg/fourslash/tests/gen/completionListForTransitivelyExportedMembers01_test.go +++ b/pkg/fourslash/tests/gen/completionListForTransitivelyExportedMembers01_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListForTransitivelyExportedMembers01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: A.ts export interface I1 { one: number } diff --git a/pkg/fourslash/tests/gen/completionListForTransitivelyExportedMembers02_test.go b/pkg/fourslash/tests/gen/completionListForTransitivelyExportedMembers02_test.go index d33160e27..45e1e8cb2 100644 --- a/pkg/fourslash/tests/gen/completionListForTransitivelyExportedMembers02_test.go +++ b/pkg/fourslash/tests/gen/completionListForTransitivelyExportedMembers02_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListForTransitivelyExportedMembers02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: A.ts export interface I1 { one: number } diff --git a/pkg/fourslash/tests/gen/completionListForTransitivelyExportedMembers03_test.go b/pkg/fourslash/tests/gen/completionListForTransitivelyExportedMembers03_test.go index 624e8666d..7bcc3bf0f 100644 --- a/pkg/fourslash/tests/gen/completionListForTransitivelyExportedMembers03_test.go +++ b/pkg/fourslash/tests/gen/completionListForTransitivelyExportedMembers03_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListForTransitivelyExportedMembers03(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: A.ts export interface I1 { one: number } diff --git a/pkg/fourslash/tests/gen/completionListForTransitivelyExportedMembers04_test.go b/pkg/fourslash/tests/gen/completionListForTransitivelyExportedMembers04_test.go index c3dfda89c..1045a2008 100644 --- a/pkg/fourslash/tests/gen/completionListForTransitivelyExportedMembers04_test.go +++ b/pkg/fourslash/tests/gen/completionListForTransitivelyExportedMembers04_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListForTransitivelyExportedMembers04(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: A.ts export interface I1 { one: number } diff --git a/pkg/fourslash/tests/gen/completionListForUnicodeEscapeName_test.go b/pkg/fourslash/tests/gen/completionListForUnicodeEscapeName_test.go index faa9f976d..90657f141 100644 --- a/pkg/fourslash/tests/gen/completionListForUnicodeEscapeName_test.go +++ b/pkg/fourslash/tests/gen/completionListForUnicodeEscapeName_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListForUnicodeEscapeName(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function \u0042 () { /*0*/ } export default function \u0043 () {} diff --git a/pkg/fourslash/tests/gen/completionListFunctionExpression_test.go b/pkg/fourslash/tests/gen/completionListFunctionExpression_test.go index d236d27e9..aae20cac1 100644 --- a/pkg/fourslash/tests/gen/completionListFunctionExpression_test.go +++ b/pkg/fourslash/tests/gen/completionListFunctionExpression_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListFunctionExpression(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class DataHandler { dataArray: Uint8Array; diff --git a/pkg/fourslash/tests/gen/completionListFunctionMembers_test.go b/pkg/fourslash/tests/gen/completionListFunctionMembers_test.go index ff5c8864d..9007cceca 100644 --- a/pkg/fourslash/tests/gen/completionListFunctionMembers_test.go +++ b/pkg/fourslash/tests/gen/completionListFunctionMembers_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListFunctionMembers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function fnc1() { var bar = 1; diff --git a/pkg/fourslash/tests/gen/completionListImplementingInterfaceFunctions_test.go b/pkg/fourslash/tests/gen/completionListImplementingInterfaceFunctions_test.go index 33dd72127..581211c7c 100644 --- a/pkg/fourslash/tests/gen/completionListImplementingInterfaceFunctions_test.go +++ b/pkg/fourslash/tests/gen/completionListImplementingInterfaceFunctions_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListImplementingInterfaceFunctions(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I1 { a(): void; diff --git a/pkg/fourslash/tests/gen/completionListInArrowFunctionInUnclosedCallSite01_test.go b/pkg/fourslash/tests/gen/completionListInArrowFunctionInUnclosedCallSite01_test.go index af1bebe80..a52039306 100644 --- a/pkg/fourslash/tests/gen/completionListInArrowFunctionInUnclosedCallSite01_test.go +++ b/pkg/fourslash/tests/gen/completionListInArrowFunctionInUnclosedCallSite01_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInArrowFunctionInUnclosedCallSite01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function foo(...params: any[]): any; function getAllFiles(rootFileNames: string[]) { diff --git a/pkg/fourslash/tests/gen/completionListInClassExpressionWithTypeParameter_test.go b/pkg/fourslash/tests/gen/completionListInClassExpressionWithTypeParameter_test.go index 30e66e434..6059b87ba 100644 --- a/pkg/fourslash/tests/gen/completionListInClassExpressionWithTypeParameter_test.go +++ b/pkg/fourslash/tests/gen/completionListInClassExpressionWithTypeParameter_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionListInClassExpressionWithTypeParameter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = class myClass { getClassName (){ diff --git a/pkg/fourslash/tests/gen/completionListInClassStaticBlocks_test.go b/pkg/fourslash/tests/gen/completionListInClassStaticBlocks_test.go index 67ec318fb..9b977ac54 100644 --- a/pkg/fourslash/tests/gen/completionListInClassStaticBlocks_test.go +++ b/pkg/fourslash/tests/gen/completionListInClassStaticBlocks_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionListInClassStaticBlocks(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @target: esnext class Foo { diff --git a/pkg/fourslash/tests/gen/completionListInClosedFunction01_test.go b/pkg/fourslash/tests/gen/completionListInClosedFunction01_test.go index e8c22d8bf..e63f14766 100644 --- a/pkg/fourslash/tests/gen/completionListInClosedFunction01_test.go +++ b/pkg/fourslash/tests/gen/completionListInClosedFunction01_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInClosedFunction01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(x: string, y: number, z: boolean) { /*1*/ diff --git a/pkg/fourslash/tests/gen/completionListInClosedFunction02_test.go b/pkg/fourslash/tests/gen/completionListInClosedFunction02_test.go index 755522eba..e44e717f1 100644 --- a/pkg/fourslash/tests/gen/completionListInClosedFunction02_test.go +++ b/pkg/fourslash/tests/gen/completionListInClosedFunction02_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInClosedFunction02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(x: string, y: number, z: boolean) { function bar(a: number, b: string, c: typeof /*1*/) { diff --git a/pkg/fourslash/tests/gen/completionListInClosedFunction03_test.go b/pkg/fourslash/tests/gen/completionListInClosedFunction03_test.go index 884cf1700..eea6e9744 100644 --- a/pkg/fourslash/tests/gen/completionListInClosedFunction03_test.go +++ b/pkg/fourslash/tests/gen/completionListInClosedFunction03_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInClosedFunction03(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(x: string, y: number, z: boolean) { function bar(a: number, b: string, c: typeof x = /*1*/) { diff --git a/pkg/fourslash/tests/gen/completionListInClosedFunction04_test.go b/pkg/fourslash/tests/gen/completionListInClosedFunction04_test.go index 1c763c52b..df5766dd5 100644 --- a/pkg/fourslash/tests/gen/completionListInClosedFunction04_test.go +++ b/pkg/fourslash/tests/gen/completionListInClosedFunction04_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInClosedFunction04(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(x: string, y: number, z: boolean) { function bar(a: number, b: string = /*1*/, c: typeof x = "hello") { diff --git a/pkg/fourslash/tests/gen/completionListInClosedFunction06_test.go b/pkg/fourslash/tests/gen/completionListInClosedFunction06_test.go index 70b5c3a75..d6f2524bc 100644 --- a/pkg/fourslash/tests/gen/completionListInClosedFunction06_test.go +++ b/pkg/fourslash/tests/gen/completionListInClosedFunction06_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInClosedFunction06(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface MyType { } diff --git a/pkg/fourslash/tests/gen/completionListInClosedFunction07_test.go b/pkg/fourslash/tests/gen/completionListInClosedFunction07_test.go index dcfb785a2..7064d6452 100644 --- a/pkg/fourslash/tests/gen/completionListInClosedFunction07_test.go +++ b/pkg/fourslash/tests/gen/completionListInClosedFunction07_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInClosedFunction07(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface MyType { } diff --git a/pkg/fourslash/tests/gen/completionListInClosedObjectTypeLiteralInSignature01_test.go b/pkg/fourslash/tests/gen/completionListInClosedObjectTypeLiteralInSignature01_test.go index 207df689c..95dc53cb6 100644 --- a/pkg/fourslash/tests/gen/completionListInClosedObjectTypeLiteralInSignature01_test.go +++ b/pkg/fourslash/tests/gen/completionListInClosedObjectTypeLiteralInSignature01_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInClosedObjectTypeLiteralInSignature01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { [s: string]: TString; diff --git a/pkg/fourslash/tests/gen/completionListInClosedObjectTypeLiteralInSignature02_test.go b/pkg/fourslash/tests/gen/completionListInClosedObjectTypeLiteralInSignature02_test.go index 5ca1967c5..9e1272479 100644 --- a/pkg/fourslash/tests/gen/completionListInClosedObjectTypeLiteralInSignature02_test.go +++ b/pkg/fourslash/tests/gen/completionListInClosedObjectTypeLiteralInSignature02_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInClosedObjectTypeLiteralInSignature02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { [s: string]: TString; diff --git a/pkg/fourslash/tests/gen/completionListInClosedObjectTypeLiteralInSignature03_test.go b/pkg/fourslash/tests/gen/completionListInClosedObjectTypeLiteralInSignature03_test.go index 1738eb802..0f8d5ce54 100644 --- a/pkg/fourslash/tests/gen/completionListInClosedObjectTypeLiteralInSignature03_test.go +++ b/pkg/fourslash/tests/gen/completionListInClosedObjectTypeLiteralInSignature03_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInClosedObjectTypeLiteralInSignature03(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { [s: string]: TString; diff --git a/pkg/fourslash/tests/gen/completionListInClosedObjectTypeLiteralInSignature04_test.go b/pkg/fourslash/tests/gen/completionListInClosedObjectTypeLiteralInSignature04_test.go index b1b294224..105370357 100644 --- a/pkg/fourslash/tests/gen/completionListInClosedObjectTypeLiteralInSignature04_test.go +++ b/pkg/fourslash/tests/gen/completionListInClosedObjectTypeLiteralInSignature04_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionListInClosedObjectTypeLiteralInSignature04(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { [s: string]: TString; diff --git a/pkg/fourslash/tests/gen/completionListInComments2_test.go b/pkg/fourslash/tests/gen/completionListInComments2_test.go index c33c441c5..b772947e1 100644 --- a/pkg/fourslash/tests/gen/completionListInComments2_test.go +++ b/pkg/fourslash/tests/gen/completionListInComments2_test.go @@ -8,8 +8,8 @@ import ( ) func TestCompletionListInComments2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// */{| "name" : "1" |}` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/completionListInComments3_test.go b/pkg/fourslash/tests/gen/completionListInComments3_test.go index 08cbb4317..370770e61 100644 --- a/pkg/fourslash/tests/gen/completionListInComments3_test.go +++ b/pkg/fourslash/tests/gen/completionListInComments3_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInComments3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = ` /*{| "name": "1" |} /* {| "name": "2" |} diff --git a/pkg/fourslash/tests/gen/completionListInComments_test.go b/pkg/fourslash/tests/gen/completionListInComments_test.go index 100735a3d..800ab309d 100644 --- a/pkg/fourslash/tests/gen/completionListInComments_test.go +++ b/pkg/fourslash/tests/gen/completionListInComments_test.go @@ -8,8 +8,8 @@ import ( ) func TestCompletionListInComments(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var foo = ''; ( // f/**/` diff --git a/pkg/fourslash/tests/gen/completionListInContextuallyTypedArgument_test.go b/pkg/fourslash/tests/gen/completionListInContextuallyTypedArgument_test.go index ff5dbdcb5..d4f65406f 100644 --- a/pkg/fourslash/tests/gen/completionListInContextuallyTypedArgument_test.go +++ b/pkg/fourslash/tests/gen/completionListInContextuallyTypedArgument_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInContextuallyTypedArgument(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface MyPoint { x1: number; diff --git a/pkg/fourslash/tests/gen/completionListInEmptyFile_test.go b/pkg/fourslash/tests/gen/completionListInEmptyFile_test.go index ddf45aace..69abc99db 100644 --- a/pkg/fourslash/tests/gen/completionListInEmptyFile_test.go +++ b/pkg/fourslash/tests/gen/completionListInEmptyFile_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInEmptyFile(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var a = 0; /**/` diff --git a/pkg/fourslash/tests/gen/completionListInExportClause01_test.go b/pkg/fourslash/tests/gen/completionListInExportClause01_test.go index e1a7ec65d..4b7588271 100644 --- a/pkg/fourslash/tests/gen/completionListInExportClause01_test.go +++ b/pkg/fourslash/tests/gen/completionListInExportClause01_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionListInExportClause01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: m1.ts export var foo: number = 1; diff --git a/pkg/fourslash/tests/gen/completionListInExportClause02_test.go b/pkg/fourslash/tests/gen/completionListInExportClause02_test.go index 6b11b5ca2..3e91008d0 100644 --- a/pkg/fourslash/tests/gen/completionListInExportClause02_test.go +++ b/pkg/fourslash/tests/gen/completionListInExportClause02_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionListInExportClause02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare module "M1" { export var V; diff --git a/pkg/fourslash/tests/gen/completionListInExportClause03_test.go b/pkg/fourslash/tests/gen/completionListInExportClause03_test.go index a3bc38a79..13694b58b 100644 --- a/pkg/fourslash/tests/gen/completionListInExportClause03_test.go +++ b/pkg/fourslash/tests/gen/completionListInExportClause03_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionListInExportClause03(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare module "M1" { export var abc: number; diff --git a/pkg/fourslash/tests/gen/completionListInExtendsClauseAtEOF_test.go b/pkg/fourslash/tests/gen/completionListInExtendsClauseAtEOF_test.go index 50cded8fa..5429fb499 100644 --- a/pkg/fourslash/tests/gen/completionListInExtendsClauseAtEOF_test.go +++ b/pkg/fourslash/tests/gen/completionListInExtendsClauseAtEOF_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInExtendsClauseAtEOF(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare module mod { class Foo { } diff --git a/pkg/fourslash/tests/gen/completionListInExtendsClause_test.go b/pkg/fourslash/tests/gen/completionListInExtendsClause_test.go index 9a4abc3c3..1f8f4c8ee 100644 --- a/pkg/fourslash/tests/gen/completionListInExtendsClause_test.go +++ b/pkg/fourslash/tests/gen/completionListInExtendsClause_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionListInExtendsClause(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IFoo { method(); diff --git a/pkg/fourslash/tests/gen/completionListInFatArrow_test.go b/pkg/fourslash/tests/gen/completionListInFatArrow_test.go index e2061a88f..700a7a2a1 100644 --- a/pkg/fourslash/tests/gen/completionListInFatArrow_test.go +++ b/pkg/fourslash/tests/gen/completionListInFatArrow_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInFatArrow(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var items = [0, 1, 2]; items.forEach((n) => { diff --git a/pkg/fourslash/tests/gen/completionListInFunctionDeclaration_test.go b/pkg/fourslash/tests/gen/completionListInFunctionDeclaration_test.go index 1fe67af08..a600e47bf 100644 --- a/pkg/fourslash/tests/gen/completionListInFunctionDeclaration_test.go +++ b/pkg/fourslash/tests/gen/completionListInFunctionDeclaration_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInFunctionDeclaration(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var a = 0; function foo(/**/` diff --git a/pkg/fourslash/tests/gen/completionListInImportClause01_test.go b/pkg/fourslash/tests/gen/completionListInImportClause01_test.go index 5e13bc518..8693a851d 100644 --- a/pkg/fourslash/tests/gen/completionListInImportClause01_test.go +++ b/pkg/fourslash/tests/gen/completionListInImportClause01_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInImportClause01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: m1.ts export var foo: number = 1; diff --git a/pkg/fourslash/tests/gen/completionListInImportClause02_test.go b/pkg/fourslash/tests/gen/completionListInImportClause02_test.go index 42102d2ec..6b6d68229 100644 --- a/pkg/fourslash/tests/gen/completionListInImportClause02_test.go +++ b/pkg/fourslash/tests/gen/completionListInImportClause02_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionListInImportClause02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare module "M1" { export var V; diff --git a/pkg/fourslash/tests/gen/completionListInImportClause03_test.go b/pkg/fourslash/tests/gen/completionListInImportClause03_test.go index 1470bb973..02dedbaec 100644 --- a/pkg/fourslash/tests/gen/completionListInImportClause03_test.go +++ b/pkg/fourslash/tests/gen/completionListInImportClause03_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionListInImportClause03(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare module "M1" { export var abc: number; diff --git a/pkg/fourslash/tests/gen/completionListInImportClause04_test.go b/pkg/fourslash/tests/gen/completionListInImportClause04_test.go index fbb48e730..6616bac4e 100644 --- a/pkg/fourslash/tests/gen/completionListInImportClause04_test.go +++ b/pkg/fourslash/tests/gen/completionListInImportClause04_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionListInImportClause04(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: foo.d.ts declare class Foo { diff --git a/pkg/fourslash/tests/gen/completionListInImportClause05_test.go b/pkg/fourslash/tests/gen/completionListInImportClause05_test.go index b845fe9c7..4c3de7d08 100644 --- a/pkg/fourslash/tests/gen/completionListInImportClause05_test.go +++ b/pkg/fourslash/tests/gen/completionListInImportClause05_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInImportClause05(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: app.ts import * as A from "/*1*/"; diff --git a/pkg/fourslash/tests/gen/completionListInImportClause06_test.go b/pkg/fourslash/tests/gen/completionListInImportClause06_test.go index b404c089a..3b74d2e9e 100644 --- a/pkg/fourslash/tests/gen/completionListInImportClause06_test.go +++ b/pkg/fourslash/tests/gen/completionListInImportClause06_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInImportClause06(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @typeRoots: T1,T2 // @Filename: app.ts diff --git a/pkg/fourslash/tests/gen/completionListInMiddleOfIdentifierInArrowFunction01_test.go b/pkg/fourslash/tests/gen/completionListInMiddleOfIdentifierInArrowFunction01_test.go index 99f3d8c6d..067189e4a 100644 --- a/pkg/fourslash/tests/gen/completionListInMiddleOfIdentifierInArrowFunction01_test.go +++ b/pkg/fourslash/tests/gen/completionListInMiddleOfIdentifierInArrowFunction01_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInMiddleOfIdentifierInArrowFunction01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `xyz => x/*1*/y` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/completionListInNamedClassExpressionWithShadowing_test.go b/pkg/fourslash/tests/gen/completionListInNamedClassExpressionWithShadowing_test.go index ba4c06f5a..1cbdf7ab9 100644 --- a/pkg/fourslash/tests/gen/completionListInNamedClassExpressionWithShadowing_test.go +++ b/pkg/fourslash/tests/gen/completionListInNamedClassExpressionWithShadowing_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionListInNamedClassExpressionWithShadowing(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class myClass { /*0*/ } /*1*/ diff --git a/pkg/fourslash/tests/gen/completionListInNamedClassExpression_test.go b/pkg/fourslash/tests/gen/completionListInNamedClassExpression_test.go index 322525bcf..caafd27b6 100644 --- a/pkg/fourslash/tests/gen/completionListInNamedClassExpression_test.go +++ b/pkg/fourslash/tests/gen/completionListInNamedClassExpression_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionListInNamedClassExpression(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = class myClass { getClassName (){ diff --git a/pkg/fourslash/tests/gen/completionListInNamedFunctionExpression1_test.go b/pkg/fourslash/tests/gen/completionListInNamedFunctionExpression1_test.go index 60bf4e6f0..96f2230ff 100644 --- a/pkg/fourslash/tests/gen/completionListInNamedFunctionExpression1_test.go +++ b/pkg/fourslash/tests/gen/completionListInNamedFunctionExpression1_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionListInNamedFunctionExpression1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = function foo() { /*1*/ diff --git a/pkg/fourslash/tests/gen/completionListInNamedFunctionExpressionWithShadowing_test.go b/pkg/fourslash/tests/gen/completionListInNamedFunctionExpressionWithShadowing_test.go index 1b29f7401..6752fd241 100644 --- a/pkg/fourslash/tests/gen/completionListInNamedFunctionExpressionWithShadowing_test.go +++ b/pkg/fourslash/tests/gen/completionListInNamedFunctionExpressionWithShadowing_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionListInNamedFunctionExpressionWithShadowing(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo() {} /*0*/ diff --git a/pkg/fourslash/tests/gen/completionListInNamedFunctionExpression_test.go b/pkg/fourslash/tests/gen/completionListInNamedFunctionExpression_test.go index aa4de524b..f18f80cab 100644 --- a/pkg/fourslash/tests/gen/completionListInNamedFunctionExpression_test.go +++ b/pkg/fourslash/tests/gen/completionListInNamedFunctionExpression_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInNamedFunctionExpression(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(a: number): string { /*insideFunctionDeclaration*/ diff --git a/pkg/fourslash/tests/gen/completionListInNamespaceImportName01_test.go b/pkg/fourslash/tests/gen/completionListInNamespaceImportName01_test.go index b49fb57e5..e1bfe66c0 100644 --- a/pkg/fourslash/tests/gen/completionListInNamespaceImportName01_test.go +++ b/pkg/fourslash/tests/gen/completionListInNamespaceImportName01_test.go @@ -8,8 +8,8 @@ import ( ) func TestCompletionListInNamespaceImportName01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: m1.ts export var foo: number = 1; diff --git a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern01_test.go b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern01_test.go index 8bebcff56..9b19f68f3 100644 --- a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern01_test.go +++ b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern01_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInObjectBindingPattern01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { property1: number; diff --git a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern02_test.go b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern02_test.go index e32bf5692..d43ae8a1b 100644 --- a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern02_test.go +++ b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern02_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInObjectBindingPattern02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { property1: number; diff --git a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern03_test.go b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern03_test.go index 3ae94fb1f..ca3385de9 100644 --- a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern03_test.go +++ b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern03_test.go @@ -8,8 +8,8 @@ import ( ) func TestCompletionListInObjectBindingPattern03(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { property1: number; diff --git a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern04_test.go b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern04_test.go index 489ea40a0..9af168aea 100644 --- a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern04_test.go +++ b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern04_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInObjectBindingPattern04(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { property1: number; diff --git a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern05_test.go b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern05_test.go index dc87cfa3e..0a60b453d 100644 --- a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern05_test.go +++ b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern05_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInObjectBindingPattern05(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { property1: number; diff --git a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern06_test.go b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern06_test.go index 539c29bb6..863e05e92 100644 --- a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern06_test.go +++ b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern06_test.go @@ -8,8 +8,8 @@ import ( ) func TestCompletionListInObjectBindingPattern06(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { property1: number; diff --git a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern07_test.go b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern07_test.go index 329139d9d..c0b9dd56b 100644 --- a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern07_test.go +++ b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern07_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInObjectBindingPattern07(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { propertyOfI_1: number; diff --git a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern08_test.go b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern08_test.go index ae20064d6..b04c6302b 100644 --- a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern08_test.go +++ b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern08_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInObjectBindingPattern08(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { propertyOfI_1: number; diff --git a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern09_test.go b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern09_test.go index 047a5b418..893384aed 100644 --- a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern09_test.go +++ b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern09_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInObjectBindingPattern09(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { propertyOfI_1: number; diff --git a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern10_test.go b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern10_test.go index 9bb108074..bc47afead 100644 --- a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern10_test.go +++ b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern10_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInObjectBindingPattern10(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { propertyOfI_1: number; diff --git a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern11_test.go b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern11_test.go index 9f672568f..cfb75a665 100644 --- a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern11_test.go +++ b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern11_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInObjectBindingPattern11(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { property1: number; diff --git a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern12_test.go b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern12_test.go index fb4ff7bd0..a18a073b1 100644 --- a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern12_test.go +++ b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern12_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInObjectBindingPattern12(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { property1: number; diff --git a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern13_test.go b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern13_test.go index 793f0276c..3d4308f81 100644 --- a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern13_test.go +++ b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern13_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInObjectBindingPattern13(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { x: number; diff --git a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern14_test.go b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern14_test.go index 19aa3de80..086244781 100644 --- a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern14_test.go +++ b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern14_test.go @@ -8,8 +8,8 @@ import ( ) func TestCompletionListInObjectBindingPattern14(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const { b/**/ } = new class { private ab; diff --git a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern15_test.go b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern15_test.go index fa2520983..4856f6d88 100644 --- a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern15_test.go +++ b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern15_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInObjectBindingPattern15(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { private xxx1 = 1; diff --git a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern16_test.go b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern16_test.go index b3a6aacb5..7126767b4 100644 --- a/pkg/fourslash/tests/gen/completionListInObjectBindingPattern16_test.go +++ b/pkg/fourslash/tests/gen/completionListInObjectBindingPattern16_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInObjectBindingPattern16(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/completionListInObjectLiteral2_test.go b/pkg/fourslash/tests/gen/completionListInObjectLiteral2_test.go index 6b25f3213..37a7e1620 100644 --- a/pkg/fourslash/tests/gen/completionListInObjectLiteral2_test.go +++ b/pkg/fourslash/tests/gen/completionListInObjectLiteral2_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInObjectLiteral2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface TelemetryService { publicLog(eventName: string, data: any): any; diff --git a/pkg/fourslash/tests/gen/completionListInObjectLiteral3_test.go b/pkg/fourslash/tests/gen/completionListInObjectLiteral3_test.go index 900beb661..31cc3100b 100644 --- a/pkg/fourslash/tests/gen/completionListInObjectLiteral3_test.go +++ b/pkg/fourslash/tests/gen/completionListInObjectLiteral3_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInObjectLiteral3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IASTNode { name: string; diff --git a/pkg/fourslash/tests/gen/completionListInObjectLiteral4_test.go b/pkg/fourslash/tests/gen/completionListInObjectLiteral4_test.go index b7ee6b7e9..cf83835ae 100644 --- a/pkg/fourslash/tests/gen/completionListInObjectLiteral4_test.go +++ b/pkg/fourslash/tests/gen/completionListInObjectLiteral4_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInObjectLiteral4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strictNullChecks: true interface Thing { diff --git a/pkg/fourslash/tests/gen/completionListInObjectLiteral5_test.go b/pkg/fourslash/tests/gen/completionListInObjectLiteral5_test.go index 4b305e2ad..d37171b6e 100644 --- a/pkg/fourslash/tests/gen/completionListInObjectLiteral5_test.go +++ b/pkg/fourslash/tests/gen/completionListInObjectLiteral5_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInObjectLiteral5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const o = 'something' const obj = { diff --git a/pkg/fourslash/tests/gen/completionListInObjectLiteral6_test.go b/pkg/fourslash/tests/gen/completionListInObjectLiteral6_test.go index facfda83c..b34bfe145 100644 --- a/pkg/fourslash/tests/gen/completionListInObjectLiteral6_test.go +++ b/pkg/fourslash/tests/gen/completionListInObjectLiteral6_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionListInObjectLiteral6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const foo = { a: "a", diff --git a/pkg/fourslash/tests/gen/completionListInObjectLiteral7_test.go b/pkg/fourslash/tests/gen/completionListInObjectLiteral7_test.go index 041d5877b..ffacce542 100644 --- a/pkg/fourslash/tests/gen/completionListInObjectLiteral7_test.go +++ b/pkg/fourslash/tests/gen/completionListInObjectLiteral7_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInObjectLiteral7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type Foo = { foo: boolean }; function f(shape: Foo): any; diff --git a/pkg/fourslash/tests/gen/completionListInObjectLiteral8_test.go b/pkg/fourslash/tests/gen/completionListInObjectLiteral8_test.go index 62c7f2f85..19804cd63 100644 --- a/pkg/fourslash/tests/gen/completionListInObjectLiteral8_test.go +++ b/pkg/fourslash/tests/gen/completionListInObjectLiteral8_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionListInObjectLiteral8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function test< Variants extends Partial>, diff --git a/pkg/fourslash/tests/gen/completionListInObjectLiteralAssignmentPattern1_test.go b/pkg/fourslash/tests/gen/completionListInObjectLiteralAssignmentPattern1_test.go index 6ca019938..ab05b00d1 100644 --- a/pkg/fourslash/tests/gen/completionListInObjectLiteralAssignmentPattern1_test.go +++ b/pkg/fourslash/tests/gen/completionListInObjectLiteralAssignmentPattern1_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInObjectLiteralAssignmentPattern1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let x = { a: 1, b: 2 }; let y = ({ /**/ } = x, 1);` diff --git a/pkg/fourslash/tests/gen/completionListInObjectLiteralAssignmentPattern2_test.go b/pkg/fourslash/tests/gen/completionListInObjectLiteralAssignmentPattern2_test.go index e3ab61e7a..0488ccba9 100644 --- a/pkg/fourslash/tests/gen/completionListInObjectLiteralAssignmentPattern2_test.go +++ b/pkg/fourslash/tests/gen/completionListInObjectLiteralAssignmentPattern2_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInObjectLiteralAssignmentPattern2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let x = { a: 1, b: 2 }; let y = ({ a, /**/ } = x, 1);` diff --git a/pkg/fourslash/tests/gen/completionListInObjectLiteralPropertyAssignment_test.go b/pkg/fourslash/tests/gen/completionListInObjectLiteralPropertyAssignment_test.go index c37fac4f4..240eb9f75 100644 --- a/pkg/fourslash/tests/gen/completionListInObjectLiteralPropertyAssignment_test.go +++ b/pkg/fourslash/tests/gen/completionListInObjectLiteralPropertyAssignment_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInObjectLiteralPropertyAssignment(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var foo; interface I { diff --git a/pkg/fourslash/tests/gen/completionListInObjectLiteralThatIsParameterOfFunctionCall_test.go b/pkg/fourslash/tests/gen/completionListInObjectLiteralThatIsParameterOfFunctionCall_test.go index 84d57c513..6b2bd7770 100644 --- a/pkg/fourslash/tests/gen/completionListInObjectLiteralThatIsParameterOfFunctionCall_test.go +++ b/pkg/fourslash/tests/gen/completionListInObjectLiteralThatIsParameterOfFunctionCall_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInObjectLiteralThatIsParameterOfFunctionCall(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f(a: { xa: number; xb: number; }) { } var xc; diff --git a/pkg/fourslash/tests/gen/completionListInObjectLiteral_test.go b/pkg/fourslash/tests/gen/completionListInObjectLiteral_test.go index 533dd5f5c..784a5811e 100644 --- a/pkg/fourslash/tests/gen/completionListInObjectLiteral_test.go +++ b/pkg/fourslash/tests/gen/completionListInObjectLiteral_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInObjectLiteral(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface point { x: number; diff --git a/pkg/fourslash/tests/gen/completionListInReturnWithContextualThis_test.go b/pkg/fourslash/tests/gen/completionListInReturnWithContextualThis_test.go index 267e9c4e1..fdf8a12a4 100644 --- a/pkg/fourslash/tests/gen/completionListInReturnWithContextualThis_test.go +++ b/pkg/fourslash/tests/gen/completionListInReturnWithContextualThis_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInReturnWithContextualThis(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Ctx { foo(): { diff --git a/pkg/fourslash/tests/gen/completionListInScope_doesNotIncludeAugmentations_test.go b/pkg/fourslash/tests/gen/completionListInScope_doesNotIncludeAugmentations_test.go index 23dc79f17..cd1c65a13 100644 --- a/pkg/fourslash/tests/gen/completionListInScope_doesNotIncludeAugmentations_test.go +++ b/pkg/fourslash/tests/gen/completionListInScope_doesNotIncludeAugmentations_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInScope_doesNotIncludeAugmentations(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts import * as self from "./a"; diff --git a/pkg/fourslash/tests/gen/completionListInScope_test.go b/pkg/fourslash/tests/gen/completionListInScope_test.go index c2ed1cbfd..4585af435 100644 --- a/pkg/fourslash/tests/gen/completionListInScope_test.go +++ b/pkg/fourslash/tests/gen/completionListInScope_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInScope(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module TestModule { var localVariable = ""; diff --git a/pkg/fourslash/tests/gen/completionListInStringLiterals1_test.go b/pkg/fourslash/tests/gen/completionListInStringLiterals1_test.go index 3655396fb..42dc9ebc5 100644 --- a/pkg/fourslash/tests/gen/completionListInStringLiterals1_test.go +++ b/pkg/fourslash/tests/gen/completionListInStringLiterals1_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInStringLiterals1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `"/*1*/ /*2*/\/*3*/ /*4*/ \\/*5*/` diff --git a/pkg/fourslash/tests/gen/completionListInStringLiterals2_test.go b/pkg/fourslash/tests/gen/completionListInStringLiterals2_test.go index 1a79c585f..23922a631 100644 --- a/pkg/fourslash/tests/gen/completionListInStringLiterals2_test.go +++ b/pkg/fourslash/tests/gen/completionListInStringLiterals2_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInStringLiterals2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `"/*1*/ /*2*/\/*3*/ /*4*/ \\\/*5*/ diff --git a/pkg/fourslash/tests/gen/completionListInTemplateLiteralParts1_test.go b/pkg/fourslash/tests/gen/completionListInTemplateLiteralParts1_test.go index 966cbe73c..008b36247 100644 --- a/pkg/fourslash/tests/gen/completionListInTemplateLiteralParts1_test.go +++ b/pkg/fourslash/tests/gen/completionListInTemplateLiteralParts1_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInTemplateLiteralParts1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*0*/` + "`" + ` $ { ${/*1*/ 10/*2*/ + 1.1/*3*/ /*4*/} 12312` + "`" + `/*5*/ diff --git a/pkg/fourslash/tests/gen/completionListInTemplateLiteralPartsNegatives1_test.go b/pkg/fourslash/tests/gen/completionListInTemplateLiteralPartsNegatives1_test.go index b2ff7d9ee..b2369ea13 100644 --- a/pkg/fourslash/tests/gen/completionListInTemplateLiteralPartsNegatives1_test.go +++ b/pkg/fourslash/tests/gen/completionListInTemplateLiteralPartsNegatives1_test.go @@ -8,8 +8,8 @@ import ( ) func TestCompletionListInTemplateLiteralPartsNegatives1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `` + "`" + `/*0*/ /*1*/$ /*2*/{ /*3*/$/*4*/{ 10 + 1.1 }/*5*/ 12312/*6*/` + "`" + ` diff --git a/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter1_test.go b/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter1_test.go index 072c71734..2edb49a04 100644 --- a/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter1_test.go +++ b/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter1_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInTypeLiteralInTypeParameter1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { one: string; diff --git a/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter2_test.go b/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter2_test.go index 3bef81829..389cc9198 100644 --- a/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter2_test.go +++ b/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter2_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInTypeLiteralInTypeParameter2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { one: string; diff --git a/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter3_test.go b/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter3_test.go index 056267e05..818a3afb2 100644 --- a/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter3_test.go +++ b/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter3_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInTypeLiteralInTypeParameter3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { one: string; diff --git a/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter4_test.go b/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter4_test.go index cefcd1517..f351bdb08 100644 --- a/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter4_test.go +++ b/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter4_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInTypeLiteralInTypeParameter4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { one: string; diff --git a/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter5_test.go b/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter5_test.go index 9c81752cf..f01ef7e52 100644 --- a/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter5_test.go +++ b/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter5_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInTypeLiteralInTypeParameter5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { one: string; diff --git a/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter6_test.go b/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter6_test.go index efbed79aa..f49a4b06d 100644 --- a/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter6_test.go +++ b/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter6_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInTypeLiteralInTypeParameter6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { one: string; diff --git a/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter7_test.go b/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter7_test.go index dd31678cd..d95ee517c 100644 --- a/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter7_test.go +++ b/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter7_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInTypeLiteralInTypeParameter7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { one: string; diff --git a/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter8_test.go b/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter8_test.go index 35260554b..c22c0e552 100644 --- a/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter8_test.go +++ b/pkg/fourslash/tests/gen/completionListInTypeLiteralInTypeParameter8_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInTypeLiteralInTypeParameter8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { one: string; diff --git a/pkg/fourslash/tests/gen/completionListInTypeParameterOfClassExpression1_test.go b/pkg/fourslash/tests/gen/completionListInTypeParameterOfClassExpression1_test.go index 1837c18e4..f90121c1a 100644 --- a/pkg/fourslash/tests/gen/completionListInTypeParameterOfClassExpression1_test.go +++ b/pkg/fourslash/tests/gen/completionListInTypeParameterOfClassExpression1_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInTypeParameterOfClassExpression1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var C0 = class D {} diff --git a/pkg/fourslash/tests/gen/completionListInTypeParameterOfTypeAlias1_test.go b/pkg/fourslash/tests/gen/completionListInTypeParameterOfTypeAlias1_test.go index 881539545..e197746e4 100644 --- a/pkg/fourslash/tests/gen/completionListInTypeParameterOfTypeAlias1_test.go +++ b/pkg/fourslash/tests/gen/completionListInTypeParameterOfTypeAlias1_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInTypeParameterOfTypeAlias1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type List1 = T[]; diff --git a/pkg/fourslash/tests/gen/completionListInTypeParameterOfTypeAlias2_test.go b/pkg/fourslash/tests/gen/completionListInTypeParameterOfTypeAlias2_test.go index 6f12ebffc..e4354816d 100644 --- a/pkg/fourslash/tests/gen/completionListInTypeParameterOfTypeAlias2_test.go +++ b/pkg/fourslash/tests/gen/completionListInTypeParameterOfTypeAlias2_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInTypeParameterOfTypeAlias2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type Map1 = []; diff --git a/pkg/fourslash/tests/gen/completionListInTypeParameterOfTypeAlias3_test.go b/pkg/fourslash/tests/gen/completionListInTypeParameterOfTypeAlias3_test.go index 7808eedf6..dba9718ca 100644 --- a/pkg/fourslash/tests/gen/completionListInTypeParameterOfTypeAlias3_test.go +++ b/pkg/fourslash/tests/gen/completionListInTypeParameterOfTypeAlias3_test.go @@ -8,8 +8,8 @@ import ( ) func TestCompletionListInTypeParameterOfTypeAlias3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type constructorType = new a,/*1*/` diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedCommaExpression02_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedCommaExpression02_test.go index e17e8fe74..5cc992b99 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedCommaExpression02_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedCommaExpression02_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedCommaExpression02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// should NOT see a and b foo((a, b) => (a,/*1*/` diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedDeleteExpression01_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedDeleteExpression01_test.go index 4845e2a48..248084a28 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedDeleteExpression01_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedDeleteExpression01_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedDeleteExpression01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x; var y = delete /*1*/` diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedDeleteExpression02_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedDeleteExpression02_test.go index e069013d5..3b8170b45 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedDeleteExpression02_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedDeleteExpression02_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedDeleteExpression02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x; var y = (p) => delete /*1*/` diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedElementAccessExpression01_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedElementAccessExpression01_test.go index ecbe29bc8..2708daef2 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedElementAccessExpression01_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedElementAccessExpression01_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedElementAccessExpression01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x; var y = x[/*1*/` diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedElementAccessExpression02_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedElementAccessExpression02_test.go index 95eb0b9b6..9878449aa 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedElementAccessExpression02_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedElementAccessExpression02_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedElementAccessExpression02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x; var y = (p) => x[/*1*/` diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedForLoop01_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedForLoop01_test.go index 904ad76b7..b51ba4d02 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedForLoop01_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedForLoop01_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedForLoop01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `for (let i = 0; /*1*/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedForLoop02_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedForLoop02_test.go index 29e2d7bae..6d7659a2c 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedForLoop02_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedForLoop02_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedForLoop02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `for (let i = 0; i < 10; i++) /*1*/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedFunction01_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedFunction01_test.go index 83ab4a9e3..af2c3662b 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedFunction01_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedFunction01_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedFunction01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(x: string, y: number, z: boolean) { /*1*/ diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedFunction02_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedFunction02_test.go index ed67bfd3d..cc69fa21a 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedFunction02_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedFunction02_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedFunction02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(x: string, y: number, z: boolean) { function bar(a: number, b: string, c: typeof /*1*/` diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedFunction03_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedFunction03_test.go index a651f29d1..2dce2b45e 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedFunction03_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedFunction03_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedFunction03(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(x: string, y: number, z: boolean) { function bar(a: number, b: string, c: typeof /*1*/ diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedFunction04_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedFunction04_test.go index 6ff0150ac..6ae23f6f9 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedFunction04_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedFunction04_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedFunction04(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(x: string, y: number, z: boolean) { function bar(a: number, b: string, c: typeof x = /*1*/` diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedFunction05_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedFunction05_test.go index f52f27a37..ba111c52c 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedFunction05_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedFunction05_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedFunction05(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(x: string, y: number, z: boolean) { function bar(a: number, b: string, c: typeof x = /*1*/ diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedFunction06_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedFunction06_test.go index 1a2803abd..1a5b17a13 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedFunction06_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedFunction06_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedFunction06(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(x: string, y: number, z: boolean) { function bar(a: number, b: string = /*1*/, c: typeof x = "hello" diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedFunction07_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedFunction07_test.go index 8f5b4c91d..2e8f2a430 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedFunction07_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedFunction07_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedFunction07(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(x: string, y: number, z: boolean) { function bar(a: number, b: string = /*1*/, c: typeof x = "hello" diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedFunction08_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedFunction08_test.go index 97bcf31db..35fb05357 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedFunction08_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedFunction08_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedFunction08(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(x: string, y: number, z: boolean) { function bar(a: number, b: string = "hello", c: typeof x = "hello") { diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedFunction09_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedFunction09_test.go index 5190c9f8a..71854b31e 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedFunction09_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedFunction09_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedFunction09(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(x: string, y: number, z: boolean) { function bar(a: number, b: string = "hello", c: typeof x = "hello") { diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedFunction10_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedFunction10_test.go index 8545235ef..8690f9708 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedFunction10_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedFunction10_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedFunction10(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface MyType { } diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedFunction11_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedFunction11_test.go index f057244a0..2856c5c71 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedFunction11_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedFunction11_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedFunction11(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface MyType { } diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedFunction12_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedFunction12_test.go index 2467502b7..b37eba069 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedFunction12_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedFunction12_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedFunction12(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface MyType { } diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedFunction13_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedFunction13_test.go index ddcc2f81d..c59a48090 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedFunction13_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedFunction13_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedFunction13(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface MyType { } diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedFunction14_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedFunction14_test.go index b4403b8cb..684c65b22 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedFunction14_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedFunction14_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedFunction14(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface MyType { } diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedFunction15_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedFunction15_test.go index d001af06e..6d2d4b200 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedFunction15_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedFunction15_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedFunction15(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface MyType { } diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedFunction16_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedFunction16_test.go index f1d42569f..280c16a43 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedFunction16_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedFunction16_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedFunction16(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface MyType { } diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedFunction17_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedFunction17_test.go index 639b3968f..d65f78867 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedFunction17_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedFunction17_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedFunction17(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface MyType { } diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedFunction18_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedFunction18_test.go index 0e431f48f..258879ecb 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedFunction18_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedFunction18_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedFunction18(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface MyType { } diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedFunction19_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedFunction19_test.go index 2c8e9756a..13bd243fb 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedFunction19_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedFunction19_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedFunction19(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface MyType { } diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedIndexSignature01_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedIndexSignature01_test.go index c27bc89e2..6ad7cf3ba 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedIndexSignature01_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedIndexSignature01_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedIndexSignature01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { [foo: string]: typeof /*1*/ diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedIndexSignature02_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedIndexSignature02_test.go index 15b0c2b4a..18c77d798 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedIndexSignature02_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedIndexSignature02_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedIndexSignature02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { [foo: /*1*/ diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedIndexSignature03_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedIndexSignature03_test.go index 08ef6347e..006c5ba3c 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedIndexSignature03_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedIndexSignature03_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedIndexSignature03(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { [foo: string]: { x: typeof /*1*/ diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedObjectTypeLiteralInSignature01_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedObjectTypeLiteralInSignature01_test.go index 76376df95..b0e1bd11a 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedObjectTypeLiteralInSignature01_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedObjectTypeLiteralInSignature01_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedObjectTypeLiteralInSignature01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { [s: string]: TString; diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedObjectTypeLiteralInSignature02_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedObjectTypeLiteralInSignature02_test.go index a5010c45f..0ac9110a1 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedObjectTypeLiteralInSignature02_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedObjectTypeLiteralInSignature02_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedObjectTypeLiteralInSignature02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { [s: string]: TString; diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedObjectTypeLiteralInSignature03_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedObjectTypeLiteralInSignature03_test.go index 0560f2bcb..9a19baeb4 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedObjectTypeLiteralInSignature03_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedObjectTypeLiteralInSignature03_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedObjectTypeLiteralInSignature03(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { [s: string]: TString; diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedObjectTypeLiteralInSignature04_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedObjectTypeLiteralInSignature04_test.go index 5bdb5ce9e..7dfb085bf 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedObjectTypeLiteralInSignature04_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedObjectTypeLiteralInSignature04_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionListInUnclosedObjectTypeLiteralInSignature04(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { [s: string]: TString; diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedSpreadExpression01_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedSpreadExpression01_test.go index 5ea482b3e..c9b33e99a 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedSpreadExpression01_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedSpreadExpression01_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedSpreadExpression01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x; var y = [1,2,.../*1*/` diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedSpreadExpression02_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedSpreadExpression02_test.go index b4413aa6d..06f76b2c7 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedSpreadExpression02_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedSpreadExpression02_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedSpreadExpression02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x; var y = (p) => [1,2,.../*1*/` diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedTaggedTemplate01_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedTaggedTemplate01_test.go index 72427fd6f..c1ad5b5ae 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedTaggedTemplate01_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedTaggedTemplate01_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedTaggedTemplate01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x; var y = (p) => x ` + "`" + `abc ${ /*1*/` diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedTaggedTemplate02_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedTaggedTemplate02_test.go index 878dd2a52..2926193a6 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedTaggedTemplate02_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedTaggedTemplate02_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedTaggedTemplate02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x; var y = (p) => x ` + "`" + `abc ${ 123 } ${ /*1*/` diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedTemplate01_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedTemplate01_test.go index d78424385..68aabb642 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedTemplate01_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedTemplate01_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedTemplate01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x; var y = (p) => ` + "`" + `abc ${ /*1*/` diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedTemplate02_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedTemplate02_test.go index d02f183b7..95bf8ebad 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedTemplate02_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedTemplate02_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedTemplate02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x; var y = (p) => ` + "`" + `abc ${ 123 } ${ /*1*/` diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedTypeOfExpression01_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedTypeOfExpression01_test.go index 28fb09056..4814a6b9b 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedTypeOfExpression01_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedTypeOfExpression01_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedTypeOfExpression01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x; var y = typeof /*1*/` diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedTypeOfExpression02_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedTypeOfExpression02_test.go index 834d736be..d19347eeb 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedTypeOfExpression02_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedTypeOfExpression02_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedTypeOfExpression02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x; var y = (p) => typeof /*1*/` diff --git a/pkg/fourslash/tests/gen/completionListInUnclosedVoidExpression01_test.go b/pkg/fourslash/tests/gen/completionListInUnclosedVoidExpression01_test.go index 67940b99c..3eee931c3 100644 --- a/pkg/fourslash/tests/gen/completionListInUnclosedVoidExpression01_test.go +++ b/pkg/fourslash/tests/gen/completionListInUnclosedVoidExpression01_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInUnclosedVoidExpression01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x; var y = (p) => void /*1*/` diff --git a/pkg/fourslash/tests/gen/completionListInferKeyword_test.go b/pkg/fourslash/tests/gen/completionListInferKeyword_test.go index d6384457e..3222531c0 100644 --- a/pkg/fourslash/tests/gen/completionListInferKeyword_test.go +++ b/pkg/fourslash/tests/gen/completionListInferKeyword_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionListInferKeyword(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type Bar = T extends { a: (x: in/**/) => void } ? U diff --git a/pkg/fourslash/tests/gen/completionListInsideTargetTypedFunction_test.go b/pkg/fourslash/tests/gen/completionListInsideTargetTypedFunction_test.go index d44af00a2..bce77f69a 100644 --- a/pkg/fourslash/tests/gen/completionListInsideTargetTypedFunction_test.go +++ b/pkg/fourslash/tests/gen/completionListInsideTargetTypedFunction_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionListInsideTargetTypedFunction(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module Fix2 { interface iFace { (event: string); } diff --git a/pkg/fourslash/tests/gen/completionListInstanceProtectedMembers2_test.go b/pkg/fourslash/tests/gen/completionListInstanceProtectedMembers2_test.go index 7169262b8..05555756d 100644 --- a/pkg/fourslash/tests/gen/completionListInstanceProtectedMembers2_test.go +++ b/pkg/fourslash/tests/gen/completionListInstanceProtectedMembers2_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInstanceProtectedMembers2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Base { private privateMethod() { } diff --git a/pkg/fourslash/tests/gen/completionListInstanceProtectedMembers3_test.go b/pkg/fourslash/tests/gen/completionListInstanceProtectedMembers3_test.go index d5c5ed0be..ae78c9b4a 100644 --- a/pkg/fourslash/tests/gen/completionListInstanceProtectedMembers3_test.go +++ b/pkg/fourslash/tests/gen/completionListInstanceProtectedMembers3_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInstanceProtectedMembers3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Base { private privateMethod() { } diff --git a/pkg/fourslash/tests/gen/completionListInstanceProtectedMembers4_test.go b/pkg/fourslash/tests/gen/completionListInstanceProtectedMembers4_test.go index 2e2f7f2aa..3dcc699b8 100644 --- a/pkg/fourslash/tests/gen/completionListInstanceProtectedMembers4_test.go +++ b/pkg/fourslash/tests/gen/completionListInstanceProtectedMembers4_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInstanceProtectedMembers4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Base { private privateMethod() { } diff --git a/pkg/fourslash/tests/gen/completionListInstanceProtectedMembers_test.go b/pkg/fourslash/tests/gen/completionListInstanceProtectedMembers_test.go index dffc2c015..42e629cf8 100644 --- a/pkg/fourslash/tests/gen/completionListInstanceProtectedMembers_test.go +++ b/pkg/fourslash/tests/gen/completionListInstanceProtectedMembers_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInstanceProtectedMembers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Base { private privateMethod() { } diff --git a/pkg/fourslash/tests/gen/completionListInvalidMemberNames2_test.go b/pkg/fourslash/tests/gen/completionListInvalidMemberNames2_test.go index 61a967f02..d945a3c00 100644 --- a/pkg/fourslash/tests/gen/completionListInvalidMemberNames2_test.go +++ b/pkg/fourslash/tests/gen/completionListInvalidMemberNames2_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListInvalidMemberNames2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare var Symbol: SymbolConstructor; interface SymbolConstructor { diff --git a/pkg/fourslash/tests/gen/completionListInvalidMemberNames_escapeQuote_test.go b/pkg/fourslash/tests/gen/completionListInvalidMemberNames_escapeQuote_test.go index 61b7c9c5c..26f452c61 100644 --- a/pkg/fourslash/tests/gen/completionListInvalidMemberNames_escapeQuote_test.go +++ b/pkg/fourslash/tests/gen/completionListInvalidMemberNames_escapeQuote_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionListInvalidMemberNames_escapeQuote(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const x: { "\"'": 0 }; x[|./**/|];` diff --git a/pkg/fourslash/tests/gen/completionListInvalidMemberNames_startWithSpace_test.go b/pkg/fourslash/tests/gen/completionListInvalidMemberNames_startWithSpace_test.go index 5b988af24..fa57edeb9 100644 --- a/pkg/fourslash/tests/gen/completionListInvalidMemberNames_startWithSpace_test.go +++ b/pkg/fourslash/tests/gen/completionListInvalidMemberNames_startWithSpace_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionListInvalidMemberNames_startWithSpace(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const x: { " foo": 0, "foo ": 1 }; x[|./**/|];` diff --git a/pkg/fourslash/tests/gen/completionListInvalidMemberNames_test.go b/pkg/fourslash/tests/gen/completionListInvalidMemberNames_test.go index 09efdecdc..048d1bb64 100644 --- a/pkg/fourslash/tests/gen/completionListInvalidMemberNames_test.go +++ b/pkg/fourslash/tests/gen/completionListInvalidMemberNames_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionListInvalidMemberNames(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = { "foo ": "space in the name", diff --git a/pkg/fourslash/tests/gen/completionListInvalidMemberNames_withExistingIdentifier_test.go b/pkg/fourslash/tests/gen/completionListInvalidMemberNames_withExistingIdentifier_test.go index 560c4c43d..5cfc59333 100644 --- a/pkg/fourslash/tests/gen/completionListInvalidMemberNames_withExistingIdentifier_test.go +++ b/pkg/fourslash/tests/gen/completionListInvalidMemberNames_withExistingIdentifier_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionListInvalidMemberNames_withExistingIdentifier(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const x: { "foo ": "space in the name", }; x[|.fo/*0*/|]; diff --git a/pkg/fourslash/tests/gen/completionListKeywords_test.go b/pkg/fourslash/tests/gen/completionListKeywords_test.go index c1e69a628..a59a85ffa 100644 --- a/pkg/fourslash/tests/gen/completionListKeywords_test.go +++ b/pkg/fourslash/tests/gen/completionListKeywords_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListKeywords(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noLib: true /**/` diff --git a/pkg/fourslash/tests/gen/completionListModuleMembers_test.go b/pkg/fourslash/tests/gen/completionListModuleMembers_test.go index d44f8e228..96ee882df 100644 --- a/pkg/fourslash/tests/gen/completionListModuleMembers_test.go +++ b/pkg/fourslash/tests/gen/completionListModuleMembers_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListModuleMembers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = ` module Module { var innerVariable = 1; diff --git a/pkg/fourslash/tests/gen/completionListNewIdentifierBindingElement_test.go b/pkg/fourslash/tests/gen/completionListNewIdentifierBindingElement_test.go index 5549a89c5..0f0984da3 100644 --- a/pkg/fourslash/tests/gen/completionListNewIdentifierBindingElement_test.go +++ b/pkg/fourslash/tests/gen/completionListNewIdentifierBindingElement_test.go @@ -8,8 +8,8 @@ import ( ) func TestCompletionListNewIdentifierBindingElement(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var { x:html/*1*/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/completionListNewIdentifierFunctionDeclaration_test.go b/pkg/fourslash/tests/gen/completionListNewIdentifierFunctionDeclaration_test.go index 11bd48bfc..fbb532772 100644 --- a/pkg/fourslash/tests/gen/completionListNewIdentifierFunctionDeclaration_test.go +++ b/pkg/fourslash/tests/gen/completionListNewIdentifierFunctionDeclaration_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListNewIdentifierFunctionDeclaration(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noLib: true function F(pref: (a/*1*/` diff --git a/pkg/fourslash/tests/gen/completionListNewIdentifierVariableDeclaration_test.go b/pkg/fourslash/tests/gen/completionListNewIdentifierVariableDeclaration_test.go index 4191004e3..9866751ee 100644 --- a/pkg/fourslash/tests/gen/completionListNewIdentifierVariableDeclaration_test.go +++ b/pkg/fourslash/tests/gen/completionListNewIdentifierVariableDeclaration_test.go @@ -8,8 +8,8 @@ import ( ) func TestCompletionListNewIdentifierVariableDeclaration(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var y : (s:string, list/*2*/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/completionListObjectMembersInTypeLocationWithTypeof_test.go b/pkg/fourslash/tests/gen/completionListObjectMembersInTypeLocationWithTypeof_test.go index c097717b9..b2eded8bb 100644 --- a/pkg/fourslash/tests/gen/completionListObjectMembersInTypeLocationWithTypeof_test.go +++ b/pkg/fourslash/tests/gen/completionListObjectMembersInTypeLocationWithTypeof_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionListObjectMembersInTypeLocationWithTypeof(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true const languageService = { getCompletions() {} } diff --git a/pkg/fourslash/tests/gen/completionListObjectMembers_test.go b/pkg/fourslash/tests/gen/completionListObjectMembers_test.go index 6281a0d00..1f400e786 100644 --- a/pkg/fourslash/tests/gen/completionListObjectMembers_test.go +++ b/pkg/fourslash/tests/gen/completionListObjectMembers_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionListObjectMembers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = ` var object: { (bar: any): any; diff --git a/pkg/fourslash/tests/gen/completionListOfGenericSymbol_test.go b/pkg/fourslash/tests/gen/completionListOfGenericSymbol_test.go index b596c4ae4..07719f6ef 100644 --- a/pkg/fourslash/tests/gen/completionListOfGenericSymbol_test.go +++ b/pkg/fourslash/tests/gen/completionListOfGenericSymbol_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionListOfGenericSymbol(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var a = [1,2,3]; a./**/` diff --git a/pkg/fourslash/tests/gen/completionListOfSplitInterface_test.go b/pkg/fourslash/tests/gen/completionListOfSplitInterface_test.go index 4d80b58aa..34a2f4f4c 100644 --- a/pkg/fourslash/tests/gen/completionListOfSplitInterface_test.go +++ b/pkg/fourslash/tests/gen/completionListOfSplitInterface_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListOfSplitInterface(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface A { a: number; diff --git a/pkg/fourslash/tests/gen/completionListOfUnion_test.go b/pkg/fourslash/tests/gen/completionListOfUnion_test.go index 8c1efeb6c..f6eca734a 100644 --- a/pkg/fourslash/tests/gen/completionListOfUnion_test.go +++ b/pkg/fourslash/tests/gen/completionListOfUnion_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionListOfUnion(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strictNullChecks: true const x: { a: number, b: number } | { a: string, c: string } | { b: boolean } | number | null | undefined = { /*x*/ }; diff --git a/pkg/fourslash/tests/gen/completionListOnAliasedModule_test.go b/pkg/fourslash/tests/gen/completionListOnAliasedModule_test.go index 4d4b24e27..bd5af7280 100644 --- a/pkg/fourslash/tests/gen/completionListOnAliasedModule_test.go +++ b/pkg/fourslash/tests/gen/completionListOnAliasedModule_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListOnAliasedModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module M { export module N { diff --git a/pkg/fourslash/tests/gen/completionListOnAliases2_test.go b/pkg/fourslash/tests/gen/completionListOnAliases2_test.go index 9af618fb5..db42839aa 100644 --- a/pkg/fourslash/tests/gen/completionListOnAliases2_test.go +++ b/pkg/fourslash/tests/gen/completionListOnAliases2_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionListOnAliases2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module M { export interface I { } diff --git a/pkg/fourslash/tests/gen/completionListOnAliases3_test.go b/pkg/fourslash/tests/gen/completionListOnAliases3_test.go index a17ea40e1..e17acb1b6 100644 --- a/pkg/fourslash/tests/gen/completionListOnAliases3_test.go +++ b/pkg/fourslash/tests/gen/completionListOnAliases3_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListOnAliases3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare module 'foobar' { interface Q { x: number; } diff --git a/pkg/fourslash/tests/gen/completionListOnAliases_test.go b/pkg/fourslash/tests/gen/completionListOnAliases_test.go index 9d17c2eaf..c65d0981e 100644 --- a/pkg/fourslash/tests/gen/completionListOnAliases_test.go +++ b/pkg/fourslash/tests/gen/completionListOnAliases_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionListOnAliases(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module M { export var value; diff --git a/pkg/fourslash/tests/gen/completionListOnFunctionCallWithOptionalArgument_test.go b/pkg/fourslash/tests/gen/completionListOnFunctionCallWithOptionalArgument_test.go index 53269188c..508e439d7 100644 --- a/pkg/fourslash/tests/gen/completionListOnFunctionCallWithOptionalArgument_test.go +++ b/pkg/fourslash/tests/gen/completionListOnFunctionCallWithOptionalArgument_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListOnFunctionCallWithOptionalArgument(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function Foo(arg1?: Function): { q: number }; Foo(function () { } )./**/;` diff --git a/pkg/fourslash/tests/gen/completionListOnMethodParameterName_test.go b/pkg/fourslash/tests/gen/completionListOnMethodParameterName_test.go index ccf428442..f7195778d 100644 --- a/pkg/fourslash/tests/gen/completionListOnMethodParameterName_test.go +++ b/pkg/fourslash/tests/gen/completionListOnMethodParameterName_test.go @@ -8,8 +8,8 @@ import ( ) func TestCompletionListOnMethodParameterName(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A { foo(nu/**/: number) { diff --git a/pkg/fourslash/tests/gen/completionListOnParamInClass_test.go b/pkg/fourslash/tests/gen/completionListOnParamInClass_test.go index 289558657..3fb829620 100644 --- a/pkg/fourslash/tests/gen/completionListOnParamInClass_test.go +++ b/pkg/fourslash/tests/gen/completionListOnParamInClass_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListOnParamInClass(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export class encoder { static getEncoding(buffer: buffer/**/Pointer diff --git a/pkg/fourslash/tests/gen/completionListOnParam_test.go b/pkg/fourslash/tests/gen/completionListOnParam_test.go index cfd303786..07af13951 100644 --- a/pkg/fourslash/tests/gen/completionListOnParam_test.go +++ b/pkg/fourslash/tests/gen/completionListOnParam_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListOnParam(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module Bar { export class Blah { } diff --git a/pkg/fourslash/tests/gen/completionListOnPrivateVariableInModule_test.go b/pkg/fourslash/tests/gen/completionListOnPrivateVariableInModule_test.go index 3e7a80f55..e180d08b8 100644 --- a/pkg/fourslash/tests/gen/completionListOnPrivateVariableInModule_test.go +++ b/pkg/fourslash/tests/gen/completionListOnPrivateVariableInModule_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionListOnPrivateVariableInModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module Foo { var testing = ""; test/**/ }` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/completionListOnSuper_test.go b/pkg/fourslash/tests/gen/completionListOnSuper_test.go index 291143d76..5ed12d8c0 100644 --- a/pkg/fourslash/tests/gen/completionListOnSuper_test.go +++ b/pkg/fourslash/tests/gen/completionListOnSuper_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListOnSuper(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class TAB{ foo(x: T) { diff --git a/pkg/fourslash/tests/gen/completionListOnVarBetweenModules_test.go b/pkg/fourslash/tests/gen/completionListOnVarBetweenModules_test.go index 21ff27136..3944d23cf 100644 --- a/pkg/fourslash/tests/gen/completionListOnVarBetweenModules_test.go +++ b/pkg/fourslash/tests/gen/completionListOnVarBetweenModules_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListOnVarBetweenModules(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module M1 { export class C1 { diff --git a/pkg/fourslash/tests/gen/completionListOutsideOfClosedArrowFunction01_test.go b/pkg/fourslash/tests/gen/completionListOutsideOfClosedArrowFunction01_test.go index f22979f73..17e11abf0 100644 --- a/pkg/fourslash/tests/gen/completionListOutsideOfClosedArrowFunction01_test.go +++ b/pkg/fourslash/tests/gen/completionListOutsideOfClosedArrowFunction01_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListOutsideOfClosedArrowFunction01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// no a or b /*1*/(a, b) => { }` diff --git a/pkg/fourslash/tests/gen/completionListOutsideOfClosedArrowFunction02_test.go b/pkg/fourslash/tests/gen/completionListOutsideOfClosedArrowFunction02_test.go index 056c2cc93..e01ea0e01 100644 --- a/pkg/fourslash/tests/gen/completionListOutsideOfClosedArrowFunction02_test.go +++ b/pkg/fourslash/tests/gen/completionListOutsideOfClosedArrowFunction02_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListOutsideOfClosedArrowFunction02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// no a or b (a, b) => { }/*1*/` diff --git a/pkg/fourslash/tests/gen/completionListOutsideOfClosedFunctionDeclaration01_test.go b/pkg/fourslash/tests/gen/completionListOutsideOfClosedFunctionDeclaration01_test.go index 2c748f2cf..bfc9883c2 100644 --- a/pkg/fourslash/tests/gen/completionListOutsideOfClosedFunctionDeclaration01_test.go +++ b/pkg/fourslash/tests/gen/completionListOutsideOfClosedFunctionDeclaration01_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListOutsideOfClosedFunctionDeclaration01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// no a or b /*1*/function f (a, b) {}` diff --git a/pkg/fourslash/tests/gen/completionListOutsideOfForLoop01_test.go b/pkg/fourslash/tests/gen/completionListOutsideOfForLoop01_test.go index 7630712b4..0a2d30c9c 100644 --- a/pkg/fourslash/tests/gen/completionListOutsideOfForLoop01_test.go +++ b/pkg/fourslash/tests/gen/completionListOutsideOfForLoop01_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListOutsideOfForLoop01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `for (let i = 0; i < 10; i++) i;/*1*/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/completionListOutsideOfForLoop02_test.go b/pkg/fourslash/tests/gen/completionListOutsideOfForLoop02_test.go index 70488c993..2deb40953 100644 --- a/pkg/fourslash/tests/gen/completionListOutsideOfForLoop02_test.go +++ b/pkg/fourslash/tests/gen/completionListOutsideOfForLoop02_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListOutsideOfForLoop02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `for (let i = 0; i < 10; i++);/*1*/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/completionListPrivateMembers2_test.go b/pkg/fourslash/tests/gen/completionListPrivateMembers2_test.go index c3420513c..be0c01163 100644 --- a/pkg/fourslash/tests/gen/completionListPrivateMembers2_test.go +++ b/pkg/fourslash/tests/gen/completionListPrivateMembers2_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListPrivateMembers2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { private y; diff --git a/pkg/fourslash/tests/gen/completionListPrivateMembers3_test.go b/pkg/fourslash/tests/gen/completionListPrivateMembers3_test.go index 39f7e8aad..2231503fa 100644 --- a/pkg/fourslash/tests/gen/completionListPrivateMembers3_test.go +++ b/pkg/fourslash/tests/gen/completionListPrivateMembers3_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListPrivateMembers3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Other { public p; diff --git a/pkg/fourslash/tests/gen/completionListPrivateMembers_test.go b/pkg/fourslash/tests/gen/completionListPrivateMembers_test.go index d37d753a2..fc37e03de 100644 --- a/pkg/fourslash/tests/gen/completionListPrivateMembers_test.go +++ b/pkg/fourslash/tests/gen/completionListPrivateMembers_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListPrivateMembers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { private x; diff --git a/pkg/fourslash/tests/gen/completionListPrivateNamesAccessors_test.go b/pkg/fourslash/tests/gen/completionListPrivateNamesAccessors_test.go index 4b5ee5ace..b78e608f0 100644 --- a/pkg/fourslash/tests/gen/completionListPrivateNamesAccessors_test.go +++ b/pkg/fourslash/tests/gen/completionListPrivateNamesAccessors_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListPrivateNamesAccessors(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { get #x() { return 1 }; diff --git a/pkg/fourslash/tests/gen/completionListPrivateNamesMethods_test.go b/pkg/fourslash/tests/gen/completionListPrivateNamesMethods_test.go index bc8bd4ba0..6e511c50f 100644 --- a/pkg/fourslash/tests/gen/completionListPrivateNamesMethods_test.go +++ b/pkg/fourslash/tests/gen/completionListPrivateNamesMethods_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListPrivateNamesMethods(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { #x() {}; diff --git a/pkg/fourslash/tests/gen/completionListPrivateNames_test.go b/pkg/fourslash/tests/gen/completionListPrivateNames_test.go index d0df8e13e..540620105 100644 --- a/pkg/fourslash/tests/gen/completionListPrivateNames_test.go +++ b/pkg/fourslash/tests/gen/completionListPrivateNames_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListPrivateNames(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { #x; diff --git a/pkg/fourslash/tests/gen/completionListProtectedMembers_test.go b/pkg/fourslash/tests/gen/completionListProtectedMembers_test.go index 6a71f14ff..3e2bb036b 100644 --- a/pkg/fourslash/tests/gen/completionListProtectedMembers_test.go +++ b/pkg/fourslash/tests/gen/completionListProtectedMembers_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListProtectedMembers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Base { protected y; diff --git a/pkg/fourslash/tests/gen/completionListStaticMembers_test.go b/pkg/fourslash/tests/gen/completionListStaticMembers_test.go index 36df85a06..2ba4531a3 100644 --- a/pkg/fourslash/tests/gen/completionListStaticMembers_test.go +++ b/pkg/fourslash/tests/gen/completionListStaticMembers_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionListStaticMembers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { static a() {} diff --git a/pkg/fourslash/tests/gen/completionListStaticProtectedMembers2_test.go b/pkg/fourslash/tests/gen/completionListStaticProtectedMembers2_test.go index d9b248b1b..7ede9634d 100644 --- a/pkg/fourslash/tests/gen/completionListStaticProtectedMembers2_test.go +++ b/pkg/fourslash/tests/gen/completionListStaticProtectedMembers2_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionListStaticProtectedMembers2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Base { private static privateMethod() { } diff --git a/pkg/fourslash/tests/gen/completionListStaticProtectedMembers3_test.go b/pkg/fourslash/tests/gen/completionListStaticProtectedMembers3_test.go index 3fdb4c99e..84283d2ab 100644 --- a/pkg/fourslash/tests/gen/completionListStaticProtectedMembers3_test.go +++ b/pkg/fourslash/tests/gen/completionListStaticProtectedMembers3_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionListStaticProtectedMembers3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Base { private static privateMethod() { } diff --git a/pkg/fourslash/tests/gen/completionListStaticProtectedMembers_test.go b/pkg/fourslash/tests/gen/completionListStaticProtectedMembers_test.go index 87cbcadbf..823578d72 100644 --- a/pkg/fourslash/tests/gen/completionListStaticProtectedMembers_test.go +++ b/pkg/fourslash/tests/gen/completionListStaticProtectedMembers_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionListStaticProtectedMembers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Base { private static privateMethod() { } diff --git a/pkg/fourslash/tests/gen/completionListStringParenthesizedExpression_test.go b/pkg/fourslash/tests/gen/completionListStringParenthesizedExpression_test.go index 1fc50cbc6..ef2585a69 100644 --- a/pkg/fourslash/tests/gen/completionListStringParenthesizedExpression_test.go +++ b/pkg/fourslash/tests/gen/completionListStringParenthesizedExpression_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionListStringParenthesizedExpression(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const foo = { a: 1, diff --git a/pkg/fourslash/tests/gen/completionListStringParenthesizedType_test.go b/pkg/fourslash/tests/gen/completionListStringParenthesizedType_test.go index 093063fbf..81af243d5 100644 --- a/pkg/fourslash/tests/gen/completionListStringParenthesizedType_test.go +++ b/pkg/fourslash/tests/gen/completionListStringParenthesizedType_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionListStringParenthesizedType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type T1 = "a" | "b" | "c"; type T2 = {}; diff --git a/pkg/fourslash/tests/gen/completionListSuperMembers_test.go b/pkg/fourslash/tests/gen/completionListSuperMembers_test.go index 45e189d3f..3873092e1 100644 --- a/pkg/fourslash/tests/gen/completionListSuperMembers_test.go +++ b/pkg/fourslash/tests/gen/completionListSuperMembers_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListSuperMembers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Base { private privateInstanceMethod() { } diff --git a/pkg/fourslash/tests/gen/completionListWithAmbientDeclaration_test.go b/pkg/fourslash/tests/gen/completionListWithAmbientDeclaration_test.go index 60a666bf1..51acdee81 100644 --- a/pkg/fourslash/tests/gen/completionListWithAmbientDeclaration_test.go +++ b/pkg/fourslash/tests/gen/completionListWithAmbientDeclaration_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListWithAmbientDeclaration(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare module "http" { var x; diff --git a/pkg/fourslash/tests/gen/completionListWithLabel_test.go b/pkg/fourslash/tests/gen/completionListWithLabel_test.go index 154ac8753..eb61db74f 100644 --- a/pkg/fourslash/tests/gen/completionListWithLabel_test.go +++ b/pkg/fourslash/tests/gen/completionListWithLabel_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListWithLabel(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = ` label: while (true) { break /*1*/ diff --git a/pkg/fourslash/tests/gen/completionListWithUnresolvedModule_test.go b/pkg/fourslash/tests/gen/completionListWithUnresolvedModule_test.go index 3ec85ba18..1a292b1a6 100644 --- a/pkg/fourslash/tests/gen/completionListWithUnresolvedModule_test.go +++ b/pkg/fourslash/tests/gen/completionListWithUnresolvedModule_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionListWithUnresolvedModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module m { import foo = module('_foo'); diff --git a/pkg/fourslash/tests/gen/completionListWithoutVariableinitializer_test.go b/pkg/fourslash/tests/gen/completionListWithoutVariableinitializer_test.go index fbdf6a600..3ca4ac259 100644 --- a/pkg/fourslash/tests/gen/completionListWithoutVariableinitializer_test.go +++ b/pkg/fourslash/tests/gen/completionListWithoutVariableinitializer_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionListWithoutVariableinitializer(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const a = a/*1*/; const b = a && b/*2*/; diff --git a/pkg/fourslash/tests/gen/completionList_getExportsOfModule_test.go b/pkg/fourslash/tests/gen/completionList_getExportsOfModule_test.go index 85b47ab36..616db4842 100644 --- a/pkg/fourslash/tests/gen/completionList_getExportsOfModule_test.go +++ b/pkg/fourslash/tests/gen/completionList_getExportsOfModule_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionList_getExportsOfModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare module "x" { declare var x: number; diff --git a/pkg/fourslash/tests/gen/completionListsStringLiteralTypeAsIndexedAccessTypeObject_test.go b/pkg/fourslash/tests/gen/completionListsStringLiteralTypeAsIndexedAccessTypeObject_test.go index a897d2bd8..b0e33704e 100644 --- a/pkg/fourslash/tests/gen/completionListsStringLiteralTypeAsIndexedAccessTypeObject_test.go +++ b/pkg/fourslash/tests/gen/completionListsStringLiteralTypeAsIndexedAccessTypeObject_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionListsStringLiteralTypeAsIndexedAccessTypeObject(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let firstCase: "a/*case_1*/"["foo"] let secondCase: "b/*case_2*/"["bar"] diff --git a/pkg/fourslash/tests/gen/completionNoAutoInsertQuestionDotForThis_test.go b/pkg/fourslash/tests/gen/completionNoAutoInsertQuestionDotForThis_test.go index 01e2590df..debb256d7 100644 --- a/pkg/fourslash/tests/gen/completionNoAutoInsertQuestionDotForThis_test.go +++ b/pkg/fourslash/tests/gen/completionNoAutoInsertQuestionDotForThis_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionNoAutoInsertQuestionDotForThis(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true class Address { diff --git a/pkg/fourslash/tests/gen/completionNoAutoInsertQuestionDotForTypeParameter_test.go b/pkg/fourslash/tests/gen/completionNoAutoInsertQuestionDotForTypeParameter_test.go index d3266aa34..15cd19f17 100644 --- a/pkg/fourslash/tests/gen/completionNoAutoInsertQuestionDotForTypeParameter_test.go +++ b/pkg/fourslash/tests/gen/completionNoAutoInsertQuestionDotForTypeParameter_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionNoAutoInsertQuestionDotForTypeParameter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface Address { diff --git a/pkg/fourslash/tests/gen/completionNoAutoInsertQuestionDotWithUserPreferencesOff_test.go b/pkg/fourslash/tests/gen/completionNoAutoInsertQuestionDotWithUserPreferencesOff_test.go index 2b0f5f661..bdca469af 100644 --- a/pkg/fourslash/tests/gen/completionNoAutoInsertQuestionDotWithUserPreferencesOff_test.go +++ b/pkg/fourslash/tests/gen/completionNoAutoInsertQuestionDotWithUserPreferencesOff_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionNoAutoInsertQuestionDotWithUserPreferencesOff(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface User { diff --git a/pkg/fourslash/tests/gen/completionOfAwaitPromise1_test.go b/pkg/fourslash/tests/gen/completionOfAwaitPromise1_test.go index a807cd982..4bc26bb2d 100644 --- a/pkg/fourslash/tests/gen/completionOfAwaitPromise1_test.go +++ b/pkg/fourslash/tests/gen/completionOfAwaitPromise1_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionOfAwaitPromise1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `async function foo(x: Promise) { [|x./**/|] diff --git a/pkg/fourslash/tests/gen/completionOfAwaitPromise2_test.go b/pkg/fourslash/tests/gen/completionOfAwaitPromise2_test.go index 3fd031424..7ba6bd8c6 100644 --- a/pkg/fourslash/tests/gen/completionOfAwaitPromise2_test.go +++ b/pkg/fourslash/tests/gen/completionOfAwaitPromise2_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionOfAwaitPromise2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { foo: string } async function foo(x: Promise) { diff --git a/pkg/fourslash/tests/gen/completionOfAwaitPromise3_test.go b/pkg/fourslash/tests/gen/completionOfAwaitPromise3_test.go index 1220b6dab..0723709d8 100644 --- a/pkg/fourslash/tests/gen/completionOfAwaitPromise3_test.go +++ b/pkg/fourslash/tests/gen/completionOfAwaitPromise3_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionOfAwaitPromise3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { ["foo-foo"]: string } async function foo(x: Promise) { diff --git a/pkg/fourslash/tests/gen/completionOfAwaitPromise4_test.go b/pkg/fourslash/tests/gen/completionOfAwaitPromise4_test.go index 262c1915f..956c1528f 100644 --- a/pkg/fourslash/tests/gen/completionOfAwaitPromise4_test.go +++ b/pkg/fourslash/tests/gen/completionOfAwaitPromise4_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionOfAwaitPromise4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(x: Promise) { [|x./**/|] diff --git a/pkg/fourslash/tests/gen/completionOfAwaitPromise5_test.go b/pkg/fourslash/tests/gen/completionOfAwaitPromise5_test.go index 67d57a1fb..586d02b15 100644 --- a/pkg/fourslash/tests/gen/completionOfAwaitPromise5_test.go +++ b/pkg/fourslash/tests/gen/completionOfAwaitPromise5_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionOfAwaitPromise5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { foo: string } async function foo(x: (a: number) => Promise) { diff --git a/pkg/fourslash/tests/gen/completionOfAwaitPromise6_test.go b/pkg/fourslash/tests/gen/completionOfAwaitPromise6_test.go index 386738b66..ebf979f52 100644 --- a/pkg/fourslash/tests/gen/completionOfAwaitPromise6_test.go +++ b/pkg/fourslash/tests/gen/completionOfAwaitPromise6_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionOfAwaitPromise6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `async function foo(x: Promise) { [|x./**/|] diff --git a/pkg/fourslash/tests/gen/completionOfAwaitPromise7_test.go b/pkg/fourslash/tests/gen/completionOfAwaitPromise7_test.go index 13abe1d98..cc3d0735f 100644 --- a/pkg/fourslash/tests/gen/completionOfAwaitPromise7_test.go +++ b/pkg/fourslash/tests/gen/completionOfAwaitPromise7_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionOfAwaitPromise7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `async function foo(x: Promise) { console.log diff --git a/pkg/fourslash/tests/gen/completionOfInterfaceAndVar_test.go b/pkg/fourslash/tests/gen/completionOfInterfaceAndVar_test.go index b7fdae470..bf1ae285b 100644 --- a/pkg/fourslash/tests/gen/completionOfInterfaceAndVar_test.go +++ b/pkg/fourslash/tests/gen/completionOfInterfaceAndVar_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionOfInterfaceAndVar(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface AnalyserNode { } diff --git a/pkg/fourslash/tests/gen/completionPreferredSuggestions1_test.go b/pkg/fourslash/tests/gen/completionPreferredSuggestions1_test.go index 8901e6e74..fee70fed2 100644 --- a/pkg/fourslash/tests/gen/completionPreferredSuggestions1_test.go +++ b/pkg/fourslash/tests/gen/completionPreferredSuggestions1_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionPreferredSuggestions1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare let v1: string & {} | "a" | "b" | "c"; v1 = "/*1*/"; diff --git a/pkg/fourslash/tests/gen/completionPropertyShorthandForObjectLiteral2_test.go b/pkg/fourslash/tests/gen/completionPropertyShorthandForObjectLiteral2_test.go index 51ea51f18..52c927a75 100644 --- a/pkg/fourslash/tests/gen/completionPropertyShorthandForObjectLiteral2_test.go +++ b/pkg/fourslash/tests/gen/completionPropertyShorthandForObjectLiteral2_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionPropertyShorthandForObjectLiteral2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const foo = 1; const bar = 2; diff --git a/pkg/fourslash/tests/gen/completionPropertyShorthandForObjectLiteral3_test.go b/pkg/fourslash/tests/gen/completionPropertyShorthandForObjectLiteral3_test.go index 4fc6b39a3..067e0929f 100644 --- a/pkg/fourslash/tests/gen/completionPropertyShorthandForObjectLiteral3_test.go +++ b/pkg/fourslash/tests/gen/completionPropertyShorthandForObjectLiteral3_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionPropertyShorthandForObjectLiteral3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const foo = 1; const bar = 2; diff --git a/pkg/fourslash/tests/gen/completionPropertyShorthandForObjectLiteral4_test.go b/pkg/fourslash/tests/gen/completionPropertyShorthandForObjectLiteral4_test.go index c8db300fb..ccace72f0 100644 --- a/pkg/fourslash/tests/gen/completionPropertyShorthandForObjectLiteral4_test.go +++ b/pkg/fourslash/tests/gen/completionPropertyShorthandForObjectLiteral4_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionPropertyShorthandForObjectLiteral4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const foo = 1; const bar = 2; diff --git a/pkg/fourslash/tests/gen/completionPropertyShorthandForObjectLiteral5_test.go b/pkg/fourslash/tests/gen/completionPropertyShorthandForObjectLiteral5_test.go index 9ab450fd7..bcb4fec09 100644 --- a/pkg/fourslash/tests/gen/completionPropertyShorthandForObjectLiteral5_test.go +++ b/pkg/fourslash/tests/gen/completionPropertyShorthandForObjectLiteral5_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionPropertyShorthandForObjectLiteral5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @Filename: /a.ts diff --git a/pkg/fourslash/tests/gen/completionReturnConstAssertion_test.go b/pkg/fourslash/tests/gen/completionReturnConstAssertion_test.go index 2b6649056..7678965ce 100644 --- a/pkg/fourslash/tests/gen/completionReturnConstAssertion_test.go +++ b/pkg/fourslash/tests/gen/completionReturnConstAssertion_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionReturnConstAssertion(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type T = { foo1: 1; diff --git a/pkg/fourslash/tests/gen/completionSatisfiesKeyword_test.go b/pkg/fourslash/tests/gen/completionSatisfiesKeyword_test.go index 944321c2c..fa393c8d8 100644 --- a/pkg/fourslash/tests/gen/completionSatisfiesKeyword_test.go +++ b/pkg/fourslash/tests/gen/completionSatisfiesKeyword_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionSatisfiesKeyword(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const x = { a: 1 } /*1*/ function foo() { diff --git a/pkg/fourslash/tests/gen/completionTypeAssertion_test.go b/pkg/fourslash/tests/gen/completionTypeAssertion_test.go index 9afdbb262..d90155391 100644 --- a/pkg/fourslash/tests/gen/completionTypeAssertion_test.go +++ b/pkg/fourslash/tests/gen/completionTypeAssertion_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionTypeAssertion(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = 'something' var y = this as/*1*/` diff --git a/pkg/fourslash/tests/gen/completionTypeGuard_test.go b/pkg/fourslash/tests/gen/completionTypeGuard_test.go index 9cbcff59d..e45ac6078 100644 --- a/pkg/fourslash/tests/gen/completionTypeGuard_test.go +++ b/pkg/fourslash/tests/gen/completionTypeGuard_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionTypeGuard(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const x = "str"; function assert1(condition: any, msg?: string): /*1*/ ; diff --git a/pkg/fourslash/tests/gen/completionTypeofExpressions_test.go b/pkg/fourslash/tests/gen/completionTypeofExpressions_test.go index fa168d6aa..2cb57c288 100644 --- a/pkg/fourslash/tests/gen/completionTypeofExpressions_test.go +++ b/pkg/fourslash/tests/gen/completionTypeofExpressions_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionTypeofExpressions(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const x = "str"; function test(arg: typeof x./*1*/) {} diff --git a/pkg/fourslash/tests/gen/completionUsingKeyword_test.go b/pkg/fourslash/tests/gen/completionUsingKeyword_test.go index 6aa0a26f9..e209b20c5 100644 --- a/pkg/fourslash/tests/gen/completionUsingKeyword_test.go +++ b/pkg/fourslash/tests/gen/completionUsingKeyword_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionUsingKeyword(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo() { usin/*1*/ diff --git a/pkg/fourslash/tests/gen/completionWithConditionalOperatorMissingColon_test.go b/pkg/fourslash/tests/gen/completionWithConditionalOperatorMissingColon_test.go index 4c0b7f4a5..0b652efa4 100644 --- a/pkg/fourslash/tests/gen/completionWithConditionalOperatorMissingColon_test.go +++ b/pkg/fourslash/tests/gen/completionWithConditionalOperatorMissingColon_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionWithConditionalOperatorMissingColon(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `1 ? fun/*1*/ function func () {}` diff --git a/pkg/fourslash/tests/gen/completionWithDotFollowedByNamespaceKeyword_test.go b/pkg/fourslash/tests/gen/completionWithDotFollowedByNamespaceKeyword_test.go index 2ff7989cc..59e688295 100644 --- a/pkg/fourslash/tests/gen/completionWithDotFollowedByNamespaceKeyword_test.go +++ b/pkg/fourslash/tests/gen/completionWithDotFollowedByNamespaceKeyword_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionWithDotFollowedByNamespaceKeyword(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `namespace A { function foo() { diff --git a/pkg/fourslash/tests/gen/completionWithNamespaceInsideFunction_test.go b/pkg/fourslash/tests/gen/completionWithNamespaceInsideFunction_test.go index f6e30759c..846915b7a 100644 --- a/pkg/fourslash/tests/gen/completionWithNamespaceInsideFunction_test.go +++ b/pkg/fourslash/tests/gen/completionWithNamespaceInsideFunction_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionWithNamespaceInsideFunction(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f() { namespace n { diff --git a/pkg/fourslash/tests/gen/completions01_test.go b/pkg/fourslash/tests/gen/completions01_test.go index 4e10f456b..801b1d749 100644 --- a/pkg/fourslash/tests/gen/completions01_test.go +++ b/pkg/fourslash/tests/gen/completions01_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletions01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x: string[] = []; x.forEach(function (y) { y/*1*/ diff --git a/pkg/fourslash/tests/gen/completions03_test.go b/pkg/fourslash/tests/gen/completions03_test.go index 099a41927..c6a52bcf6 100644 --- a/pkg/fourslash/tests/gen/completions03_test.go +++ b/pkg/fourslash/tests/gen/completions03_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletions03(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { one: any; diff --git a/pkg/fourslash/tests/gen/completionsAfterAsyncInObjectLiteral_test.go b/pkg/fourslash/tests/gen/completionsAfterAsyncInObjectLiteral_test.go index c346102df..b8fc8fad9 100644 --- a/pkg/fourslash/tests/gen/completionsAfterAsyncInObjectLiteral_test.go +++ b/pkg/fourslash/tests/gen/completionsAfterAsyncInObjectLiteral_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsAfterAsyncInObjectLiteral(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const x: { m(): Promise } = { async /**/ };` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/completionsAfterJSDoc_test.go b/pkg/fourslash/tests/gen/completionsAfterJSDoc_test.go index 45d84ae7c..b06814ef8 100644 --- a/pkg/fourslash/tests/gen/completionsAfterJSDoc_test.go +++ b/pkg/fourslash/tests/gen/completionsAfterJSDoc_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsAfterJSDoc(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export interface Foo { /** JSDoc */ diff --git a/pkg/fourslash/tests/gen/completionsAfterKeywordsInBlock_test.go b/pkg/fourslash/tests/gen/completionsAfterKeywordsInBlock_test.go index ac0199af4..3bd940bf2 100644 --- a/pkg/fourslash/tests/gen/completionsAfterKeywordsInBlock_test.go +++ b/pkg/fourslash/tests/gen/completionsAfterKeywordsInBlock_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsAfterKeywordsInBlock(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C1 { method(map: Map, key: string, defaultValue: string) { diff --git a/pkg/fourslash/tests/gen/completionsAfterLessThanToken_test.go b/pkg/fourslash/tests/gen/completionsAfterLessThanToken_test.go index 1f9484a8b..14bb81b3c 100644 --- a/pkg/fourslash/tests/gen/completionsAfterLessThanToken_test.go +++ b/pkg/fourslash/tests/gen/completionsAfterLessThanToken_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsAfterLessThanToken(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f() { const k: Record {} const foo = new Foo( p: { a: T extends 'foo' ? { x: string } : { y: string } } diff --git a/pkg/fourslash/tests/gen/completionsDefaultExport_test.go b/pkg/fourslash/tests/gen/completionsDefaultExport_test.go index 0c984b8ac..a32a43b24 100644 --- a/pkg/fourslash/tests/gen/completionsDefaultExport_test.go +++ b/pkg/fourslash/tests/gen/completionsDefaultExport_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsDefaultExport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export default function f() {} diff --git a/pkg/fourslash/tests/gen/completionsDefaultKeywordWhenDefaultExportAvailable_test.go b/pkg/fourslash/tests/gen/completionsDefaultKeywordWhenDefaultExportAvailable_test.go index 74e226552..6f796fa05 100644 --- a/pkg/fourslash/tests/gen/completionsDefaultKeywordWhenDefaultExportAvailable_test.go +++ b/pkg/fourslash/tests/gen/completionsDefaultKeywordWhenDefaultExportAvailable_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsDefaultKeywordWhenDefaultExportAvailable(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: index.ts export default function () {} diff --git a/pkg/fourslash/tests/gen/completionsDestructuring_test.go b/pkg/fourslash/tests/gen/completionsDestructuring_test.go index 7e2f3df4e..ce3752f89 100644 --- a/pkg/fourslash/tests/gen/completionsDestructuring_test.go +++ b/pkg/fourslash/tests/gen/completionsDestructuring_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsDestructuring(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const points = [{ x: 1, y: 2 }]; points.forEach(({ /*a*/ }) => { }); diff --git a/pkg/fourslash/tests/gen/completionsDiscriminatedUnion_test.go b/pkg/fourslash/tests/gen/completionsDiscriminatedUnion_test.go index 3f45eda3b..4a22836bf 100644 --- a/pkg/fourslash/tests/gen/completionsDiscriminatedUnion_test.go +++ b/pkg/fourslash/tests/gen/completionsDiscriminatedUnion_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsDiscriminatedUnion(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface A { kind: "a"; a: number; } interface B { kind: "b"; b: number; } diff --git a/pkg/fourslash/tests/gen/completionsDotDotDotInObjectLiteral1_test.go b/pkg/fourslash/tests/gen/completionsDotDotDotInObjectLiteral1_test.go index 302a66037..0c43dbe0e 100644 --- a/pkg/fourslash/tests/gen/completionsDotDotDotInObjectLiteral1_test.go +++ b/pkg/fourslash/tests/gen/completionsDotDotDotInObjectLiteral1_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsDotDotDotInObjectLiteral1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// https://github.com/microsoft/TypeScript/issues/57540 diff --git a/pkg/fourslash/tests/gen/completionsDotInArrayLiteralInObjectLiteral_test.go b/pkg/fourslash/tests/gen/completionsDotInArrayLiteralInObjectLiteral_test.go index 28f110837..34112a78b 100644 --- a/pkg/fourslash/tests/gen/completionsDotInArrayLiteralInObjectLiteral_test.go +++ b/pkg/fourslash/tests/gen/completionsDotInArrayLiteralInObjectLiteral_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsDotInArrayLiteralInObjectLiteral(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const o = { x: [[|.|][||]/**/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/completionsECMAPrivateMemberTriggerCharacter_test.go b/pkg/fourslash/tests/gen/completionsECMAPrivateMemberTriggerCharacter_test.go index a2c01b1ed..62db9a14a 100644 --- a/pkg/fourslash/tests/gen/completionsECMAPrivateMemberTriggerCharacter_test.go +++ b/pkg/fourslash/tests/gen/completionsECMAPrivateMemberTriggerCharacter_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsECMAPrivateMemberTriggerCharacter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @target: esnext class K { diff --git a/pkg/fourslash/tests/gen/completionsECMAPrivateMember_test.go b/pkg/fourslash/tests/gen/completionsECMAPrivateMember_test.go index 2ff2e8e42..84c67cc1a 100644 --- a/pkg/fourslash/tests/gen/completionsECMAPrivateMember_test.go +++ b/pkg/fourslash/tests/gen/completionsECMAPrivateMember_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsECMAPrivateMember(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @target: esnext class K { diff --git a/pkg/fourslash/tests/gen/completionsElementAccessNumeric_test.go b/pkg/fourslash/tests/gen/completionsElementAccessNumeric_test.go index 5883fd772..a682e7a0e 100644 --- a/pkg/fourslash/tests/gen/completionsElementAccessNumeric_test.go +++ b/pkg/fourslash/tests/gen/completionsElementAccessNumeric_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsElementAccessNumeric(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @target: esnext type Tup = [ diff --git a/pkg/fourslash/tests/gen/completionsExportImport_test.go b/pkg/fourslash/tests/gen/completionsExportImport_test.go index 8c5447dad..922e9b9ec 100644 --- a/pkg/fourslash/tests/gen/completionsExportImport_test.go +++ b/pkg/fourslash/tests/gen/completionsExportImport_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsExportImport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare global { namespace N { diff --git a/pkg/fourslash/tests/gen/completionsExternalModuleReferenceResolutionOrderInImportDeclaration_test.go b/pkg/fourslash/tests/gen/completionsExternalModuleReferenceResolutionOrderInImportDeclaration_test.go index 718731b91..4ce159ee9 100644 --- a/pkg/fourslash/tests/gen/completionsExternalModuleReferenceResolutionOrderInImportDeclaration_test.go +++ b/pkg/fourslash/tests/gen/completionsExternalModuleReferenceResolutionOrderInImportDeclaration_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsExternalModuleReferenceResolutionOrderInImportDeclaration(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: externalModuleRefernceResolutionOrderInImportDeclaration_file1.ts export function foo() { }; diff --git a/pkg/fourslash/tests/gen/completionsExternalModuleRenamedExports_test.go b/pkg/fourslash/tests/gen/completionsExternalModuleRenamedExports_test.go index 2b6367efa..23683ec9a 100644 --- a/pkg/fourslash/tests/gen/completionsExternalModuleRenamedExports_test.go +++ b/pkg/fourslash/tests/gen/completionsExternalModuleRenamedExports_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsExternalModuleRenamedExports(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: other.ts export {}; diff --git a/pkg/fourslash/tests/gen/completionsForLatterTypeParametersInConstraints1_test.go b/pkg/fourslash/tests/gen/completionsForLatterTypeParametersInConstraints1_test.go index cabfe343c..c81b7eb1d 100644 --- a/pkg/fourslash/tests/gen/completionsForLatterTypeParametersInConstraints1_test.go +++ b/pkg/fourslash/tests/gen/completionsForLatterTypeParametersInConstraints1_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsForLatterTypeParametersInConstraints1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// https://github.com/microsoft/TypeScript/issues/56474 function test(a: First, b: Second) {} diff --git a/pkg/fourslash/tests/gen/completionsForRecursiveGenericTypesMember_test.go b/pkg/fourslash/tests/gen/completionsForRecursiveGenericTypesMember_test.go index 8a8c119e5..c91c29846 100644 --- a/pkg/fourslash/tests/gen/completionsForRecursiveGenericTypesMember_test.go +++ b/pkg/fourslash/tests/gen/completionsForRecursiveGenericTypesMember_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsForRecursiveGenericTypesMember(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export class TestBase> { diff --git a/pkg/fourslash/tests/gen/completionsForSelfTypeParameterInConstraint1_test.go b/pkg/fourslash/tests/gen/completionsForSelfTypeParameterInConstraint1_test.go index 3bbdb2799..6d471dc88 100644 --- a/pkg/fourslash/tests/gen/completionsForSelfTypeParameterInConstraint1_test.go +++ b/pkg/fourslash/tests/gen/completionsForSelfTypeParameterInConstraint1_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsForSelfTypeParameterInConstraint1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type StateMachine = { initial?: "states" extends keyof Config ? keyof Config["states"] : never; diff --git a/pkg/fourslash/tests/gen/completionsForStringDependingOnContexSensitiveSignature_test.go b/pkg/fourslash/tests/gen/completionsForStringDependingOnContexSensitiveSignature_test.go index 4346cd79c..0a5fee414 100644 --- a/pkg/fourslash/tests/gen/completionsForStringDependingOnContexSensitiveSignature_test.go +++ b/pkg/fourslash/tests/gen/completionsForStringDependingOnContexSensitiveSignature_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsForStringDependingOnContexSensitiveSignature(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true diff --git a/pkg/fourslash/tests/gen/completionsGeneratorFunctions_test.go b/pkg/fourslash/tests/gen/completionsGeneratorFunctions_test.go index 30121e937..3aae837f7 100644 --- a/pkg/fourslash/tests/gen/completionsGeneratorFunctions_test.go +++ b/pkg/fourslash/tests/gen/completionsGeneratorFunctions_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsGeneratorFunctions(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function /*a*/ ; function* /*b*/ ; diff --git a/pkg/fourslash/tests/gen/completionsGenericIndexedAccess1_test.go b/pkg/fourslash/tests/gen/completionsGenericIndexedAccess1_test.go index bf998e64e..658e6d13c 100644 --- a/pkg/fourslash/tests/gen/completionsGenericIndexedAccess1_test.go +++ b/pkg/fourslash/tests/gen/completionsGenericIndexedAccess1_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsGenericIndexedAccess1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Sample { addBook: { name: string, year: number } diff --git a/pkg/fourslash/tests/gen/completionsGenericIndexedAccess2_test.go b/pkg/fourslash/tests/gen/completionsGenericIndexedAccess2_test.go index 8a4106f57..6e4b9c64c 100644 --- a/pkg/fourslash/tests/gen/completionsGenericIndexedAccess2_test.go +++ b/pkg/fourslash/tests/gen/completionsGenericIndexedAccess2_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsGenericIndexedAccess2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export type GetMethodsForType = { [K in keyof T]: T[K] extends () => any ? { name: K, group: G, } : T[K] extends (s: infer U) => any ? { name: K, group: G, payload: U } : never }[keyof T]; diff --git a/pkg/fourslash/tests/gen/completionsGenericIndexedAccess3_test.go b/pkg/fourslash/tests/gen/completionsGenericIndexedAccess3_test.go index 1db692ed7..07fdcd391 100644 --- a/pkg/fourslash/tests/gen/completionsGenericIndexedAccess3_test.go +++ b/pkg/fourslash/tests/gen/completionsGenericIndexedAccess3_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsGenericIndexedAccess3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface CustomElements { 'component-one': { diff --git a/pkg/fourslash/tests/gen/completionsGenericIndexedAccess4_test.go b/pkg/fourslash/tests/gen/completionsGenericIndexedAccess4_test.go index efcc25837..2247d1b3a 100644 --- a/pkg/fourslash/tests/gen/completionsGenericIndexedAccess4_test.go +++ b/pkg/fourslash/tests/gen/completionsGenericIndexedAccess4_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsGenericIndexedAccess4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface CustomElements { 'component-one': { diff --git a/pkg/fourslash/tests/gen/completionsGenericIndexedAccess5_test.go b/pkg/fourslash/tests/gen/completionsGenericIndexedAccess5_test.go index e209a354d..c62188f22 100644 --- a/pkg/fourslash/tests/gen/completionsGenericIndexedAccess5_test.go +++ b/pkg/fourslash/tests/gen/completionsGenericIndexedAccess5_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsGenericIndexedAccess5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface CustomElements { 'component-one': { diff --git a/pkg/fourslash/tests/gen/completionsGenericIndexedAccess6_test.go b/pkg/fourslash/tests/gen/completionsGenericIndexedAccess6_test.go index 7fd710fa8..41b71eb68 100644 --- a/pkg/fourslash/tests/gen/completionsGenericIndexedAccess6_test.go +++ b/pkg/fourslash/tests/gen/completionsGenericIndexedAccess6_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsGenericIndexedAccess6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: component.tsx interface CustomElements { diff --git a/pkg/fourslash/tests/gen/completionsGenericTypeWithMultipleBases1_test.go b/pkg/fourslash/tests/gen/completionsGenericTypeWithMultipleBases1_test.go index 082580668..660d4919b 100644 --- a/pkg/fourslash/tests/gen/completionsGenericTypeWithMultipleBases1_test.go +++ b/pkg/fourslash/tests/gen/completionsGenericTypeWithMultipleBases1_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsGenericTypeWithMultipleBases1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export interface iBaseScope { watch: () => void; diff --git a/pkg/fourslash/tests/gen/completionsGenericUnconstrained_test.go b/pkg/fourslash/tests/gen/completionsGenericUnconstrained_test.go index eb7f37149..92d9bc134 100644 --- a/pkg/fourslash/tests/gen/completionsGenericUnconstrained_test.go +++ b/pkg/fourslash/tests/gen/completionsGenericUnconstrained_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsGenericUnconstrained(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true function f(x: T) { diff --git a/pkg/fourslash/tests/gen/completionsImportBaseUrl_test.go b/pkg/fourslash/tests/gen/completionsImportBaseUrl_test.go index 52f46292b..40598896f 100644 --- a/pkg/fourslash/tests/gen/completionsImportBaseUrl_test.go +++ b/pkg/fourslash/tests/gen/completionsImportBaseUrl_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImportBaseUrl(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /tsconfig.json { diff --git a/pkg/fourslash/tests/gen/completionsImportDeclarationAttributesEmptyModuleSpecifier1_test.go b/pkg/fourslash/tests/gen/completionsImportDeclarationAttributesEmptyModuleSpecifier1_test.go index c982fea62..4609e1c79 100644 --- a/pkg/fourslash/tests/gen/completionsImportDeclarationAttributesEmptyModuleSpecifier1_test.go +++ b/pkg/fourslash/tests/gen/completionsImportDeclarationAttributesEmptyModuleSpecifier1_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsImportDeclarationAttributesEmptyModuleSpecifier1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @filename: global.d.ts diff --git a/pkg/fourslash/tests/gen/completionsImportDeclarationAttributesErrorModuleSpecifier1_test.go b/pkg/fourslash/tests/gen/completionsImportDeclarationAttributesErrorModuleSpecifier1_test.go index 8f8434856..a11cde970 100644 --- a/pkg/fourslash/tests/gen/completionsImportDeclarationAttributesErrorModuleSpecifier1_test.go +++ b/pkg/fourslash/tests/gen/completionsImportDeclarationAttributesErrorModuleSpecifier1_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsImportDeclarationAttributesErrorModuleSpecifier1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @filename: global.d.ts diff --git a/pkg/fourslash/tests/gen/completionsImportDefaultExportCrash1_test.go b/pkg/fourslash/tests/gen/completionsImportDefaultExportCrash1_test.go index ed804ddfb..ebc646183 100644 --- a/pkg/fourslash/tests/gen/completionsImportDefaultExportCrash1_test.go +++ b/pkg/fourslash/tests/gen/completionsImportDefaultExportCrash1_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsImportDefaultExportCrash1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @allowJs: true diff --git a/pkg/fourslash/tests/gen/completionsImportDefaultExportCrash2_test.go b/pkg/fourslash/tests/gen/completionsImportDefaultExportCrash2_test.go index 5ff9f502d..1573ed434 100644 --- a/pkg/fourslash/tests/gen/completionsImportDefaultExportCrash2_test.go +++ b/pkg/fourslash/tests/gen/completionsImportDefaultExportCrash2_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImportDefaultExportCrash2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @allowJs: true diff --git a/pkg/fourslash/tests/gen/completionsImportFromJSXTag_test.go b/pkg/fourslash/tests/gen/completionsImportFromJSXTag_test.go index 787635302..bc7f3acaf 100644 --- a/pkg/fourslash/tests/gen/completionsImportFromJSXTag_test.go +++ b/pkg/fourslash/tests/gen/completionsImportFromJSXTag_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsImportFromJSXTag(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @jsx: react // @Filename: /types.d.ts diff --git a/pkg/fourslash/tests/gen/completionsImportModuleAugmentationWithJS_test.go b/pkg/fourslash/tests/gen/completionsImportModuleAugmentationWithJS_test.go index 1b767b562..a00b7b9e7 100644 --- a/pkg/fourslash/tests/gen/completionsImportModuleAugmentationWithJS_test.go +++ b/pkg/fourslash/tests/gen/completionsImportModuleAugmentationWithJS_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsImportModuleAugmentationWithJS(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/completionsImportOrExportSpecifier_test.go b/pkg/fourslash/tests/gen/completionsImportOrExportSpecifier_test.go index 0018552d2..9a89a592a 100644 --- a/pkg/fourslash/tests/gen/completionsImportOrExportSpecifier_test.go +++ b/pkg/fourslash/tests/gen/completionsImportOrExportSpecifier_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImportOrExportSpecifier(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: exports.ts export let foo = 1; diff --git a/pkg/fourslash/tests/gen/completionsImportPathsConflict_test.go b/pkg/fourslash/tests/gen/completionsImportPathsConflict_test.go index 05f1c1462..ce40f01f0 100644 --- a/pkg/fourslash/tests/gen/completionsImportPathsConflict_test.go +++ b/pkg/fourslash/tests/gen/completionsImportPathsConflict_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImportPathsConflict(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /tsconfig.json { diff --git a/pkg/fourslash/tests/gen/completionsImportTypeKeyword_test.go b/pkg/fourslash/tests/gen/completionsImportTypeKeyword_test.go index 2f0cf311e..7eb7bad9f 100644 --- a/pkg/fourslash/tests/gen/completionsImportTypeKeyword_test.go +++ b/pkg/fourslash/tests/gen/completionsImportTypeKeyword_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImportTypeKeyword(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /os.d.ts diff --git a/pkg/fourslash/tests/gen/completionsImportYieldExpression_test.go b/pkg/fourslash/tests/gen/completionsImportYieldExpression_test.go index d1f7f25a3..5781b2556 100644 --- a/pkg/fourslash/tests/gen/completionsImportYieldExpression_test.go +++ b/pkg/fourslash/tests/gen/completionsImportYieldExpression_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsImportYieldExpression(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export function a() {} diff --git a/pkg/fourslash/tests/gen/completionsImport_46332_test.go b/pkg/fourslash/tests/gen/completionsImport_46332_test.go index ad0fb0d99..a433d45f9 100644 --- a/pkg/fourslash/tests/gen/completionsImport_46332_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_46332_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_46332(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @moduleResolution: bundler diff --git a/pkg/fourslash/tests/gen/completionsImport_ambient_test.go b/pkg/fourslash/tests/gen/completionsImport_ambient_test.go index 6526770ec..d5198634c 100644 --- a/pkg/fourslash/tests/gen/completionsImport_ambient_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_ambient_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_ambient(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @Filename: a.d.ts diff --git a/pkg/fourslash/tests/gen/completionsImport_augmentation_test.go b/pkg/fourslash/tests/gen/completionsImport_augmentation_test.go index b9ef91120..06f190e1f 100644 --- a/pkg/fourslash/tests/gen/completionsImport_augmentation_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_augmentation_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_augmentation(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export const foo = 0; diff --git a/pkg/fourslash/tests/gen/completionsImport_compilerOptionsModule_test.go b/pkg/fourslash/tests/gen/completionsImport_compilerOptionsModule_test.go index 22802d8f6..f2dfdbf95 100644 --- a/pkg/fourslash/tests/gen/completionsImport_compilerOptionsModule_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_compilerOptionsModule_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_compilerOptionsModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @module: commonjs diff --git a/pkg/fourslash/tests/gen/completionsImport_computedSymbolName_test.go b/pkg/fourslash/tests/gen/completionsImport_computedSymbolName_test.go index d0c09a329..bcb8da0f7 100644 --- a/pkg/fourslash/tests/gen/completionsImport_computedSymbolName_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_computedSymbolName_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsImport_computedSymbolName(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { "compilerOptions": { "module": "commonjs" } } diff --git a/pkg/fourslash/tests/gen/completionsImport_defaultAndNamedConflict_test.go b/pkg/fourslash/tests/gen/completionsImport_defaultAndNamedConflict_test.go index a0e884700..c790272e9 100644 --- a/pkg/fourslash/tests/gen/completionsImport_defaultAndNamedConflict_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_defaultAndNamedConflict_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_defaultAndNamedConflict(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noLib: true // @Filename: /someModule.ts diff --git a/pkg/fourslash/tests/gen/completionsImport_defaultFalsePositive_test.go b/pkg/fourslash/tests/gen/completionsImport_defaultFalsePositive_test.go index 5ec98000a..a77e30097 100644 --- a/pkg/fourslash/tests/gen/completionsImport_defaultFalsePositive_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_defaultFalsePositive_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_defaultFalsePositive(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /node_modules/foo/index.ts export default function f(): void; diff --git a/pkg/fourslash/tests/gen/completionsImport_default_addToNamedImports_test.go b/pkg/fourslash/tests/gen/completionsImport_default_addToNamedImports_test.go index f54e820c1..32a880422 100644 --- a/pkg/fourslash/tests/gen/completionsImport_default_addToNamedImports_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_default_addToNamedImports_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_default_addToNamedImports(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export default function foo() {} diff --git a/pkg/fourslash/tests/gen/completionsImport_default_addToNamespaceImport_test.go b/pkg/fourslash/tests/gen/completionsImport_default_addToNamespaceImport_test.go index 6288dfb39..6d002cef7 100644 --- a/pkg/fourslash/tests/gen/completionsImport_default_addToNamespaceImport_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_default_addToNamespaceImport_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_default_addToNamespaceImport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export default function foo() {} diff --git a/pkg/fourslash/tests/gen/completionsImport_default_alreadyExistedWithRename_test.go b/pkg/fourslash/tests/gen/completionsImport_default_alreadyExistedWithRename_test.go index 7d2398314..07edf1a1d 100644 --- a/pkg/fourslash/tests/gen/completionsImport_default_alreadyExistedWithRename_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_default_alreadyExistedWithRename_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_default_alreadyExistedWithRename(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export default function foo() {} diff --git a/pkg/fourslash/tests/gen/completionsImport_default_anonymous_test.go b/pkg/fourslash/tests/gen/completionsImport_default_anonymous_test.go index 18c38a9b6..7301774b4 100644 --- a/pkg/fourslash/tests/gen/completionsImport_default_anonymous_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_default_anonymous_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_default_anonymous(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @noLib: true diff --git a/pkg/fourslash/tests/gen/completionsImport_default_didNotExistBefore_test.go b/pkg/fourslash/tests/gen/completionsImport_default_didNotExistBefore_test.go index ff0be60b1..79c87954f 100644 --- a/pkg/fourslash/tests/gen/completionsImport_default_didNotExistBefore_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_default_didNotExistBefore_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_default_didNotExistBefore(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @Filename: /a.ts diff --git a/pkg/fourslash/tests/gen/completionsImport_default_exportDefaultIdentifier_test.go b/pkg/fourslash/tests/gen/completionsImport_default_exportDefaultIdentifier_test.go index 0aeda3551..50addd5a5 100644 --- a/pkg/fourslash/tests/gen/completionsImport_default_exportDefaultIdentifier_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_default_exportDefaultIdentifier_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_default_exportDefaultIdentifier(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @Filename: /a.ts diff --git a/pkg/fourslash/tests/gen/completionsImport_default_fromMergedDeclarations_test.go b/pkg/fourslash/tests/gen/completionsImport_default_fromMergedDeclarations_test.go index 66bd8ea2e..3676a3279 100644 --- a/pkg/fourslash/tests/gen/completionsImport_default_fromMergedDeclarations_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_default_fromMergedDeclarations_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_default_fromMergedDeclarations(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @Filename: /a.ts diff --git a/pkg/fourslash/tests/gen/completionsImport_default_reExport_test.go b/pkg/fourslash/tests/gen/completionsImport_default_reExport_test.go index 97106720e..306fdd73f 100644 --- a/pkg/fourslash/tests/gen/completionsImport_default_reExport_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_default_reExport_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_default_reExport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @allowJs: true diff --git a/pkg/fourslash/tests/gen/completionsImport_default_symbolName_test.go b/pkg/fourslash/tests/gen/completionsImport_default_symbolName_test.go index 238978a16..ae60b1b7d 100644 --- a/pkg/fourslash/tests/gen/completionsImport_default_symbolName_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_default_symbolName_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_default_symbolName(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @esModuleInterop: false diff --git a/pkg/fourslash/tests/gen/completionsImport_details_withMisspelledName_test.go b/pkg/fourslash/tests/gen/completionsImport_details_withMisspelledName_test.go index d1ccf64b5..eef51f15d 100644 --- a/pkg/fourslash/tests/gen/completionsImport_details_withMisspelledName_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_details_withMisspelledName_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsImport_details_withMisspelledName(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export const abc = 0; diff --git a/pkg/fourslash/tests/gen/completionsImport_duplicatePackages_scopedTypesAndNotTypes_test.go b/pkg/fourslash/tests/gen/completionsImport_duplicatePackages_scopedTypesAndNotTypes_test.go index 7261efd65..281c672ab 100644 --- a/pkg/fourslash/tests/gen/completionsImport_duplicatePackages_scopedTypesAndNotTypes_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_duplicatePackages_scopedTypesAndNotTypes_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_duplicatePackages_scopedTypesAndNotTypes(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @esModuleInterop: true diff --git a/pkg/fourslash/tests/gen/completionsImport_duplicatePackages_scopedTypes_test.go b/pkg/fourslash/tests/gen/completionsImport_duplicatePackages_scopedTypes_test.go index e4250c958..ce76551bb 100644 --- a/pkg/fourslash/tests/gen/completionsImport_duplicatePackages_scopedTypes_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_duplicatePackages_scopedTypes_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_duplicatePackages_scopedTypes(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @esModuleInterop: true diff --git a/pkg/fourslash/tests/gen/completionsImport_duplicatePackages_scoped_test.go b/pkg/fourslash/tests/gen/completionsImport_duplicatePackages_scoped_test.go index 65eede0f9..c485ef8c8 100644 --- a/pkg/fourslash/tests/gen/completionsImport_duplicatePackages_scoped_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_duplicatePackages_scoped_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_duplicatePackages_scoped(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @esModuleInterop: true diff --git a/pkg/fourslash/tests/gen/completionsImport_duplicatePackages_typesAndNotTypes_test.go b/pkg/fourslash/tests/gen/completionsImport_duplicatePackages_typesAndNotTypes_test.go index 0e50658ff..b584124d5 100644 --- a/pkg/fourslash/tests/gen/completionsImport_duplicatePackages_typesAndNotTypes_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_duplicatePackages_typesAndNotTypes_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_duplicatePackages_typesAndNotTypes(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @esModuleInterop: true diff --git a/pkg/fourslash/tests/gen/completionsImport_duplicatePackages_types_test.go b/pkg/fourslash/tests/gen/completionsImport_duplicatePackages_types_test.go index 31310b025..7fe037ba3 100644 --- a/pkg/fourslash/tests/gen/completionsImport_duplicatePackages_types_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_duplicatePackages_types_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_duplicatePackages_types(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @esModuleInterop: true diff --git a/pkg/fourslash/tests/gen/completionsImport_exportEqualsNamespace_noDuplicate_test.go b/pkg/fourslash/tests/gen/completionsImport_exportEqualsNamespace_noDuplicate_test.go index d5c32302a..f82ba1410 100644 --- a/pkg/fourslash/tests/gen/completionsImport_exportEqualsNamespace_noDuplicate_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_exportEqualsNamespace_noDuplicate_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_exportEqualsNamespace_noDuplicate(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /node_modules/a/index.d.ts declare namespace core { diff --git a/pkg/fourslash/tests/gen/completionsImport_exportEquals_anonymous_test.go b/pkg/fourslash/tests/gen/completionsImport_exportEquals_anonymous_test.go index dc1400fa4..090311e10 100644 --- a/pkg/fourslash/tests/gen/completionsImport_exportEquals_anonymous_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_exportEquals_anonymous_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_exportEquals_anonymous(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noLib: true // @module: commonjs diff --git a/pkg/fourslash/tests/gen/completionsImport_exportEquals_global_test.go b/pkg/fourslash/tests/gen/completionsImport_exportEquals_global_test.go index 5d38846bd..a3e18f47e 100644 --- a/pkg/fourslash/tests/gen/completionsImport_exportEquals_global_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_exportEquals_global_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_exportEquals_global(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: es6 // @Filename: /console.d.ts diff --git a/pkg/fourslash/tests/gen/completionsImport_exportEquals_test.go b/pkg/fourslash/tests/gen/completionsImport_exportEquals_test.go index a54eada7d..9d1dcf322 100644 --- a/pkg/fourslash/tests/gen/completionsImport_exportEquals_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_exportEquals_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_exportEquals(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @esModuleInterop: false diff --git a/pkg/fourslash/tests/gen/completionsImport_filteredByInvalidPackageJson_direct_test.go b/pkg/fourslash/tests/gen/completionsImport_filteredByInvalidPackageJson_direct_test.go index 41cf6c8fd..15d6c84dc 100644 --- a/pkg/fourslash/tests/gen/completionsImport_filteredByInvalidPackageJson_direct_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_filteredByInvalidPackageJson_direct_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_filteredByInvalidPackageJson_direct(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@noEmit: true //@Filename: /package.json diff --git a/pkg/fourslash/tests/gen/completionsImport_filteredByPackageJson_@typesImplicit_test.go b/pkg/fourslash/tests/gen/completionsImport_filteredByPackageJson_@typesImplicit_test.go index 21be5c7cb..d3455604e 100644 --- a/pkg/fourslash/tests/gen/completionsImport_filteredByPackageJson_@typesImplicit_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_filteredByPackageJson_@typesImplicit_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_filteredByPackageJson_typesImplicit(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@noEmit: true //@Filename: /package.json diff --git a/pkg/fourslash/tests/gen/completionsImport_filteredByPackageJson_@typesOnly_test.go b/pkg/fourslash/tests/gen/completionsImport_filteredByPackageJson_@typesOnly_test.go index 0971fa870..356fa91dc 100644 --- a/pkg/fourslash/tests/gen/completionsImport_filteredByPackageJson_@typesOnly_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_filteredByPackageJson_@typesOnly_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_filteredByPackageJson_typesOnly(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@noEmit: true //@Filename: /package.json diff --git a/pkg/fourslash/tests/gen/completionsImport_filteredByPackageJson_ambient_test.go b/pkg/fourslash/tests/gen/completionsImport_filteredByPackageJson_ambient_test.go index edd5913db..0cb7bff63 100644 --- a/pkg/fourslash/tests/gen/completionsImport_filteredByPackageJson_ambient_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_filteredByPackageJson_ambient_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_filteredByPackageJson_ambient(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@noEmit: true //@Filename: /package.json diff --git a/pkg/fourslash/tests/gen/completionsImport_filteredByPackageJson_direct_test.go b/pkg/fourslash/tests/gen/completionsImport_filteredByPackageJson_direct_test.go index 24ccd7d8a..3955597f7 100644 --- a/pkg/fourslash/tests/gen/completionsImport_filteredByPackageJson_direct_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_filteredByPackageJson_direct_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_filteredByPackageJson_direct(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@noEmit: true //@Filename: /package.json diff --git a/pkg/fourslash/tests/gen/completionsImport_filteredByPackageJson_nested_test.go b/pkg/fourslash/tests/gen/completionsImport_filteredByPackageJson_nested_test.go index 3e4da03fb..c207a7d39 100644 --- a/pkg/fourslash/tests/gen/completionsImport_filteredByPackageJson_nested_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_filteredByPackageJson_nested_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_filteredByPackageJson_nested(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@noEmit: true //@Filename: /package.json diff --git a/pkg/fourslash/tests/gen/completionsImport_filteredByPackageJson_peerDependencies_test.go b/pkg/fourslash/tests/gen/completionsImport_filteredByPackageJson_peerDependencies_test.go index c8c7c28c1..ddabb48ff 100644 --- a/pkg/fourslash/tests/gen/completionsImport_filteredByPackageJson_peerDependencies_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_filteredByPackageJson_peerDependencies_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_filteredByPackageJson_peerDependencies(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@noEmit: true //@Filename: /package.json diff --git a/pkg/fourslash/tests/gen/completionsImport_fromAmbientModule_test.go b/pkg/fourslash/tests/gen/completionsImport_fromAmbientModule_test.go index 02d4e2e46..c9b72bd2a 100644 --- a/pkg/fourslash/tests/gen/completionsImport_fromAmbientModule_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_fromAmbientModule_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsImport_fromAmbientModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @Filename: /a.ts diff --git a/pkg/fourslash/tests/gen/completionsImport_importType_test.go b/pkg/fourslash/tests/gen/completionsImport_importType_test.go index fdf10c2c7..0645de1ef 100644 --- a/pkg/fourslash/tests/gen/completionsImport_importType_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_importType_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_importType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/completionsImport_jsxOpeningTagImportDefault_test.go b/pkg/fourslash/tests/gen/completionsImport_jsxOpeningTagImportDefault_test.go index f36b7c946..d5eb6424a 100644 --- a/pkg/fourslash/tests/gen/completionsImport_jsxOpeningTagImportDefault_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_jsxOpeningTagImportDefault_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_jsxOpeningTagImportDefault(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @jsx: react diff --git a/pkg/fourslash/tests/gen/completionsImport_mergedReExport_test.go b/pkg/fourslash/tests/gen/completionsImport_mergedReExport_test.go index 8ae5d6472..a9005eeb0 100644 --- a/pkg/fourslash/tests/gen/completionsImport_mergedReExport_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_mergedReExport_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_mergedReExport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { "compilerOptions": { "module": "commonjs" } } diff --git a/pkg/fourslash/tests/gen/completionsImport_multipleWithSameName_test.go b/pkg/fourslash/tests/gen/completionsImport_multipleWithSameName_test.go index 3a275317e..62729087f 100644 --- a/pkg/fourslash/tests/gen/completionsImport_multipleWithSameName_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_multipleWithSameName_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_multipleWithSameName(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @noLib: true diff --git a/pkg/fourslash/tests/gen/completionsImport_named_addToNamedImports_test.go b/pkg/fourslash/tests/gen/completionsImport_named_addToNamedImports_test.go index 1795cdb46..a521d9b6a 100644 --- a/pkg/fourslash/tests/gen/completionsImport_named_addToNamedImports_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_named_addToNamedImports_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_named_addToNamedImports(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export function foo() {} diff --git a/pkg/fourslash/tests/gen/completionsImport_named_didNotExistBefore_test.go b/pkg/fourslash/tests/gen/completionsImport_named_didNotExistBefore_test.go index 8a7e5b1e1..2d8fc5cde 100644 --- a/pkg/fourslash/tests/gen/completionsImport_named_didNotExistBefore_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_named_didNotExistBefore_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_named_didNotExistBefore(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noLib: true // @Filename: /a.ts diff --git a/pkg/fourslash/tests/gen/completionsImport_named_exportEqualsNamespace_merged_test.go b/pkg/fourslash/tests/gen/completionsImport_named_exportEqualsNamespace_merged_test.go index 3b7fbdee9..90d05c7ab 100644 --- a/pkg/fourslash/tests/gen/completionsImport_named_exportEqualsNamespace_merged_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_named_exportEqualsNamespace_merged_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_named_exportEqualsNamespace_merged(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @Filename: /b.d.ts diff --git a/pkg/fourslash/tests/gen/completionsImport_named_exportEqualsNamespace_test.go b/pkg/fourslash/tests/gen/completionsImport_named_exportEqualsNamespace_test.go index 34884c7fd..1495f1364 100644 --- a/pkg/fourslash/tests/gen/completionsImport_named_exportEqualsNamespace_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_named_exportEqualsNamespace_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_named_exportEqualsNamespace(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @Filename: /a.d.ts diff --git a/pkg/fourslash/tests/gen/completionsImport_named_fromMergedDeclarations_test.go b/pkg/fourslash/tests/gen/completionsImport_named_fromMergedDeclarations_test.go index 6435f528d..598bb6796 100644 --- a/pkg/fourslash/tests/gen/completionsImport_named_fromMergedDeclarations_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_named_fromMergedDeclarations_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_named_fromMergedDeclarations(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @Filename: /a.ts diff --git a/pkg/fourslash/tests/gen/completionsImport_named_namespaceImportExists_test.go b/pkg/fourslash/tests/gen/completionsImport_named_namespaceImportExists_test.go index 4c5941554..2743e455d 100644 --- a/pkg/fourslash/tests/gen/completionsImport_named_namespaceImportExists_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_named_namespaceImportExists_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_named_namespaceImportExists(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export function foo() {} diff --git a/pkg/fourslash/tests/gen/completionsImport_noSemicolons_test.go b/pkg/fourslash/tests/gen/completionsImport_noSemicolons_test.go index 927087a32..02f25aeac 100644 --- a/pkg/fourslash/tests/gen/completionsImport_noSemicolons_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_noSemicolons_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsImport_noSemicolons(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export function foo() {} diff --git a/pkg/fourslash/tests/gen/completionsImport_notFromUnrelatedNodeModules_test.go b/pkg/fourslash/tests/gen/completionsImport_notFromUnrelatedNodeModules_test.go index b3e731683..097dd705c 100644 --- a/pkg/fourslash/tests/gen/completionsImport_notFromUnrelatedNodeModules_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_notFromUnrelatedNodeModules_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsImport_notFromUnrelatedNodeModules(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @Filename: /unrelated/node_modules/@types/foo/index.d.ts diff --git a/pkg/fourslash/tests/gen/completionsImport_ofAlias_preferShortPath_test.go b/pkg/fourslash/tests/gen/completionsImport_ofAlias_preferShortPath_test.go index 7e4b345c4..f0e368171 100644 --- a/pkg/fourslash/tests/gen/completionsImport_ofAlias_preferShortPath_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_ofAlias_preferShortPath_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_ofAlias_preferShortPath(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonJs // @noLib: true diff --git a/pkg/fourslash/tests/gen/completionsImport_packageJsonImportsPreference_test.go b/pkg/fourslash/tests/gen/completionsImport_packageJsonImportsPreference_test.go index f15694dac..4b6e1e92a 100644 --- a/pkg/fourslash/tests/gen/completionsImport_packageJsonImportsPreference_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_packageJsonImportsPreference_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_packageJsonImportsPreference(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: preserve // @allowImportingTsExtensions: true diff --git a/pkg/fourslash/tests/gen/completionsImport_preferUpdatingExistingImport_test.go b/pkg/fourslash/tests/gen/completionsImport_preferUpdatingExistingImport_test.go index 28515451c..957c7e963 100644 --- a/pkg/fourslash/tests/gen/completionsImport_preferUpdatingExistingImport_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_preferUpdatingExistingImport_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_preferUpdatingExistingImport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @Filename: /deep/module/why/you/want/this/path.ts diff --git a/pkg/fourslash/tests/gen/completionsImport_previousTokenIsSemicolon_test.go b/pkg/fourslash/tests/gen/completionsImport_previousTokenIsSemicolon_test.go index 115172668..f84b79627 100644 --- a/pkg/fourslash/tests/gen/completionsImport_previousTokenIsSemicolon_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_previousTokenIsSemicolon_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_previousTokenIsSemicolon(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export function foo() {} diff --git a/pkg/fourslash/tests/gen/completionsImport_promoteTypeOnly2_test.go b/pkg/fourslash/tests/gen/completionsImport_promoteTypeOnly2_test.go index 2521daa93..24c3eed6a 100644 --- a/pkg/fourslash/tests/gen/completionsImport_promoteTypeOnly2_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_promoteTypeOnly2_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsImport_promoteTypeOnly2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: es2015 // @Filename: /exports.ts diff --git a/pkg/fourslash/tests/gen/completionsImport_quoteStyle_test.go b/pkg/fourslash/tests/gen/completionsImport_quoteStyle_test.go index 42b7c313a..092f43bcb 100644 --- a/pkg/fourslash/tests/gen/completionsImport_quoteStyle_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_quoteStyle_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsImport_quoteStyle(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @Filename: /a.ts diff --git a/pkg/fourslash/tests/gen/completionsImport_reExportDefault2_test.go b/pkg/fourslash/tests/gen/completionsImport_reExportDefault2_test.go index 8bccddb7d..4f37b7430 100644 --- a/pkg/fourslash/tests/gen/completionsImport_reExportDefault2_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_reExportDefault2_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_reExportDefault2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: preserve // @checkJs: true diff --git a/pkg/fourslash/tests/gen/completionsImport_reExportDefault_test.go b/pkg/fourslash/tests/gen/completionsImport_reExportDefault_test.go index 2b9d7ed1f..dd589bf4e 100644 --- a/pkg/fourslash/tests/gen/completionsImport_reExportDefault_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_reExportDefault_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_reExportDefault(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @Filename: /a/b/impl.ts diff --git a/pkg/fourslash/tests/gen/completionsImport_reExport_wrongName_test.go b/pkg/fourslash/tests/gen/completionsImport_reExport_wrongName_test.go index a577a382d..10485644a 100644 --- a/pkg/fourslash/tests/gen/completionsImport_reExport_wrongName_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_reExport_wrongName_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_reExport_wrongName(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @moduleResolution: bundler // @Filename: /a.ts diff --git a/pkg/fourslash/tests/gen/completionsImport_reexportTransient_test.go b/pkg/fourslash/tests/gen/completionsImport_reexportTransient_test.go index 6819849f4..acc954fef 100644 --- a/pkg/fourslash/tests/gen/completionsImport_reexportTransient_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_reexportTransient_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_reexportTransient(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @esModuleInterop: true // @Filename: /transient.d.ts diff --git a/pkg/fourslash/tests/gen/completionsImport_require_addNew_test.go b/pkg/fourslash/tests/gen/completionsImport_require_addNew_test.go index d9636af56..f016ecc52 100644 --- a/pkg/fourslash/tests/gen/completionsImport_require_addNew_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_require_addNew_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_require_addNew(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/completionsImport_require_addToExisting_test.go b/pkg/fourslash/tests/gen/completionsImport_require_addToExisting_test.go index a957c5957..f9a76e069 100644 --- a/pkg/fourslash/tests/gen/completionsImport_require_addToExisting_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_require_addToExisting_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_require_addToExisting(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/completionsImport_require_test.go b/pkg/fourslash/tests/gen/completionsImport_require_test.go index 008e8877d..16f715352 100644 --- a/pkg/fourslash/tests/gen/completionsImport_require_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_require_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_require(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.ts diff --git a/pkg/fourslash/tests/gen/completionsImport_shadowedByLocal_test.go b/pkg/fourslash/tests/gen/completionsImport_shadowedByLocal_test.go index 15c01b62e..991048e30 100644 --- a/pkg/fourslash/tests/gen/completionsImport_shadowedByLocal_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_shadowedByLocal_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsImport_shadowedByLocal(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noLib: true // @Filename: /a.ts diff --git a/pkg/fourslash/tests/gen/completionsImport_sortingModuleSpecifiers_test.go b/pkg/fourslash/tests/gen/completionsImport_sortingModuleSpecifiers_test.go index dbc4a4178..58912e6bc 100644 --- a/pkg/fourslash/tests/gen/completionsImport_sortingModuleSpecifiers_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_sortingModuleSpecifiers_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_sortingModuleSpecifiers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tsconfig.json { "compilerOptions": { "module": "commonjs" } } diff --git a/pkg/fourslash/tests/gen/completionsImport_tsx_test.go b/pkg/fourslash/tests/gen/completionsImport_tsx_test.go index 402960ab6..56822630c 100644 --- a/pkg/fourslash/tests/gen/completionsImport_tsx_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_tsx_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_tsx(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noLib: true // @jsx: preserve diff --git a/pkg/fourslash/tests/gen/completionsImport_typeOnly_test.go b/pkg/fourslash/tests/gen/completionsImport_typeOnly_test.go index ccfb5e9ca..8b68f1530 100644 --- a/pkg/fourslash/tests/gen/completionsImport_typeOnly_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_typeOnly_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsImport_typeOnly(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @target: esnext // @moduleResolution: bundler diff --git a/pkg/fourslash/tests/gen/completionsImport_umdDefaultNoCrash1_test.go b/pkg/fourslash/tests/gen/completionsImport_umdDefaultNoCrash1_test.go index 3e94c5c6f..795c44fdd 100644 --- a/pkg/fourslash/tests/gen/completionsImport_umdDefaultNoCrash1_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_umdDefaultNoCrash1_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_umdDefaultNoCrash1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @moduleResolution: bundler // @allowJs: true diff --git a/pkg/fourslash/tests/gen/completionsImport_umdDefaultNoCrash2_test.go b/pkg/fourslash/tests/gen/completionsImport_umdDefaultNoCrash2_test.go index 102126d9d..5a3ec1387 100644 --- a/pkg/fourslash/tests/gen/completionsImport_umdDefaultNoCrash2_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_umdDefaultNoCrash2_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsImport_umdDefaultNoCrash2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @moduleResolution: bundler // @allowJs: true diff --git a/pkg/fourslash/tests/gen/completionsImport_umdModules1_globalAccess_test.go b/pkg/fourslash/tests/gen/completionsImport_umdModules1_globalAccess_test.go index a9e5594a3..76444a091 100644 --- a/pkg/fourslash/tests/gen/completionsImport_umdModules1_globalAccess_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_umdModules1_globalAccess_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_umdModules1_globalAccess(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: /package.json { "dependencies": { "@types/classnames": "*" } } diff --git a/pkg/fourslash/tests/gen/completionsImport_umdModules2_moduleExports_test.go b/pkg/fourslash/tests/gen/completionsImport_umdModules2_moduleExports_test.go index f855c54ef..c5deb7c87 100644 --- a/pkg/fourslash/tests/gen/completionsImport_umdModules2_moduleExports_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_umdModules2_moduleExports_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_umdModules2_moduleExports(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: /package.json { "dependencies": { "@types/classnames": "*" } } diff --git a/pkg/fourslash/tests/gen/completionsImport_umdModules3_script_test.go b/pkg/fourslash/tests/gen/completionsImport_umdModules3_script_test.go index 97ee3e293..d8195add5 100644 --- a/pkg/fourslash/tests/gen/completionsImport_umdModules3_script_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_umdModules3_script_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_umdModules3_script(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: /package.json { "dependencies": { "@types/classnames": "*" } } diff --git a/pkg/fourslash/tests/gen/completionsImport_uriStyleNodeCoreModules1_test.go b/pkg/fourslash/tests/gen/completionsImport_uriStyleNodeCoreModules1_test.go index 46b5c19b2..bfac30e90 100644 --- a/pkg/fourslash/tests/gen/completionsImport_uriStyleNodeCoreModules1_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_uriStyleNodeCoreModules1_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_uriStyleNodeCoreModules1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @Filename: /node_modules/@types/node/index.d.ts diff --git a/pkg/fourslash/tests/gen/completionsImport_uriStyleNodeCoreModules2_test.go b/pkg/fourslash/tests/gen/completionsImport_uriStyleNodeCoreModules2_test.go index 71dd4f516..ceae9e150 100644 --- a/pkg/fourslash/tests/gen/completionsImport_uriStyleNodeCoreModules2_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_uriStyleNodeCoreModules2_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_uriStyleNodeCoreModules2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @Filename: /node_modules/@types/node/index.d.ts diff --git a/pkg/fourslash/tests/gen/completionsImport_uriStyleNodeCoreModules3_test.go b/pkg/fourslash/tests/gen/completionsImport_uriStyleNodeCoreModules3_test.go index aaa3c7e5e..fd45fb5d3 100644 --- a/pkg/fourslash/tests/gen/completionsImport_uriStyleNodeCoreModules3_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_uriStyleNodeCoreModules3_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_uriStyleNodeCoreModules3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @Filename: /node_modules/@types/node/index.d.ts diff --git a/pkg/fourslash/tests/gen/completionsImport_weirdDefaultSynthesis_test.go b/pkg/fourslash/tests/gen/completionsImport_weirdDefaultSynthesis_test.go index ef14e1574..fb7efee92 100644 --- a/pkg/fourslash/tests/gen/completionsImport_weirdDefaultSynthesis_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_weirdDefaultSynthesis_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsImport_weirdDefaultSynthesis(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @esModuleInterop: false diff --git a/pkg/fourslash/tests/gen/completionsImport_windowsPathsProjectRelative_test.go b/pkg/fourslash/tests/gen/completionsImport_windowsPathsProjectRelative_test.go index cb59a1e1d..d16a6c130 100644 --- a/pkg/fourslash/tests/gen/completionsImport_windowsPathsProjectRelative_test.go +++ b/pkg/fourslash/tests/gen/completionsImport_windowsPathsProjectRelative_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsImport_windowsPathsProjectRelative(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: c:/project/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/completionsInExport_invalid_test.go b/pkg/fourslash/tests/gen/completionsInExport_invalid_test.go index 767ec0077..392e2bcb9 100644 --- a/pkg/fourslash/tests/gen/completionsInExport_invalid_test.go +++ b/pkg/fourslash/tests/gen/completionsInExport_invalid_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsInExport_invalid(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function topLevel() {} if (!!true) { diff --git a/pkg/fourslash/tests/gen/completionsInExport_moduleBlock_test.go b/pkg/fourslash/tests/gen/completionsInExport_moduleBlock_test.go index c1ce5358f..8c682c9ae 100644 --- a/pkg/fourslash/tests/gen/completionsInExport_moduleBlock_test.go +++ b/pkg/fourslash/tests/gen/completionsInExport_moduleBlock_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsInExport_moduleBlock(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const outOfScope = 0; diff --git a/pkg/fourslash/tests/gen/completionsInExport_test.go b/pkg/fourslash/tests/gen/completionsInExport_test.go index 4b7fc5327..6237f7ff0 100644 --- a/pkg/fourslash/tests/gen/completionsInExport_test.go +++ b/pkg/fourslash/tests/gen/completionsInExport_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsInExport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const a = "a"; type T = number; diff --git a/pkg/fourslash/tests/gen/completionsInJsxTag_test.go b/pkg/fourslash/tests/gen/completionsInJsxTag_test.go index d16731e61..f7940457e 100644 --- a/pkg/fourslash/tests/gen/completionsInJsxTag_test.go +++ b/pkg/fourslash/tests/gen/completionsInJsxTag_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsInJsxTag(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @jsx: preserve // @Filename: /a.tsx diff --git a/pkg/fourslash/tests/gen/completionsInRequire_test.go b/pkg/fourslash/tests/gen/completionsInRequire_test.go index 5c64ddc4c..aa3f30d97 100644 --- a/pkg/fourslash/tests/gen/completionsInRequire_test.go +++ b/pkg/fourslash/tests/gen/completionsInRequire_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsInRequire(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: foo.js diff --git a/pkg/fourslash/tests/gen/completionsIndexSignatureConstraint1_test.go b/pkg/fourslash/tests/gen/completionsIndexSignatureConstraint1_test.go index 24583e758..f6046680b 100644 --- a/pkg/fourslash/tests/gen/completionsIndexSignatureConstraint1_test.go +++ b/pkg/fourslash/tests/gen/completionsIndexSignatureConstraint1_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsIndexSignatureConstraint1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true diff --git a/pkg/fourslash/tests/gen/completionsInterfaceElement_test.go b/pkg/fourslash/tests/gen/completionsInterfaceElement_test.go index 7caed47d7..c11fa5130 100644 --- a/pkg/fourslash/tests/gen/completionsInterfaceElement_test.go +++ b/pkg/fourslash/tests/gen/completionsInterfaceElement_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsInterfaceElement(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const foo = 0; interface I { diff --git a/pkg/fourslash/tests/gen/completionsIsTypeOnlyCompletion_test.go b/pkg/fourslash/tests/gen/completionsIsTypeOnlyCompletion_test.go index fe0f4661f..23fc5d7ef 100644 --- a/pkg/fourslash/tests/gen/completionsIsTypeOnlyCompletion_test.go +++ b/pkg/fourslash/tests/gen/completionsIsTypeOnlyCompletion_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsIsTypeOnlyCompletion(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noLib: true // @Filename: /abc.ts diff --git a/pkg/fourslash/tests/gen/completionsJSDocImportTagAttributesEmptyModuleSpecifier1_test.go b/pkg/fourslash/tests/gen/completionsJSDocImportTagAttributesEmptyModuleSpecifier1_test.go index 7e38fb9d8..a1452168e 100644 --- a/pkg/fourslash/tests/gen/completionsJSDocImportTagAttributesEmptyModuleSpecifier1_test.go +++ b/pkg/fourslash/tests/gen/completionsJSDocImportTagAttributesEmptyModuleSpecifier1_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsJSDocImportTagAttributesEmptyModuleSpecifier1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/completionsJSDocImportTagAttributesErrorModuleSpecifier1_test.go b/pkg/fourslash/tests/gen/completionsJSDocImportTagAttributesErrorModuleSpecifier1_test.go index 6de5bef5c..0112b81a8 100644 --- a/pkg/fourslash/tests/gen/completionsJSDocImportTagAttributesErrorModuleSpecifier1_test.go +++ b/pkg/fourslash/tests/gen/completionsJSDocImportTagAttributesErrorModuleSpecifier1_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsJSDocImportTagAttributesErrorModuleSpecifier1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/completionsJSDocImportTagEmptyModuleSpecifier1_test.go b/pkg/fourslash/tests/gen/completionsJSDocImportTagEmptyModuleSpecifier1_test.go index 9da4e604e..10ea4866f 100644 --- a/pkg/fourslash/tests/gen/completionsJSDocImportTagEmptyModuleSpecifier1_test.go +++ b/pkg/fourslash/tests/gen/completionsJSDocImportTagEmptyModuleSpecifier1_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsJSDocImportTagEmptyModuleSpecifier1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/completionsJSDocNoCrash1_test.go b/pkg/fourslash/tests/gen/completionsJSDocNoCrash1_test.go index c72cb9946..ca366f863 100644 --- a/pkg/fourslash/tests/gen/completionsJSDocNoCrash1_test.go +++ b/pkg/fourslash/tests/gen/completionsJSDocNoCrash1_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsJSDocNoCrash1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/completionsJSDocNoCrash2_test.go b/pkg/fourslash/tests/gen/completionsJSDocNoCrash2_test.go index 6b137ac26..9a0e09f59 100644 --- a/pkg/fourslash/tests/gen/completionsJSDocNoCrash2_test.go +++ b/pkg/fourslash/tests/gen/completionsJSDocNoCrash2_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsJSDocNoCrash2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @filename: index.ts diff --git a/pkg/fourslash/tests/gen/completionsJSDocNoCrash3_test.go b/pkg/fourslash/tests/gen/completionsJSDocNoCrash3_test.go index 13b9504b5..fcd86965b 100644 --- a/pkg/fourslash/tests/gen/completionsJSDocNoCrash3_test.go +++ b/pkg/fourslash/tests/gen/completionsJSDocNoCrash3_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsJSDocNoCrash3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @filename: index.ts diff --git a/pkg/fourslash/tests/gen/completionsJsPropertyAssignment_test.go b/pkg/fourslash/tests/gen/completionsJsPropertyAssignment_test.go index a05c651e7..9ccdba0e2 100644 --- a/pkg/fourslash/tests/gen/completionsJsPropertyAssignment_test.go +++ b/pkg/fourslash/tests/gen/completionsJsPropertyAssignment_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsJsPropertyAssignment(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/completionsJsdocParamTypeBeforeName_test.go b/pkg/fourslash/tests/gen/completionsJsdocParamTypeBeforeName_test.go index c3160f8d7..d2f8aa05e 100644 --- a/pkg/fourslash/tests/gen/completionsJsdocParamTypeBeforeName_test.go +++ b/pkg/fourslash/tests/gen/completionsJsdocParamTypeBeforeName_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsJsdocParamTypeBeforeName(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** @param /*name1*/ {/*type*/} /*name2*/ */ function toString(obj) {}` diff --git a/pkg/fourslash/tests/gen/completionsJsdocTag_test.go b/pkg/fourslash/tests/gen/completionsJsdocTag_test.go index 314eb8506..78ecbbe54 100644 --- a/pkg/fourslash/tests/gen/completionsJsdocTag_test.go +++ b/pkg/fourslash/tests/gen/completionsJsdocTag_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsJsdocTag(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * @typedef {object} T diff --git a/pkg/fourslash/tests/gen/completionsJsdocTypeTagCast_test.go b/pkg/fourslash/tests/gen/completionsJsdocTypeTagCast_test.go index 31583f51d..25f5a0ec2 100644 --- a/pkg/fourslash/tests/gen/completionsJsdocTypeTagCast_test.go +++ b/pkg/fourslash/tests/gen/completionsJsdocTypeTagCast_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsJsdocTypeTagCast(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/completionsJsxAttribute2_test.go b/pkg/fourslash/tests/gen/completionsJsxAttribute2_test.go index 86b629ce0..a19223bd6 100644 --- a/pkg/fourslash/tests/gen/completionsJsxAttribute2_test.go +++ b/pkg/fourslash/tests/gen/completionsJsxAttribute2_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsJsxAttribute2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @jsx: preserve // @Filename: /a.tsx diff --git a/pkg/fourslash/tests/gen/completionsJsxAttributeInitializer2_test.go b/pkg/fourslash/tests/gen/completionsJsxAttributeInitializer2_test.go index bbd3de35c..1feccb903 100644 --- a/pkg/fourslash/tests/gen/completionsJsxAttributeInitializer2_test.go +++ b/pkg/fourslash/tests/gen/completionsJsxAttributeInitializer2_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsJsxAttributeInitializer2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.tsx declare namespace JSX { diff --git a/pkg/fourslash/tests/gen/completionsJsxExpression_test.go b/pkg/fourslash/tests/gen/completionsJsxExpression_test.go index 077d8dcd3..dbd349eba 100644 --- a/pkg/fourslash/tests/gen/completionsJsxExpression_test.go +++ b/pkg/fourslash/tests/gen/completionsJsxExpression_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsJsxExpression(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.tsx // @jsx: react diff --git a/pkg/fourslash/tests/gen/completionsKeyof_test.go b/pkg/fourslash/tests/gen/completionsKeyof_test.go index 28354d749..c24167082 100644 --- a/pkg/fourslash/tests/gen/completionsKeyof_test.go +++ b/pkg/fourslash/tests/gen/completionsKeyof_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsKeyof(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface A { a: number; }; interface B { a: number; b: number; }; diff --git a/pkg/fourslash/tests/gen/completionsKeywordsExtends_test.go b/pkg/fourslash/tests/gen/completionsKeywordsExtends_test.go index 76adc4915..25470dbed 100644 --- a/pkg/fourslash/tests/gen/completionsKeywordsExtends_test.go +++ b/pkg/fourslash/tests/gen/completionsKeywordsExtends_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsKeywordsExtends(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C/*a*/ /*b*/ { } class C e/*c*/ {}` diff --git a/pkg/fourslash/tests/gen/completionsLiteralDirectlyInArgumentWithNullableConstraint_test.go b/pkg/fourslash/tests/gen/completionsLiteralDirectlyInArgumentWithNullableConstraint_test.go index 05ff3691d..b9d128f5a 100644 --- a/pkg/fourslash/tests/gen/completionsLiteralDirectlyInArgumentWithNullableConstraint_test.go +++ b/pkg/fourslash/tests/gen/completionsLiteralDirectlyInArgumentWithNullableConstraint_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsLiteralDirectlyInArgumentWithNullableConstraint(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true diff --git a/pkg/fourslash/tests/gen/completionsLiteralDirectlyInRestConstrainedToArrayType_test.go b/pkg/fourslash/tests/gen/completionsLiteralDirectlyInRestConstrainedToArrayType_test.go index e39d4d1d0..947880755 100644 --- a/pkg/fourslash/tests/gen/completionsLiteralDirectlyInRestConstrainedToArrayType_test.go +++ b/pkg/fourslash/tests/gen/completionsLiteralDirectlyInRestConstrainedToArrayType_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsLiteralDirectlyInRestConstrainedToArrayType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true diff --git a/pkg/fourslash/tests/gen/completionsLiteralDirectlyInRestConstrainedToTupleType_test.go b/pkg/fourslash/tests/gen/completionsLiteralDirectlyInRestConstrainedToTupleType_test.go index 8289025dc..d2c6c0f6d 100644 --- a/pkg/fourslash/tests/gen/completionsLiteralDirectlyInRestConstrainedToTupleType_test.go +++ b/pkg/fourslash/tests/gen/completionsLiteralDirectlyInRestConstrainedToTupleType_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsLiteralDirectlyInRestConstrainedToTupleType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true diff --git a/pkg/fourslash/tests/gen/completionsLiteralFromInferenceWithinInferredType1_test.go b/pkg/fourslash/tests/gen/completionsLiteralFromInferenceWithinInferredType1_test.go index d1defff87..3b070f0b3 100644 --- a/pkg/fourslash/tests/gen/completionsLiteralFromInferenceWithinInferredType1_test.go +++ b/pkg/fourslash/tests/gen/completionsLiteralFromInferenceWithinInferredType1_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsLiteralFromInferenceWithinInferredType1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.tsx declare function test(a: { diff --git a/pkg/fourslash/tests/gen/completionsLiteralFromInferenceWithinInferredType2_test.go b/pkg/fourslash/tests/gen/completionsLiteralFromInferenceWithinInferredType2_test.go index 7e093578d..593112a02 100644 --- a/pkg/fourslash/tests/gen/completionsLiteralFromInferenceWithinInferredType2_test.go +++ b/pkg/fourslash/tests/gen/completionsLiteralFromInferenceWithinInferredType2_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsLiteralFromInferenceWithinInferredType2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.tsx type Values = T[keyof T]; diff --git a/pkg/fourslash/tests/gen/completionsLiteralFromInferenceWithinInferredType3_test.go b/pkg/fourslash/tests/gen/completionsLiteralFromInferenceWithinInferredType3_test.go index c039583ae..29096b6f3 100644 --- a/pkg/fourslash/tests/gen/completionsLiteralFromInferenceWithinInferredType3_test.go +++ b/pkg/fourslash/tests/gen/completionsLiteralFromInferenceWithinInferredType3_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsLiteralFromInferenceWithinInferredType3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function test(a: { [K in keyof T]: { diff --git a/pkg/fourslash/tests/gen/completionsLiteralMatchingGenericSignature_test.go b/pkg/fourslash/tests/gen/completionsLiteralMatchingGenericSignature_test.go index 104a8cb3c..554b45c59 100644 --- a/pkg/fourslash/tests/gen/completionsLiteralMatchingGenericSignature_test.go +++ b/pkg/fourslash/tests/gen/completionsLiteralMatchingGenericSignature_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsLiteralMatchingGenericSignature(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.tsx declare function bar1

(p: P): void; diff --git a/pkg/fourslash/tests/gen/completionsLiteralOnPropertyValueMatchingGeneric_test.go b/pkg/fourslash/tests/gen/completionsLiteralOnPropertyValueMatchingGeneric_test.go index 2cd509a1c..86e4d09f2 100644 --- a/pkg/fourslash/tests/gen/completionsLiteralOnPropertyValueMatchingGeneric_test.go +++ b/pkg/fourslash/tests/gen/completionsLiteralOnPropertyValueMatchingGeneric_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsLiteralOnPropertyValueMatchingGeneric(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.tsx declare function bar1

(p: { type: P }): void; diff --git a/pkg/fourslash/tests/gen/completionsLiteralOverload_test.go b/pkg/fourslash/tests/gen/completionsLiteralOverload_test.go index f72f9c8cf..ac5fa2f89 100644 --- a/pkg/fourslash/tests/gen/completionsLiteralOverload_test.go +++ b/pkg/fourslash/tests/gen/completionsLiteralOverload_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsLiteralOverload(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.tsx diff --git a/pkg/fourslash/tests/gen/completionsLiterals_test.go b/pkg/fourslash/tests/gen/completionsLiterals_test.go index 5e6c37d33..e6eab7260 100644 --- a/pkg/fourslash/tests/gen/completionsLiterals_test.go +++ b/pkg/fourslash/tests/gen/completionsLiterals_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsLiterals(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const x: 0 | "one" = /**/; const y: 0 | "one" | 1n = /*1*/; diff --git a/pkg/fourslash/tests/gen/completionsMergedDeclarations1_test.go b/pkg/fourslash/tests/gen/completionsMergedDeclarations1_test.go index 8addd43f4..97a1493cf 100644 --- a/pkg/fourslash/tests/gen/completionsMergedDeclarations1_test.go +++ b/pkg/fourslash/tests/gen/completionsMergedDeclarations1_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsMergedDeclarations1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Point { x: number; diff --git a/pkg/fourslash/tests/gen/completionsMergedDeclarations2_test.go b/pkg/fourslash/tests/gen/completionsMergedDeclarations2_test.go index 17cb4f4fa..55fd873a4 100644 --- a/pkg/fourslash/tests/gen/completionsMergedDeclarations2_test.go +++ b/pkg/fourslash/tests/gen/completionsMergedDeclarations2_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsMergedDeclarations2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class point { constructor(public x: number, public y: number) { } diff --git a/pkg/fourslash/tests/gen/completionsNamespaceMergedWithClass_test.go b/pkg/fourslash/tests/gen/completionsNamespaceMergedWithClass_test.go index 617b01d91..cf412f43a 100644 --- a/pkg/fourslash/tests/gen/completionsNamespaceMergedWithClass_test.go +++ b/pkg/fourslash/tests/gen/completionsNamespaceMergedWithClass_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsNamespaceMergedWithClass(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { static m() { } diff --git a/pkg/fourslash/tests/gen/completionsNamespaceMergedWithObject_test.go b/pkg/fourslash/tests/gen/completionsNamespaceMergedWithObject_test.go index e1f86e8d4..de60ff197 100644 --- a/pkg/fourslash/tests/gen/completionsNamespaceMergedWithObject_test.go +++ b/pkg/fourslash/tests/gen/completionsNamespaceMergedWithObject_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsNamespaceMergedWithObject(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `namespace N { export type T = number; diff --git a/pkg/fourslash/tests/gen/completionsNamespaceName_test.go b/pkg/fourslash/tests/gen/completionsNamespaceName_test.go index 7b85c06c1..56905aed2 100644 --- a/pkg/fourslash/tests/gen/completionsNamespaceName_test.go +++ b/pkg/fourslash/tests/gen/completionsNamespaceName_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsNamespaceName(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `{ namespace /*0*/ } namespace N/*1*/ {} diff --git a/pkg/fourslash/tests/gen/completionsNewTarget_test.go b/pkg/fourslash/tests/gen/completionsNewTarget_test.go index ac7579539..6ebf2ab0b 100644 --- a/pkg/fourslash/tests/gen/completionsNewTarget_test.go +++ b/pkg/fourslash/tests/gen/completionsNewTarget_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsNewTarget(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { constructor() { diff --git a/pkg/fourslash/tests/gen/completionsNonExistentImport_test.go b/pkg/fourslash/tests/gen/completionsNonExistentImport_test.go index 5ff6c194d..d3bd88806 100644 --- a/pkg/fourslash/tests/gen/completionsNonExistentImport_test.go +++ b/pkg/fourslash/tests/gen/completionsNonExistentImport_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsNonExistentImport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `import { NonExistentType } from "non-existent-module"; let foo: /**/` diff --git a/pkg/fourslash/tests/gen/completionsObjectLiteralMethod6_test.go b/pkg/fourslash/tests/gen/completionsObjectLiteralMethod6_test.go index c4a943cc1..f0a294732 100644 --- a/pkg/fourslash/tests/gen/completionsObjectLiteralMethod6_test.go +++ b/pkg/fourslash/tests/gen/completionsObjectLiteralMethod6_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsObjectLiteralMethod6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts type T = { diff --git a/pkg/fourslash/tests/gen/completionsObjectLiteralModuleExports_test.go b/pkg/fourslash/tests/gen/completionsObjectLiteralModuleExports_test.go index 2dd18e56f..9665763ed 100644 --- a/pkg/fourslash/tests/gen/completionsObjectLiteralModuleExports_test.go +++ b/pkg/fourslash/tests/gen/completionsObjectLiteralModuleExports_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsObjectLiteralModuleExports(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/completionsObjectLiteralUnionStringMappingType_test.go b/pkg/fourslash/tests/gen/completionsObjectLiteralUnionStringMappingType_test.go index ea4f5cea7..97296449e 100644 --- a/pkg/fourslash/tests/gen/completionsObjectLiteralUnionStringMappingType_test.go +++ b/pkg/fourslash/tests/gen/completionsObjectLiteralUnionStringMappingType_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsObjectLiteralUnionStringMappingType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type UnionType = { key1: string; diff --git a/pkg/fourslash/tests/gen/completionsObjectLiteralUnionTemplateLiteralType_test.go b/pkg/fourslash/tests/gen/completionsObjectLiteralUnionTemplateLiteralType_test.go index 2ba4640e1..ebe8c7eb3 100644 --- a/pkg/fourslash/tests/gen/completionsObjectLiteralUnionTemplateLiteralType_test.go +++ b/pkg/fourslash/tests/gen/completionsObjectLiteralUnionTemplateLiteralType_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsObjectLiteralUnionTemplateLiteralType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type UnionType = { key1: string; diff --git a/pkg/fourslash/tests/gen/completionsObjectLiteralWithPartialConstraint_test.go b/pkg/fourslash/tests/gen/completionsObjectLiteralWithPartialConstraint_test.go index edab06f8d..48ca66944 100644 --- a/pkg/fourslash/tests/gen/completionsObjectLiteralWithPartialConstraint_test.go +++ b/pkg/fourslash/tests/gen/completionsObjectLiteralWithPartialConstraint_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsObjectLiteralWithPartialConstraint(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface MyOptions { hello?: boolean; diff --git a/pkg/fourslash/tests/gen/completionsOptionalKindModifier_test.go b/pkg/fourslash/tests/gen/completionsOptionalKindModifier_test.go index db1c22ad9..acd1d10d7 100644 --- a/pkg/fourslash/tests/gen/completionsOptionalKindModifier_test.go +++ b/pkg/fourslash/tests/gen/completionsOptionalKindModifier_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsOptionalKindModifier(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface A { a?: number; method?(): number; }; function f(x: A) { diff --git a/pkg/fourslash/tests/gen/completionsOptionalMethod_test.go b/pkg/fourslash/tests/gen/completionsOptionalMethod_test.go index 6392ce22d..3055f0705 100644 --- a/pkg/fourslash/tests/gen/completionsOptionalMethod_test.go +++ b/pkg/fourslash/tests/gen/completionsOptionalMethod_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsOptionalMethod(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strictNullChecks: true declare const x: { m?(): void }; diff --git a/pkg/fourslash/tests/gen/completionsOverridingMethod10_test.go b/pkg/fourslash/tests/gen/completionsOverridingMethod10_test.go index 749da0fe1..4898fe9a2 100644 --- a/pkg/fourslash/tests/gen/completionsOverridingMethod10_test.go +++ b/pkg/fourslash/tests/gen/completionsOverridingMethod10_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsOverridingMethod10(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts // @newline: LF diff --git a/pkg/fourslash/tests/gen/completionsOverridingMethod11_test.go b/pkg/fourslash/tests/gen/completionsOverridingMethod11_test.go index 3bad7f3a9..5712c6671 100644 --- a/pkg/fourslash/tests/gen/completionsOverridingMethod11_test.go +++ b/pkg/fourslash/tests/gen/completionsOverridingMethod11_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsOverridingMethod11(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts // @newline: LF diff --git a/pkg/fourslash/tests/gen/completionsOverridingMethod14_test.go b/pkg/fourslash/tests/gen/completionsOverridingMethod14_test.go index c0291df74..0b369cd64 100644 --- a/pkg/fourslash/tests/gen/completionsOverridingMethod14_test.go +++ b/pkg/fourslash/tests/gen/completionsOverridingMethod14_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsOverridingMethod14(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts // @strictNullChecks: true diff --git a/pkg/fourslash/tests/gen/completionsOverridingMethod17_test.go b/pkg/fourslash/tests/gen/completionsOverridingMethod17_test.go index 14b466ae2..8dd3a1191 100644 --- a/pkg/fourslash/tests/gen/completionsOverridingMethod17_test.go +++ b/pkg/fourslash/tests/gen/completionsOverridingMethod17_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsOverridingMethod17(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts // @newline: LF diff --git a/pkg/fourslash/tests/gen/completionsOverridingMethod1_test.go b/pkg/fourslash/tests/gen/completionsOverridingMethod1_test.go index 224b11f6c..b1d9f2456 100644 --- a/pkg/fourslash/tests/gen/completionsOverridingMethod1_test.go +++ b/pkg/fourslash/tests/gen/completionsOverridingMethod1_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsOverridingMethod1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @newline: LF // @Filename: h.ts diff --git a/pkg/fourslash/tests/gen/completionsOverridingMethod3_test.go b/pkg/fourslash/tests/gen/completionsOverridingMethod3_test.go index cd18b31af..021843cad 100644 --- a/pkg/fourslash/tests/gen/completionsOverridingMethod3_test.go +++ b/pkg/fourslash/tests/gen/completionsOverridingMethod3_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsOverridingMethod3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @newline: LF // @Filename: boo.d.ts diff --git a/pkg/fourslash/tests/gen/completionsOverridingMethod4_test.go b/pkg/fourslash/tests/gen/completionsOverridingMethod4_test.go index a54a09cc7..a1feade65 100644 --- a/pkg/fourslash/tests/gen/completionsOverridingMethod4_test.go +++ b/pkg/fourslash/tests/gen/completionsOverridingMethod4_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsOverridingMethod4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @newline: LF // @Filename: secret.ts diff --git a/pkg/fourslash/tests/gen/completionsOverridingMethod9_test.go b/pkg/fourslash/tests/gen/completionsOverridingMethod9_test.go index d0c605834..6c2a6c970 100644 --- a/pkg/fourslash/tests/gen/completionsOverridingMethod9_test.go +++ b/pkg/fourslash/tests/gen/completionsOverridingMethod9_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsOverridingMethod9(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts // @newline: LF diff --git a/pkg/fourslash/tests/gen/completionsOverridingMethodCrash1_test.go b/pkg/fourslash/tests/gen/completionsOverridingMethodCrash1_test.go index fd8103bad..43888a4e2 100644 --- a/pkg/fourslash/tests/gen/completionsOverridingMethodCrash1_test.go +++ b/pkg/fourslash/tests/gen/completionsOverridingMethodCrash1_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsOverridingMethodCrash1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @newline: LF // @Filename: a.ts diff --git a/pkg/fourslash/tests/gen/completionsOverridingProperties1_test.go b/pkg/fourslash/tests/gen/completionsOverridingProperties1_test.go index 2557f827c..cc4a99f02 100644 --- a/pkg/fourslash/tests/gen/completionsOverridingProperties1_test.go +++ b/pkg/fourslash/tests/gen/completionsOverridingProperties1_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsOverridingProperties1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @newline: LF // @Filename: a.ts diff --git a/pkg/fourslash/tests/gen/completionsPathsJsonModuleWithAmd_test.go b/pkg/fourslash/tests/gen/completionsPathsJsonModuleWithAmd_test.go index a62d24875..1ee7b9e77 100644 --- a/pkg/fourslash/tests/gen/completionsPathsJsonModuleWithAmd_test.go +++ b/pkg/fourslash/tests/gen/completionsPathsJsonModuleWithAmd_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsPathsJsonModuleWithAmd(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: amd // @resolveJsonModule: true diff --git a/pkg/fourslash/tests/gen/completionsPathsJsonModuleWithoutResolveJsonModule_test.go b/pkg/fourslash/tests/gen/completionsPathsJsonModuleWithoutResolveJsonModule_test.go index dccdace31..8b8bd1c75 100644 --- a/pkg/fourslash/tests/gen/completionsPathsJsonModuleWithoutResolveJsonModule_test.go +++ b/pkg/fourslash/tests/gen/completionsPathsJsonModuleWithoutResolveJsonModule_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsPathsJsonModuleWithoutResolveJsonModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @resolveJsonModule: false // @Filename: /project/test.json diff --git a/pkg/fourslash/tests/gen/completionsPathsJsonModule_test.go b/pkg/fourslash/tests/gen/completionsPathsJsonModule_test.go index da862abd5..5fcc99b0f 100644 --- a/pkg/fourslash/tests/gen/completionsPathsJsonModule_test.go +++ b/pkg/fourslash/tests/gen/completionsPathsJsonModule_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsPathsJsonModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @moduleResolution: bundler // @resolveJsonModule: true diff --git a/pkg/fourslash/tests/gen/completionsPathsRelativeJsonModule_test.go b/pkg/fourslash/tests/gen/completionsPathsRelativeJsonModule_test.go index 0d9262ae0..e34dd2f4a 100644 --- a/pkg/fourslash/tests/gen/completionsPathsRelativeJsonModule_test.go +++ b/pkg/fourslash/tests/gen/completionsPathsRelativeJsonModule_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsPathsRelativeJsonModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @moduleResolution: bundler // @resolveJsonModule: true diff --git a/pkg/fourslash/tests/gen/completionsPaths_importType_test.go b/pkg/fourslash/tests/gen/completionsPaths_importType_test.go index 5e140d880..8921ffbae 100644 --- a/pkg/fourslash/tests/gen/completionsPaths_importType_test.go +++ b/pkg/fourslash/tests/gen/completionsPaths_importType_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsPaths_importType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @moduleResolution: bundler diff --git a/pkg/fourslash/tests/gen/completionsPaths_kinds_test.go b/pkg/fourslash/tests/gen/completionsPaths_kinds_test.go index 1c85dd76a..26590e85e 100644 --- a/pkg/fourslash/tests/gen/completionsPaths_kinds_test.go +++ b/pkg/fourslash/tests/gen/completionsPaths_kinds_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsPaths_kinds(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /src/b.ts not read diff --git a/pkg/fourslash/tests/gen/completionsPaths_pathMapping_nonTrailingWildcard1_test.go b/pkg/fourslash/tests/gen/completionsPaths_pathMapping_nonTrailingWildcard1_test.go index 42a4bb9c2..51424b697 100644 --- a/pkg/fourslash/tests/gen/completionsPaths_pathMapping_nonTrailingWildcard1_test.go +++ b/pkg/fourslash/tests/gen/completionsPaths_pathMapping_nonTrailingWildcard1_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsPaths_pathMapping_nonTrailingWildcard1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /src/b.ts export const x = 0; diff --git a/pkg/fourslash/tests/gen/completionsPaths_pathMapping_notInNestedDirectory_test.go b/pkg/fourslash/tests/gen/completionsPaths_pathMapping_notInNestedDirectory_test.go index f63611ad8..8685c1274 100644 --- a/pkg/fourslash/tests/gen/completionsPaths_pathMapping_notInNestedDirectory_test.go +++ b/pkg/fourslash/tests/gen/completionsPaths_pathMapping_notInNestedDirectory_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsPaths_pathMapping_notInNestedDirectory(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /user.ts import {} from "something//**/"; diff --git a/pkg/fourslash/tests/gen/completionsPaths_pathMapping_parentDirectory_test.go b/pkg/fourslash/tests/gen/completionsPaths_pathMapping_parentDirectory_test.go index c203be6e8..a3560fa33 100644 --- a/pkg/fourslash/tests/gen/completionsPaths_pathMapping_parentDirectory_test.go +++ b/pkg/fourslash/tests/gen/completionsPaths_pathMapping_parentDirectory_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsPaths_pathMapping_parentDirectory(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /src/a.ts import { } from "foo//**/"; diff --git a/pkg/fourslash/tests/gen/completionsPaths_pathMapping_test.go b/pkg/fourslash/tests/gen/completionsPaths_pathMapping_test.go index 211f93606..3f416fa43 100644 --- a/pkg/fourslash/tests/gen/completionsPaths_pathMapping_test.go +++ b/pkg/fourslash/tests/gen/completionsPaths_pathMapping_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsPaths_pathMapping(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /src/b.ts export const x = 0; diff --git a/pkg/fourslash/tests/gen/completionsPrivateProperties_Js_test.go b/pkg/fourslash/tests/gen/completionsPrivateProperties_Js_test.go index 3f0b44fc5..57e4b0b10 100644 --- a/pkg/fourslash/tests/gen/completionsPrivateProperties_Js_test.go +++ b/pkg/fourslash/tests/gen/completionsPrivateProperties_Js_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsPrivateProperties_Js(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.d.ts diff --git a/pkg/fourslash/tests/gen/completionsPropertiesPriorities_test.go b/pkg/fourslash/tests/gen/completionsPropertiesPriorities_test.go index 5932aea38..6d4d3206a 100644 --- a/pkg/fourslash/tests/gen/completionsPropertiesPriorities_test.go +++ b/pkg/fourslash/tests/gen/completionsPropertiesPriorities_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsPropertiesPriorities(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface I { diff --git a/pkg/fourslash/tests/gen/completionsPropertiesWithPromiseUnionType_test.go b/pkg/fourslash/tests/gen/completionsPropertiesWithPromiseUnionType_test.go index 1b300e841..6f29ab222 100644 --- a/pkg/fourslash/tests/gen/completionsPropertiesWithPromiseUnionType_test.go +++ b/pkg/fourslash/tests/gen/completionsPropertiesWithPromiseUnionType_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsPropertiesWithPromiseUnionType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true type MyType = { diff --git a/pkg/fourslash/tests/gen/completionsQuotedObjectLiteralUnion_test.go b/pkg/fourslash/tests/gen/completionsQuotedObjectLiteralUnion_test.go index 94fc194b0..b3444e9c7 100644 --- a/pkg/fourslash/tests/gen/completionsQuotedObjectLiteralUnion_test.go +++ b/pkg/fourslash/tests/gen/completionsQuotedObjectLiteralUnion_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsQuotedObjectLiteralUnion(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface A { "a-prop": string; diff --git a/pkg/fourslash/tests/gen/completionsRecommended_equals_test.go b/pkg/fourslash/tests/gen/completionsRecommended_equals_test.go index 0d3ddc5ef..72539cf18 100644 --- a/pkg/fourslash/tests/gen/completionsRecommended_equals_test.go +++ b/pkg/fourslash/tests/gen/completionsRecommended_equals_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsRecommended_equals(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum Enu {} declare const e: Enu; diff --git a/pkg/fourslash/tests/gen/completionsRecommended_namespace_test.go b/pkg/fourslash/tests/gen/completionsRecommended_namespace_test.go index 97fd90101..b8ffd1b20 100644 --- a/pkg/fourslash/tests/gen/completionsRecommended_namespace_test.go +++ b/pkg/fourslash/tests/gen/completionsRecommended_namespace_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsRecommended_namespace(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noLib: true // @Filename: /a.ts diff --git a/pkg/fourslash/tests/gen/completionsRecommended_nonAccessibleSymbol_test.go b/pkg/fourslash/tests/gen/completionsRecommended_nonAccessibleSymbol_test.go index 5bbc39c19..6aa7e2028 100644 --- a/pkg/fourslash/tests/gen/completionsRecommended_nonAccessibleSymbol_test.go +++ b/pkg/fourslash/tests/gen/completionsRecommended_nonAccessibleSymbol_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsRecommended_nonAccessibleSymbol(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f() { class C {} diff --git a/pkg/fourslash/tests/gen/completionsRecommended_switch_test.go b/pkg/fourslash/tests/gen/completionsRecommended_switch_test.go index 0ed6662de..9859c0ca5 100644 --- a/pkg/fourslash/tests/gen/completionsRecommended_switch_test.go +++ b/pkg/fourslash/tests/gen/completionsRecommended_switch_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsRecommended_switch(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum Enu {} declare const e: Enu; diff --git a/pkg/fourslash/tests/gen/completionsRecommended_union_test.go b/pkg/fourslash/tests/gen/completionsRecommended_union_test.go index 97cd947b3..f21682395 100644 --- a/pkg/fourslash/tests/gen/completionsRecommended_union_test.go +++ b/pkg/fourslash/tests/gen/completionsRecommended_union_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsRecommended_union(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strictNullChecks: true const enum E { A = "A", B = "B" } diff --git a/pkg/fourslash/tests/gen/completionsRecursiveNamespace_test.go b/pkg/fourslash/tests/gen/completionsRecursiveNamespace_test.go index 81dcf6868..f079b1f83 100644 --- a/pkg/fourslash/tests/gen/completionsRecursiveNamespace_test.go +++ b/pkg/fourslash/tests/gen/completionsRecursiveNamespace_test.go @@ -8,8 +8,8 @@ import ( ) func TestCompletionsRecursiveNamespace(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare namespace N { export import M = N; diff --git a/pkg/fourslash/tests/gen/completionsRedeclareModuleAsGlobal_test.go b/pkg/fourslash/tests/gen/completionsRedeclareModuleAsGlobal_test.go index 6543b6c11..60921263d 100644 --- a/pkg/fourslash/tests/gen/completionsRedeclareModuleAsGlobal_test.go +++ b/pkg/fourslash/tests/gen/completionsRedeclareModuleAsGlobal_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsRedeclareModuleAsGlobal(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @esModuleInterop: true, // @target: esnext diff --git a/pkg/fourslash/tests/gen/completionsSelfDeclaring2_test.go b/pkg/fourslash/tests/gen/completionsSelfDeclaring2_test.go index b426077d4..43e91826d 100644 --- a/pkg/fourslash/tests/gen/completionsSelfDeclaring2_test.go +++ b/pkg/fourslash/tests/gen/completionsSelfDeclaring2_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsSelfDeclaring2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f1(x: T) {} f1({ abc/*1*/ }); diff --git a/pkg/fourslash/tests/gen/completionsSelfDeclaring3_test.go b/pkg/fourslash/tests/gen/completionsSelfDeclaring3_test.go index cd4fdd4cd..ca8fe5f54 100644 --- a/pkg/fourslash/tests/gen/completionsSelfDeclaring3_test.go +++ b/pkg/fourslash/tests/gen/completionsSelfDeclaring3_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsSelfDeclaring3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f(p: T & (T extends { hello: string } ? { goodbye: number } : {})) {} f({ x/*x*/: 0, hello/*hello*/: "", goodbye/*goodbye*/: 0, abc/*abc*/: "" })` diff --git a/pkg/fourslash/tests/gen/completionsStringLiteral_fromTypeConstraint_test.go b/pkg/fourslash/tests/gen/completionsStringLiteral_fromTypeConstraint_test.go index b734f8e88..3b9a36a55 100644 --- a/pkg/fourslash/tests/gen/completionsStringLiteral_fromTypeConstraint_test.go +++ b/pkg/fourslash/tests/gen/completionsStringLiteral_fromTypeConstraint_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsStringLiteral_fromTypeConstraint(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { foo: string; bar: string; } type T = Pick;` diff --git a/pkg/fourslash/tests/gen/completionsStringsWithTriggerCharacter_test.go b/pkg/fourslash/tests/gen/completionsStringsWithTriggerCharacter_test.go index ea0f72488..7eaf62095 100644 --- a/pkg/fourslash/tests/gen/completionsStringsWithTriggerCharacter_test.go +++ b/pkg/fourslash/tests/gen/completionsStringsWithTriggerCharacter_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsStringsWithTriggerCharacter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type A = "a/b" | "b/a"; const a: A = "[|a/*1*/|]"; diff --git a/pkg/fourslash/tests/gen/completionsSymbolMembers_test.go b/pkg/fourslash/tests/gen/completionsSymbolMembers_test.go index 82b6d5021..cfaba30c9 100644 --- a/pkg/fourslash/tests/gen/completionsSymbolMembers_test.go +++ b/pkg/fourslash/tests/gen/completionsSymbolMembers_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsSymbolMembers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const Symbol: (s: string) => symbol; const s = Symbol("s"); diff --git a/pkg/fourslash/tests/gen/completionsTriggerCharacter_test.go b/pkg/fourslash/tests/gen/completionsTriggerCharacter_test.go index c8165177b..df77e281c 100644 --- a/pkg/fourslash/tests/gen/completionsTriggerCharacter_test.go +++ b/pkg/fourslash/tests/gen/completionsTriggerCharacter_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsTriggerCharacter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @jsx: preserve /** @/*tag*/ */ diff --git a/pkg/fourslash/tests/gen/completionsTuple_test.go b/pkg/fourslash/tests/gen/completionsTuple_test.go index df6fb0cab..08d23d66f 100644 --- a/pkg/fourslash/tests/gen/completionsTuple_test.go +++ b/pkg/fourslash/tests/gen/completionsTuple_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsTuple(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const x: [number, number]; x[|./**/|];` diff --git a/pkg/fourslash/tests/gen/completionsTypeAssertionKeywords_test.go b/pkg/fourslash/tests/gen/completionsTypeAssertionKeywords_test.go index 574d98b50..44ed3cae4 100644 --- a/pkg/fourslash/tests/gen/completionsTypeAssertionKeywords_test.go +++ b/pkg/fourslash/tests/gen/completionsTypeAssertionKeywords_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsTypeAssertionKeywords(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const a = { b: 42 as /*0*/ diff --git a/pkg/fourslash/tests/gen/completionsTypeKeywords_test.go b/pkg/fourslash/tests/gen/completionsTypeKeywords_test.go index 16ca74e91..9c8e3fe6e 100644 --- a/pkg/fourslash/tests/gen/completionsTypeKeywords_test.go +++ b/pkg/fourslash/tests/gen/completionsTypeKeywords_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsTypeKeywords(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noLib: true type T = /**/` diff --git a/pkg/fourslash/tests/gen/completionsTypeOnlyNamespace_test.go b/pkg/fourslash/tests/gen/completionsTypeOnlyNamespace_test.go index 90a10b7f2..efa351c91 100644 --- a/pkg/fourslash/tests/gen/completionsTypeOnlyNamespace_test.go +++ b/pkg/fourslash/tests/gen/completionsTypeOnlyNamespace_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsTypeOnlyNamespace(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export namespace ns { diff --git a/pkg/fourslash/tests/gen/completionsUnionStringLiteralProperty_test.go b/pkg/fourslash/tests/gen/completionsUnionStringLiteralProperty_test.go index f426a3fd9..c1fd8fd2c 100644 --- a/pkg/fourslash/tests/gen/completionsUnionStringLiteralProperty_test.go +++ b/pkg/fourslash/tests/gen/completionsUnionStringLiteralProperty_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsUnionStringLiteralProperty(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type Foo = { a: 0, b: 'x' } | { a: 0, b: 'y' } | { a: 1, b: 'z' }; const foo: Foo = { a: 0, b: '/*1*/' } diff --git a/pkg/fourslash/tests/gen/completionsUnion_test.go b/pkg/fourslash/tests/gen/completionsUnion_test.go index 976264de4..54745dc53 100644 --- a/pkg/fourslash/tests/gen/completionsUnion_test.go +++ b/pkg/fourslash/tests/gen/completionsUnion_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsUnion(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { x: number; } interface Many extends ReadonlyArray { extra: number; } diff --git a/pkg/fourslash/tests/gen/completionsUniqueSymbol1_test.go b/pkg/fourslash/tests/gen/completionsUniqueSymbol1_test.go index e07364506..2d5e4acd2 100644 --- a/pkg/fourslash/tests/gen/completionsUniqueSymbol1_test.go +++ b/pkg/fourslash/tests/gen/completionsUniqueSymbol1_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsUniqueSymbol1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const Symbol: () => symbol; namespace M { diff --git a/pkg/fourslash/tests/gen/completionsUniqueSymbol_import_test.go b/pkg/fourslash/tests/gen/completionsUniqueSymbol_import_test.go index f27e6cce7..43e0b0f6f 100644 --- a/pkg/fourslash/tests/gen/completionsUniqueSymbol_import_test.go +++ b/pkg/fourslash/tests/gen/completionsUniqueSymbol_import_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsUniqueSymbol_import(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noLib: true // @Filename: /globals.d.ts diff --git a/pkg/fourslash/tests/gen/completionsWithDeprecatedTag10_test.go b/pkg/fourslash/tests/gen/completionsWithDeprecatedTag10_test.go index f64de53ec..8948a1454 100644 --- a/pkg/fourslash/tests/gen/completionsWithDeprecatedTag10_test.go +++ b/pkg/fourslash/tests/gen/completionsWithDeprecatedTag10_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsWithDeprecatedTag10(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /foo.ts /** @deprecated foo */ diff --git a/pkg/fourslash/tests/gen/completionsWithDeprecatedTag1_test.go b/pkg/fourslash/tests/gen/completionsWithDeprecatedTag1_test.go index 1f0017c7e..52deefef3 100644 --- a/pkg/fourslash/tests/gen/completionsWithDeprecatedTag1_test.go +++ b/pkg/fourslash/tests/gen/completionsWithDeprecatedTag1_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsWithDeprecatedTag1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @filename: /foobar.ts diff --git a/pkg/fourslash/tests/gen/completionsWithDeprecatedTag2_test.go b/pkg/fourslash/tests/gen/completionsWithDeprecatedTag2_test.go index 22aff5a63..ee99cb093 100644 --- a/pkg/fourslash/tests/gen/completionsWithDeprecatedTag2_test.go +++ b/pkg/fourslash/tests/gen/completionsWithDeprecatedTag2_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsWithDeprecatedTag2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** @deprecated foo */ declare function foo(); diff --git a/pkg/fourslash/tests/gen/completionsWithDeprecatedTag3_test.go b/pkg/fourslash/tests/gen/completionsWithDeprecatedTag3_test.go index 9ab513e51..83a641a0e 100644 --- a/pkg/fourslash/tests/gen/completionsWithDeprecatedTag3_test.go +++ b/pkg/fourslash/tests/gen/completionsWithDeprecatedTag3_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsWithDeprecatedTag3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** @deprecated foo */ declare function foo(); diff --git a/pkg/fourslash/tests/gen/completionsWithDeprecatedTag5_test.go b/pkg/fourslash/tests/gen/completionsWithDeprecatedTag5_test.go index 68e1976a7..808830ec5 100644 --- a/pkg/fourslash/tests/gen/completionsWithDeprecatedTag5_test.go +++ b/pkg/fourslash/tests/gen/completionsWithDeprecatedTag5_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsWithDeprecatedTag5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { /** @deprecated m */ diff --git a/pkg/fourslash/tests/gen/completionsWithDeprecatedTag6_test.go b/pkg/fourslash/tests/gen/completionsWithDeprecatedTag6_test.go index f6b37feb9..77cfda036 100644 --- a/pkg/fourslash/tests/gen/completionsWithDeprecatedTag6_test.go +++ b/pkg/fourslash/tests/gen/completionsWithDeprecatedTag6_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsWithDeprecatedTag6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module Foo { /** @deprecated foo */ diff --git a/pkg/fourslash/tests/gen/completionsWithDeprecatedTag7_test.go b/pkg/fourslash/tests/gen/completionsWithDeprecatedTag7_test.go index 69db8c937..d695ac2aa 100644 --- a/pkg/fourslash/tests/gen/completionsWithDeprecatedTag7_test.go +++ b/pkg/fourslash/tests/gen/completionsWithDeprecatedTag7_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsWithDeprecatedTag7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface I { diff --git a/pkg/fourslash/tests/gen/completionsWithGenericStringLiteral_test.go b/pkg/fourslash/tests/gen/completionsWithGenericStringLiteral_test.go index 02bfac465..f231b2d7d 100644 --- a/pkg/fourslash/tests/gen/completionsWithGenericStringLiteral_test.go +++ b/pkg/fourslash/tests/gen/completionsWithGenericStringLiteral_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsWithGenericStringLiteral(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true declare function get(obj: T, key: K): T[K]; diff --git a/pkg/fourslash/tests/gen/completionsWithOptionalPropertiesGenericConstructor_test.go b/pkg/fourslash/tests/gen/completionsWithOptionalPropertiesGenericConstructor_test.go index 7524605dd..71d9ce67b 100644 --- a/pkg/fourslash/tests/gen/completionsWithOptionalPropertiesGenericConstructor_test.go +++ b/pkg/fourslash/tests/gen/completionsWithOptionalPropertiesGenericConstructor_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsWithOptionalPropertiesGenericConstructor(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface Options { diff --git a/pkg/fourslash/tests/gen/completionsWithOptionalPropertiesGenericDeep_test.go b/pkg/fourslash/tests/gen/completionsWithOptionalPropertiesGenericDeep_test.go index 9a1f5d281..b6a47a7b3 100644 --- a/pkg/fourslash/tests/gen/completionsWithOptionalPropertiesGenericDeep_test.go +++ b/pkg/fourslash/tests/gen/completionsWithOptionalPropertiesGenericDeep_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsWithOptionalPropertiesGenericDeep(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface DeepOptions { diff --git a/pkg/fourslash/tests/gen/completionsWithOptionalPropertiesGenericPartial2_test.go b/pkg/fourslash/tests/gen/completionsWithOptionalPropertiesGenericPartial2_test.go index ed0275794..223459ab7 100644 --- a/pkg/fourslash/tests/gen/completionsWithOptionalPropertiesGenericPartial2_test.go +++ b/pkg/fourslash/tests/gen/completionsWithOptionalPropertiesGenericPartial2_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsWithOptionalPropertiesGenericPartial2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface Foo { diff --git a/pkg/fourslash/tests/gen/completionsWithOptionalPropertiesGenericPartial3_test.go b/pkg/fourslash/tests/gen/completionsWithOptionalPropertiesGenericPartial3_test.go index 6ee14b81d..9544250fe 100644 --- a/pkg/fourslash/tests/gen/completionsWithOptionalPropertiesGenericPartial3_test.go +++ b/pkg/fourslash/tests/gen/completionsWithOptionalPropertiesGenericPartial3_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsWithOptionalPropertiesGenericPartial3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface Foo { diff --git a/pkg/fourslash/tests/gen/completionsWithOptionalPropertiesGenericPartial_test.go b/pkg/fourslash/tests/gen/completionsWithOptionalPropertiesGenericPartial_test.go index 53d9f2656..e754e9709 100644 --- a/pkg/fourslash/tests/gen/completionsWithOptionalPropertiesGenericPartial_test.go +++ b/pkg/fourslash/tests/gen/completionsWithOptionalPropertiesGenericPartial_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsWithOptionalPropertiesGenericPartial(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface Foo { diff --git a/pkg/fourslash/tests/gen/completionsWithOptionalPropertiesGenericValidBoolean_test.go b/pkg/fourslash/tests/gen/completionsWithOptionalPropertiesGenericValidBoolean_test.go index 94fd60476..e7a39f1bb 100644 --- a/pkg/fourslash/tests/gen/completionsWithOptionalPropertiesGenericValidBoolean_test.go +++ b/pkg/fourslash/tests/gen/completionsWithOptionalPropertiesGenericValidBoolean_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsWithOptionalPropertiesGenericValidBoolean(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface MyOptions { diff --git a/pkg/fourslash/tests/gen/completionsWithOptionalPropertiesGeneric_test.go b/pkg/fourslash/tests/gen/completionsWithOptionalPropertiesGeneric_test.go index 6c12524da..c3b0feae0 100644 --- a/pkg/fourslash/tests/gen/completionsWithOptionalPropertiesGeneric_test.go +++ b/pkg/fourslash/tests/gen/completionsWithOptionalPropertiesGeneric_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsWithOptionalPropertiesGeneric(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface MyOptions { diff --git a/pkg/fourslash/tests/gen/completionsWithOptionalProperties_test.go b/pkg/fourslash/tests/gen/completionsWithOptionalProperties_test.go index d434072de..0a14bce20 100644 --- a/pkg/fourslash/tests/gen/completionsWithOptionalProperties_test.go +++ b/pkg/fourslash/tests/gen/completionsWithOptionalProperties_test.go @@ -11,8 +11,8 @@ import ( ) func TestCompletionsWithOptionalProperties(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface Options { diff --git a/pkg/fourslash/tests/gen/completionsWithOverride1_test.go b/pkg/fourslash/tests/gen/completionsWithOverride1_test.go index 600a19eef..968951230 100644 --- a/pkg/fourslash/tests/gen/completionsWithOverride1_test.go +++ b/pkg/fourslash/tests/gen/completionsWithOverride1_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsWithOverride1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A { foo () {} diff --git a/pkg/fourslash/tests/gen/completionsWithOverride2_test.go b/pkg/fourslash/tests/gen/completionsWithOverride2_test.go index 14e29b9ca..73b0d07d8 100644 --- a/pkg/fourslash/tests/gen/completionsWithOverride2_test.go +++ b/pkg/fourslash/tests/gen/completionsWithOverride2_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsWithOverride2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { baz () {} diff --git a/pkg/fourslash/tests/gen/completionsWithStringReplacementMode1_test.go b/pkg/fourslash/tests/gen/completionsWithStringReplacementMode1_test.go index ba68f6288..6748254ca 100644 --- a/pkg/fourslash/tests/gen/completionsWithStringReplacementMode1_test.go +++ b/pkg/fourslash/tests/gen/completionsWithStringReplacementMode1_test.go @@ -10,8 +10,8 @@ import ( ) func TestCompletionsWithStringReplacementMode1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface TFunction { (_: 'login.title', __?: {}): string; diff --git a/pkg/fourslash/tests/gen/completionsWrappedClass_test.go b/pkg/fourslash/tests/gen/completionsWrappedClass_test.go index a5d86eaf6..ca82bf55c 100644 --- a/pkg/fourslash/tests/gen/completionsWrappedClass_test.go +++ b/pkg/fourslash/tests/gen/completionsWrappedClass_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsWrappedClass(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Client { private close() { } diff --git a/pkg/fourslash/tests/gen/completionsWritingSpreadArgument_test.go b/pkg/fourslash/tests/gen/completionsWritingSpreadArgument_test.go index c355c842e..d34067b9e 100644 --- a/pkg/fourslash/tests/gen/completionsWritingSpreadArgument_test.go +++ b/pkg/fourslash/tests/gen/completionsWritingSpreadArgument_test.go @@ -9,8 +9,8 @@ import ( ) func TestCompletionsWritingSpreadArgument(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = ` const [] = [Math.min(./*marker*/)] diff --git a/pkg/fourslash/tests/gen/consistentContextualTypeErrorsAfterEdits_test.go b/pkg/fourslash/tests/gen/consistentContextualTypeErrorsAfterEdits_test.go index 5bf7da919..d9af4858d 100644 --- a/pkg/fourslash/tests/gen/consistentContextualTypeErrorsAfterEdits_test.go +++ b/pkg/fourslash/tests/gen/consistentContextualTypeErrorsAfterEdits_test.go @@ -8,8 +8,8 @@ import ( ) func TestConsistentContextualTypeErrorsAfterEdits(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A { foo: string; diff --git a/pkg/fourslash/tests/gen/constEnumQuickInfoAndCompletionList_test.go b/pkg/fourslash/tests/gen/constEnumQuickInfoAndCompletionList_test.go index afd67ddd5..84edcd2cb 100644 --- a/pkg/fourslash/tests/gen/constEnumQuickInfoAndCompletionList_test.go +++ b/pkg/fourslash/tests/gen/constEnumQuickInfoAndCompletionList_test.go @@ -10,8 +10,8 @@ import ( ) func TestConstEnumQuickInfoAndCompletionList(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const enum /*1*/e { a, diff --git a/pkg/fourslash/tests/gen/constQuickInfoAndCompletionList_test.go b/pkg/fourslash/tests/gen/constQuickInfoAndCompletionList_test.go index 969d2238b..b2800ab5a 100644 --- a/pkg/fourslash/tests/gen/constQuickInfoAndCompletionList_test.go +++ b/pkg/fourslash/tests/gen/constQuickInfoAndCompletionList_test.go @@ -10,8 +10,8 @@ import ( ) func TestConstQuickInfoAndCompletionList(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const /*1*/a = 10; var x = /*2*/a; diff --git a/pkg/fourslash/tests/gen/constructorBraceFormatting_test.go b/pkg/fourslash/tests/gen/constructorBraceFormatting_test.go index e0fa77166..97df482be 100644 --- a/pkg/fourslash/tests/gen/constructorBraceFormatting_test.go +++ b/pkg/fourslash/tests/gen/constructorBraceFormatting_test.go @@ -8,8 +8,8 @@ import ( ) func TestConstructorBraceFormatting(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class X { constructor () {}/*target*/ diff --git a/pkg/fourslash/tests/gen/constructorFindAllReferences1_test.go b/pkg/fourslash/tests/gen/constructorFindAllReferences1_test.go index cf6f89184..9b0b3178d 100644 --- a/pkg/fourslash/tests/gen/constructorFindAllReferences1_test.go +++ b/pkg/fourslash/tests/gen/constructorFindAllReferences1_test.go @@ -8,8 +8,8 @@ import ( ) func TestConstructorFindAllReferences1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export class C { /**/public constructor() { } diff --git a/pkg/fourslash/tests/gen/constructorFindAllReferences2_test.go b/pkg/fourslash/tests/gen/constructorFindAllReferences2_test.go index 7d04ab9cc..69c24ebac 100644 --- a/pkg/fourslash/tests/gen/constructorFindAllReferences2_test.go +++ b/pkg/fourslash/tests/gen/constructorFindAllReferences2_test.go @@ -8,8 +8,8 @@ import ( ) func TestConstructorFindAllReferences2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export class C { /**/private constructor() { } diff --git a/pkg/fourslash/tests/gen/constructorFindAllReferences3_test.go b/pkg/fourslash/tests/gen/constructorFindAllReferences3_test.go index ceab6b282..9f72f78db 100644 --- a/pkg/fourslash/tests/gen/constructorFindAllReferences3_test.go +++ b/pkg/fourslash/tests/gen/constructorFindAllReferences3_test.go @@ -8,8 +8,8 @@ import ( ) func TestConstructorFindAllReferences3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export class C { /**/constructor() { } diff --git a/pkg/fourslash/tests/gen/constructorFindAllReferences4_test.go b/pkg/fourslash/tests/gen/constructorFindAllReferences4_test.go index a0e375a88..0bcb653a6 100644 --- a/pkg/fourslash/tests/gen/constructorFindAllReferences4_test.go +++ b/pkg/fourslash/tests/gen/constructorFindAllReferences4_test.go @@ -8,8 +8,8 @@ import ( ) func TestConstructorFindAllReferences4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export class C { /**/protected constructor() { } diff --git a/pkg/fourslash/tests/gen/constructorQuickInfo_test.go b/pkg/fourslash/tests/gen/constructorQuickInfo_test.go index 348370b36..576cdb7df 100644 --- a/pkg/fourslash/tests/gen/constructorQuickInfo_test.go +++ b/pkg/fourslash/tests/gen/constructorQuickInfo_test.go @@ -8,8 +8,8 @@ import ( ) func TestConstructorQuickInfo(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class SS{} diff --git a/pkg/fourslash/tests/gen/contextualTypingFromTypeAssertion1_test.go b/pkg/fourslash/tests/gen/contextualTypingFromTypeAssertion1_test.go index 76070d87f..4e3ab2428 100644 --- a/pkg/fourslash/tests/gen/contextualTypingFromTypeAssertion1_test.go +++ b/pkg/fourslash/tests/gen/contextualTypingFromTypeAssertion1_test.go @@ -8,8 +8,8 @@ import ( ) func TestContextualTypingFromTypeAssertion1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var f3 = <(x: string) => string> function (/**/x) { return x.toLowerCase(); };` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/contextualTypingGenericFunction1_test.go b/pkg/fourslash/tests/gen/contextualTypingGenericFunction1_test.go index 8fb98faec..4cabadf58 100644 --- a/pkg/fourslash/tests/gen/contextualTypingGenericFunction1_test.go +++ b/pkg/fourslash/tests/gen/contextualTypingGenericFunction1_test.go @@ -8,8 +8,8 @@ import ( ) func TestContextualTypingGenericFunction1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var obj: { f(x: T): T } = { f: (/*1*/x) => x }; var obj2: (x: T) => T = (/*2*/x) => x; diff --git a/pkg/fourslash/tests/gen/contextualTypingOfGenericCallSignatures1_test.go b/pkg/fourslash/tests/gen/contextualTypingOfGenericCallSignatures1_test.go index e39306cfd..bae15a28d 100644 --- a/pkg/fourslash/tests/gen/contextualTypingOfGenericCallSignatures1_test.go +++ b/pkg/fourslash/tests/gen/contextualTypingOfGenericCallSignatures1_test.go @@ -8,8 +8,8 @@ import ( ) func TestContextualTypingOfGenericCallSignatures1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var f24: { (x: T): U diff --git a/pkg/fourslash/tests/gen/contextualTypingOfGenericCallSignatures2_test.go b/pkg/fourslash/tests/gen/contextualTypingOfGenericCallSignatures2_test.go index ad9d3a3c5..c5a52ab94 100644 --- a/pkg/fourslash/tests/gen/contextualTypingOfGenericCallSignatures2_test.go +++ b/pkg/fourslash/tests/gen/contextualTypingOfGenericCallSignatures2_test.go @@ -8,8 +8,8 @@ import ( ) func TestContextualTypingOfGenericCallSignatures2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { (x: T): void diff --git a/pkg/fourslash/tests/gen/contextualTypingReturnExpressions_test.go b/pkg/fourslash/tests/gen/contextualTypingReturnExpressions_test.go index 06f6b643b..4fbc3fde8 100644 --- a/pkg/fourslash/tests/gen/contextualTypingReturnExpressions_test.go +++ b/pkg/fourslash/tests/gen/contextualTypingReturnExpressions_test.go @@ -8,8 +8,8 @@ import ( ) func TestContextualTypingReturnExpressions(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface A { } var f44: (x: A) => (y: A) => A = /*1*/x => /*2*/y => /*3*/x;` diff --git a/pkg/fourslash/tests/gen/contextuallyTypedFunctionExpressionGeneric1_test.go b/pkg/fourslash/tests/gen/contextuallyTypedFunctionExpressionGeneric1_test.go index 89902e60c..0f809a8f9 100644 --- a/pkg/fourslash/tests/gen/contextuallyTypedFunctionExpressionGeneric1_test.go +++ b/pkg/fourslash/tests/gen/contextuallyTypedFunctionExpressionGeneric1_test.go @@ -8,8 +8,8 @@ import ( ) func TestContextuallyTypedFunctionExpressionGeneric1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Comparable { compareTo(other: T): T; diff --git a/pkg/fourslash/tests/gen/contextuallyTypedObjectLiteralMethodDeclarationParam01_test.go b/pkg/fourslash/tests/gen/contextuallyTypedObjectLiteralMethodDeclarationParam01_test.go index 22ab42b12..752921340 100644 --- a/pkg/fourslash/tests/gen/contextuallyTypedObjectLiteralMethodDeclarationParam01_test.go +++ b/pkg/fourslash/tests/gen/contextuallyTypedObjectLiteralMethodDeclarationParam01_test.go @@ -8,8 +8,8 @@ import ( ) func TestContextuallyTypedObjectLiteralMethodDeclarationParam01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noImplicitAny: true interface A { diff --git a/pkg/fourslash/tests/gen/contextuallyTypedParameters_test.go b/pkg/fourslash/tests/gen/contextuallyTypedParameters_test.go index bb8702a08..316964569 100644 --- a/pkg/fourslash/tests/gen/contextuallyTypedParameters_test.go +++ b/pkg/fourslash/tests/gen/contextuallyTypedParameters_test.go @@ -8,8 +8,8 @@ import ( ) func TestContextuallyTypedParameters(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function foo(cb: (this: any, x: number, y: string, z: boolean) => void): void; diff --git a/pkg/fourslash/tests/gen/correuptedTryExpressionsDontCrashGettingOutlineSpans_test.go b/pkg/fourslash/tests/gen/correuptedTryExpressionsDontCrashGettingOutlineSpans_test.go index 0f86471f0..aabbe6c33 100644 --- a/pkg/fourslash/tests/gen/correuptedTryExpressionsDontCrashGettingOutlineSpans_test.go +++ b/pkg/fourslash/tests/gen/correuptedTryExpressionsDontCrashGettingOutlineSpans_test.go @@ -8,8 +8,8 @@ import ( ) func TestCorreuptedTryExpressionsDontCrashGettingOutlineSpans(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `try[| { var x = [ diff --git a/pkg/fourslash/tests/gen/crossFileQuickInfoExportedTypeDoesNotUseImportType_test.go b/pkg/fourslash/tests/gen/crossFileQuickInfoExportedTypeDoesNotUseImportType_test.go index 53a2c457d..741f2a509 100644 --- a/pkg/fourslash/tests/gen/crossFileQuickInfoExportedTypeDoesNotUseImportType_test.go +++ b/pkg/fourslash/tests/gen/crossFileQuickInfoExportedTypeDoesNotUseImportType_test.go @@ -8,8 +8,8 @@ import ( ) func TestCrossFileQuickInfoExportedTypeDoesNotUseImportType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: b.ts export interface B {} diff --git a/pkg/fourslash/tests/gen/declarationMapGoToDefinition_test.go b/pkg/fourslash/tests/gen/declarationMapGoToDefinition_test.go index 55f9693ba..ef1e91def 100644 --- a/pkg/fourslash/tests/gen/declarationMapGoToDefinition_test.go +++ b/pkg/fourslash/tests/gen/declarationMapGoToDefinition_test.go @@ -8,8 +8,8 @@ import ( ) func TestDeclarationMapGoToDefinition(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: index.ts export class Foo { diff --git a/pkg/fourslash/tests/gen/declarationMapsGoToDefinitionRelativeSourceRoot_test.go b/pkg/fourslash/tests/gen/declarationMapsGoToDefinitionRelativeSourceRoot_test.go index 2a99565fa..d271e7f21 100644 --- a/pkg/fourslash/tests/gen/declarationMapsGoToDefinitionRelativeSourceRoot_test.go +++ b/pkg/fourslash/tests/gen/declarationMapsGoToDefinitionRelativeSourceRoot_test.go @@ -8,8 +8,8 @@ import ( ) func TestDeclarationMapsGoToDefinitionRelativeSourceRoot(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: index.ts export class Foo { diff --git a/pkg/fourslash/tests/gen/declarationMapsGoToDefinitionSameNameDifferentDirectory_test.go b/pkg/fourslash/tests/gen/declarationMapsGoToDefinitionSameNameDifferentDirectory_test.go index 80787b36f..dfe401765 100644 --- a/pkg/fourslash/tests/gen/declarationMapsGoToDefinitionSameNameDifferentDirectory_test.go +++ b/pkg/fourslash/tests/gen/declarationMapsGoToDefinitionSameNameDifferentDirectory_test.go @@ -8,8 +8,8 @@ import ( ) func TestDeclarationMapsGoToDefinitionSameNameDifferentDirectory(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: BaseClass/Source.d.ts declare class Control { diff --git a/pkg/fourslash/tests/gen/declarationMapsOutOfDateMapping_test.go b/pkg/fourslash/tests/gen/declarationMapsOutOfDateMapping_test.go index b8a27f8ea..bc4570eba 100644 --- a/pkg/fourslash/tests/gen/declarationMapsOutOfDateMapping_test.go +++ b/pkg/fourslash/tests/gen/declarationMapsOutOfDateMapping_test.go @@ -8,8 +8,8 @@ import ( ) func TestDeclarationMapsOutOfDateMapping(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/node_modules/a/dist/index.d.ts export declare class Foo { diff --git a/pkg/fourslash/tests/gen/declareFunction_test.go b/pkg/fourslash/tests/gen/declareFunction_test.go index 7d76d8dcc..e54b301ae 100644 --- a/pkg/fourslash/tests/gen/declareFunction_test.go +++ b/pkg/fourslash/tests/gen/declareFunction_test.go @@ -10,8 +10,8 @@ import ( ) func TestDeclareFunction(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: index.ts declare function` diff --git a/pkg/fourslash/tests/gen/deduplicateDuplicateMergedBindCheckErrors_test.go b/pkg/fourslash/tests/gen/deduplicateDuplicateMergedBindCheckErrors_test.go index 269afe857..73b600b17 100644 --- a/pkg/fourslash/tests/gen/deduplicateDuplicateMergedBindCheckErrors_test.go +++ b/pkg/fourslash/tests/gen/deduplicateDuplicateMergedBindCheckErrors_test.go @@ -8,8 +8,8 @@ import ( ) func TestDeduplicateDuplicateMergedBindCheckErrors(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class X { foo() { diff --git a/pkg/fourslash/tests/gen/defaultParamsAndContextualTypes_test.go b/pkg/fourslash/tests/gen/defaultParamsAndContextualTypes_test.go index f180cec7b..c0228a947 100644 --- a/pkg/fourslash/tests/gen/defaultParamsAndContextualTypes_test.go +++ b/pkg/fourslash/tests/gen/defaultParamsAndContextualTypes_test.go @@ -8,8 +8,8 @@ import ( ) func TestDefaultParamsAndContextualTypes(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface FooOptions { text?: string; diff --git a/pkg/fourslash/tests/gen/definition01_test.go b/pkg/fourslash/tests/gen/definition01_test.go index ba44b5bec..bac5a95d3 100644 --- a/pkg/fourslash/tests/gen/definition01_test.go +++ b/pkg/fourslash/tests/gen/definition01_test.go @@ -8,8 +8,8 @@ import ( ) func TestDefinition01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: b.ts import n = require([|'./a/*1*/'|]); diff --git a/pkg/fourslash/tests/gen/definitionNameOnEnumMember_test.go b/pkg/fourslash/tests/gen/definitionNameOnEnumMember_test.go index 829ba5738..eed2f40d7 100644 --- a/pkg/fourslash/tests/gen/definitionNameOnEnumMember_test.go +++ b/pkg/fourslash/tests/gen/definitionNameOnEnumMember_test.go @@ -8,8 +8,8 @@ import ( ) func TestDefinitionNameOnEnumMember(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum e { firstMember, diff --git a/pkg/fourslash/tests/gen/definition_test.go b/pkg/fourslash/tests/gen/definition_test.go index fe97c0ab2..6a6ecc794 100644 --- a/pkg/fourslash/tests/gen/definition_test.go +++ b/pkg/fourslash/tests/gen/definition_test.go @@ -8,8 +8,8 @@ import ( ) func TestDefinition(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: b.ts import n = require([|'./a/*1*/'|]); diff --git a/pkg/fourslash/tests/gen/deleteClassWithEnumPresent_test.go b/pkg/fourslash/tests/gen/deleteClassWithEnumPresent_test.go index d74131be3..8e522b707 100644 --- a/pkg/fourslash/tests/gen/deleteClassWithEnumPresent_test.go +++ b/pkg/fourslash/tests/gen/deleteClassWithEnumPresent_test.go @@ -8,8 +8,8 @@ import ( ) func TestDeleteClassWithEnumPresent(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum Foo { a, b, c } /**/class Bar { }` diff --git a/pkg/fourslash/tests/gen/deleteExtensionInReopenedInterface_test.go b/pkg/fourslash/tests/gen/deleteExtensionInReopenedInterface_test.go index 6bb1494dc..1596c8f4c 100644 --- a/pkg/fourslash/tests/gen/deleteExtensionInReopenedInterface_test.go +++ b/pkg/fourslash/tests/gen/deleteExtensionInReopenedInterface_test.go @@ -8,8 +8,8 @@ import ( ) func TestDeleteExtensionInReopenedInterface(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface A { a: number; } interface B { b: number; } diff --git a/pkg/fourslash/tests/gen/deleteModifierBeforeVarStatement1_test.go b/pkg/fourslash/tests/gen/deleteModifierBeforeVarStatement1_test.go index bcdae37f2..33d055085 100644 --- a/pkg/fourslash/tests/gen/deleteModifierBeforeVarStatement1_test.go +++ b/pkg/fourslash/tests/gen/deleteModifierBeforeVarStatement1_test.go @@ -8,8 +8,8 @@ import ( ) func TestDeleteModifierBeforeVarStatement1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = ` diff --git a/pkg/fourslash/tests/gen/deleteTypeParameter_test.go b/pkg/fourslash/tests/gen/deleteTypeParameter_test.go index 481d41367..b4a237c79 100644 --- a/pkg/fourslash/tests/gen/deleteTypeParameter_test.go +++ b/pkg/fourslash/tests/gen/deleteTypeParameter_test.go @@ -8,8 +8,8 @@ import ( ) func TestDeleteTypeParameter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Query { groupBy(): Query; diff --git a/pkg/fourslash/tests/gen/deprecatedInheritedJSDocOverload_test.go b/pkg/fourslash/tests/gen/deprecatedInheritedJSDocOverload_test.go index a5762093c..75fedefa4 100644 --- a/pkg/fourslash/tests/gen/deprecatedInheritedJSDocOverload_test.go +++ b/pkg/fourslash/tests/gen/deprecatedInheritedJSDocOverload_test.go @@ -8,8 +8,8 @@ import ( ) func TestDeprecatedInheritedJSDocOverload(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface PartialObserver {} interface Subscription {} diff --git a/pkg/fourslash/tests/gen/derivedTypeIndexerWithGenericConstraints_test.go b/pkg/fourslash/tests/gen/derivedTypeIndexerWithGenericConstraints_test.go index ad4e71f21..09c6af890 100644 --- a/pkg/fourslash/tests/gen/derivedTypeIndexerWithGenericConstraints_test.go +++ b/pkg/fourslash/tests/gen/derivedTypeIndexerWithGenericConstraints_test.go @@ -8,8 +8,8 @@ import ( ) func TestDerivedTypeIndexerWithGenericConstraints(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class CollectionItem { x: number; diff --git a/pkg/fourslash/tests/gen/documentHighlightAtInheritedProperties1_test.go b/pkg/fourslash/tests/gen/documentHighlightAtInheritedProperties1_test.go index 317161de9..237f22b3e 100644 --- a/pkg/fourslash/tests/gen/documentHighlightAtInheritedProperties1_test.go +++ b/pkg/fourslash/tests/gen/documentHighlightAtInheritedProperties1_test.go @@ -9,8 +9,8 @@ import ( ) func TestDocumentHighlightAtInheritedProperties1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: file1.ts interface interface1 extends interface1 { diff --git a/pkg/fourslash/tests/gen/documentHighlightAtInheritedProperties2_test.go b/pkg/fourslash/tests/gen/documentHighlightAtInheritedProperties2_test.go index b1f18e58e..c36fea597 100644 --- a/pkg/fourslash/tests/gen/documentHighlightAtInheritedProperties2_test.go +++ b/pkg/fourslash/tests/gen/documentHighlightAtInheritedProperties2_test.go @@ -9,8 +9,8 @@ import ( ) func TestDocumentHighlightAtInheritedProperties2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: file1.ts class class1 extends class1 { diff --git a/pkg/fourslash/tests/gen/documentHighlightAtInheritedProperties3_test.go b/pkg/fourslash/tests/gen/documentHighlightAtInheritedProperties3_test.go index 3998fe2f8..a77610f76 100644 --- a/pkg/fourslash/tests/gen/documentHighlightAtInheritedProperties3_test.go +++ b/pkg/fourslash/tests/gen/documentHighlightAtInheritedProperties3_test.go @@ -9,8 +9,8 @@ import ( ) func TestDocumentHighlightAtInheritedProperties3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: file1.ts interface interface1 extends interface1 { diff --git a/pkg/fourslash/tests/gen/documentHighlightAtInheritedProperties4_test.go b/pkg/fourslash/tests/gen/documentHighlightAtInheritedProperties4_test.go index 6c00d7382..936f4f78b 100644 --- a/pkg/fourslash/tests/gen/documentHighlightAtInheritedProperties4_test.go +++ b/pkg/fourslash/tests/gen/documentHighlightAtInheritedProperties4_test.go @@ -9,8 +9,8 @@ import ( ) func TestDocumentHighlightAtInheritedProperties4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: file1.ts class class1 extends class1 { diff --git a/pkg/fourslash/tests/gen/documentHighlightAtInheritedProperties5_test.go b/pkg/fourslash/tests/gen/documentHighlightAtInheritedProperties5_test.go index 9b1d92e13..3c6754212 100644 --- a/pkg/fourslash/tests/gen/documentHighlightAtInheritedProperties5_test.go +++ b/pkg/fourslash/tests/gen/documentHighlightAtInheritedProperties5_test.go @@ -9,8 +9,8 @@ import ( ) func TestDocumentHighlightAtInheritedProperties5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: file1.ts interface C extends D { diff --git a/pkg/fourslash/tests/gen/documentHighlightAtInheritedProperties6_test.go b/pkg/fourslash/tests/gen/documentHighlightAtInheritedProperties6_test.go index a880549a7..6ea729e20 100644 --- a/pkg/fourslash/tests/gen/documentHighlightAtInheritedProperties6_test.go +++ b/pkg/fourslash/tests/gen/documentHighlightAtInheritedProperties6_test.go @@ -9,8 +9,8 @@ import ( ) func TestDocumentHighlightAtInheritedProperties6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: file1.ts class C extends D { diff --git a/pkg/fourslash/tests/gen/documentHighlightAtParameterPropertyDeclaration1_test.go b/pkg/fourslash/tests/gen/documentHighlightAtParameterPropertyDeclaration1_test.go index 795a5f6a8..759f66b9c 100644 --- a/pkg/fourslash/tests/gen/documentHighlightAtParameterPropertyDeclaration1_test.go +++ b/pkg/fourslash/tests/gen/documentHighlightAtParameterPropertyDeclaration1_test.go @@ -9,8 +9,8 @@ import ( ) func TestDocumentHighlightAtParameterPropertyDeclaration1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: file1.ts class Foo { diff --git a/pkg/fourslash/tests/gen/documentHighlightAtParameterPropertyDeclaration2_test.go b/pkg/fourslash/tests/gen/documentHighlightAtParameterPropertyDeclaration2_test.go index 57f174cb2..6f017e7d4 100644 --- a/pkg/fourslash/tests/gen/documentHighlightAtParameterPropertyDeclaration2_test.go +++ b/pkg/fourslash/tests/gen/documentHighlightAtParameterPropertyDeclaration2_test.go @@ -9,8 +9,8 @@ import ( ) func TestDocumentHighlightAtParameterPropertyDeclaration2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: file1.ts class Foo { diff --git a/pkg/fourslash/tests/gen/documentHighlightAtParameterPropertyDeclaration3_test.go b/pkg/fourslash/tests/gen/documentHighlightAtParameterPropertyDeclaration3_test.go index 90b91f930..8fdf9cbc5 100644 --- a/pkg/fourslash/tests/gen/documentHighlightAtParameterPropertyDeclaration3_test.go +++ b/pkg/fourslash/tests/gen/documentHighlightAtParameterPropertyDeclaration3_test.go @@ -9,8 +9,8 @@ import ( ) func TestDocumentHighlightAtParameterPropertyDeclaration3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: file1.ts class Foo { diff --git a/pkg/fourslash/tests/gen/documentHighlightDefaultInKeyword_test.go b/pkg/fourslash/tests/gen/documentHighlightDefaultInKeyword_test.go index 772f2795b..897461abc 100644 --- a/pkg/fourslash/tests/gen/documentHighlightDefaultInKeyword_test.go +++ b/pkg/fourslash/tests/gen/documentHighlightDefaultInKeyword_test.go @@ -9,8 +9,8 @@ import ( ) func TestDocumentHighlightDefaultInKeyword(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|case|] [|default|]` diff --git a/pkg/fourslash/tests/gen/documentHighlightDefaultInSwitch_test.go b/pkg/fourslash/tests/gen/documentHighlightDefaultInSwitch_test.go index 8c7fc65cf..b91123f5f 100644 --- a/pkg/fourslash/tests/gen/documentHighlightDefaultInSwitch_test.go +++ b/pkg/fourslash/tests/gen/documentHighlightDefaultInSwitch_test.go @@ -8,8 +8,8 @@ import ( ) func TestDocumentHighlightDefaultInSwitch(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const foo = 'foo'; [|switch|] (foo) { diff --git a/pkg/fourslash/tests/gen/documentHighlightInExport1_test.go b/pkg/fourslash/tests/gen/documentHighlightInExport1_test.go index c340f88b7..491fc4fc6 100644 --- a/pkg/fourslash/tests/gen/documentHighlightInExport1_test.go +++ b/pkg/fourslash/tests/gen/documentHighlightInExport1_test.go @@ -9,8 +9,8 @@ import ( ) func TestDocumentHighlightInExport1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class [|C|] {} [|export|] { [|C|] [|as|] [|D|] };` diff --git a/pkg/fourslash/tests/gen/documentHighlightInKeyword_test.go b/pkg/fourslash/tests/gen/documentHighlightInKeyword_test.go index f96376997..e4ee6b0db 100644 --- a/pkg/fourslash/tests/gen/documentHighlightInKeyword_test.go +++ b/pkg/fourslash/tests/gen/documentHighlightInKeyword_test.go @@ -9,8 +9,8 @@ import ( ) func TestDocumentHighlightInKeyword(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export type Foo = { [K [|in|] keyof T]: any; diff --git a/pkg/fourslash/tests/gen/documentHighlightInTypeExport_test.go b/pkg/fourslash/tests/gen/documentHighlightInTypeExport_test.go index bc809ecfb..09b2306d1 100644 --- a/pkg/fourslash/tests/gen/documentHighlightInTypeExport_test.go +++ b/pkg/fourslash/tests/gen/documentHighlightInTypeExport_test.go @@ -9,8 +9,8 @@ import ( ) func TestDocumentHighlightInTypeExport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /1.ts type [|A|] = 1; diff --git a/pkg/fourslash/tests/gen/documentHighlightJSDocTypedef_test.go b/pkg/fourslash/tests/gen/documentHighlightJSDocTypedef_test.go index 5c59a8970..bf91801c6 100644 --- a/pkg/fourslash/tests/gen/documentHighlightJSDocTypedef_test.go +++ b/pkg/fourslash/tests/gen/documentHighlightJSDocTypedef_test.go @@ -9,8 +9,8 @@ import ( ) func TestDocumentHighlightJSDocTypedef(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/documentHighlightMultilineTemplateStrings_test.go b/pkg/fourslash/tests/gen/documentHighlightMultilineTemplateStrings_test.go index 9473067b8..ee4cb8d72 100644 --- a/pkg/fourslash/tests/gen/documentHighlightMultilineTemplateStrings_test.go +++ b/pkg/fourslash/tests/gen/documentHighlightMultilineTemplateStrings_test.go @@ -8,8 +8,8 @@ import ( ) func TestDocumentHighlightMultilineTemplateStrings(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const foo = ` + "`" + ` a diff --git a/pkg/fourslash/tests/gen/documentHighlightTemplateStrings_test.go b/pkg/fourslash/tests/gen/documentHighlightTemplateStrings_test.go index d50de17e7..53b0d0f48 100644 --- a/pkg/fourslash/tests/gen/documentHighlightTemplateStrings_test.go +++ b/pkg/fourslash/tests/gen/documentHighlightTemplateStrings_test.go @@ -8,8 +8,8 @@ import ( ) func TestDocumentHighlightTemplateStrings(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type Foo = "[|a|]" | "b"; diff --git a/pkg/fourslash/tests/gen/documentHighlightVarianceModifiers_test.go b/pkg/fourslash/tests/gen/documentHighlightVarianceModifiers_test.go index 1c1b37db4..97755cfd4 100644 --- a/pkg/fourslash/tests/gen/documentHighlightVarianceModifiers_test.go +++ b/pkg/fourslash/tests/gen/documentHighlightVarianceModifiers_test.go @@ -9,8 +9,8 @@ import ( ) func TestDocumentHighlightVarianceModifiers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type TFoo = { value: Value }; type TBar<[|in|] [|out|] Value> = TFoo;` diff --git a/pkg/fourslash/tests/gen/documentHighlights01_test.go b/pkg/fourslash/tests/gen/documentHighlights01_test.go index 56599243a..3c5f00560 100644 --- a/pkg/fourslash/tests/gen/documentHighlights01_test.go +++ b/pkg/fourslash/tests/gen/documentHighlights01_test.go @@ -9,8 +9,8 @@ import ( ) func TestDocumentHighlights01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts function [|f|](x: typeof [|f|]) { diff --git a/pkg/fourslash/tests/gen/documentHighlightsInvalidGlobalThis_test.go b/pkg/fourslash/tests/gen/documentHighlightsInvalidGlobalThis_test.go index a9995471b..f8d09c6de 100644 --- a/pkg/fourslash/tests/gen/documentHighlightsInvalidGlobalThis_test.go +++ b/pkg/fourslash/tests/gen/documentHighlightsInvalidGlobalThis_test.go @@ -9,8 +9,8 @@ import ( ) func TestDocumentHighlightsInvalidGlobalThis(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare global { export { globalThis as [|global|] } diff --git a/pkg/fourslash/tests/gen/documentHighlightsInvalidModifierLocations_test.go b/pkg/fourslash/tests/gen/documentHighlightsInvalidModifierLocations_test.go index 127292b90..68afc81bb 100644 --- a/pkg/fourslash/tests/gen/documentHighlightsInvalidModifierLocations_test.go +++ b/pkg/fourslash/tests/gen/documentHighlightsInvalidModifierLocations_test.go @@ -9,8 +9,8 @@ import ( ) func TestDocumentHighlightsInvalidModifierLocations(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { m([|readonly|] p) {} diff --git a/pkg/fourslash/tests/gen/documentHighlightsTypeParameterInHeritageClause01_test.go b/pkg/fourslash/tests/gen/documentHighlightsTypeParameterInHeritageClause01_test.go index b6dd37d23..5c1d28fe9 100644 --- a/pkg/fourslash/tests/gen/documentHighlightsTypeParameterInHeritageClause01_test.go +++ b/pkg/fourslash/tests/gen/documentHighlightsTypeParameterInHeritageClause01_test.go @@ -9,8 +9,8 @@ import ( ) func TestDocumentHighlightsTypeParameterInHeritageClause01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I<[|T|]> extends I<[|T|]>, [|T|] { }` diff --git a/pkg/fourslash/tests/gen/documentHighlights_33722_test.go b/pkg/fourslash/tests/gen/documentHighlights_33722_test.go index fd76838a8..d93a68e3e 100644 --- a/pkg/fourslash/tests/gen/documentHighlights_33722_test.go +++ b/pkg/fourslash/tests/gen/documentHighlights_33722_test.go @@ -8,8 +8,8 @@ import ( ) func TestDocumentHighlights_33722(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /y.ts class Foo { diff --git a/pkg/fourslash/tests/gen/documentHighlights_40082_test.go b/pkg/fourslash/tests/gen/documentHighlights_40082_test.go index f7d9a4029..48a20d1ed 100644 --- a/pkg/fourslash/tests/gen/documentHighlights_40082_test.go +++ b/pkg/fourslash/tests/gen/documentHighlights_40082_test.go @@ -8,8 +8,8 @@ import ( ) func TestDocumentHighlights_40082(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @checkJs: true export = (state, messages) => { diff --git a/pkg/fourslash/tests/gen/documentHighlights_filesToSearch_test.go b/pkg/fourslash/tests/gen/documentHighlights_filesToSearch_test.go index dd79852da..12804bca0 100644 --- a/pkg/fourslash/tests/gen/documentHighlights_filesToSearch_test.go +++ b/pkg/fourslash/tests/gen/documentHighlights_filesToSearch_test.go @@ -9,8 +9,8 @@ import ( ) func TestDocumentHighlights_filesToSearch(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export const [|x|] = 0; diff --git a/pkg/fourslash/tests/gen/doubleUnderscoreCompletions_test.go b/pkg/fourslash/tests/gen/doubleUnderscoreCompletions_test.go index 328f40c5c..605820683 100644 --- a/pkg/fourslash/tests/gen/doubleUnderscoreCompletions_test.go +++ b/pkg/fourslash/tests/gen/doubleUnderscoreCompletions_test.go @@ -11,8 +11,8 @@ import ( ) func TestDoubleUnderscoreCompletions(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/doubleUnderscoreRenames_test.go b/pkg/fourslash/tests/gen/doubleUnderscoreRenames_test.go index 6f4e25b52..bc4e14c69 100644 --- a/pkg/fourslash/tests/gen/doubleUnderscoreRenames_test.go +++ b/pkg/fourslash/tests/gen/doubleUnderscoreRenames_test.go @@ -8,8 +8,8 @@ import ( ) func TestDoubleUnderscoreRenames(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: fileA.ts [|export function [|{| "contextRangeIndex": 0 |}__foo|]() { diff --git a/pkg/fourslash/tests/gen/duplicateFunctionImplementation_test.go b/pkg/fourslash/tests/gen/duplicateFunctionImplementation_test.go index c25b245b7..8cb25ab8e 100644 --- a/pkg/fourslash/tests/gen/duplicateFunctionImplementation_test.go +++ b/pkg/fourslash/tests/gen/duplicateFunctionImplementation_test.go @@ -8,8 +8,8 @@ import ( ) func TestDuplicateFunctionImplementation(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IFoo { foo(): T; diff --git a/pkg/fourslash/tests/gen/duplicateIndexers_test.go b/pkg/fourslash/tests/gen/duplicateIndexers_test.go index f2b4ea4ea..5de2fdbb9 100644 --- a/pkg/fourslash/tests/gen/duplicateIndexers_test.go +++ b/pkg/fourslash/tests/gen/duplicateIndexers_test.go @@ -8,8 +8,8 @@ import ( ) func TestDuplicateIndexers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { [x: number]: string; diff --git a/pkg/fourslash/tests/gen/duplicatePackageServices_test.go b/pkg/fourslash/tests/gen/duplicatePackageServices_test.go index b3413d5ab..f00f51501 100644 --- a/pkg/fourslash/tests/gen/duplicatePackageServices_test.go +++ b/pkg/fourslash/tests/gen/duplicatePackageServices_test.go @@ -8,8 +8,8 @@ import ( ) func TestDuplicatePackageServices(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noImplicitReferences: true // @Filename: /node_modules/a/index.d.ts diff --git a/pkg/fourslash/tests/gen/duplicateTypeParameters_test.go b/pkg/fourslash/tests/gen/duplicateTypeParameters_test.go index 84993061c..c21ea7514 100644 --- a/pkg/fourslash/tests/gen/duplicateTypeParameters_test.go +++ b/pkg/fourslash/tests/gen/duplicateTypeParameters_test.go @@ -8,8 +8,8 @@ import ( ) func TestDuplicateTypeParameters(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A { }` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/editJsdocType_test.go b/pkg/fourslash/tests/gen/editJsdocType_test.go index a6ae252a8..646ffc420 100644 --- a/pkg/fourslash/tests/gen/editJsdocType_test.go +++ b/pkg/fourslash/tests/gen/editJsdocType_test.go @@ -8,8 +8,8 @@ import ( ) func TestEditJsdocType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @noLib: true diff --git a/pkg/fourslash/tests/gen/editLambdaArgToTypeParameter1_test.go b/pkg/fourslash/tests/gen/editLambdaArgToTypeParameter1_test.go index a2de5de3e..3a0ca027c 100644 --- a/pkg/fourslash/tests/gen/editLambdaArgToTypeParameter1_test.go +++ b/pkg/fourslash/tests/gen/editLambdaArgToTypeParameter1_test.go @@ -8,8 +8,8 @@ import ( ) func TestEditLambdaArgToTypeParameter1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { foo(x: T) { diff --git a/pkg/fourslash/tests/gen/editTemplateConstraint_test.go b/pkg/fourslash/tests/gen/editTemplateConstraint_test.go index 760f270cd..804f2abf8 100644 --- a/pkg/fourslash/tests/gen/editTemplateConstraint_test.go +++ b/pkg/fourslash/tests/gen/editTemplateConstraint_test.go @@ -8,8 +8,8 @@ import ( ) func TestEditTemplateConstraint(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * @template {/**/ diff --git a/pkg/fourslash/tests/gen/emptyArrayInference_test.go b/pkg/fourslash/tests/gen/emptyArrayInference_test.go index 752ec186a..5f49cdb99 100644 --- a/pkg/fourslash/tests/gen/emptyArrayInference_test.go +++ b/pkg/fourslash/tests/gen/emptyArrayInference_test.go @@ -8,8 +8,8 @@ import ( ) func TestEmptyArrayInference(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x/*1*/x = true ? [1] : [undefined]; var y/*2*/y = true ? [1] : [];` diff --git a/pkg/fourslash/tests/gen/emptyExportFindReferences_test.go b/pkg/fourslash/tests/gen/emptyExportFindReferences_test.go index 656999eee..d350b4c29 100644 --- a/pkg/fourslash/tests/gen/emptyExportFindReferences_test.go +++ b/pkg/fourslash/tests/gen/emptyExportFindReferences_test.go @@ -8,8 +8,8 @@ import ( ) func TestEmptyExportFindReferences(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/enumAddition_test.go b/pkg/fourslash/tests/gen/enumAddition_test.go index 90b465d50..2e977c421 100644 --- a/pkg/fourslash/tests/gen/enumAddition_test.go +++ b/pkg/fourslash/tests/gen/enumAddition_test.go @@ -8,8 +8,8 @@ import ( ) func TestEnumAddition(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module m { export enum Color { Red } } var /**/t = m.Color.Red + 1;` diff --git a/pkg/fourslash/tests/gen/enumUpdate1_test.go b/pkg/fourslash/tests/gen/enumUpdate1_test.go index b193fe162..df65e4010 100644 --- a/pkg/fourslash/tests/gen/enumUpdate1_test.go +++ b/pkg/fourslash/tests/gen/enumUpdate1_test.go @@ -8,8 +8,8 @@ import ( ) func TestEnumUpdate1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module M { export enum E { diff --git a/pkg/fourslash/tests/gen/errorConsistency_test.go b/pkg/fourslash/tests/gen/errorConsistency_test.go index d361cedea..3807f2d8d 100644 --- a/pkg/fourslash/tests/gen/errorConsistency_test.go +++ b/pkg/fourslash/tests/gen/errorConsistency_test.go @@ -8,8 +8,8 @@ import ( ) func TestErrorConsistency(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Int { val(f: (t: T) => U): Int; diff --git a/pkg/fourslash/tests/gen/errorInIncompleteMethodInObjectLiteral_test.go b/pkg/fourslash/tests/gen/errorInIncompleteMethodInObjectLiteral_test.go index 11de77ea3..b6b2aa76f 100644 --- a/pkg/fourslash/tests/gen/errorInIncompleteMethodInObjectLiteral_test.go +++ b/pkg/fourslash/tests/gen/errorInIncompleteMethodInObjectLiteral_test.go @@ -8,8 +8,8 @@ import ( ) func TestErrorInIncompleteMethodInObjectLiteral(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x: { f(): string } = { f( }` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/errorsAfterResolvingVariableDeclOfMergedVariableAndClassDecl_test.go b/pkg/fourslash/tests/gen/errorsAfterResolvingVariableDeclOfMergedVariableAndClassDecl_test.go index 12352b8c9..710a87663 100644 --- a/pkg/fourslash/tests/gen/errorsAfterResolvingVariableDeclOfMergedVariableAndClassDecl_test.go +++ b/pkg/fourslash/tests/gen/errorsAfterResolvingVariableDeclOfMergedVariableAndClassDecl_test.go @@ -8,8 +8,8 @@ import ( ) func TestErrorsAfterResolvingVariableDeclOfMergedVariableAndClassDecl(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module M { export class C { diff --git a/pkg/fourslash/tests/gen/esModuleInteropFindAllReferences2_test.go b/pkg/fourslash/tests/gen/esModuleInteropFindAllReferences2_test.go index 9b2c7d5e6..843711f51 100644 --- a/pkg/fourslash/tests/gen/esModuleInteropFindAllReferences2_test.go +++ b/pkg/fourslash/tests/gen/esModuleInteropFindAllReferences2_test.go @@ -8,8 +8,8 @@ import ( ) func TestEsModuleInteropFindAllReferences2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @esModuleInterop: true // @Filename: /a.d.ts diff --git a/pkg/fourslash/tests/gen/esModuleInteropFindAllReferences_test.go b/pkg/fourslash/tests/gen/esModuleInteropFindAllReferences_test.go index 5410f4b78..c382db10b 100644 --- a/pkg/fourslash/tests/gen/esModuleInteropFindAllReferences_test.go +++ b/pkg/fourslash/tests/gen/esModuleInteropFindAllReferences_test.go @@ -8,8 +8,8 @@ import ( ) func TestEsModuleInteropFindAllReferences(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @esModuleInterop: true // @Filename: /abc.d.ts diff --git a/pkg/fourslash/tests/gen/excessivelyLargeArrayLiteralCompletions_test.go b/pkg/fourslash/tests/gen/excessivelyLargeArrayLiteralCompletions_test.go index 547465815..1b561c737 100644 --- a/pkg/fourslash/tests/gen/excessivelyLargeArrayLiteralCompletions_test.go +++ b/pkg/fourslash/tests/gen/excessivelyLargeArrayLiteralCompletions_test.go @@ -9,8 +9,8 @@ import ( ) func TestExcessivelyLargeArrayLiteralCompletions(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/* Route exported from CloudMade; diff --git a/pkg/fourslash/tests/gen/explainFilesNodeNextWithTypesReference_test.go b/pkg/fourslash/tests/gen/explainFilesNodeNextWithTypesReference_test.go index 33799fe69..ecd6d7915 100644 --- a/pkg/fourslash/tests/gen/explainFilesNodeNextWithTypesReference_test.go +++ b/pkg/fourslash/tests/gen/explainFilesNodeNextWithTypesReference_test.go @@ -8,8 +8,8 @@ import ( ) func TestExplainFilesNodeNextWithTypesReference(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /node_modules/react-hook-form/package.json { diff --git a/pkg/fourslash/tests/gen/exportDefaultClass_test.go b/pkg/fourslash/tests/gen/exportDefaultClass_test.go index a4abb4387..7614b293f 100644 --- a/pkg/fourslash/tests/gen/exportDefaultClass_test.go +++ b/pkg/fourslash/tests/gen/exportDefaultClass_test.go @@ -10,8 +10,8 @@ import ( ) func TestExportDefaultClass(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export default class C { method() { /*1*/ } diff --git a/pkg/fourslash/tests/gen/exportDefaultFunction_test.go b/pkg/fourslash/tests/gen/exportDefaultFunction_test.go index f2143739f..8815e2cde 100644 --- a/pkg/fourslash/tests/gen/exportDefaultFunction_test.go +++ b/pkg/fourslash/tests/gen/exportDefaultFunction_test.go @@ -10,8 +10,8 @@ import ( ) func TestExportDefaultFunction(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export default function func() { /*1*/ diff --git a/pkg/fourslash/tests/gen/exportEqualCallableInterface_test.go b/pkg/fourslash/tests/gen/exportEqualCallableInterface_test.go index 0fb9454ed..56f64e33d 100644 --- a/pkg/fourslash/tests/gen/exportEqualCallableInterface_test.go +++ b/pkg/fourslash/tests/gen/exportEqualCallableInterface_test.go @@ -9,8 +9,8 @@ import ( ) func TestExportEqualCallableInterface(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: exportEqualCallableInterface_file0.ts interface x { diff --git a/pkg/fourslash/tests/gen/exportEqualNamespaceClassESModuleInterop_test.go b/pkg/fourslash/tests/gen/exportEqualNamespaceClassESModuleInterop_test.go index 67768f7d2..8bbf67e30 100644 --- a/pkg/fourslash/tests/gen/exportEqualNamespaceClassESModuleInterop_test.go +++ b/pkg/fourslash/tests/gen/exportEqualNamespaceClassESModuleInterop_test.go @@ -9,8 +9,8 @@ import ( ) func TestExportEqualNamespaceClassESModuleInterop(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @esModuleInterop: true // @moduleResolution: bundler diff --git a/pkg/fourslash/tests/gen/exportEqualTypes_test.go b/pkg/fourslash/tests/gen/exportEqualTypes_test.go index 7eb260d3c..f2f91e549 100644 --- a/pkg/fourslash/tests/gen/exportEqualTypes_test.go +++ b/pkg/fourslash/tests/gen/exportEqualTypes_test.go @@ -9,8 +9,8 @@ import ( ) func TestExportEqualTypes(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: exportEqualTypes_file0.ts interface x { diff --git a/pkg/fourslash/tests/gen/exportEqualsInterfaceA_test.go b/pkg/fourslash/tests/gen/exportEqualsInterfaceA_test.go index 916edaefe..4799c81d2 100644 --- a/pkg/fourslash/tests/gen/exportEqualsInterfaceA_test.go +++ b/pkg/fourslash/tests/gen/exportEqualsInterfaceA_test.go @@ -8,8 +8,8 @@ import ( ) func TestExportEqualsInterfaceA(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: exportEqualsInterface_A.ts interface A { diff --git a/pkg/fourslash/tests/gen/extendInterfaceOverloadedMethod_test.go b/pkg/fourslash/tests/gen/extendInterfaceOverloadedMethod_test.go index 4291a1efb..54887fe0d 100644 --- a/pkg/fourslash/tests/gen/extendInterfaceOverloadedMethod_test.go +++ b/pkg/fourslash/tests/gen/extendInterfaceOverloadedMethod_test.go @@ -8,8 +8,8 @@ import ( ) func TestExtendInterfaceOverloadedMethod(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface A { foo(a: T): B; diff --git a/pkg/fourslash/tests/gen/extendsKeywordCompletion1_test.go b/pkg/fourslash/tests/gen/extendsKeywordCompletion1_test.go index 3faefdb2a..b88e448be 100644 --- a/pkg/fourslash/tests/gen/extendsKeywordCompletion1_test.go +++ b/pkg/fourslash/tests/gen/extendsKeywordCompletion1_test.go @@ -11,8 +11,8 @@ import ( ) func TestExtendsKeywordCompletion1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export interface B ex/**/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/extendsKeywordCompletion2_test.go b/pkg/fourslash/tests/gen/extendsKeywordCompletion2_test.go index b00e23499..69df454f2 100644 --- a/pkg/fourslash/tests/gen/extendsKeywordCompletion2_test.go +++ b/pkg/fourslash/tests/gen/extendsKeywordCompletion2_test.go @@ -11,8 +11,8 @@ import ( ) func TestExtendsKeywordCompletion2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f1() {} function f2() {}` diff --git a/pkg/fourslash/tests/gen/extendsTArray_test.go b/pkg/fourslash/tests/gen/extendsTArray_test.go index 50560e93e..e5fba3fc1 100644 --- a/pkg/fourslash/tests/gen/extendsTArray_test.go +++ b/pkg/fourslash/tests/gen/extendsTArray_test.go @@ -8,8 +8,8 @@ import ( ) func TestExtendsTArray(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I1 { (a: T): T; diff --git a/pkg/fourslash/tests/gen/externalModuleIntellisense_test.go b/pkg/fourslash/tests/gen/externalModuleIntellisense_test.go index 4d191c94c..2e9c624d7 100644 --- a/pkg/fourslash/tests/gen/externalModuleIntellisense_test.go +++ b/pkg/fourslash/tests/gen/externalModuleIntellisense_test.go @@ -9,8 +9,8 @@ import ( ) func TestExternalModuleIntellisense(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: externalModuleIntellisense_file0.ts export = express; diff --git a/pkg/fourslash/tests/gen/failureToImplementClass_test.go b/pkg/fourslash/tests/gen/failureToImplementClass_test.go index 34602dca8..ebfdcffcb 100644 --- a/pkg/fourslash/tests/gen/failureToImplementClass_test.go +++ b/pkg/fourslash/tests/gen/failureToImplementClass_test.go @@ -8,8 +8,8 @@ import ( ) func TestFailureToImplementClass(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IExec { exec: (filename: string, cmdLine: string) => boolean; diff --git a/pkg/fourslash/tests/gen/findAllReferPropertyAccessExpressionHeritageClause_test.go b/pkg/fourslash/tests/gen/findAllReferPropertyAccessExpressionHeritageClause_test.go index 73391f07a..37998270d 100644 --- a/pkg/fourslash/tests/gen/findAllReferPropertyAccessExpressionHeritageClause_test.go +++ b/pkg/fourslash/tests/gen/findAllReferPropertyAccessExpressionHeritageClause_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllReferPropertyAccessExpressionHeritageClause(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class B {} function foo() { diff --git a/pkg/fourslash/tests/gen/findAllReferencesDynamicImport1_test.go b/pkg/fourslash/tests/gen/findAllReferencesDynamicImport1_test.go index 7f118b6d7..534cb1810 100644 --- a/pkg/fourslash/tests/gen/findAllReferencesDynamicImport1_test.go +++ b/pkg/fourslash/tests/gen/findAllReferencesDynamicImport1_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllReferencesDynamicImport1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: foo.ts export function foo() { return "foo"; } diff --git a/pkg/fourslash/tests/gen/findAllReferencesDynamicImport2_test.go b/pkg/fourslash/tests/gen/findAllReferencesDynamicImport2_test.go index 7db3fc229..b644b03ef 100644 --- a/pkg/fourslash/tests/gen/findAllReferencesDynamicImport2_test.go +++ b/pkg/fourslash/tests/gen/findAllReferencesDynamicImport2_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllReferencesDynamicImport2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: foo.ts [|export function /*1*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}bar|]() { return "bar"; }|] diff --git a/pkg/fourslash/tests/gen/findAllReferencesDynamicImport3_test.go b/pkg/fourslash/tests/gen/findAllReferencesDynamicImport3_test.go index cfb6155da..13828727f 100644 --- a/pkg/fourslash/tests/gen/findAllReferencesDynamicImport3_test.go +++ b/pkg/fourslash/tests/gen/findAllReferencesDynamicImport3_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllReferencesDynamicImport3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: foo.ts [|export function /*0*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}bar|]() { return "bar"; }|] diff --git a/pkg/fourslash/tests/gen/findAllReferencesFilteringMappedTypeProperty_test.go b/pkg/fourslash/tests/gen/findAllReferencesFilteringMappedTypeProperty_test.go index 0e92dd482..179fc2f14 100644 --- a/pkg/fourslash/tests/gen/findAllReferencesFilteringMappedTypeProperty_test.go +++ b/pkg/fourslash/tests/gen/findAllReferencesFilteringMappedTypeProperty_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllReferencesFilteringMappedTypeProperty(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const obj = { /*1*/a: 1, b: 2 }; const filtered: { [P in keyof typeof obj as P extends 'b' ? never : P]: 0; } = { /*2*/a: 0 }; diff --git a/pkg/fourslash/tests/gen/findAllReferencesFromLinkTagReference1_test.go b/pkg/fourslash/tests/gen/findAllReferencesFromLinkTagReference1_test.go index 7a1ac4331..57091b584 100644 --- a/pkg/fourslash/tests/gen/findAllReferencesFromLinkTagReference1_test.go +++ b/pkg/fourslash/tests/gen/findAllReferencesFromLinkTagReference1_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllReferencesFromLinkTagReference1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum E { /** {@link /**/A} */ diff --git a/pkg/fourslash/tests/gen/findAllReferencesFromLinkTagReference2_test.go b/pkg/fourslash/tests/gen/findAllReferencesFromLinkTagReference2_test.go index cb749d27c..b70859c21 100644 --- a/pkg/fourslash/tests/gen/findAllReferencesFromLinkTagReference2_test.go +++ b/pkg/fourslash/tests/gen/findAllReferencesFromLinkTagReference2_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllReferencesFromLinkTagReference2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts enum E { diff --git a/pkg/fourslash/tests/gen/findAllReferencesFromLinkTagReference3_test.go b/pkg/fourslash/tests/gen/findAllReferencesFromLinkTagReference3_test.go index 5d3652976..0a46aca94 100644 --- a/pkg/fourslash/tests/gen/findAllReferencesFromLinkTagReference3_test.go +++ b/pkg/fourslash/tests/gen/findAllReferencesFromLinkTagReference3_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllReferencesFromLinkTagReference3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: a.ts interface Foo { diff --git a/pkg/fourslash/tests/gen/findAllReferencesFromLinkTagReference4_test.go b/pkg/fourslash/tests/gen/findAllReferencesFromLinkTagReference4_test.go index d0782aa85..72386a665 100644 --- a/pkg/fourslash/tests/gen/findAllReferencesFromLinkTagReference4_test.go +++ b/pkg/fourslash/tests/gen/findAllReferencesFromLinkTagReference4_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllReferencesFromLinkTagReference4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum E { /** {@link /**/B} */ diff --git a/pkg/fourslash/tests/gen/findAllReferencesFromLinkTagReference5_test.go b/pkg/fourslash/tests/gen/findAllReferencesFromLinkTagReference5_test.go index c15b961b1..9c206c870 100644 --- a/pkg/fourslash/tests/gen/findAllReferencesFromLinkTagReference5_test.go +++ b/pkg/fourslash/tests/gen/findAllReferencesFromLinkTagReference5_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllReferencesFromLinkTagReference5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum E { /** {@link E./**/A} */ diff --git a/pkg/fourslash/tests/gen/findAllReferencesImportMeta_test.go b/pkg/fourslash/tests/gen/findAllReferencesImportMeta_test.go index aa2fb4760..6d68ab9ca 100644 --- a/pkg/fourslash/tests/gen/findAllReferencesImportMeta_test.go +++ b/pkg/fourslash/tests/gen/findAllReferencesImportMeta_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllReferencesImportMeta(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// Haha that's so meta! diff --git a/pkg/fourslash/tests/gen/findAllReferencesJSDocFunctionNew_test.go b/pkg/fourslash/tests/gen/findAllReferencesJSDocFunctionNew_test.go index 67e53a17c..771da0ec1 100644 --- a/pkg/fourslash/tests/gen/findAllReferencesJSDocFunctionNew_test.go +++ b/pkg/fourslash/tests/gen/findAllReferencesJSDocFunctionNew_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllReferencesJSDocFunctionNew(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/findAllReferencesJSDocFunctionThis_test.go b/pkg/fourslash/tests/gen/findAllReferencesJSDocFunctionThis_test.go index 20e7dc4b4..5f7fc55e7 100644 --- a/pkg/fourslash/tests/gen/findAllReferencesJSDocFunctionThis_test.go +++ b/pkg/fourslash/tests/gen/findAllReferencesJSDocFunctionThis_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllReferencesJSDocFunctionThis(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/findAllReferencesJsDocTypeLiteral_test.go b/pkg/fourslash/tests/gen/findAllReferencesJsDocTypeLiteral_test.go index 0f2d70637..9f36992f2 100644 --- a/pkg/fourslash/tests/gen/findAllReferencesJsDocTypeLiteral_test.go +++ b/pkg/fourslash/tests/gen/findAllReferencesJsDocTypeLiteral_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllReferencesJsDocTypeLiteral(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/findAllReferencesJsOverloadedFunctionParameter_test.go b/pkg/fourslash/tests/gen/findAllReferencesJsOverloadedFunctionParameter_test.go index 34aed31a6..d7a2010fa 100644 --- a/pkg/fourslash/tests/gen/findAllReferencesJsOverloadedFunctionParameter_test.go +++ b/pkg/fourslash/tests/gen/findAllReferencesJsOverloadedFunctionParameter_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllReferencesJsOverloadedFunctionParameter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/findAllReferencesJsRequireDestructuring1_test.go b/pkg/fourslash/tests/gen/findAllReferencesJsRequireDestructuring1_test.go index 8f0ff0b9d..56af1f22d 100644 --- a/pkg/fourslash/tests/gen/findAllReferencesJsRequireDestructuring1_test.go +++ b/pkg/fourslash/tests/gen/findAllReferencesJsRequireDestructuring1_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllReferencesJsRequireDestructuring1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @noEmit: true diff --git a/pkg/fourslash/tests/gen/findAllReferencesJsRequireDestructuring_test.go b/pkg/fourslash/tests/gen/findAllReferencesJsRequireDestructuring_test.go index cdeadbbc5..dbe0a4121 100644 --- a/pkg/fourslash/tests/gen/findAllReferencesJsRequireDestructuring_test.go +++ b/pkg/fourslash/tests/gen/findAllReferencesJsRequireDestructuring_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllReferencesJsRequireDestructuring(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @noEmit: true diff --git a/pkg/fourslash/tests/gen/findAllReferencesLinkTag1_test.go b/pkg/fourslash/tests/gen/findAllReferencesLinkTag1_test.go index b347426d2..aff50910a 100644 --- a/pkg/fourslash/tests/gen/findAllReferencesLinkTag1_test.go +++ b/pkg/fourslash/tests/gen/findAllReferencesLinkTag1_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllReferencesLinkTag1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C/*7*/ { m/*1*/() { } diff --git a/pkg/fourslash/tests/gen/findAllReferencesLinkTag2_test.go b/pkg/fourslash/tests/gen/findAllReferencesLinkTag2_test.go index cf00a0dbe..e723fb7a9 100644 --- a/pkg/fourslash/tests/gen/findAllReferencesLinkTag2_test.go +++ b/pkg/fourslash/tests/gen/findAllReferencesLinkTag2_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllReferencesLinkTag2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `namespace NPR/*5*/ { export class Consider/*4*/ { diff --git a/pkg/fourslash/tests/gen/findAllReferencesLinkTag3_test.go b/pkg/fourslash/tests/gen/findAllReferencesLinkTag3_test.go index a69e9576d..bb7ac6744 100644 --- a/pkg/fourslash/tests/gen/findAllReferencesLinkTag3_test.go +++ b/pkg/fourslash/tests/gen/findAllReferencesLinkTag3_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllReferencesLinkTag3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `namespace NPR/*5*/ { export class Consider/*4*/ { diff --git a/pkg/fourslash/tests/gen/findAllReferencesNonExistentExportBinding_test.go b/pkg/fourslash/tests/gen/findAllReferencesNonExistentExportBinding_test.go index 1db3188ba..968ee1e95 100644 --- a/pkg/fourslash/tests/gen/findAllReferencesNonExistentExportBinding_test.go +++ b/pkg/fourslash/tests/gen/findAllReferencesNonExistentExportBinding_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllReferencesNonExistentExportBinding(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /tsconfig.json { "compilerOptions": { "module": "commonjs" } } diff --git a/pkg/fourslash/tests/gen/findAllReferencesOfConstructor_badOverload_test.go b/pkg/fourslash/tests/gen/findAllReferencesOfConstructor_badOverload_test.go index 621fcead8..a186b6a33 100644 --- a/pkg/fourslash/tests/gen/findAllReferencesOfConstructor_badOverload_test.go +++ b/pkg/fourslash/tests/gen/findAllReferencesOfConstructor_badOverload_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllReferencesOfConstructor_badOverload(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { /*1*/constructor(n: number); diff --git a/pkg/fourslash/tests/gen/findAllReferencesOfConstructor_test.go b/pkg/fourslash/tests/gen/findAllReferencesOfConstructor_test.go index 7dc32f6b0..e02f82151 100644 --- a/pkg/fourslash/tests/gen/findAllReferencesOfConstructor_test.go +++ b/pkg/fourslash/tests/gen/findAllReferencesOfConstructor_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllReferencesOfConstructor(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts export class C { diff --git a/pkg/fourslash/tests/gen/findAllReferencesOfJsonModule_test.go b/pkg/fourslash/tests/gen/findAllReferencesOfJsonModule_test.go index 8bcc74ac6..1ac4799ce 100644 --- a/pkg/fourslash/tests/gen/findAllReferencesOfJsonModule_test.go +++ b/pkg/fourslash/tests/gen/findAllReferencesOfJsonModule_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllReferencesOfJsonModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @resolveJsonModule: true // @module: commonjs diff --git a/pkg/fourslash/tests/gen/findAllReferencesTripleSlash_test.go b/pkg/fourslash/tests/gen/findAllReferencesTripleSlash_test.go index 70f24d32e..584bd6455 100644 --- a/pkg/fourslash/tests/gen/findAllReferencesTripleSlash_test.go +++ b/pkg/fourslash/tests/gen/findAllReferencesTripleSlash_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllReferencesTripleSlash(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @checkJs: true // @Filename: /node_modules/@types/globals/index.d.ts diff --git a/pkg/fourslash/tests/gen/findAllReferencesUmdModuleAsGlobalConst_test.go b/pkg/fourslash/tests/gen/findAllReferencesUmdModuleAsGlobalConst_test.go index c95995715..82d9f5b18 100644 --- a/pkg/fourslash/tests/gen/findAllReferencesUmdModuleAsGlobalConst_test.go +++ b/pkg/fourslash/tests/gen/findAllReferencesUmdModuleAsGlobalConst_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllReferencesUmdModuleAsGlobalConst(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /node_modules/@types/three/three-core.d.ts export class Vector3 { diff --git a/pkg/fourslash/tests/gen/findAllReferencesUndefined_test.go b/pkg/fourslash/tests/gen/findAllReferencesUndefined_test.go index c0734f9fd..5d657eb7d 100644 --- a/pkg/fourslash/tests/gen/findAllReferencesUndefined_test.go +++ b/pkg/fourslash/tests/gen/findAllReferencesUndefined_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllReferencesUndefined(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts /**/undefined; diff --git a/pkg/fourslash/tests/gen/findAllRefsBadImport_test.go b/pkg/fourslash/tests/gen/findAllRefsBadImport_test.go index cbe9e176c..94da6fe24 100644 --- a/pkg/fourslash/tests/gen/findAllRefsBadImport_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsBadImport_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsBadImport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `import { /*0*/ab as /*1*/cd } from "doesNotExist";` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/findAllRefsCatchClause_test.go b/pkg/fourslash/tests/gen/findAllRefsCatchClause_test.go index 8998fb841..364a7fc02 100644 --- a/pkg/fourslash/tests/gen/findAllRefsCatchClause_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsCatchClause_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsCatchClause(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `try { } catch (/*1*/err) { diff --git a/pkg/fourslash/tests/gen/findAllRefsClassExpression0_test.go b/pkg/fourslash/tests/gen/findAllRefsClassExpression0_test.go index 2a292967e..afe5545dd 100644 --- a/pkg/fourslash/tests/gen/findAllRefsClassExpression0_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsClassExpression0_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsClassExpression0(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export = class /*0*/A { diff --git a/pkg/fourslash/tests/gen/findAllRefsClassExpression1_test.go b/pkg/fourslash/tests/gen/findAllRefsClassExpression1_test.go index 3ff5f42c5..c22f2908f 100644 --- a/pkg/fourslash/tests/gen/findAllRefsClassExpression1_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsClassExpression1_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsClassExpression1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/findAllRefsClassExpression2_test.go b/pkg/fourslash/tests/gen/findAllRefsClassExpression2_test.go index d2d4bf1d7..fe6512170 100644 --- a/pkg/fourslash/tests/gen/findAllRefsClassExpression2_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsClassExpression2_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsClassExpression2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/findAllRefsClassStaticBlocks_test.go b/pkg/fourslash/tests/gen/findAllRefsClassStaticBlocks_test.go index c6889d332..bbac59575 100644 --- a/pkg/fourslash/tests/gen/findAllRefsClassStaticBlocks_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsClassStaticBlocks_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsClassStaticBlocks(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class ClassStaticBocks { static x; diff --git a/pkg/fourslash/tests/gen/findAllRefsClassWithStaticThisAccess_test.go b/pkg/fourslash/tests/gen/findAllRefsClassWithStaticThisAccess_test.go index 6fc093832..b173146d2 100644 --- a/pkg/fourslash/tests/gen/findAllRefsClassWithStaticThisAccess_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsClassWithStaticThisAccess_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsClassWithStaticThisAccess(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|class /*0*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}C|] { static s() { diff --git a/pkg/fourslash/tests/gen/findAllRefsCommonJsRequire2_test.go b/pkg/fourslash/tests/gen/findAllRefsCommonJsRequire2_test.go index ef70a57b1..632a7517a 100644 --- a/pkg/fourslash/tests/gen/findAllRefsCommonJsRequire2_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsCommonJsRequire2_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsCommonJsRequire2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/findAllRefsCommonJsRequire3_test.go b/pkg/fourslash/tests/gen/findAllRefsCommonJsRequire3_test.go index 8d598ac4b..eb0257941 100644 --- a/pkg/fourslash/tests/gen/findAllRefsCommonJsRequire3_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsCommonJsRequire3_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsCommonJsRequire3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/findAllRefsCommonJsRequire_test.go b/pkg/fourslash/tests/gen/findAllRefsCommonJsRequire_test.go index a525be282..69d032439 100644 --- a/pkg/fourslash/tests/gen/findAllRefsCommonJsRequire_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsCommonJsRequire_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsCommonJsRequire(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/findAllRefsConstructorFunctions_test.go b/pkg/fourslash/tests/gen/findAllRefsConstructorFunctions_test.go index 88ee6f90b..a4c06584e 100644 --- a/pkg/fourslash/tests/gen/findAllRefsConstructorFunctions_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsConstructorFunctions_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsConstructorFunctions(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/findAllRefsDeclareClass_test.go b/pkg/fourslash/tests/gen/findAllRefsDeclareClass_test.go index 684c3a96c..906ddfff6 100644 --- a/pkg/fourslash/tests/gen/findAllRefsDeclareClass_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsDeclareClass_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsDeclareClass(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/declare class /*2*/C { static m(): void; diff --git a/pkg/fourslash/tests/gen/findAllRefsDefaultImport_test.go b/pkg/fourslash/tests/gen/findAllRefsDefaultImport_test.go index 0cf86272c..8cee56726 100644 --- a/pkg/fourslash/tests/gen/findAllRefsDefaultImport_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsDefaultImport_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsDefaultImport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export default function /*0*/a() {} diff --git a/pkg/fourslash/tests/gen/findAllRefsDefinition_test.go b/pkg/fourslash/tests/gen/findAllRefsDefinition_test.go index 90b4c8fc9..9e2ef797e 100644 --- a/pkg/fourslash/tests/gen/findAllRefsDefinition_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsDefinition_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsDefinition(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const /*1*/x = 0; /*2*/x;` diff --git a/pkg/fourslash/tests/gen/findAllRefsDestructureGeneric_test.go b/pkg/fourslash/tests/gen/findAllRefsDestructureGeneric_test.go index ae49db53e..81f101e1b 100644 --- a/pkg/fourslash/tests/gen/findAllRefsDestructureGeneric_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsDestructureGeneric_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsDestructureGeneric(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { /*0*/x: boolean; diff --git a/pkg/fourslash/tests/gen/findAllRefsDestructureGetter_test.go b/pkg/fourslash/tests/gen/findAllRefsDestructureGetter_test.go index 92719ca97..f1afc8db2 100644 --- a/pkg/fourslash/tests/gen/findAllRefsDestructureGetter_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsDestructureGetter_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsDestructureGetter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Test { get /*x0*/x() { return 0; } diff --git a/pkg/fourslash/tests/gen/findAllRefsEnumAsNamespace_test.go b/pkg/fourslash/tests/gen/findAllRefsEnumAsNamespace_test.go index 89a44a739..825d96923 100644 --- a/pkg/fourslash/tests/gen/findAllRefsEnumAsNamespace_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsEnumAsNamespace_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsEnumAsNamespace(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/enum /*2*/E { A } let e: /*3*/E.A;` diff --git a/pkg/fourslash/tests/gen/findAllRefsEnumMember_test.go b/pkg/fourslash/tests/gen/findAllRefsEnumMember_test.go index 2fb292cbc..8e55b014c 100644 --- a/pkg/fourslash/tests/gen/findAllRefsEnumMember_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsEnumMember_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsEnumMember(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum E { /*1*/A, B } const e: E./*2*/A = E./*3*/A;` diff --git a/pkg/fourslash/tests/gen/findAllRefsExportAsNamespace_test.go b/pkg/fourslash/tests/gen/findAllRefsExportAsNamespace_test.go index 694cedd1e..853d94a0b 100644 --- a/pkg/fourslash/tests/gen/findAllRefsExportAsNamespace_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsExportAsNamespace_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsExportAsNamespace(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /node_modules/a/index.d.ts export function /*0*/f(): void; diff --git a/pkg/fourslash/tests/gen/findAllRefsExportConstEqualToClass_test.go b/pkg/fourslash/tests/gen/findAllRefsExportConstEqualToClass_test.go index f14f24f96..6e8ead117 100644 --- a/pkg/fourslash/tests/gen/findAllRefsExportConstEqualToClass_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsExportConstEqualToClass_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsExportConstEqualToClass(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts class C {} diff --git a/pkg/fourslash/tests/gen/findAllRefsExportDefaultClassConstructor_test.go b/pkg/fourslash/tests/gen/findAllRefsExportDefaultClassConstructor_test.go index ce722b0ee..b568bc60f 100644 --- a/pkg/fourslash/tests/gen/findAllRefsExportDefaultClassConstructor_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsExportDefaultClassConstructor_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsExportDefaultClassConstructor(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export default class { /*1*/constructor() {} diff --git a/pkg/fourslash/tests/gen/findAllRefsExportEquals_test.go b/pkg/fourslash/tests/gen/findAllRefsExportEquals_test.go index 6695c902c..9c1a668ba 100644 --- a/pkg/fourslash/tests/gen/findAllRefsExportEquals_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsExportEquals_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsExportEquals(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts type /*0*/T = number; diff --git a/pkg/fourslash/tests/gen/findAllRefsExportNotAtTopLevel_test.go b/pkg/fourslash/tests/gen/findAllRefsExportNotAtTopLevel_test.go index 1f0ab5c49..be6e927ac 100644 --- a/pkg/fourslash/tests/gen/findAllRefsExportNotAtTopLevel_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsExportNotAtTopLevel_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsExportNotAtTopLevel(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `{ /*1*/export const /*2*/x = 0; diff --git a/pkg/fourslash/tests/gen/findAllRefsForComputedProperties2_test.go b/pkg/fourslash/tests/gen/findAllRefsForComputedProperties2_test.go index ef96509b1..08ebc0f9f 100644 --- a/pkg/fourslash/tests/gen/findAllRefsForComputedProperties2_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsForComputedProperties2_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsForComputedProperties2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { [/*1*/42](): void; diff --git a/pkg/fourslash/tests/gen/findAllRefsForComputedProperties_test.go b/pkg/fourslash/tests/gen/findAllRefsForComputedProperties_test.go index 0ae31dfb0..defc416d4 100644 --- a/pkg/fourslash/tests/gen/findAllRefsForComputedProperties_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsForComputedProperties_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsForComputedProperties(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { ["/*0*/prop1"]: () => void; diff --git a/pkg/fourslash/tests/gen/findAllRefsForDefaultExport01_test.go b/pkg/fourslash/tests/gen/findAllRefsForDefaultExport01_test.go index 1ac43766a..662ed0971 100644 --- a/pkg/fourslash/tests/gen/findAllRefsForDefaultExport01_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsForDefaultExport01_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsForDefaultExport01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/export default class /*2*/DefaultExportedClass { } diff --git a/pkg/fourslash/tests/gen/findAllRefsForDefaultExport02_test.go b/pkg/fourslash/tests/gen/findAllRefsForDefaultExport02_test.go index 1d224232e..30e100464 100644 --- a/pkg/fourslash/tests/gen/findAllRefsForDefaultExport02_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsForDefaultExport02_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsForDefaultExport02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/export default function /*2*/DefaultExportedFunction() { return /*3*/DefaultExportedFunction; diff --git a/pkg/fourslash/tests/gen/findAllRefsForDefaultExport03_test.go b/pkg/fourslash/tests/gen/findAllRefsForDefaultExport03_test.go index a866c767d..d1437e8a6 100644 --- a/pkg/fourslash/tests/gen/findAllRefsForDefaultExport03_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsForDefaultExport03_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsForDefaultExport03(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/function /*2*/f() { return 100; diff --git a/pkg/fourslash/tests/gen/findAllRefsForDefaultExport04_test.go b/pkg/fourslash/tests/gen/findAllRefsForDefaultExport04_test.go index f65497808..304b0c1ee 100644 --- a/pkg/fourslash/tests/gen/findAllRefsForDefaultExport04_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsForDefaultExport04_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsForDefaultExport04(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts const /*0*/a = 0; diff --git a/pkg/fourslash/tests/gen/findAllRefsForDefaultExport08_test.go b/pkg/fourslash/tests/gen/findAllRefsForDefaultExport08_test.go index bd07a0a3e..d113bdbdb 100644 --- a/pkg/fourslash/tests/gen/findAllRefsForDefaultExport08_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsForDefaultExport08_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsForDefaultExport08(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export default class DefaultExportedClass { } diff --git a/pkg/fourslash/tests/gen/findAllRefsForDefaultExport09_test.go b/pkg/fourslash/tests/gen/findAllRefsForDefaultExport09_test.go index df6200351..1dcbc574c 100644 --- a/pkg/fourslash/tests/gen/findAllRefsForDefaultExport09_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsForDefaultExport09_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsForDefaultExport09(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: /tsconfig.json { diff --git a/pkg/fourslash/tests/gen/findAllRefsForDefaultExport_anonymous_test.go b/pkg/fourslash/tests/gen/findAllRefsForDefaultExport_anonymous_test.go index 8f4327805..05410a757 100644 --- a/pkg/fourslash/tests/gen/findAllRefsForDefaultExport_anonymous_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsForDefaultExport_anonymous_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsForDefaultExport_anonymous(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export /*1*/default 1; diff --git a/pkg/fourslash/tests/gen/findAllRefsForDefaultExport_reExport_allowSyntheticDefaultImports_test.go b/pkg/fourslash/tests/gen/findAllRefsForDefaultExport_reExport_allowSyntheticDefaultImports_test.go index a1e15a96e..7dd6501c3 100644 --- a/pkg/fourslash/tests/gen/findAllRefsForDefaultExport_reExport_allowSyntheticDefaultImports_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsForDefaultExport_reExport_allowSyntheticDefaultImports_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsForDefaultExport_reExport_allowSyntheticDefaultImports(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowSyntheticDefaultImports: true // @Filename: /export.ts diff --git a/pkg/fourslash/tests/gen/findAllRefsForDefaultExport_reExport_test.go b/pkg/fourslash/tests/gen/findAllRefsForDefaultExport_reExport_test.go index 6e803bd20..8dfe142e8 100644 --- a/pkg/fourslash/tests/gen/findAllRefsForDefaultExport_reExport_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsForDefaultExport_reExport_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsForDefaultExport_reExport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /export.ts const /*0*/foo = 1; diff --git a/pkg/fourslash/tests/gen/findAllRefsForDefaultExport_test.go b/pkg/fourslash/tests/gen/findAllRefsForDefaultExport_test.go index 7628ffcad..ccaee34cf 100644 --- a/pkg/fourslash/tests/gen/findAllRefsForDefaultExport_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsForDefaultExport_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsForDefaultExport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts export default function /*def*/f() {} diff --git a/pkg/fourslash/tests/gen/findAllRefsForDefaultKeyword_test.go b/pkg/fourslash/tests/gen/findAllRefsForDefaultKeyword_test.go index 8ce24985b..7acb176fc 100644 --- a/pkg/fourslash/tests/gen/findAllRefsForDefaultKeyword_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsForDefaultKeyword_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsForDefaultKeyword(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noLib: true function f(value: string, /*1*/default: string) {} diff --git a/pkg/fourslash/tests/gen/findAllRefsForFunctionExpression01_test.go b/pkg/fourslash/tests/gen/findAllRefsForFunctionExpression01_test.go index 5246a58cc..00e65fab5 100644 --- a/pkg/fourslash/tests/gen/findAllRefsForFunctionExpression01_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsForFunctionExpression01_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsForFunctionExpression01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: file1.ts var foo = /*1*/function /*2*/foo(a = /*3*/foo(), b = () => /*4*/foo) { diff --git a/pkg/fourslash/tests/gen/findAllRefsForImportCallType_test.go b/pkg/fourslash/tests/gen/findAllRefsForImportCallType_test.go index 67a05330e..a48f94eb8 100644 --- a/pkg/fourslash/tests/gen/findAllRefsForImportCallType_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsForImportCallType_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsForImportCallType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /app.ts export function he/**/llo() {}; diff --git a/pkg/fourslash/tests/gen/findAllRefsForImportCall_test.go b/pkg/fourslash/tests/gen/findAllRefsForImportCall_test.go index 8a2ab52af..018ab480d 100644 --- a/pkg/fourslash/tests/gen/findAllRefsForImportCall_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsForImportCall_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsForImportCall(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /app.ts export function he/**/llo() {}; diff --git a/pkg/fourslash/tests/gen/findAllRefsForMappedType_test.go b/pkg/fourslash/tests/gen/findAllRefsForMappedType_test.go index fa3bcd791..5262351d9 100644 --- a/pkg/fourslash/tests/gen/findAllRefsForMappedType_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsForMappedType_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsForMappedType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface T { /*1*/a: number }; type U = { [K in keyof T]: string }; diff --git a/pkg/fourslash/tests/gen/findAllRefsForModuleGlobal_test.go b/pkg/fourslash/tests/gen/findAllRefsForModuleGlobal_test.go index d81e8fa6a..b76f594ed 100644 --- a/pkg/fourslash/tests/gen/findAllRefsForModuleGlobal_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsForModuleGlobal_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsForModuleGlobal(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /node_modules/foo/index.d.ts export const x = 0; diff --git a/pkg/fourslash/tests/gen/findAllRefsForModule_test.go b/pkg/fourslash/tests/gen/findAllRefsForModule_test.go index 7aa4a83ee..78e3008d1 100644 --- a/pkg/fourslash/tests/gen/findAllRefsForModule_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsForModule_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsForModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.ts diff --git a/pkg/fourslash/tests/gen/findAllRefsForObjectLiteralProperties_test.go b/pkg/fourslash/tests/gen/findAllRefsForObjectLiteralProperties_test.go index 86ea84617..3a23959d7 100644 --- a/pkg/fourslash/tests/gen/findAllRefsForObjectLiteralProperties_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsForObjectLiteralProperties_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsForObjectLiteralProperties(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = { /*1*/property: {} diff --git a/pkg/fourslash/tests/gen/findAllRefsForObjectSpread_test.go b/pkg/fourslash/tests/gen/findAllRefsForObjectSpread_test.go index b1e2ab7e4..9716c2279 100644 --- a/pkg/fourslash/tests/gen/findAllRefsForObjectSpread_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsForObjectSpread_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsForObjectSpread(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface A1 { readonly /*0*/a: string }; interface A2 { /*1*/a?: number }; diff --git a/pkg/fourslash/tests/gen/findAllRefsForRest_test.go b/pkg/fourslash/tests/gen/findAllRefsForRest_test.go index dfd5403be..feca56c5c 100644 --- a/pkg/fourslash/tests/gen/findAllRefsForRest_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsForRest_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsForRest(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Gen { x: number diff --git a/pkg/fourslash/tests/gen/findAllRefsForStaticInstanceMethodInheritance_test.go b/pkg/fourslash/tests/gen/findAllRefsForStaticInstanceMethodInheritance_test.go index e58219298..87be11c8f 100644 --- a/pkg/fourslash/tests/gen/findAllRefsForStaticInstanceMethodInheritance_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsForStaticInstanceMethodInheritance_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsForStaticInstanceMethodInheritance(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class X{ /*0*/foo(): void{} diff --git a/pkg/fourslash/tests/gen/findAllRefsForStaticInstancePropertyInheritance_test.go b/pkg/fourslash/tests/gen/findAllRefsForStaticInstancePropertyInheritance_test.go index 3817904be..3c28863a5 100644 --- a/pkg/fourslash/tests/gen/findAllRefsForStaticInstancePropertyInheritance_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsForStaticInstancePropertyInheritance_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsForStaticInstancePropertyInheritance(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class X{ /*0*/foo:any diff --git a/pkg/fourslash/tests/gen/findAllRefsForStringLiteralTypes_test.go b/pkg/fourslash/tests/gen/findAllRefsForStringLiteralTypes_test.go index ceb319e2b..d3c3b93be 100644 --- a/pkg/fourslash/tests/gen/findAllRefsForStringLiteralTypes_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsForStringLiteralTypes_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsForStringLiteralTypes(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type Options = "/*1*/option 1" | "option 2"; let myOption: Options = "/*2*/option 1";` diff --git a/pkg/fourslash/tests/gen/findAllRefsForStringLiteral_test.go b/pkg/fourslash/tests/gen/findAllRefsForStringLiteral_test.go index d1bcf036f..9860f326e 100644 --- a/pkg/fourslash/tests/gen/findAllRefsForStringLiteral_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsForStringLiteral_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsForStringLiteral(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: /a.ts interface Foo { diff --git a/pkg/fourslash/tests/gen/findAllRefsForUMDModuleAlias1_test.go b/pkg/fourslash/tests/gen/findAllRefsForUMDModuleAlias1_test.go index b3448eaf3..5c11d339a 100644 --- a/pkg/fourslash/tests/gen/findAllRefsForUMDModuleAlias1_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsForUMDModuleAlias1_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsForUMDModuleAlias1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: 0.d.ts export function doThing(): string; diff --git a/pkg/fourslash/tests/gen/findAllRefsForVariableInExtendsClause01_test.go b/pkg/fourslash/tests/gen/findAllRefsForVariableInExtendsClause01_test.go index b32d571c0..675595bc4 100644 --- a/pkg/fourslash/tests/gen/findAllRefsForVariableInExtendsClause01_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsForVariableInExtendsClause01_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsForVariableInExtendsClause01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/var /*2*/Base = class { }; class C extends /*3*/Base { }` diff --git a/pkg/fourslash/tests/gen/findAllRefsForVariableInExtendsClause02_test.go b/pkg/fourslash/tests/gen/findAllRefsForVariableInExtendsClause02_test.go index 6c6a1ce86..c08cbfef4 100644 --- a/pkg/fourslash/tests/gen/findAllRefsForVariableInExtendsClause02_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsForVariableInExtendsClause02_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsForVariableInExtendsClause02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/interface /*2*/Base { } namespace n { diff --git a/pkg/fourslash/tests/gen/findAllRefsForVariableInImplementsClause01_test.go b/pkg/fourslash/tests/gen/findAllRefsForVariableInImplementsClause01_test.go index 524d11d53..f40856c5f 100644 --- a/pkg/fourslash/tests/gen/findAllRefsForVariableInImplementsClause01_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsForVariableInImplementsClause01_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsForVariableInImplementsClause01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var Base = class { }; class C extends Base implements /**/Base { }` diff --git a/pkg/fourslash/tests/gen/findAllRefsGlobalModuleAugmentation_test.go b/pkg/fourslash/tests/gen/findAllRefsGlobalModuleAugmentation_test.go index 8c87c3410..f86263d42 100644 --- a/pkg/fourslash/tests/gen/findAllRefsGlobalModuleAugmentation_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsGlobalModuleAugmentation_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsGlobalModuleAugmentation(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export {}; diff --git a/pkg/fourslash/tests/gen/findAllRefsGlobalThisKeywordInModule_test.go b/pkg/fourslash/tests/gen/findAllRefsGlobalThisKeywordInModule_test.go index 58491cce5..35569f2de 100644 --- a/pkg/fourslash/tests/gen/findAllRefsGlobalThisKeywordInModule_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsGlobalThisKeywordInModule_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsGlobalThisKeywordInModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noLib: true /*1*/this; diff --git a/pkg/fourslash/tests/gen/findAllRefsImportDefault_test.go b/pkg/fourslash/tests/gen/findAllRefsImportDefault_test.go index 8b7abff1a..4e4e79c30 100644 --- a/pkg/fourslash/tests/gen/findAllRefsImportDefault_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsImportDefault_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsImportDefault(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: f.ts export { foo as default }; diff --git a/pkg/fourslash/tests/gen/findAllRefsImportEqualsJsonFile_test.go b/pkg/fourslash/tests/gen/findAllRefsImportEqualsJsonFile_test.go index e8399e1da..601c4b6a7 100644 --- a/pkg/fourslash/tests/gen/findAllRefsImportEqualsJsonFile_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsImportEqualsJsonFile_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsImportEqualsJsonFile(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/findAllRefsImportEquals_test.go b/pkg/fourslash/tests/gen/findAllRefsImportEquals_test.go index a511f1a28..23fac14f2 100644 --- a/pkg/fourslash/tests/gen/findAllRefsImportEquals_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsImportEquals_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsImportEquals(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `import j = N./**/q; namespace N { export const q = 0; }` diff --git a/pkg/fourslash/tests/gen/findAllRefsImportNamed_test.go b/pkg/fourslash/tests/gen/findAllRefsImportNamed_test.go index 98613414c..20bb6e6c6 100644 --- a/pkg/fourslash/tests/gen/findAllRefsImportNamed_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsImportNamed_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsImportNamed(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: f.ts export { foo as foo } diff --git a/pkg/fourslash/tests/gen/findAllRefsImportStarOfExportEquals_test.go b/pkg/fourslash/tests/gen/findAllRefsImportStarOfExportEquals_test.go index 7006fea26..29541218e 100644 --- a/pkg/fourslash/tests/gen/findAllRefsImportStarOfExportEquals_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsImportStarOfExportEquals_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsImportStarOfExportEquals(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowSyntheticDefaultimports: true // @Filename: /node_modules/a/index.d.ts diff --git a/pkg/fourslash/tests/gen/findAllRefsImportType_test.go b/pkg/fourslash/tests/gen/findAllRefsImportType_test.go index 77289d69e..793ae9adc 100644 --- a/pkg/fourslash/tests/gen/findAllRefsImportType_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsImportType_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsImportType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/findAllRefsInClassExpression_test.go b/pkg/fourslash/tests/gen/findAllRefsInClassExpression_test.go index 1478bb3f4..156f08ac3 100644 --- a/pkg/fourslash/tests/gen/findAllRefsInClassExpression_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsInClassExpression_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsInClassExpression(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { /*0*/boom(): void; } new class C implements I { diff --git a/pkg/fourslash/tests/gen/findAllRefsIndexedAccessTypes_test.go b/pkg/fourslash/tests/gen/findAllRefsIndexedAccessTypes_test.go index 46225b594..7b55332ef 100644 --- a/pkg/fourslash/tests/gen/findAllRefsIndexedAccessTypes_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsIndexedAccessTypes_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsIndexedAccessTypes(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { /*1*/0: number; diff --git a/pkg/fourslash/tests/gen/findAllRefsInheritedProperties1_test.go b/pkg/fourslash/tests/gen/findAllRefsInheritedProperties1_test.go index 1eebc3306..08c2c9836 100644 --- a/pkg/fourslash/tests/gen/findAllRefsInheritedProperties1_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsInheritedProperties1_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsInheritedProperties1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class class1 extends class1 { /*1*/doStuff() { } diff --git a/pkg/fourslash/tests/gen/findAllRefsInheritedProperties2_test.go b/pkg/fourslash/tests/gen/findAllRefsInheritedProperties2_test.go index ce3be6317..ddec0d89a 100644 --- a/pkg/fourslash/tests/gen/findAllRefsInheritedProperties2_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsInheritedProperties2_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsInheritedProperties2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface interface1 extends interface1 { /*1*/doStuff(): void; // r0 diff --git a/pkg/fourslash/tests/gen/findAllRefsInheritedProperties3_test.go b/pkg/fourslash/tests/gen/findAllRefsInheritedProperties3_test.go index 028aa06ca..7e15032da 100644 --- a/pkg/fourslash/tests/gen/findAllRefsInheritedProperties3_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsInheritedProperties3_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsInheritedProperties3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class class1 extends class1 { [|/*0*/doStuff() { }|] diff --git a/pkg/fourslash/tests/gen/findAllRefsInheritedProperties4_test.go b/pkg/fourslash/tests/gen/findAllRefsInheritedProperties4_test.go index d686b0e90..48247f0b6 100644 --- a/pkg/fourslash/tests/gen/findAllRefsInheritedProperties4_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsInheritedProperties4_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsInheritedProperties4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface C extends D { /*0*/prop0: string; diff --git a/pkg/fourslash/tests/gen/findAllRefsInheritedProperties5_test.go b/pkg/fourslash/tests/gen/findAllRefsInheritedProperties5_test.go index 9fe9bdf87..fedbbba46 100644 --- a/pkg/fourslash/tests/gen/findAllRefsInheritedProperties5_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsInheritedProperties5_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsInheritedProperties5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C extends D { /*0*/prop0: string; diff --git a/pkg/fourslash/tests/gen/findAllRefsInsideTemplates1_test.go b/pkg/fourslash/tests/gen/findAllRefsInsideTemplates1_test.go index e5d0638fa..0010a2499 100644 --- a/pkg/fourslash/tests/gen/findAllRefsInsideTemplates1_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsInsideTemplates1_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsInsideTemplates1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/var /*2*/x = 10; var y = ` + "`" + `${ /*3*/x } ${ /*4*/x }` + "`" + `` diff --git a/pkg/fourslash/tests/gen/findAllRefsInsideTemplates2_test.go b/pkg/fourslash/tests/gen/findAllRefsInsideTemplates2_test.go index 8b2009f39..f924801cf 100644 --- a/pkg/fourslash/tests/gen/findAllRefsInsideTemplates2_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsInsideTemplates2_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsInsideTemplates2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/function /*2*/f(...rest: any[]) { } /*3*/f ` + "`" + `${ /*4*/f } ${ /*5*/f }` + "`" + `` diff --git a/pkg/fourslash/tests/gen/findAllRefsInsideWithBlock_test.go b/pkg/fourslash/tests/gen/findAllRefsInsideWithBlock_test.go index 844b1efee..583698cf2 100644 --- a/pkg/fourslash/tests/gen/findAllRefsInsideWithBlock_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsInsideWithBlock_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsInsideWithBlock(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/var /*2*/x = 0; diff --git a/pkg/fourslash/tests/gen/findAllRefsIsDefinition_test.go b/pkg/fourslash/tests/gen/findAllRefsIsDefinition_test.go index 2b8be7561..5ffc577fd 100644 --- a/pkg/fourslash/tests/gen/findAllRefsIsDefinition_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsIsDefinition_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsIsDefinition(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function foo(a: number): number; declare function foo(a: string): string; diff --git a/pkg/fourslash/tests/gen/findAllRefsJsDocImportTag2_test.go b/pkg/fourslash/tests/gen/findAllRefsJsDocImportTag2_test.go index 91572624f..24331f70e 100644 --- a/pkg/fourslash/tests/gen/findAllRefsJsDocImportTag2_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsJsDocImportTag2_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsJsDocImportTag2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @checkJs: true // @Filename: /component.js diff --git a/pkg/fourslash/tests/gen/findAllRefsJsDocImportTag3_test.go b/pkg/fourslash/tests/gen/findAllRefsJsDocImportTag3_test.go index add8dd79b..5ef7dead7 100644 --- a/pkg/fourslash/tests/gen/findAllRefsJsDocImportTag3_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsJsDocImportTag3_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsJsDocImportTag3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @checkJs: true // @Filename: /component.js diff --git a/pkg/fourslash/tests/gen/findAllRefsJsDocImportTag4_test.go b/pkg/fourslash/tests/gen/findAllRefsJsDocImportTag4_test.go index 80865073f..626c5d0e4 100644 --- a/pkg/fourslash/tests/gen/findAllRefsJsDocImportTag4_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsJsDocImportTag4_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsJsDocImportTag4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @checkJs: true // @Filename: /component.js diff --git a/pkg/fourslash/tests/gen/findAllRefsJsDocImportTag5_test.go b/pkg/fourslash/tests/gen/findAllRefsJsDocImportTag5_test.go index bf25b5c82..967734681 100644 --- a/pkg/fourslash/tests/gen/findAllRefsJsDocImportTag5_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsJsDocImportTag5_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsJsDocImportTag5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @checkJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/findAllRefsJsDocImportTag_test.go b/pkg/fourslash/tests/gen/findAllRefsJsDocImportTag_test.go index 151ad0bfa..66416af22 100644 --- a/pkg/fourslash/tests/gen/findAllRefsJsDocImportTag_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsJsDocImportTag_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsJsDocImportTag(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJS: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/findAllRefsJsDocTemplateTag_class_js_test.go b/pkg/fourslash/tests/gen/findAllRefsJsDocTemplateTag_class_js_test.go index 534c2faaf..20d581567 100644 --- a/pkg/fourslash/tests/gen/findAllRefsJsDocTemplateTag_class_js_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsJsDocTemplateTag_class_js_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsJsDocTemplateTag_class_js(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/findAllRefsJsDocTemplateTag_class_test.go b/pkg/fourslash/tests/gen/findAllRefsJsDocTemplateTag_class_test.go index 6654dc1f4..b0ce1c53c 100644 --- a/pkg/fourslash/tests/gen/findAllRefsJsDocTemplateTag_class_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsJsDocTemplateTag_class_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsJsDocTemplateTag_class(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** @template /*1*/T */ class C {}` diff --git a/pkg/fourslash/tests/gen/findAllRefsJsDocTemplateTag_function_js_test.go b/pkg/fourslash/tests/gen/findAllRefsJsDocTemplateTag_function_js_test.go index ff07fd632..6765d39ba 100644 --- a/pkg/fourslash/tests/gen/findAllRefsJsDocTemplateTag_function_js_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsJsDocTemplateTag_function_js_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsJsDocTemplateTag_function_js(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/findAllRefsJsDocTemplateTag_function_test.go b/pkg/fourslash/tests/gen/findAllRefsJsDocTemplateTag_function_test.go index 58375b666..0ffb618f1 100644 --- a/pkg/fourslash/tests/gen/findAllRefsJsDocTemplateTag_function_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsJsDocTemplateTag_function_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsJsDocTemplateTag_function(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** @template /*1*/T */ function f() {}` diff --git a/pkg/fourslash/tests/gen/findAllRefsJsDocTypeDef_js_test.go b/pkg/fourslash/tests/gen/findAllRefsJsDocTypeDef_js_test.go index 0fdd88a9d..88a9688f5 100644 --- a/pkg/fourslash/tests/gen/findAllRefsJsDocTypeDef_js_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsJsDocTypeDef_js_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsJsDocTypeDef_js(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/findAllRefsJsDocTypeDef_test.go b/pkg/fourslash/tests/gen/findAllRefsJsDocTypeDef_test.go index 8b6dbc841..95221f026 100644 --- a/pkg/fourslash/tests/gen/findAllRefsJsDocTypeDef_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsJsDocTypeDef_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsJsDocTypeDef(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** @typedef {Object} /*0*/T */ function foo() {}` diff --git a/pkg/fourslash/tests/gen/findAllRefsJsThisPropertyAssignment2_test.go b/pkg/fourslash/tests/gen/findAllRefsJsThisPropertyAssignment2_test.go index b36e5fc3e..fb8e10bfa 100644 --- a/pkg/fourslash/tests/gen/findAllRefsJsThisPropertyAssignment2_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsJsThisPropertyAssignment2_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsJsThisPropertyAssignment2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @noImplicitThis: true diff --git a/pkg/fourslash/tests/gen/findAllRefsJsThisPropertyAssignment_test.go b/pkg/fourslash/tests/gen/findAllRefsJsThisPropertyAssignment_test.go index 7fca8e082..1c737096b 100644 --- a/pkg/fourslash/tests/gen/findAllRefsJsThisPropertyAssignment_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsJsThisPropertyAssignment_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsJsThisPropertyAssignment(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @noImplicitThis: true diff --git a/pkg/fourslash/tests/gen/findAllRefsMappedType_nonHomomorphic_test.go b/pkg/fourslash/tests/gen/findAllRefsMappedType_nonHomomorphic_test.go index bf72473b9..55d6e58a6 100644 --- a/pkg/fourslash/tests/gen/findAllRefsMappedType_nonHomomorphic_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsMappedType_nonHomomorphic_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsMappedType_nonHomomorphic(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true function f(x: { [K in "m"]: number; }) { diff --git a/pkg/fourslash/tests/gen/findAllRefsMappedType_test.go b/pkg/fourslash/tests/gen/findAllRefsMappedType_test.go index 68a15d9d2..b675d1017 100644 --- a/pkg/fourslash/tests/gen/findAllRefsMappedType_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsMappedType_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsMappedType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface T { /*1*/a: number; } type U = { readonly [K in keyof T]?: string }; diff --git a/pkg/fourslash/tests/gen/findAllRefsMissingModulesOverlappingSpecifiers_test.go b/pkg/fourslash/tests/gen/findAllRefsMissingModulesOverlappingSpecifiers_test.go index 901de01ef..390909d83 100644 --- a/pkg/fourslash/tests/gen/findAllRefsMissingModulesOverlappingSpecifiers_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsMissingModulesOverlappingSpecifiers_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsMissingModulesOverlappingSpecifiers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// https://github.com/microsoft/TypeScript/issues/5551 import { resolve/*0*/ as resolveUrl } from "idontcare"; diff --git a/pkg/fourslash/tests/gen/findAllRefsModuleAugmentation_test.go b/pkg/fourslash/tests/gen/findAllRefsModuleAugmentation_test.go index 3becb719b..b0a1cc49f 100644 --- a/pkg/fourslash/tests/gen/findAllRefsModuleAugmentation_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsModuleAugmentation_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsModuleAugmentation(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /node_modules/foo/index.d.ts /*1*/export type /*2*/T = number; diff --git a/pkg/fourslash/tests/gen/findAllRefsModuleDotExports_test.go b/pkg/fourslash/tests/gen/findAllRefsModuleDotExports_test.go index 39e27078e..75b4a5abf 100644 --- a/pkg/fourslash/tests/gen/findAllRefsModuleDotExports_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsModuleDotExports_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsModuleDotExports(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/findAllRefsNoImportClause_test.go b/pkg/fourslash/tests/gen/findAllRefsNoImportClause_test.go index 3b23284f6..9e8500d1c 100644 --- a/pkg/fourslash/tests/gen/findAllRefsNoImportClause_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsNoImportClause_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsNoImportClause(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts /*1*/export const /*2*/x = 0; diff --git a/pkg/fourslash/tests/gen/findAllRefsNoSubstitutionTemplateLiteralNoCrash1_test.go b/pkg/fourslash/tests/gen/findAllRefsNoSubstitutionTemplateLiteralNoCrash1_test.go index 9b86281cc..c7386a06d 100644 --- a/pkg/fourslash/tests/gen/findAllRefsNoSubstitutionTemplateLiteralNoCrash1_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsNoSubstitutionTemplateLiteralNoCrash1_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsNoSubstitutionTemplateLiteralNoCrash1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type Test = ` + "`" + `T/*1*/` + "`" + `;` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/findAllRefsNonModule_test.go b/pkg/fourslash/tests/gen/findAllRefsNonModule_test.go index 46ee10d05..ad0b24707 100644 --- a/pkg/fourslash/tests/gen/findAllRefsNonModule_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsNonModule_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsNonModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @checkJs: true // @Filename: /script.ts diff --git a/pkg/fourslash/tests/gen/findAllRefsNonexistentPropertyNoCrash1_test.go b/pkg/fourslash/tests/gen/findAllRefsNonexistentPropertyNoCrash1_test.go index 0e0463cb2..c7813d1e7 100644 --- a/pkg/fourslash/tests/gen/findAllRefsNonexistentPropertyNoCrash1_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsNonexistentPropertyNoCrash1_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsNonexistentPropertyNoCrash1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @allowJs: true diff --git a/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName01_test.go b/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName01_test.go index 0183059af..e9bb6e806 100644 --- a/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName01_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName01_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsObjectBindingElementPropertyName01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { /*1*/property1: number; diff --git a/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName02_test.go b/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName02_test.go index 339ec074b..1ad5473da 100644 --- a/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName02_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName02_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsObjectBindingElementPropertyName02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { /*1*/property1: number; diff --git a/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName03_test.go b/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName03_test.go index d855d5e10..7621e6a96 100644 --- a/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName03_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName03_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsObjectBindingElementPropertyName03(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { /*1*/property1: number; diff --git a/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName04_test.go b/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName04_test.go index bb2f13cbc..ce132fa8a 100644 --- a/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName04_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName04_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsObjectBindingElementPropertyName04(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { /*0*/property1: number; diff --git a/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName05_test.go b/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName05_test.go index ec8d7ca7e..4e1c45c54 100644 --- a/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName05_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName05_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsObjectBindingElementPropertyName05(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { property1: number; diff --git a/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName06_test.go b/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName06_test.go index 37b8bdf2c..5d7305b36 100644 --- a/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName06_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName06_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsObjectBindingElementPropertyName06(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { /*0*/property1: number; diff --git a/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName07_test.go b/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName07_test.go index 603667252..fc67e47f8 100644 --- a/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName07_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName07_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsObjectBindingElementPropertyName07(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let p, b; diff --git a/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName10_test.go b/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName10_test.go index c1b804ee5..3ed1313d7 100644 --- a/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName10_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsObjectBindingElementPropertyName10_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsObjectBindingElementPropertyName10(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Recursive { /*1*/next?: Recursive; diff --git a/pkg/fourslash/tests/gen/findAllRefsOfConstructor2_test.go b/pkg/fourslash/tests/gen/findAllRefsOfConstructor2_test.go index 9729d52e0..8dedaffa3 100644 --- a/pkg/fourslash/tests/gen/findAllRefsOfConstructor2_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsOfConstructor2_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsOfConstructor2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A { /*a*/constructor(s: string) {} diff --git a/pkg/fourslash/tests/gen/findAllRefsOfConstructor_multipleFiles_test.go b/pkg/fourslash/tests/gen/findAllRefsOfConstructor_multipleFiles_test.go index f1e0bb7c8..e230f328b 100644 --- a/pkg/fourslash/tests/gen/findAllRefsOfConstructor_multipleFiles_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsOfConstructor_multipleFiles_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsOfConstructor_multipleFiles(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: f.ts class A { diff --git a/pkg/fourslash/tests/gen/findAllRefsOfConstructor_test.go b/pkg/fourslash/tests/gen/findAllRefsOfConstructor_test.go index a348f4d6e..9631b359c 100644 --- a/pkg/fourslash/tests/gen/findAllRefsOfConstructor_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsOfConstructor_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsOfConstructor(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A { /*aCtr*/constructor(s: string) {} diff --git a/pkg/fourslash/tests/gen/findAllRefsOfConstructor_withModifier_test.go b/pkg/fourslash/tests/gen/findAllRefsOfConstructor_withModifier_test.go index 146b54da1..a1d1a8d74 100644 --- a/pkg/fourslash/tests/gen/findAllRefsOfConstructor_withModifier_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsOfConstructor_withModifier_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsOfConstructor_withModifier(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class X { public /*0*/constructor() {} diff --git a/pkg/fourslash/tests/gen/findAllRefsOnDecorators_test.go b/pkg/fourslash/tests/gen/findAllRefsOnDecorators_test.go index 242b0fc25..24dc28930 100644 --- a/pkg/fourslash/tests/gen/findAllRefsOnDecorators_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsOnDecorators_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsOnDecorators(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts /*1*/function /*2*/decorator(target) { diff --git a/pkg/fourslash/tests/gen/findAllRefsOnDefinition2_test.go b/pkg/fourslash/tests/gen/findAllRefsOnDefinition2_test.go index 8816aae7d..44df83c03 100644 --- a/pkg/fourslash/tests/gen/findAllRefsOnDefinition2_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsOnDefinition2_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsOnDefinition2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: findAllRefsOnDefinition2-import.ts export module Test{ diff --git a/pkg/fourslash/tests/gen/findAllRefsOnDefinition_test.go b/pkg/fourslash/tests/gen/findAllRefsOnDefinition_test.go index 73576442e..798707861 100644 --- a/pkg/fourslash/tests/gen/findAllRefsOnDefinition_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsOnDefinition_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsOnDefinition(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: findAllRefsOnDefinition-import.ts export class Test{ diff --git a/pkg/fourslash/tests/gen/findAllRefsOnImportAliases2_test.go b/pkg/fourslash/tests/gen/findAllRefsOnImportAliases2_test.go index 2d5332943..494f9016d 100644 --- a/pkg/fourslash/tests/gen/findAllRefsOnImportAliases2_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsOnImportAliases2_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsOnImportAliases2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: a.ts [|export class /*class0*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}Class|] {}|] diff --git a/pkg/fourslash/tests/gen/findAllRefsOnImportAliases_test.go b/pkg/fourslash/tests/gen/findAllRefsOnImportAliases_test.go index 93498efd4..a9291d929 100644 --- a/pkg/fourslash/tests/gen/findAllRefsOnImportAliases_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsOnImportAliases_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsOnImportAliases(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: a.ts export class /*0*/Class { diff --git a/pkg/fourslash/tests/gen/findAllRefsOnPrivateParameterProperty1_test.go b/pkg/fourslash/tests/gen/findAllRefsOnPrivateParameterProperty1_test.go index ccec99f1d..0001467f3 100644 --- a/pkg/fourslash/tests/gen/findAllRefsOnPrivateParameterProperty1_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsOnPrivateParameterProperty1_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsOnPrivateParameterProperty1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class ABCD { constructor(private x: number, public y: number, /*1*/private /*2*/z: number) { diff --git a/pkg/fourslash/tests/gen/findAllRefsParameterPropertyDeclaration1_test.go b/pkg/fourslash/tests/gen/findAllRefsParameterPropertyDeclaration1_test.go index 4ace7e95b..d1b1272f3 100644 --- a/pkg/fourslash/tests/gen/findAllRefsParameterPropertyDeclaration1_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsParameterPropertyDeclaration1_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsParameterPropertyDeclaration1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { constructor(private /*1*/privateParam: number) { diff --git a/pkg/fourslash/tests/gen/findAllRefsParameterPropertyDeclaration2_test.go b/pkg/fourslash/tests/gen/findAllRefsParameterPropertyDeclaration2_test.go index 38a3390a2..6587b4801 100644 --- a/pkg/fourslash/tests/gen/findAllRefsParameterPropertyDeclaration2_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsParameterPropertyDeclaration2_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsParameterPropertyDeclaration2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { constructor(public /*0*/publicParam: number) { diff --git a/pkg/fourslash/tests/gen/findAllRefsParameterPropertyDeclaration3_test.go b/pkg/fourslash/tests/gen/findAllRefsParameterPropertyDeclaration3_test.go index 2e6550900..ffd9df168 100644 --- a/pkg/fourslash/tests/gen/findAllRefsParameterPropertyDeclaration3_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsParameterPropertyDeclaration3_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsParameterPropertyDeclaration3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { constructor(protected /*0*/protectedParam: number) { diff --git a/pkg/fourslash/tests/gen/findAllRefsParameterPropertyDeclaration_inheritance_test.go b/pkg/fourslash/tests/gen/findAllRefsParameterPropertyDeclaration_inheritance_test.go index d36ce81a3..635150936 100644 --- a/pkg/fourslash/tests/gen/findAllRefsParameterPropertyDeclaration_inheritance_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsParameterPropertyDeclaration_inheritance_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsParameterPropertyDeclaration_inheritance(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { constructor(public /*0*/x: string) { diff --git a/pkg/fourslash/tests/gen/findAllRefsPrefixSuffixPreference_test.go b/pkg/fourslash/tests/gen/findAllRefsPrefixSuffixPreference_test.go index 20c13c9ba..9fce989a9 100644 --- a/pkg/fourslash/tests/gen/findAllRefsPrefixSuffixPreference_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsPrefixSuffixPreference_test.go @@ -10,8 +10,8 @@ import ( ) func TestFindAllRefsPrefixSuffixPreference(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /file1.ts declare function log(s: string | number): void; diff --git a/pkg/fourslash/tests/gen/findAllRefsPrimitiveJsDoc_test.go b/pkg/fourslash/tests/gen/findAllRefsPrimitiveJsDoc_test.go index 4e6627c84..464d55102 100644 --- a/pkg/fourslash/tests/gen/findAllRefsPrimitiveJsDoc_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsPrimitiveJsDoc_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsPrimitiveJsDoc(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noLib: true /** diff --git a/pkg/fourslash/tests/gen/findAllRefsPrivateNameAccessors_test.go b/pkg/fourslash/tests/gen/findAllRefsPrivateNameAccessors_test.go index c10126db2..3bbcd28e3 100644 --- a/pkg/fourslash/tests/gen/findAllRefsPrivateNameAccessors_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsPrivateNameAccessors_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsPrivateNameAccessors(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { /*1*/get /*2*/#foo(){ return 1; } diff --git a/pkg/fourslash/tests/gen/findAllRefsPrivateNameMethods_test.go b/pkg/fourslash/tests/gen/findAllRefsPrivateNameMethods_test.go index d9d74a5bf..9fcdd46ce 100644 --- a/pkg/fourslash/tests/gen/findAllRefsPrivateNameMethods_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsPrivateNameMethods_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsPrivateNameMethods(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { /*1*/#foo(){ } diff --git a/pkg/fourslash/tests/gen/findAllRefsPrivateNameProperties_test.go b/pkg/fourslash/tests/gen/findAllRefsPrivateNameProperties_test.go index e4d50fc76..3a06c0409 100644 --- a/pkg/fourslash/tests/gen/findAllRefsPrivateNameProperties_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsPrivateNameProperties_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsPrivateNameProperties(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { /*1*/#foo = 10; diff --git a/pkg/fourslash/tests/gen/findAllRefsPropertyContextuallyTypedByTypeParam01_test.go b/pkg/fourslash/tests/gen/findAllRefsPropertyContextuallyTypedByTypeParam01_test.go index 48146414b..7259a67fd 100644 --- a/pkg/fourslash/tests/gen/findAllRefsPropertyContextuallyTypedByTypeParam01_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsPropertyContextuallyTypedByTypeParam01_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsPropertyContextuallyTypedByTypeParam01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IFoo { /*1*/a: string; diff --git a/pkg/fourslash/tests/gen/findAllRefsReExportLocal_test.go b/pkg/fourslash/tests/gen/findAllRefsReExportLocal_test.go index ca9c53675..3d32694b8 100644 --- a/pkg/fourslash/tests/gen/findAllRefsReExportLocal_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsReExportLocal_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsReExportLocal(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noLib: true // @Filename: /a.ts diff --git a/pkg/fourslash/tests/gen/findAllRefsReExportRightNameWrongSymbol_test.go b/pkg/fourslash/tests/gen/findAllRefsReExportRightNameWrongSymbol_test.go index 7cd8c8760..825fe26f8 100644 --- a/pkg/fourslash/tests/gen/findAllRefsReExportRightNameWrongSymbol_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsReExportRightNameWrongSymbol_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsReExportRightNameWrongSymbol(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts [|export const /*a*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}x|] = 0;|] diff --git a/pkg/fourslash/tests/gen/findAllRefsReExportStarAs_test.go b/pkg/fourslash/tests/gen/findAllRefsReExportStarAs_test.go index 8ed9188b8..47f54f8e5 100644 --- a/pkg/fourslash/tests/gen/findAllRefsReExportStarAs_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsReExportStarAs_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsReExportStarAs(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /leafModule.ts export const /*helloDef*/hello = () => 'Hello'; diff --git a/pkg/fourslash/tests/gen/findAllRefsReExportStar_test.go b/pkg/fourslash/tests/gen/findAllRefsReExportStar_test.go index 9f44252ef..8806f4dde 100644 --- a/pkg/fourslash/tests/gen/findAllRefsReExportStar_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsReExportStar_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsReExportStar(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export function /*0*/foo(): void {} diff --git a/pkg/fourslash/tests/gen/findAllRefsReExport_broken2_test.go b/pkg/fourslash/tests/gen/findAllRefsReExport_broken2_test.go index 7b3c403b2..bd1e0cc40 100644 --- a/pkg/fourslash/tests/gen/findAllRefsReExport_broken2_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsReExport_broken2_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsReExport_broken2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts /*1*/export { /*2*/x } from "nonsense";` diff --git a/pkg/fourslash/tests/gen/findAllRefsReExport_broken_test.go b/pkg/fourslash/tests/gen/findAllRefsReExport_broken_test.go index 5951ab931..35cff8db3 100644 --- a/pkg/fourslash/tests/gen/findAllRefsReExport_broken_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsReExport_broken_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsReExport_broken(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts /*1*/export { /*2*/x };` diff --git a/pkg/fourslash/tests/gen/findAllRefsReExports2_test.go b/pkg/fourslash/tests/gen/findAllRefsReExports2_test.go index d4b5e9be2..aac050601 100644 --- a/pkg/fourslash/tests/gen/findAllRefsReExports2_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsReExports2_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsReExports2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export function /*1*/foo(): void {} diff --git a/pkg/fourslash/tests/gen/findAllRefsReExportsUseInImportType_test.go b/pkg/fourslash/tests/gen/findAllRefsReExportsUseInImportType_test.go index 397eb084d..e7d95f915 100644 --- a/pkg/fourslash/tests/gen/findAllRefsReExportsUseInImportType_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsReExportsUseInImportType_test.go @@ -10,8 +10,8 @@ import ( ) func TestFindAllRefsReExportsUseInImportType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /foo/types/types.ts [|export type /*full0*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}Full|] = { prop: string; };|] diff --git a/pkg/fourslash/tests/gen/findAllRefsRedeclaredPropertyInDerivedInterface_test.go b/pkg/fourslash/tests/gen/findAllRefsRedeclaredPropertyInDerivedInterface_test.go index 5afb255dc..5b7071abc 100644 --- a/pkg/fourslash/tests/gen/findAllRefsRedeclaredPropertyInDerivedInterface_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsRedeclaredPropertyInDerivedInterface_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsRedeclaredPropertyInDerivedInterface(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noLib: true interface A { diff --git a/pkg/fourslash/tests/gen/findAllRefsRenameImportWithSameName_test.go b/pkg/fourslash/tests/gen/findAllRefsRenameImportWithSameName_test.go index 450742d6a..da9727857 100644 --- a/pkg/fourslash/tests/gen/findAllRefsRenameImportWithSameName_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsRenameImportWithSameName_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsRenameImportWithSameName(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts [|export const /*0*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}x|] = 0;|] diff --git a/pkg/fourslash/tests/gen/findAllRefsRootSymbols_test.go b/pkg/fourslash/tests/gen/findAllRefsRootSymbols_test.go index 971c814eb..0d74dafe4 100644 --- a/pkg/fourslash/tests/gen/findAllRefsRootSymbols_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsRootSymbols_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsRootSymbols(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { /*0*/x: {}; } interface J { /*1*/x: {}; } diff --git a/pkg/fourslash/tests/gen/findAllRefsThisKeywordMultipleFiles_test.go b/pkg/fourslash/tests/gen/findAllRefsThisKeywordMultipleFiles_test.go index bdd3c67f2..c53412339 100644 --- a/pkg/fourslash/tests/gen/findAllRefsThisKeywordMultipleFiles_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsThisKeywordMultipleFiles_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsThisKeywordMultipleFiles(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: file1.ts /*1*/this; /*2*/this; diff --git a/pkg/fourslash/tests/gen/findAllRefsThisKeyword_test.go b/pkg/fourslash/tests/gen/findAllRefsThisKeyword_test.go index fee662325..643313d1a 100644 --- a/pkg/fourslash/tests/gen/findAllRefsThisKeyword_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsThisKeyword_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsThisKeyword(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noLib: true /*1*/this; diff --git a/pkg/fourslash/tests/gen/findAllRefsTypeParameterInMergedInterface_test.go b/pkg/fourslash/tests/gen/findAllRefsTypeParameterInMergedInterface_test.go index 4f91a1a7b..342712abf 100644 --- a/pkg/fourslash/tests/gen/findAllRefsTypeParameterInMergedInterface_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsTypeParameterInMergedInterface_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsTypeParameterInMergedInterface(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { a: /*2*/T } interface I { b: /*4*/T }` diff --git a/pkg/fourslash/tests/gen/findAllRefsTypedef_importType_test.go b/pkg/fourslash/tests/gen/findAllRefsTypedef_importType_test.go index bf135036a..f04d5da79 100644 --- a/pkg/fourslash/tests/gen/findAllRefsTypedef_importType_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsTypedef_importType_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsTypedef_importType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/findAllRefsTypedef_test.go b/pkg/fourslash/tests/gen/findAllRefsTypedef_test.go index 996608be2..d13dd10f6 100644 --- a/pkg/fourslash/tests/gen/findAllRefsTypedef_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsTypedef_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsTypedef(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/findAllRefsTypeofImport_test.go b/pkg/fourslash/tests/gen/findAllRefsTypeofImport_test.go index 3ffb0c608..8f8a89119 100644 --- a/pkg/fourslash/tests/gen/findAllRefsTypeofImport_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsTypeofImport_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsTypeofImport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts /*1*/export const /*2*/x = 0; diff --git a/pkg/fourslash/tests/gen/findAllRefsUnionProperty_test.go b/pkg/fourslash/tests/gen/findAllRefsUnionProperty_test.go index af36b8b33..249328fd7 100644 --- a/pkg/fourslash/tests/gen/findAllRefsUnionProperty_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsUnionProperty_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsUnionProperty(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type T = | { /*t0*/type: "a", /*p0*/prop: number } diff --git a/pkg/fourslash/tests/gen/findAllRefsUnresolvedSymbols1_test.go b/pkg/fourslash/tests/gen/findAllRefsUnresolvedSymbols1_test.go index 467b27803..790f5e115 100644 --- a/pkg/fourslash/tests/gen/findAllRefsUnresolvedSymbols1_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsUnresolvedSymbols1_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsUnresolvedSymbols1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let a: /*a0*/Bar; let b: /*a1*/Bar; diff --git a/pkg/fourslash/tests/gen/findAllRefsUnresolvedSymbols2_test.go b/pkg/fourslash/tests/gen/findAllRefsUnresolvedSymbols2_test.go index 21238bf86..97f11f646 100644 --- a/pkg/fourslash/tests/gen/findAllRefsUnresolvedSymbols2_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsUnresolvedSymbols2_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsUnresolvedSymbols2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `import { /*a0*/Bar } from "does-not-exist"; diff --git a/pkg/fourslash/tests/gen/findAllRefsUnresolvedSymbols3_test.go b/pkg/fourslash/tests/gen/findAllRefsUnresolvedSymbols3_test.go index 50c33d18d..a94842de7 100644 --- a/pkg/fourslash/tests/gen/findAllRefsUnresolvedSymbols3_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsUnresolvedSymbols3_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsUnresolvedSymbols3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `import * as /*a0*/Bar from "does-not-exist"; diff --git a/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames1_test.go b/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames1_test.go index 07aefe860..effcfeeb2 100644 --- a/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames1_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames1_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsWithLeadingUnderscoreNames1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { /*1*/public /*2*/_bar() { return 0; } diff --git a/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames2_test.go b/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames2_test.go index be2e63be7..d3a31288d 100644 --- a/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames2_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames2_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsWithLeadingUnderscoreNames2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { /*1*/public /*2*/__bar() { return 0; } diff --git a/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames3_test.go b/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames3_test.go index c9757bc78..8e843a97d 100644 --- a/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames3_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames3_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsWithLeadingUnderscoreNames3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { /*1*/public /*2*/___bar() { return 0; } diff --git a/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames4_test.go b/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames4_test.go index 793376278..58aba46b6 100644 --- a/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames4_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames4_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsWithLeadingUnderscoreNames4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { /*1*/public /*2*/____bar() { return 0; } diff --git a/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames5_test.go b/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames5_test.go index 8491e0635..226ac17be 100644 --- a/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames5_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames5_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsWithLeadingUnderscoreNames5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { public _bar; diff --git a/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames6_test.go b/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames6_test.go index d2deb2fb0..2e2fc6ccc 100644 --- a/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames6_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames6_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsWithLeadingUnderscoreNames6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { public _bar; diff --git a/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames7_test.go b/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames7_test.go index 229d33727..caf3b4deb 100644 --- a/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames7_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames7_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsWithLeadingUnderscoreNames7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/function /*2*/__foo() { /*3*/__foo(); diff --git a/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames8_test.go b/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames8_test.go index 624d75bbd..f74139f7a 100644 --- a/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames8_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames8_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsWithLeadingUnderscoreNames8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `(/*1*/function /*2*/__foo() { /*3*/__foo(); diff --git a/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames9_test.go b/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames9_test.go index d7bfb4ebe..a1144c3a6 100644 --- a/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames9_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsWithLeadingUnderscoreNames9_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsWithLeadingUnderscoreNames9(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `(/*1*/function /*2*/___foo() { /*3*/___foo(); diff --git a/pkg/fourslash/tests/gen/findAllRefsWithShorthandPropertyAssignment2_test.go b/pkg/fourslash/tests/gen/findAllRefsWithShorthandPropertyAssignment2_test.go index 2154835be..e8c6dfb1c 100644 --- a/pkg/fourslash/tests/gen/findAllRefsWithShorthandPropertyAssignment2_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsWithShorthandPropertyAssignment2_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsWithShorthandPropertyAssignment2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var /*0*/dx = "Foo"; diff --git a/pkg/fourslash/tests/gen/findAllRefsWithShorthandPropertyAssignment_test.go b/pkg/fourslash/tests/gen/findAllRefsWithShorthandPropertyAssignment_test.go index a7f37459d..1a823f71f 100644 --- a/pkg/fourslash/tests/gen/findAllRefsWithShorthandPropertyAssignment_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsWithShorthandPropertyAssignment_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsWithShorthandPropertyAssignment(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var /*0*/name = "Foo"; diff --git a/pkg/fourslash/tests/gen/findAllRefsWriteAccess_test.go b/pkg/fourslash/tests/gen/findAllRefsWriteAccess_test.go index 7fb4e99fe..6245d36eb 100644 --- a/pkg/fourslash/tests/gen/findAllRefsWriteAccess_test.go +++ b/pkg/fourslash/tests/gen/findAllRefsWriteAccess_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefsWriteAccess(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Obj { [` + "`" + `/*1*/num` + "`" + `]: number; diff --git a/pkg/fourslash/tests/gen/findAllRefs_importType_js1_test.go b/pkg/fourslash/tests/gen/findAllRefs_importType_js1_test.go index 096467e6a..a00635f81 100644 --- a/pkg/fourslash/tests/gen/findAllRefs_importType_js1_test.go +++ b/pkg/fourslash/tests/gen/findAllRefs_importType_js1_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefs_importType_js1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/findAllRefs_importType_js2_test.go b/pkg/fourslash/tests/gen/findAllRefs_importType_js2_test.go index 763ba941f..8fddc7524 100644 --- a/pkg/fourslash/tests/gen/findAllRefs_importType_js2_test.go +++ b/pkg/fourslash/tests/gen/findAllRefs_importType_js2_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefs_importType_js2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/findAllRefs_importType_js3_test.go b/pkg/fourslash/tests/gen/findAllRefs_importType_js3_test.go index a96f19a2a..c253b91a0 100644 --- a/pkg/fourslash/tests/gen/findAllRefs_importType_js3_test.go +++ b/pkg/fourslash/tests/gen/findAllRefs_importType_js3_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefs_importType_js3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/findAllRefs_importType_js4_test.go b/pkg/fourslash/tests/gen/findAllRefs_importType_js4_test.go index 1ae5e44bd..6e094476d 100644 --- a/pkg/fourslash/tests/gen/findAllRefs_importType_js4_test.go +++ b/pkg/fourslash/tests/gen/findAllRefs_importType_js4_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefs_importType_js4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @allowJs: true diff --git a/pkg/fourslash/tests/gen/findAllRefs_importType_js_test.go b/pkg/fourslash/tests/gen/findAllRefs_importType_js_test.go index f7a3ccc4a..54fa8f177 100644 --- a/pkg/fourslash/tests/gen/findAllRefs_importType_js_test.go +++ b/pkg/fourslash/tests/gen/findAllRefs_importType_js_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefs_importType_js(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/findAllRefs_importType_meaningAtLocation_test.go b/pkg/fourslash/tests/gen/findAllRefs_importType_meaningAtLocation_test.go index d92d8626b..30ad77189 100644 --- a/pkg/fourslash/tests/gen/findAllRefs_importType_meaningAtLocation_test.go +++ b/pkg/fourslash/tests/gen/findAllRefs_importType_meaningAtLocation_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefs_importType_meaningAtLocation(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts /*1*/export type /*2*/T = 0; diff --git a/pkg/fourslash/tests/gen/findAllRefs_importType_named_test.go b/pkg/fourslash/tests/gen/findAllRefs_importType_named_test.go index 0215f37be..f0a625432 100644 --- a/pkg/fourslash/tests/gen/findAllRefs_importType_named_test.go +++ b/pkg/fourslash/tests/gen/findAllRefs_importType_named_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefs_importType_named(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts /*1*/export type /*2*/T = number; diff --git a/pkg/fourslash/tests/gen/findAllRefs_importType_typeofImport_test.go b/pkg/fourslash/tests/gen/findAllRefs_importType_typeofImport_test.go index a54d6fb27..2f6260567 100644 --- a/pkg/fourslash/tests/gen/findAllRefs_importType_typeofImport_test.go +++ b/pkg/fourslash/tests/gen/findAllRefs_importType_typeofImport_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefs_importType_typeofImport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export const x = 0; diff --git a/pkg/fourslash/tests/gen/findAllRefs_jsEnum_test.go b/pkg/fourslash/tests/gen/findAllRefs_jsEnum_test.go index ca9f2a596..e34a41e5a 100644 --- a/pkg/fourslash/tests/gen/findAllRefs_jsEnum_test.go +++ b/pkg/fourslash/tests/gen/findAllRefs_jsEnum_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindAllRefs_jsEnum(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/findReferencesAcrossMultipleProjects_test.go b/pkg/fourslash/tests/gen/findReferencesAcrossMultipleProjects_test.go index 0d36dcc22..512e65a62 100644 --- a/pkg/fourslash/tests/gen/findReferencesAcrossMultipleProjects_test.go +++ b/pkg/fourslash/tests/gen/findReferencesAcrossMultipleProjects_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindReferencesAcrossMultipleProjects(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: a.ts /*1*/var /*2*/x: number; diff --git a/pkg/fourslash/tests/gen/findReferencesAfterEdit_test.go b/pkg/fourslash/tests/gen/findReferencesAfterEdit_test.go index 6ef0c6d83..8c333bbc2 100644 --- a/pkg/fourslash/tests/gen/findReferencesAfterEdit_test.go +++ b/pkg/fourslash/tests/gen/findReferencesAfterEdit_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindReferencesAfterEdit(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts interface A { diff --git a/pkg/fourslash/tests/gen/findReferencesBindingPatternInJsdocNoCrash1_test.go b/pkg/fourslash/tests/gen/findReferencesBindingPatternInJsdocNoCrash1_test.go index 943a3c6b9..43c049873 100644 --- a/pkg/fourslash/tests/gen/findReferencesBindingPatternInJsdocNoCrash1_test.go +++ b/pkg/fourslash/tests/gen/findReferencesBindingPatternInJsdocNoCrash1_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindReferencesBindingPatternInJsdocNoCrash1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @moduleResolution: bundler // @Filename: node_modules/use-query/package.json diff --git a/pkg/fourslash/tests/gen/findReferencesBindingPatternInJsdocNoCrash2_test.go b/pkg/fourslash/tests/gen/findReferencesBindingPatternInJsdocNoCrash2_test.go index 996542e3f..1eb1c5480 100644 --- a/pkg/fourslash/tests/gen/findReferencesBindingPatternInJsdocNoCrash2_test.go +++ b/pkg/fourslash/tests/gen/findReferencesBindingPatternInJsdocNoCrash2_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindReferencesBindingPatternInJsdocNoCrash2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @moduleResolution: bundler // @Filename: node_modules/use-query/package.json diff --git a/pkg/fourslash/tests/gen/findReferencesDefinitionDisplayParts_test.go b/pkg/fourslash/tests/gen/findReferencesDefinitionDisplayParts_test.go index 6d8875353..327229eab 100644 --- a/pkg/fourslash/tests/gen/findReferencesDefinitionDisplayParts_test.go +++ b/pkg/fourslash/tests/gen/findReferencesDefinitionDisplayParts_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindReferencesDefinitionDisplayParts(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Gre/*1*/eter { someFunction() { th/*2*/is; } diff --git a/pkg/fourslash/tests/gen/findReferencesJSXTagName2_test.go b/pkg/fourslash/tests/gen/findReferencesJSXTagName2_test.go index 4fed217ec..382a17b83 100644 --- a/pkg/fourslash/tests/gen/findReferencesJSXTagName2_test.go +++ b/pkg/fourslash/tests/gen/findReferencesJSXTagName2_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindReferencesJSXTagName2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: index.tsx /*1*/const /*2*/obj = {Component: () =>

}; diff --git a/pkg/fourslash/tests/gen/findReferencesJSXTagName3_test.go b/pkg/fourslash/tests/gen/findReferencesJSXTagName3_test.go index 045e947b7..f3d7603f5 100644 --- a/pkg/fourslash/tests/gen/findReferencesJSXTagName3_test.go +++ b/pkg/fourslash/tests/gen/findReferencesJSXTagName3_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindReferencesJSXTagName3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @jsx: preserve // @Filename: /a.tsx diff --git a/pkg/fourslash/tests/gen/findReferencesJSXTagName_test.go b/pkg/fourslash/tests/gen/findReferencesJSXTagName_test.go index 03f33be5f..e5ea81c17 100644 --- a/pkg/fourslash/tests/gen/findReferencesJSXTagName_test.go +++ b/pkg/fourslash/tests/gen/findReferencesJSXTagName_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindReferencesJSXTagName(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: index.tsx import { /*1*/SubmissionComp } from "./RedditSubmission" diff --git a/pkg/fourslash/tests/gen/findReferencesSeeTagInTs_test.go b/pkg/fourslash/tests/gen/findReferencesSeeTagInTs_test.go index 5e46ebfdd..d1fbc00ab 100644 --- a/pkg/fourslash/tests/gen/findReferencesSeeTagInTs_test.go +++ b/pkg/fourslash/tests/gen/findReferencesSeeTagInTs_test.go @@ -8,8 +8,8 @@ import ( ) func TestFindReferencesSeeTagInTs(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function doStuffWithStuff/*1*/(stuff: { quantity: number }) {} diff --git a/pkg/fourslash/tests/gen/fixingTypeParametersQuickInfo_test.go b/pkg/fourslash/tests/gen/fixingTypeParametersQuickInfo_test.go index bd1ab92e0..822e84da2 100644 --- a/pkg/fourslash/tests/gen/fixingTypeParametersQuickInfo_test.go +++ b/pkg/fourslash/tests/gen/fixingTypeParametersQuickInfo_test.go @@ -8,8 +8,8 @@ import ( ) func TestFixingTypeParametersQuickInfo(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function f(x: T, y: (p: T) => T, z: (p: T) => T): T; var /*1*/result = /*2*/f(0, /*3*/x => null, /*4*/x => x.blahblah);` diff --git a/pkg/fourslash/tests/gen/formatAfterWhitespace_test.go b/pkg/fourslash/tests/gen/formatAfterWhitespace_test.go index c53774f67..2c0a4f40d 100644 --- a/pkg/fourslash/tests/gen/formatAfterWhitespace_test.go +++ b/pkg/fourslash/tests/gen/formatAfterWhitespace_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormatAfterWhitespace(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo() { diff --git a/pkg/fourslash/tests/gen/formatAnyTypeLiteral_test.go b/pkg/fourslash/tests/gen/formatAnyTypeLiteral_test.go index 648547513..a0fc205f2 100644 --- a/pkg/fourslash/tests/gen/formatAnyTypeLiteral_test.go +++ b/pkg/fourslash/tests/gen/formatAnyTypeLiteral_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormatAnyTypeLiteral(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(x: { } /*objLit*/){ /**/` diff --git a/pkg/fourslash/tests/gen/formatEmptyBlock_test.go b/pkg/fourslash/tests/gen/formatEmptyBlock_test.go index 35d7bbcfd..cb2b05b93 100644 --- a/pkg/fourslash/tests/gen/formatEmptyBlock_test.go +++ b/pkg/fourslash/tests/gen/formatEmptyBlock_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormatEmptyBlock(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `{}` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/formatEmptyParamList_test.go b/pkg/fourslash/tests/gen/formatEmptyParamList_test.go index 272d885d2..c0ff2615f 100644 --- a/pkg/fourslash/tests/gen/formatEmptyParamList_test.go +++ b/pkg/fourslash/tests/gen/formatEmptyParamList_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormatEmptyParamList(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f( f: function){/*1*/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/formatInTryCatchFinally_test.go b/pkg/fourslash/tests/gen/formatInTryCatchFinally_test.go index 7efa050ab..89c3b2d16 100644 --- a/pkg/fourslash/tests/gen/formatInTryCatchFinally_test.go +++ b/pkg/fourslash/tests/gen/formatInTryCatchFinally_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormatInTryCatchFinally(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `try { diff --git a/pkg/fourslash/tests/gen/formatOnEnterFunctionDeclaration_test.go b/pkg/fourslash/tests/gen/formatOnEnterFunctionDeclaration_test.go index 12401b920..40822c07b 100644 --- a/pkg/fourslash/tests/gen/formatOnEnterFunctionDeclaration_test.go +++ b/pkg/fourslash/tests/gen/formatOnEnterFunctionDeclaration_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormatOnEnterFunctionDeclaration(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*0*/function listAPIFiles(path: string): string[] {/*1*/ }` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/formatOnEnterInComment_test.go b/pkg/fourslash/tests/gen/formatOnEnterInComment_test.go index 159242a97..0dc9fe522 100644 --- a/pkg/fourslash/tests/gen/formatOnEnterInComment_test.go +++ b/pkg/fourslash/tests/gen/formatOnEnterInComment_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormatOnEnterInComment(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = ` /** * /*1*/ diff --git a/pkg/fourslash/tests/gen/formatOnSemiColonAfterBreak_test.go b/pkg/fourslash/tests/gen/formatOnSemiColonAfterBreak_test.go index 2a45b2be6..261906ecb 100644 --- a/pkg/fourslash/tests/gen/formatOnSemiColonAfterBreak_test.go +++ b/pkg/fourslash/tests/gen/formatOnSemiColonAfterBreak_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormatOnSemiColonAfterBreak(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `for (var a in b) { break/**/ diff --git a/pkg/fourslash/tests/gen/formatonkey01_test.go b/pkg/fourslash/tests/gen/formatonkey01_test.go index 629386d57..643fee75c 100644 --- a/pkg/fourslash/tests/gen/formatonkey01_test.go +++ b/pkg/fourslash/tests/gen/formatonkey01_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormatonkey01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `switch (1) { case 1: diff --git a/pkg/fourslash/tests/gen/formattingAfterMultiLineIfCondition_test.go b/pkg/fourslash/tests/gen/formattingAfterMultiLineIfCondition_test.go index 9af7e256d..25067eddc 100644 --- a/pkg/fourslash/tests/gen/formattingAfterMultiLineIfCondition_test.go +++ b/pkg/fourslash/tests/gen/formattingAfterMultiLineIfCondition_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormattingAfterMultiLineIfCondition(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = ` var foo; if (foo && diff --git a/pkg/fourslash/tests/gen/formattingAfterMultiLineString_test.go b/pkg/fourslash/tests/gen/formattingAfterMultiLineString_test.go index 3ad262ae1..9971617c9 100644 --- a/pkg/fourslash/tests/gen/formattingAfterMultiLineString_test.go +++ b/pkg/fourslash/tests/gen/formattingAfterMultiLineString_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormattingAfterMultiLineString(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class foo { stop() { diff --git a/pkg/fourslash/tests/gen/formattingBlockInCaseClauses_test.go b/pkg/fourslash/tests/gen/formattingBlockInCaseClauses_test.go index 487fefa69..5bb230994 100644 --- a/pkg/fourslash/tests/gen/formattingBlockInCaseClauses_test.go +++ b/pkg/fourslash/tests/gen/formattingBlockInCaseClauses_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormattingBlockInCaseClauses(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `switch (1) { case 1: diff --git a/pkg/fourslash/tests/gen/formattingCommentsBeforeErrors_test.go b/pkg/fourslash/tests/gen/formattingCommentsBeforeErrors_test.go index 41c630cbb..d6b55c162 100644 --- a/pkg/fourslash/tests/gen/formattingCommentsBeforeErrors_test.go +++ b/pkg/fourslash/tests/gen/formattingCommentsBeforeErrors_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormattingCommentsBeforeErrors(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module A { interface B { diff --git a/pkg/fourslash/tests/gen/formattingElseInsideAFunction_test.go b/pkg/fourslash/tests/gen/formattingElseInsideAFunction_test.go index 7372bfba5..3d22e5521 100644 --- a/pkg/fourslash/tests/gen/formattingElseInsideAFunction_test.go +++ b/pkg/fourslash/tests/gen/formattingElseInsideAFunction_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormattingElseInsideAFunction(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = function() { if (true) { diff --git a/pkg/fourslash/tests/gen/formattingEqualsBeforeBracketInTypeAlias_test.go b/pkg/fourslash/tests/gen/formattingEqualsBeforeBracketInTypeAlias_test.go index 6fd9f3f75..a9b56ddbf 100644 --- a/pkg/fourslash/tests/gen/formattingEqualsBeforeBracketInTypeAlias_test.go +++ b/pkg/fourslash/tests/gen/formattingEqualsBeforeBracketInTypeAlias_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormattingEqualsBeforeBracketInTypeAlias(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type X = [number]/*1*/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/formattingExpressionsInIfCondition_test.go b/pkg/fourslash/tests/gen/formattingExpressionsInIfCondition_test.go index c16b8a85c..b7eea69a9 100644 --- a/pkg/fourslash/tests/gen/formattingExpressionsInIfCondition_test.go +++ b/pkg/fourslash/tests/gen/formattingExpressionsInIfCondition_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormattingExpressionsInIfCondition(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `if (a === 1 || /*0*/b === 2 ||/*1*/ diff --git a/pkg/fourslash/tests/gen/formattingIfInElseBlock_test.go b/pkg/fourslash/tests/gen/formattingIfInElseBlock_test.go index 2a41b6bee..4261269d6 100644 --- a/pkg/fourslash/tests/gen/formattingIfInElseBlock_test.go +++ b/pkg/fourslash/tests/gen/formattingIfInElseBlock_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormattingIfInElseBlock(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `if (true) { } diff --git a/pkg/fourslash/tests/gen/formattingInComment_test.go b/pkg/fourslash/tests/gen/formattingInComment_test.go index 0ccc0aafb..54e85ac52 100644 --- a/pkg/fourslash/tests/gen/formattingInComment_test.go +++ b/pkg/fourslash/tests/gen/formattingInComment_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormattingInComment(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A { foo( ); // /*1*/ diff --git a/pkg/fourslash/tests/gen/formattingInExpressionsInTsx_test.go b/pkg/fourslash/tests/gen/formattingInExpressionsInTsx_test.go index d9bb6a547..93a0862e2 100644 --- a/pkg/fourslash/tests/gen/formattingInExpressionsInTsx_test.go +++ b/pkg/fourslash/tests/gen/formattingInExpressionsInTsx_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormattingInExpressionsInTsx(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: test.tsx import * as React from "react"; diff --git a/pkg/fourslash/tests/gen/formattingInMultilineComments_test.go b/pkg/fourslash/tests/gen/formattingInMultilineComments_test.go index 8fc190de1..35e7f5b4e 100644 --- a/pkg/fourslash/tests/gen/formattingInMultilineComments_test.go +++ b/pkg/fourslash/tests/gen/formattingInMultilineComments_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormattingInMultilineComments(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = function() { if (true) { diff --git a/pkg/fourslash/tests/gen/formattingKeywordAsIdentifier_test.go b/pkg/fourslash/tests/gen/formattingKeywordAsIdentifier_test.go index 5259b6a76..94d28eff3 100644 --- a/pkg/fourslash/tests/gen/formattingKeywordAsIdentifier_test.go +++ b/pkg/fourslash/tests/gen/formattingKeywordAsIdentifier_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormattingKeywordAsIdentifier(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare var module/*1*/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/formattingOfChainedLambda_test.go b/pkg/fourslash/tests/gen/formattingOfChainedLambda_test.go index 289c74ccc..ca521c7d5 100644 --- a/pkg/fourslash/tests/gen/formattingOfChainedLambda_test.go +++ b/pkg/fourslash/tests/gen/formattingOfChainedLambda_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormattingOfChainedLambda(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var fn = (x: string) => ()=> alert(x)/**/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/formattingOnCloseBrace_test.go b/pkg/fourslash/tests/gen/formattingOnCloseBrace_test.go index c0e2045c8..84d8104cb 100644 --- a/pkg/fourslash/tests/gen/formattingOnCloseBrace_test.go +++ b/pkg/fourslash/tests/gen/formattingOnCloseBrace_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormattingOnCloseBrace(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class foo { /**/` diff --git a/pkg/fourslash/tests/gen/formattingOnDoWhileNoSemicolon_test.go b/pkg/fourslash/tests/gen/formattingOnDoWhileNoSemicolon_test.go index d5c08f42d..982f31205 100644 --- a/pkg/fourslash/tests/gen/formattingOnDoWhileNoSemicolon_test.go +++ b/pkg/fourslash/tests/gen/formattingOnDoWhileNoSemicolon_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormattingOnDoWhileNoSemicolon(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*2*/do { /*3*/ for (var i = 0; i < 10; i++) diff --git a/pkg/fourslash/tests/gen/formattingOnEnterInComments_test.go b/pkg/fourslash/tests/gen/formattingOnEnterInComments_test.go index d8b0b284b..aeb95ad9a 100644 --- a/pkg/fourslash/tests/gen/formattingOnEnterInComments_test.go +++ b/pkg/fourslash/tests/gen/formattingOnEnterInComments_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormattingOnEnterInComments(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module me { class A { diff --git a/pkg/fourslash/tests/gen/formattingOnEnterInStrings_test.go b/pkg/fourslash/tests/gen/formattingOnEnterInStrings_test.go index 2c51df339..8d1d23cb1 100644 --- a/pkg/fourslash/tests/gen/formattingOnEnterInStrings_test.go +++ b/pkg/fourslash/tests/gen/formattingOnEnterInStrings_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormattingOnEnterInStrings(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = /*1*/"unclosed string literal\/*2*/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/formattingOnEnter_test.go b/pkg/fourslash/tests/gen/formattingOnEnter_test.go index 9a8ec7c31..f98fb6aa7 100644 --- a/pkg/fourslash/tests/gen/formattingOnEnter_test.go +++ b/pkg/fourslash/tests/gen/formattingOnEnter_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormattingOnEnter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class foo { } class bar {/**/ } diff --git a/pkg/fourslash/tests/gen/formattingOnNestedDoWhileByEnter_test.go b/pkg/fourslash/tests/gen/formattingOnNestedDoWhileByEnter_test.go index 7626b5b85..c7a8bcb70 100644 --- a/pkg/fourslash/tests/gen/formattingOnNestedDoWhileByEnter_test.go +++ b/pkg/fourslash/tests/gen/formattingOnNestedDoWhileByEnter_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormattingOnNestedDoWhileByEnter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*2*/do{ /*3*/do/*1*/{ diff --git a/pkg/fourslash/tests/gen/formattingOnSemiColon_test.go b/pkg/fourslash/tests/gen/formattingOnSemiColon_test.go index fda721a7c..f83a46990 100644 --- a/pkg/fourslash/tests/gen/formattingOnSemiColon_test.go +++ b/pkg/fourslash/tests/gen/formattingOnSemiColon_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormattingOnSemiColon(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var a=b+c^d-e*++f` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/formattingRegexes_test.go b/pkg/fourslash/tests/gen/formattingRegexes_test.go index 61807a203..176b0588e 100644 --- a/pkg/fourslash/tests/gen/formattingRegexes_test.go +++ b/pkg/fourslash/tests/gen/formattingRegexes_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormattingRegexes(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `removeAllButLast(sortedTypes, undefinedType, /keepNullableType**/ true)/*1*/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/formattingSpaceAfterCommaBeforeOpenParen_test.go b/pkg/fourslash/tests/gen/formattingSpaceAfterCommaBeforeOpenParen_test.go index 2c050246e..f4a7c927a 100644 --- a/pkg/fourslash/tests/gen/formattingSpaceAfterCommaBeforeOpenParen_test.go +++ b/pkg/fourslash/tests/gen/formattingSpaceAfterCommaBeforeOpenParen_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormattingSpaceAfterCommaBeforeOpenParen(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `foo(a,(b))/*1*/ foo(a,(c).d)/*2*/` diff --git a/pkg/fourslash/tests/gen/formattingTemplatesWithNewline_test.go b/pkg/fourslash/tests/gen/formattingTemplatesWithNewline_test.go index 47b110d20..5fce83c9e 100644 --- a/pkg/fourslash/tests/gen/formattingTemplatesWithNewline_test.go +++ b/pkg/fourslash/tests/gen/formattingTemplatesWithNewline_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormattingTemplatesWithNewline(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `` + "`" + `${1}` + "`" + `; ` + "`" + ` diff --git a/pkg/fourslash/tests/gen/formattingTemplates_test.go b/pkg/fourslash/tests/gen/formattingTemplates_test.go index c754f57e6..f52a66ad5 100644 --- a/pkg/fourslash/tests/gen/formattingTemplates_test.go +++ b/pkg/fourslash/tests/gen/formattingTemplates_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormattingTemplates(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `String.call ` + "`" + `${123}` + "`" + `/*1*/ String.call ` + "`" + `${123} ${456}` + "`" + `/*2*/` diff --git a/pkg/fourslash/tests/gen/formattingWithMultilineComments_test.go b/pkg/fourslash/tests/gen/formattingWithMultilineComments_test.go index 5c3be4926..c4b59a2ff 100644 --- a/pkg/fourslash/tests/gen/formattingWithMultilineComments_test.go +++ b/pkg/fourslash/tests/gen/formattingWithMultilineComments_test.go @@ -8,8 +8,8 @@ import ( ) func TestFormattingWithMultilineComments(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `f(/* /*2*/ */() => { /*1*/ });` diff --git a/pkg/fourslash/tests/gen/forwardReference_test.go b/pkg/fourslash/tests/gen/forwardReference_test.go index 351d0d77f..91c543cf6 100644 --- a/pkg/fourslash/tests/gen/forwardReference_test.go +++ b/pkg/fourslash/tests/gen/forwardReference_test.go @@ -9,8 +9,8 @@ import ( ) func TestForwardReference(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f() { var x = new t(); diff --git a/pkg/fourslash/tests/gen/functionOverloadCount_test.go b/pkg/fourslash/tests/gen/functionOverloadCount_test.go index 194122a62..a293259c0 100644 --- a/pkg/fourslash/tests/gen/functionOverloadCount_test.go +++ b/pkg/fourslash/tests/gen/functionOverloadCount_test.go @@ -8,8 +8,8 @@ import ( ) func TestFunctionOverloadCount(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C1 { public attr(): string; diff --git a/pkg/fourslash/tests/gen/functionProperty_test.go b/pkg/fourslash/tests/gen/functionProperty_test.go index 3ac694911..e3c067fd9 100644 --- a/pkg/fourslash/tests/gen/functionProperty_test.go +++ b/pkg/fourslash/tests/gen/functionProperty_test.go @@ -10,8 +10,8 @@ import ( ) func TestFunctionProperty(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var a = { x(a: number) { } diff --git a/pkg/fourslash/tests/gen/functionTypeFormatting_test.go b/pkg/fourslash/tests/gen/functionTypeFormatting_test.go index d2f244a97..343acedd1 100644 --- a/pkg/fourslash/tests/gen/functionTypeFormatting_test.go +++ b/pkg/fourslash/tests/gen/functionTypeFormatting_test.go @@ -8,8 +8,8 @@ import ( ) func TestFunctionTypeFormatting(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x: () => string/**/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/functionTypes_test.go b/pkg/fourslash/tests/gen/functionTypes_test.go index 04a2abf5b..3c2d9add6 100644 --- a/pkg/fourslash/tests/gen/functionTypes_test.go +++ b/pkg/fourslash/tests/gen/functionTypes_test.go @@ -9,8 +9,8 @@ import ( ) func TestFunctionTypes(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var f: Function; function g() { } diff --git a/pkg/fourslash/tests/gen/funduleWithRecursiveReference_test.go b/pkg/fourslash/tests/gen/funduleWithRecursiveReference_test.go index 3bd2e3d40..f6168af0a 100644 --- a/pkg/fourslash/tests/gen/funduleWithRecursiveReference_test.go +++ b/pkg/fourslash/tests/gen/funduleWithRecursiveReference_test.go @@ -8,8 +8,8 @@ import ( ) func TestFunduleWithRecursiveReference(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module M { export function C() {} diff --git a/pkg/fourslash/tests/gen/genericArityEnforcementAfterEdit_test.go b/pkg/fourslash/tests/gen/genericArityEnforcementAfterEdit_test.go index 8010ea0ad..4ac990f78 100644 --- a/pkg/fourslash/tests/gen/genericArityEnforcementAfterEdit_test.go +++ b/pkg/fourslash/tests/gen/genericArityEnforcementAfterEdit_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericArityEnforcementAfterEdit(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface G { } /**/ diff --git a/pkg/fourslash/tests/gen/genericAssignmentCompat_test.go b/pkg/fourslash/tests/gen/genericAssignmentCompat_test.go index 51a3580f2..b0df7b8ac 100644 --- a/pkg/fourslash/tests/gen/genericAssignmentCompat_test.go +++ b/pkg/fourslash/tests/gen/genericAssignmentCompat_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericAssignmentCompat(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Int { diff --git a/pkg/fourslash/tests/gen/genericCallSignaturesInNonGenericTypes1_test.go b/pkg/fourslash/tests/gen/genericCallSignaturesInNonGenericTypes1_test.go index aba79e661..763dce1fb 100644 --- a/pkg/fourslash/tests/gen/genericCallSignaturesInNonGenericTypes1_test.go +++ b/pkg/fourslash/tests/gen/genericCallSignaturesInNonGenericTypes1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericCallSignaturesInNonGenericTypes1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface WrappedObject { } interface WrappedArray { } diff --git a/pkg/fourslash/tests/gen/genericCallSignaturesInNonGenericTypes2_test.go b/pkg/fourslash/tests/gen/genericCallSignaturesInNonGenericTypes2_test.go index 327ca86b3..9317ffbd5 100644 --- a/pkg/fourslash/tests/gen/genericCallSignaturesInNonGenericTypes2_test.go +++ b/pkg/fourslash/tests/gen/genericCallSignaturesInNonGenericTypes2_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericCallSignaturesInNonGenericTypes2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface WrappedArray { } interface Underscore { diff --git a/pkg/fourslash/tests/gen/genericCallsWithOptionalParams1_test.go b/pkg/fourslash/tests/gen/genericCallsWithOptionalParams1_test.go index 7780c18a3..4e3034dff 100644 --- a/pkg/fourslash/tests/gen/genericCallsWithOptionalParams1_test.go +++ b/pkg/fourslash/tests/gen/genericCallsWithOptionalParams1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericCallsWithOptionalParams1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Collection { public add(x: T) { } diff --git a/pkg/fourslash/tests/gen/genericCloduleCompletionList_test.go b/pkg/fourslash/tests/gen/genericCloduleCompletionList_test.go index 3e45a5a52..519c5fa0a 100644 --- a/pkg/fourslash/tests/gen/genericCloduleCompletionList_test.go +++ b/pkg/fourslash/tests/gen/genericCloduleCompletionList_test.go @@ -9,8 +9,8 @@ import ( ) func TestGenericCloduleCompletionList(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class D { x: number } module D { export function f() { } } diff --git a/pkg/fourslash/tests/gen/genericCombinatorWithConstraints1_test.go b/pkg/fourslash/tests/gen/genericCombinatorWithConstraints1_test.go index ca86cc1b1..a83b1c6f2 100644 --- a/pkg/fourslash/tests/gen/genericCombinatorWithConstraints1_test.go +++ b/pkg/fourslash/tests/gen/genericCombinatorWithConstraints1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericCombinatorWithConstraints1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function apply(source: T[], selector: (x: T) => U) { var /*1*/xs = source.map(selector); // any[] diff --git a/pkg/fourslash/tests/gen/genericCombinators1_test.go b/pkg/fourslash/tests/gen/genericCombinators1_test.go index 6f35760f4..32e2c29a9 100644 --- a/pkg/fourslash/tests/gen/genericCombinators1_test.go +++ b/pkg/fourslash/tests/gen/genericCombinators1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericCombinators1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Collection { length: number; diff --git a/pkg/fourslash/tests/gen/genericCombinators3_test.go b/pkg/fourslash/tests/gen/genericCombinators3_test.go index d5ba6155a..ad9dff3fa 100644 --- a/pkg/fourslash/tests/gen/genericCombinators3_test.go +++ b/pkg/fourslash/tests/gen/genericCombinators3_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericCombinators3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Collection { } diff --git a/pkg/fourslash/tests/gen/genericDerivedTypeAcrossModuleBoundary1_test.go b/pkg/fourslash/tests/gen/genericDerivedTypeAcrossModuleBoundary1_test.go index 3bc3b4b12..2aeaa96ef 100644 --- a/pkg/fourslash/tests/gen/genericDerivedTypeAcrossModuleBoundary1_test.go +++ b/pkg/fourslash/tests/gen/genericDerivedTypeAcrossModuleBoundary1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericDerivedTypeAcrossModuleBoundary1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module M { export class C1 { } diff --git a/pkg/fourslash/tests/gen/genericFunctionReturnType2_test.go b/pkg/fourslash/tests/gen/genericFunctionReturnType2_test.go index e7d9428a9..51fd22ba5 100644 --- a/pkg/fourslash/tests/gen/genericFunctionReturnType2_test.go +++ b/pkg/fourslash/tests/gen/genericFunctionReturnType2_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericFunctionReturnType2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { constructor(x: T) { } diff --git a/pkg/fourslash/tests/gen/genericFunctionReturnType_test.go b/pkg/fourslash/tests/gen/genericFunctionReturnType_test.go index 85593ea63..123ea472e 100644 --- a/pkg/fourslash/tests/gen/genericFunctionReturnType_test.go +++ b/pkg/fourslash/tests/gen/genericFunctionReturnType_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericFunctionReturnType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(x: T, y: U): (a: U) => T { var z = y; diff --git a/pkg/fourslash/tests/gen/genericFunctionSignatureHelp1_test.go b/pkg/fourslash/tests/gen/genericFunctionSignatureHelp1_test.go index 25edf5d73..01dd3f2b7 100644 --- a/pkg/fourslash/tests/gen/genericFunctionSignatureHelp1_test.go +++ b/pkg/fourslash/tests/gen/genericFunctionSignatureHelp1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericFunctionSignatureHelp1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f(a: T): T { return null; } f(/**/` diff --git a/pkg/fourslash/tests/gen/genericFunctionSignatureHelp2_test.go b/pkg/fourslash/tests/gen/genericFunctionSignatureHelp2_test.go index abce3a665..c99c0b6c2 100644 --- a/pkg/fourslash/tests/gen/genericFunctionSignatureHelp2_test.go +++ b/pkg/fourslash/tests/gen/genericFunctionSignatureHelp2_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericFunctionSignatureHelp2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var f = (a: T) => a; f(/**/` diff --git a/pkg/fourslash/tests/gen/genericFunctionSignatureHelp3MultiFile_test.go b/pkg/fourslash/tests/gen/genericFunctionSignatureHelp3MultiFile_test.go index 68997a044..5a8d5a11d 100644 --- a/pkg/fourslash/tests/gen/genericFunctionSignatureHelp3MultiFile_test.go +++ b/pkg/fourslash/tests/gen/genericFunctionSignatureHelp3MultiFile_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericFunctionSignatureHelp3MultiFile(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: genericFunctionSignatureHelp_0.ts function foo1(x: number, callback: (y1: T) => number) { } diff --git a/pkg/fourslash/tests/gen/genericFunctionSignatureHelp3_test.go b/pkg/fourslash/tests/gen/genericFunctionSignatureHelp3_test.go index 6070e5516..01ca211f6 100644 --- a/pkg/fourslash/tests/gen/genericFunctionSignatureHelp3_test.go +++ b/pkg/fourslash/tests/gen/genericFunctionSignatureHelp3_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericFunctionSignatureHelp3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo1(x: number, callback: (y1: T) => number) { } function foo2(x: number, callback: (y2: T) => number) { } diff --git a/pkg/fourslash/tests/gen/genericFunctionWithGenericParams1_test.go b/pkg/fourslash/tests/gen/genericFunctionWithGenericParams1_test.go index 0ed8fa7d2..889da0eff 100644 --- a/pkg/fourslash/tests/gen/genericFunctionWithGenericParams1_test.go +++ b/pkg/fourslash/tests/gen/genericFunctionWithGenericParams1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericFunctionWithGenericParams1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var obj = function f(a: T) { var x/**/x: T; diff --git a/pkg/fourslash/tests/gen/genericInterfacePropertyInference1_test.go b/pkg/fourslash/tests/gen/genericInterfacePropertyInference1_test.go index 75f44f143..ae9707aa2 100644 --- a/pkg/fourslash/tests/gen/genericInterfacePropertyInference1_test.go +++ b/pkg/fourslash/tests/gen/genericInterfacePropertyInference1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericInterfacePropertyInference1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { x: number; diff --git a/pkg/fourslash/tests/gen/genericInterfacePropertyInference2_test.go b/pkg/fourslash/tests/gen/genericInterfacePropertyInference2_test.go index bfcc221a4..fc760c8b5 100644 --- a/pkg/fourslash/tests/gen/genericInterfacePropertyInference2_test.go +++ b/pkg/fourslash/tests/gen/genericInterfacePropertyInference2_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericInterfacePropertyInference2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { x: number; diff --git a/pkg/fourslash/tests/gen/genericInterfaceWithInheritanceEdit1_test.go b/pkg/fourslash/tests/gen/genericInterfaceWithInheritanceEdit1_test.go index 5330e9cf0..f333f264e 100644 --- a/pkg/fourslash/tests/gen/genericInterfaceWithInheritanceEdit1_test.go +++ b/pkg/fourslash/tests/gen/genericInterfaceWithInheritanceEdit1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericInterfaceWithInheritanceEdit1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface ChainedObject { values(): ChainedArray; diff --git a/pkg/fourslash/tests/gen/genericInterfacesWithConstraints1_test.go b/pkg/fourslash/tests/gen/genericInterfacesWithConstraints1_test.go index 444f88050..b3dd8340d 100644 --- a/pkg/fourslash/tests/gen/genericInterfacesWithConstraints1_test.go +++ b/pkg/fourslash/tests/gen/genericInterfacesWithConstraints1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericInterfacesWithConstraints1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface A { a: string; } interface B extends A { b: string; } diff --git a/pkg/fourslash/tests/gen/genericMapTyping1_test.go b/pkg/fourslash/tests/gen/genericMapTyping1_test.go index 609577c31..61f0ca99e 100644 --- a/pkg/fourslash/tests/gen/genericMapTyping1_test.go +++ b/pkg/fourslash/tests/gen/genericMapTyping1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericMapTyping1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Iterator_ { (value: T, index: any, list: any): U; diff --git a/pkg/fourslash/tests/gen/genericMethodParam_test.go b/pkg/fourslash/tests/gen/genericMethodParam_test.go index 5039a2912..e4106ff4a 100644 --- a/pkg/fourslash/tests/gen/genericMethodParam_test.go +++ b/pkg/fourslash/tests/gen/genericMethodParam_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericMethodParam(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { /*1*/ diff --git a/pkg/fourslash/tests/gen/genericObjectBaseType_test.go b/pkg/fourslash/tests/gen/genericObjectBaseType_test.go index 925b2107e..602652ee8 100644 --- a/pkg/fourslash/tests/gen/genericObjectBaseType_test.go +++ b/pkg/fourslash/tests/gen/genericObjectBaseType_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericObjectBaseType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { constructor(){} diff --git a/pkg/fourslash/tests/gen/genericParameterHelpConstructorCalls_test.go b/pkg/fourslash/tests/gen/genericParameterHelpConstructorCalls_test.go index 917b18d8c..4201e9941 100644 --- a/pkg/fourslash/tests/gen/genericParameterHelpConstructorCalls_test.go +++ b/pkg/fourslash/tests/gen/genericParameterHelpConstructorCalls_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericParameterHelpConstructorCalls(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IFoo { } diff --git a/pkg/fourslash/tests/gen/genericParameterHelpTypeReferences_test.go b/pkg/fourslash/tests/gen/genericParameterHelpTypeReferences_test.go index 8be8c6d11..5f467c7ec 100644 --- a/pkg/fourslash/tests/gen/genericParameterHelpTypeReferences_test.go +++ b/pkg/fourslash/tests/gen/genericParameterHelpTypeReferences_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericParameterHelpTypeReferences(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IFoo { } diff --git a/pkg/fourslash/tests/gen/genericParameterHelp_test.go b/pkg/fourslash/tests/gen/genericParameterHelp_test.go index be3b8472d..94ff65647 100644 --- a/pkg/fourslash/tests/gen/genericParameterHelp_test.go +++ b/pkg/fourslash/tests/gen/genericParameterHelp_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericParameterHelp(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IFoo { } diff --git a/pkg/fourslash/tests/gen/genericRespecialization1_test.go b/pkg/fourslash/tests/gen/genericRespecialization1_test.go index 3b8ac8662..4fa3c676e 100644 --- a/pkg/fourslash/tests/gen/genericRespecialization1_test.go +++ b/pkg/fourslash/tests/gen/genericRespecialization1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericRespecialization1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Food { private amount: number; diff --git a/pkg/fourslash/tests/gen/genericSignaturesAreProperlyCleaned_test.go b/pkg/fourslash/tests/gen/genericSignaturesAreProperlyCleaned_test.go index afda0a9ef..be837d9e1 100644 --- a/pkg/fourslash/tests/gen/genericSignaturesAreProperlyCleaned_test.go +++ b/pkg/fourslash/tests/gen/genericSignaturesAreProperlyCleaned_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericSignaturesAreProperlyCleaned(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Int { val(f: (t: T) => U): Int; diff --git a/pkg/fourslash/tests/gen/genericTypeAliasIntersectionCompletions_test.go b/pkg/fourslash/tests/gen/genericTypeAliasIntersectionCompletions_test.go index 69279773f..a290150bf 100644 --- a/pkg/fourslash/tests/gen/genericTypeAliasIntersectionCompletions_test.go +++ b/pkg/fourslash/tests/gen/genericTypeAliasIntersectionCompletions_test.go @@ -9,8 +9,8 @@ import ( ) func TestGenericTypeAliasIntersectionCompletions(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type MixinCtor = new () => A & B & { constructor: MixinCtor }; function merge(a: { prototype: A }, b: { prototype: B }): MixinCtor { diff --git a/pkg/fourslash/tests/gen/genericTypeParamUnrelatedToArguments1_test.go b/pkg/fourslash/tests/gen/genericTypeParamUnrelatedToArguments1_test.go index 14855aed3..08fd770d0 100644 --- a/pkg/fourslash/tests/gen/genericTypeParamUnrelatedToArguments1_test.go +++ b/pkg/fourslash/tests/gen/genericTypeParamUnrelatedToArguments1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericTypeParamUnrelatedToArguments1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { new (x: number): Foo; diff --git a/pkg/fourslash/tests/gen/genericTypeWithMultipleBases1MultiFile_test.go b/pkg/fourslash/tests/gen/genericTypeWithMultipleBases1MultiFile_test.go index 5ba08b0aa..7e81e31cd 100644 --- a/pkg/fourslash/tests/gen/genericTypeWithMultipleBases1MultiFile_test.go +++ b/pkg/fourslash/tests/gen/genericTypeWithMultipleBases1MultiFile_test.go @@ -10,8 +10,8 @@ import ( ) func TestGenericTypeWithMultipleBases1MultiFile(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: genericTypeWithMultipleBases_0.ts interface iBaseScope { diff --git a/pkg/fourslash/tests/gen/genericWithSpecializedProperties1_test.go b/pkg/fourslash/tests/gen/genericWithSpecializedProperties1_test.go index 502a08ad2..23187ddff 100644 --- a/pkg/fourslash/tests/gen/genericWithSpecializedProperties1_test.go +++ b/pkg/fourslash/tests/gen/genericWithSpecializedProperties1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericWithSpecializedProperties1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { x: Foo; diff --git a/pkg/fourslash/tests/gen/genericWithSpecializedProperties2_test.go b/pkg/fourslash/tests/gen/genericWithSpecializedProperties2_test.go index 0e712d226..8c65a4055 100644 --- a/pkg/fourslash/tests/gen/genericWithSpecializedProperties2_test.go +++ b/pkg/fourslash/tests/gen/genericWithSpecializedProperties2_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericWithSpecializedProperties2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { y: Foo; diff --git a/pkg/fourslash/tests/gen/genericWithSpecializedProperties3_test.go b/pkg/fourslash/tests/gen/genericWithSpecializedProperties3_test.go index fbda35a37..bdf25c670 100644 --- a/pkg/fourslash/tests/gen/genericWithSpecializedProperties3_test.go +++ b/pkg/fourslash/tests/gen/genericWithSpecializedProperties3_test.go @@ -8,8 +8,8 @@ import ( ) func TestGenericWithSpecializedProperties3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { x: Foo; diff --git a/pkg/fourslash/tests/gen/getDeclarationDiagnostics_test.go b/pkg/fourslash/tests/gen/getDeclarationDiagnostics_test.go index e9e11c818..914d8d2e5 100644 --- a/pkg/fourslash/tests/gen/getDeclarationDiagnostics_test.go +++ b/pkg/fourslash/tests/gen/getDeclarationDiagnostics_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetDeclarationDiagnostics(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @declaration: true // @outFile: true diff --git a/pkg/fourslash/tests/gen/getJavaScriptCompletions10_test.go b/pkg/fourslash/tests/gen/getJavaScriptCompletions10_test.go index 60e221510..baed92b35 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptCompletions10_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptCompletions10_test.go @@ -10,8 +10,8 @@ import ( ) func TestGetJavaScriptCompletions10(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptCompletions11_test.go b/pkg/fourslash/tests/gen/getJavaScriptCompletions11_test.go index 8778e0daa..3c0924008 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptCompletions11_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptCompletions11_test.go @@ -10,8 +10,8 @@ import ( ) func TestGetJavaScriptCompletions11(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptCompletions12_test.go b/pkg/fourslash/tests/gen/getJavaScriptCompletions12_test.go index 13ff53e15..26c68d8a5 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptCompletions12_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptCompletions12_test.go @@ -11,8 +11,8 @@ import ( ) func TestGetJavaScriptCompletions12(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptCompletions13_test.go b/pkg/fourslash/tests/gen/getJavaScriptCompletions13_test.go index e6d6a44f3..7912ab1fe 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptCompletions13_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptCompletions13_test.go @@ -11,8 +11,8 @@ import ( ) func TestGetJavaScriptCompletions13(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: file1.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptCompletions14_test.go b/pkg/fourslash/tests/gen/getJavaScriptCompletions14_test.go index 5a3fb52a6..bd09c156c 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptCompletions14_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptCompletions14_test.go @@ -10,8 +10,8 @@ import ( ) func TestGetJavaScriptCompletions14(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: file1.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptCompletions15_test.go b/pkg/fourslash/tests/gen/getJavaScriptCompletions15_test.go index aca7194c1..5da9695a2 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptCompletions15_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptCompletions15_test.go @@ -11,8 +11,8 @@ import ( ) func TestGetJavaScriptCompletions15(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: refFile1.ts diff --git a/pkg/fourslash/tests/gen/getJavaScriptCompletions16_test.go b/pkg/fourslash/tests/gen/getJavaScriptCompletions16_test.go index f0fa6c630..91eb3dfe4 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptCompletions16_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptCompletions16_test.go @@ -10,8 +10,8 @@ import ( ) func TestGetJavaScriptCompletions16(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: file.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptCompletions18_test.go b/pkg/fourslash/tests/gen/getJavaScriptCompletions18_test.go index 279962bd3..c0a4aac64 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptCompletions18_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptCompletions18_test.go @@ -10,8 +10,8 @@ import ( ) func TestGetJavaScriptCompletions18(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: file.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptCompletions19_test.go b/pkg/fourslash/tests/gen/getJavaScriptCompletions19_test.go index 6f5ee36d5..b64df2a5d 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptCompletions19_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptCompletions19_test.go @@ -10,8 +10,8 @@ import ( ) func TestGetJavaScriptCompletions19(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: file.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptCompletions1_test.go b/pkg/fourslash/tests/gen/getJavaScriptCompletions1_test.go index b01252966..df07032cf 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptCompletions1_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptCompletions1_test.go @@ -10,8 +10,8 @@ import ( ) func TestGetJavaScriptCompletions1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptCompletions20_test.go b/pkg/fourslash/tests/gen/getJavaScriptCompletions20_test.go index 56430b5ae..46a9b01d8 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptCompletions20_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptCompletions20_test.go @@ -11,8 +11,8 @@ import ( ) func TestGetJavaScriptCompletions20(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: file.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptCompletions21_test.go b/pkg/fourslash/tests/gen/getJavaScriptCompletions21_test.go index a3d7de2ea..d74c0cf11 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptCompletions21_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptCompletions21_test.go @@ -10,8 +10,8 @@ import ( ) func TestGetJavaScriptCompletions21(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: file.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptCompletions22_test.go b/pkg/fourslash/tests/gen/getJavaScriptCompletions22_test.go index 2d8330f85..caa2672e5 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptCompletions22_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptCompletions22_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptCompletions22(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: file.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptCompletions2_test.go b/pkg/fourslash/tests/gen/getJavaScriptCompletions2_test.go index 605e50052..76a21069c 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptCompletions2_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptCompletions2_test.go @@ -10,8 +10,8 @@ import ( ) func TestGetJavaScriptCompletions2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptCompletions3_test.go b/pkg/fourslash/tests/gen/getJavaScriptCompletions3_test.go index 8843b416a..5b75f0f97 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptCompletions3_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptCompletions3_test.go @@ -10,8 +10,8 @@ import ( ) func TestGetJavaScriptCompletions3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptCompletions4_test.go b/pkg/fourslash/tests/gen/getJavaScriptCompletions4_test.go index 59a87f44b..07ec20fc2 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptCompletions4_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptCompletions4_test.go @@ -10,8 +10,8 @@ import ( ) func TestGetJavaScriptCompletions4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptCompletions5_test.go b/pkg/fourslash/tests/gen/getJavaScriptCompletions5_test.go index 3789a4f64..9ac857432 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptCompletions5_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptCompletions5_test.go @@ -10,8 +10,8 @@ import ( ) func TestGetJavaScriptCompletions5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptCompletions8_test.go b/pkg/fourslash/tests/gen/getJavaScriptCompletions8_test.go index e0a5e54fd..d19ebf503 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptCompletions8_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptCompletions8_test.go @@ -10,8 +10,8 @@ import ( ) func TestGetJavaScriptCompletions8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptCompletions9_test.go b/pkg/fourslash/tests/gen/getJavaScriptCompletions9_test.go index d09328366..41a98ddee 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptCompletions9_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptCompletions9_test.go @@ -10,8 +10,8 @@ import ( ) func TestGetJavaScriptCompletions9(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptCompletions_tsCheck_test.go b/pkg/fourslash/tests/gen/getJavaScriptCompletions_tsCheck_test.go index 9f58164e8..aa3f6aceb 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptCompletions_tsCheck_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptCompletions_tsCheck_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetJavaScriptCompletions_tsCheck(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptGlobalCompletions1_test.go b/pkg/fourslash/tests/gen/getJavaScriptGlobalCompletions1_test.go index 086ebfa19..0f33ea5ec 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptGlobalCompletions1_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptGlobalCompletions1_test.go @@ -11,8 +11,8 @@ import ( ) func TestGetJavaScriptGlobalCompletions1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptQuickInfo1_test.go b/pkg/fourslash/tests/gen/getJavaScriptQuickInfo1_test.go index 943942d75..9bc3f207d 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptQuickInfo1_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptQuickInfo1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptQuickInfo1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptQuickInfo2_test.go b/pkg/fourslash/tests/gen/getJavaScriptQuickInfo2_test.go index 53e45fe18..e31a823af 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptQuickInfo2_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptQuickInfo2_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptQuickInfo2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptQuickInfo3_test.go b/pkg/fourslash/tests/gen/getJavaScriptQuickInfo3_test.go index aa5f395e7..4df3cd308 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptQuickInfo3_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptQuickInfo3_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptQuickInfo3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptQuickInfo4_test.go b/pkg/fourslash/tests/gen/getJavaScriptQuickInfo4_test.go index 49bb3ae11..18e048e98 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptQuickInfo4_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptQuickInfo4_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptQuickInfo4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptQuickInfo5_test.go b/pkg/fourslash/tests/gen/getJavaScriptQuickInfo5_test.go index 7c5e71ccd..a8b07c3c7 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptQuickInfo5_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptQuickInfo5_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptQuickInfo5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptQuickInfo6_test.go b/pkg/fourslash/tests/gen/getJavaScriptQuickInfo6_test.go index 7dd010e2d..e30d9c24e 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptQuickInfo6_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptQuickInfo6_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptQuickInfo6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptQuickInfo7_test.go b/pkg/fourslash/tests/gen/getJavaScriptQuickInfo7_test.go index fec792ff3..7a5d3d038 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptQuickInfo7_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptQuickInfo7_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptQuickInfo7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: file.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptQuickInfo8_test.go b/pkg/fourslash/tests/gen/getJavaScriptQuickInfo8_test.go index bdb1f6a9d..5dc7b68ea 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptQuickInfo8_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptQuickInfo8_test.go @@ -10,8 +10,8 @@ import ( ) func TestGetJavaScriptQuickInfo8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: file.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics01_test.go b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics01_test.go index 962aee5e2..ff0b66fe1 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics01_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics01_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptSyntacticDiagnostics01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics02_test.go b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics02_test.go index e740176dc..faf150a00 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics02_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics02_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptSyntacticDiagnostics02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: b.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics10_test.go b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics10_test.go index 1200331f3..f62375187 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics10_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics10_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptSyntacticDiagnostics10(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics11_test.go b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics11_test.go index 2da7b6496..0857fdac4 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics11_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics11_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptSyntacticDiagnostics11(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics12_test.go b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics12_test.go index ee6ab71b1..4b05f01e3 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics12_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics12_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptSyntacticDiagnostics12(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics13_test.go b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics13_test.go index 3358f33bc..96f122465 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics13_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics13_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptSyntacticDiagnostics13(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics14_test.go b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics14_test.go index 035f3364d..8a5678d1f 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics14_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics14_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptSyntacticDiagnostics14(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics15_test.go b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics15_test.go index 2f34fa4b2..4be5d9d61 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics15_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics15_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptSyntacticDiagnostics15(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics16_test.go b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics16_test.go index a153ffd40..f6103a29f 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics16_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics16_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptSyntacticDiagnostics16(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics17_test.go b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics17_test.go index 820b4249a..0f67c7082 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics17_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics17_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptSyntacticDiagnostics17(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics18_test.go b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics18_test.go index fa1875549..5738bad85 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics18_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics18_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptSyntacticDiagnostics18(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics19_test.go b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics19_test.go index b3e9d3d83..169c0f63c 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics19_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics19_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptSyntacticDiagnostics19(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics1_test.go b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics1_test.go index 4cdc10410..565f47e1b 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics1_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptSyntacticDiagnostics1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics21_test.go b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics21_test.go index faf7136e7..6078d1a01 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics21_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics21_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptSyntacticDiagnostics21(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @experimentalDecorators: true diff --git a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics22_test.go b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics22_test.go index dc3b56772..ab486be24 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics22_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics22_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptSyntacticDiagnostics22(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics23_test.go b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics23_test.go index 9f683c13f..56ca3d5af 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics23_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics23_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptSyntacticDiagnostics23(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics24_test.go b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics24_test.go index 7faffdd8e..6c4828a83 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics24_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics24_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptSyntacticDiagnostics24(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics2_test.go b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics2_test.go index 126610b1b..1a93f0cde 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics2_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics2_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptSyntacticDiagnostics2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics3_test.go b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics3_test.go index aee2fd165..da5e5054d 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics3_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics3_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptSyntacticDiagnostics3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics4_test.go b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics4_test.go index 457e71e03..4389b21c1 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics4_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics4_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptSyntacticDiagnostics4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics5_test.go b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics5_test.go index b27437198..b6d58410b 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics5_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics5_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptSyntacticDiagnostics5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics6_test.go b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics6_test.go index 7accfd398..835124147 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics6_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics6_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptSyntacticDiagnostics6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics7_test.go b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics7_test.go index 4f7227b1c..36e76e95e 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics7_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics7_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptSyntacticDiagnostics7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics8_test.go b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics8_test.go index 0017fdc8d..48bcb04d8 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics8_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics8_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptSyntacticDiagnostics8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics9_test.go b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics9_test.go index 37e01d66d..9a57d70d6 100644 --- a/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics9_test.go +++ b/pkg/fourslash/tests/gen/getJavaScriptSyntacticDiagnostics9_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetJavaScriptSyntacticDiagnostics9(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/getNavigationBarItems_test.go b/pkg/fourslash/tests/gen/getNavigationBarItems_test.go index 8a1d7c914..101ee274f 100644 --- a/pkg/fourslash/tests/gen/getNavigationBarItems_test.go +++ b/pkg/fourslash/tests/gen/getNavigationBarItems_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetNavigationBarItems(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { foo; diff --git a/pkg/fourslash/tests/gen/getOccurrencesAbstract01_test.go b/pkg/fourslash/tests/gen/getOccurrencesAbstract01_test.go index 03aea21df..51cd422c8 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesAbstract01_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesAbstract01_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesAbstract01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|abstract|] class Animal { [|abstract|] prop1; // Does not compile diff --git a/pkg/fourslash/tests/gen/getOccurrencesAbstract02_test.go b/pkg/fourslash/tests/gen/getOccurrencesAbstract02_test.go index def39bc4f..7ab4b564e 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesAbstract02_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesAbstract02_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesAbstract02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// Not valid TS (abstract methods can only appear in abstract classes) class Animal { diff --git a/pkg/fourslash/tests/gen/getOccurrencesAbstract03_test.go b/pkg/fourslash/tests/gen/getOccurrencesAbstract03_test.go index 4a07e6a37..ae02a6f26 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesAbstract03_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesAbstract03_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesAbstract03(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f() { [|abstract|] class A { diff --git a/pkg/fourslash/tests/gen/getOccurrencesAfterEdit_test.go b/pkg/fourslash/tests/gen/getOccurrencesAfterEdit_test.go index e9d485482..d5cbdeb4c 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesAfterEdit_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesAfterEdit_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOccurrencesAfterEdit(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*0*/ interface A { diff --git a/pkg/fourslash/tests/gen/getOccurrencesAsyncAwait2_test.go b/pkg/fourslash/tests/gen/getOccurrencesAsyncAwait2_test.go index 5a5ce9ed4..5802571c6 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesAsyncAwait2_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesAsyncAwait2_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesAsyncAwait2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|a/**/sync|] function f() { [|await|] 100; diff --git a/pkg/fourslash/tests/gen/getOccurrencesAsyncAwait3_test.go b/pkg/fourslash/tests/gen/getOccurrencesAsyncAwait3_test.go index 774158845..08853a393 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesAsyncAwait3_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesAsyncAwait3_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOccurrencesAsyncAwait3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `a/**/wait 100; async function f() { diff --git a/pkg/fourslash/tests/gen/getOccurrencesAsyncAwait_test.go b/pkg/fourslash/tests/gen/getOccurrencesAsyncAwait_test.go index 0583ebb1e..dfb4c1008 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesAsyncAwait_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesAsyncAwait_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesAsyncAwait(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|async|] function f() { [|await|] 100; diff --git a/pkg/fourslash/tests/gen/getOccurrencesClassExpressionConstructor_test.go b/pkg/fourslash/tests/gen/getOccurrencesClassExpressionConstructor_test.go index 6668cd956..d7a75c64e 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesClassExpressionConstructor_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesClassExpressionConstructor_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesClassExpressionConstructor(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let A = class Foo { [|constructor|](); diff --git a/pkg/fourslash/tests/gen/getOccurrencesClassExpressionPrivate_test.go b/pkg/fourslash/tests/gen/getOccurrencesClassExpressionPrivate_test.go index 7f05a049f..d46b7dafd 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesClassExpressionPrivate_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesClassExpressionPrivate_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesClassExpressionPrivate(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let A = class Foo { [|private|] foo; diff --git a/pkg/fourslash/tests/gen/getOccurrencesClassExpressionPublic_test.go b/pkg/fourslash/tests/gen/getOccurrencesClassExpressionPublic_test.go index 84431eb69..c1618d8ae 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesClassExpressionPublic_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesClassExpressionPublic_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesClassExpressionPublic(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let A = class Foo { [|public|] foo; diff --git a/pkg/fourslash/tests/gen/getOccurrencesClassExpressionStaticThis_test.go b/pkg/fourslash/tests/gen/getOccurrencesClassExpressionStaticThis_test.go index 77521bdc3..304f8b158 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesClassExpressionStaticThis_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesClassExpressionStaticThis_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesClassExpressionStaticThis(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = class C { public x; diff --git a/pkg/fourslash/tests/gen/getOccurrencesClassExpressionStatic_test.go b/pkg/fourslash/tests/gen/getOccurrencesClassExpressionStatic_test.go index c54be803e..4bc8edab3 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesClassExpressionStatic_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesClassExpressionStatic_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesClassExpressionStatic(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let A = class Foo { public [|static|] foo; diff --git a/pkg/fourslash/tests/gen/getOccurrencesClassExpressionThis_test.go b/pkg/fourslash/tests/gen/getOccurrencesClassExpressionThis_test.go index ca57a19bd..4b0493c69 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesClassExpressionThis_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesClassExpressionThis_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesClassExpressionThis(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = class C { public x; diff --git a/pkg/fourslash/tests/gen/getOccurrencesConst01_test.go b/pkg/fourslash/tests/gen/getOccurrencesConst01_test.go index 59c00d507..cd41c25f6 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesConst01_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesConst01_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesConst01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|const|] enum E1 { v1, diff --git a/pkg/fourslash/tests/gen/getOccurrencesConst04_test.go b/pkg/fourslash/tests/gen/getOccurrencesConst04_test.go index 4967d6aa9..a5ac8d868 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesConst04_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesConst04_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOccurrencesConst04(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export const class C { private static c/*1*/onst f/*2*/oo; diff --git a/pkg/fourslash/tests/gen/getOccurrencesConstructor2_test.go b/pkg/fourslash/tests/gen/getOccurrencesConstructor2_test.go index bc0de06fc..7d0eee1d0 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesConstructor2_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesConstructor2_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesConstructor2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { constructor(); diff --git a/pkg/fourslash/tests/gen/getOccurrencesConstructor_test.go b/pkg/fourslash/tests/gen/getOccurrencesConstructor_test.go index ce10cc853..91ab4afa0 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesConstructor_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesConstructor_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesConstructor(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { [|const/**/ructor|](); diff --git a/pkg/fourslash/tests/gen/getOccurrencesDeclare1_test.go b/pkg/fourslash/tests/gen/getOccurrencesDeclare1_test.go index 116215b0d..6d6f081a1 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesDeclare1_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesDeclare1_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesDeclare1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module m { export class C1 { diff --git a/pkg/fourslash/tests/gen/getOccurrencesDeclare2_test.go b/pkg/fourslash/tests/gen/getOccurrencesDeclare2_test.go index 3bbc24e00..3c2079227 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesDeclare2_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesDeclare2_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesDeclare2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module m { export class C1 { diff --git a/pkg/fourslash/tests/gen/getOccurrencesDeclare3_test.go b/pkg/fourslash/tests/gen/getOccurrencesDeclare3_test.go index e8c576bdf..88e057140 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesDeclare3_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesDeclare3_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesDeclare3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = ` [|declare|] var x; diff --git a/pkg/fourslash/tests/gen/getOccurrencesExport1_test.go b/pkg/fourslash/tests/gen/getOccurrencesExport1_test.go index 3053b9f1d..086c85a60 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesExport1_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesExport1_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesExport1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module m { [|export|] class C1 { diff --git a/pkg/fourslash/tests/gen/getOccurrencesExport2_test.go b/pkg/fourslash/tests/gen/getOccurrencesExport2_test.go index 5b216d655..a39272cb2 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesExport2_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesExport2_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesExport2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module m { export class C1 { diff --git a/pkg/fourslash/tests/gen/getOccurrencesExport3_test.go b/pkg/fourslash/tests/gen/getOccurrencesExport3_test.go index 65ca4f36a..5d4befa01 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesExport3_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesExport3_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesExport3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = ` declare var x; diff --git a/pkg/fourslash/tests/gen/getOccurrencesIfElse2_test.go b/pkg/fourslash/tests/gen/getOccurrencesIfElse2_test.go index 830144560..465266813 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesIfElse2_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesIfElse2_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesIfElse2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `if (true) { [|if|] (false) { diff --git a/pkg/fourslash/tests/gen/getOccurrencesIfElse3_test.go b/pkg/fourslash/tests/gen/getOccurrencesIfElse3_test.go index 1377dab1e..06da7f32f 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesIfElse3_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesIfElse3_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesIfElse3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `if (true) { if (false) { diff --git a/pkg/fourslash/tests/gen/getOccurrencesIfElseBroken_test.go b/pkg/fourslash/tests/gen/getOccurrencesIfElseBroken_test.go index 281587688..587926ad8 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesIfElseBroken_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesIfElseBroken_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesIfElseBroken(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|if|] (true) { var x = 1; diff --git a/pkg/fourslash/tests/gen/getOccurrencesIfElse_test.go b/pkg/fourslash/tests/gen/getOccurrencesIfElse_test.go index 3cba73e08..64cdefe76 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesIfElse_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesIfElse_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesIfElse(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|if|] (true) { if (false) { diff --git a/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfArrowFunction_test.go b/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfArrowFunction_test.go index 3f8bbab47..c0662261e 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfArrowFunction_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfArrowFunction_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOccurrencesIsDefinitionOfArrowFunction(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/var /*2*/f = x => x + 1; /*3*/f(12);` diff --git a/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfBindingPattern_test.go b/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfBindingPattern_test.go index 3ec0c09c9..e15c8bad3 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfBindingPattern_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfBindingPattern_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOccurrencesIsDefinitionOfBindingPattern(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const { /*1*/x, y } = { /*2*/x: 1, y: 2 }; const z = /*3*/x;` diff --git a/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfClass_test.go b/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfClass_test.go index 65a8270ab..6b72c37bf 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfClass_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfClass_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOccurrencesIsDefinitionOfClass(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/class /*2*/C { n: number; diff --git a/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfComputedProperty_test.go b/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfComputedProperty_test.go index 57a984398..57cc142c9 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfComputedProperty_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfComputedProperty_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOccurrencesIsDefinitionOfComputedProperty(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let o = { /*1*/["/*2*/foo"]: 12 }; let y = o./*3*/foo; diff --git a/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfEnum_test.go b/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfEnum_test.go index fd8de0486..563c6fba2 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfEnum_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfEnum_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOccurrencesIsDefinitionOfEnum(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/enum /*2*/E { First, diff --git a/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfExport_test.go b/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfExport_test.go index d90564009..1e1fd9a4e 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfExport_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfExport_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOccurrencesIsDefinitionOfExport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: m.ts export var /*1*/x = 12; diff --git a/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfFunction_test.go b/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfFunction_test.go index de7d8aba7..6f3aa89bc 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfFunction_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfFunction_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOccurrencesIsDefinitionOfFunction(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/function /*2*/func(x: number) { } diff --git a/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfInterfaceClassMerge_test.go b/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfInterfaceClassMerge_test.go index debe55464..3d7bb5cb7 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfInterfaceClassMerge_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfInterfaceClassMerge_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOccurrencesIsDefinitionOfInterfaceClassMerge(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/interface /*2*/Numbers { p: number; diff --git a/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfInterface_test.go b/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfInterface_test.go index 4f4ea08cb..9119c8c12 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfInterface_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfInterface_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOccurrencesIsDefinitionOfInterface(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/interface /*2*/I { p: number; diff --git a/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfNamespace_test.go b/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfNamespace_test.go index a12d7c737..25cb8ed3d 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfNamespace_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfNamespace_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOccurrencesIsDefinitionOfNamespace(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/namespace /*2*/Numbers { export var n = 12; diff --git a/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfNumberNamedProperty_test.go b/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfNumberNamedProperty_test.go index 01f3ce9c5..ab7c06b99 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfNumberNamedProperty_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfNumberNamedProperty_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOccurrencesIsDefinitionOfNumberNamedProperty(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let o = { /*1*/1: 12 }; let y = o[/*2*/1];` diff --git a/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfParameter_test.go b/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfParameter_test.go index 4b076f8f6..a10547d71 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfParameter_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfParameter_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOccurrencesIsDefinitionOfParameter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f(/*1*/x: number) { return /*2*/x + 1 diff --git a/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfStringNamedProperty_test.go b/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfStringNamedProperty_test.go index 06603f728..4c2496cf8 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfStringNamedProperty_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfStringNamedProperty_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOccurrencesIsDefinitionOfStringNamedProperty(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let o = { /*1*/"/*2*/x": 12 }; let y = o./*3*/x;` diff --git a/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfTypeAlias_test.go b/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfTypeAlias_test.go index 8769fc402..ee9401b2b 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfTypeAlias_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfTypeAlias_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOccurrencesIsDefinitionOfTypeAlias(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/type /*2*/Alias= number; let n: /*3*/Alias = 12;` diff --git a/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfVariable_test.go b/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfVariable_test.go index 45fa1e7c0..fb3d6a301 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfVariable_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesIsDefinitionOfVariable_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOccurrencesIsDefinitionOfVariable(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/var /*2*/x = 0; var assignmentRightHandSide = /*3*/x; diff --git a/pkg/fourslash/tests/gen/getOccurrencesLoopBreakContinue2_test.go b/pkg/fourslash/tests/gen/getOccurrencesLoopBreakContinue2_test.go index 54c819866..554479d7d 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesLoopBreakContinue2_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesLoopBreakContinue2_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesLoopBreakContinue2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var arr = [1, 2, 3, 4]; label1: for (var n in arr) { diff --git a/pkg/fourslash/tests/gen/getOccurrencesLoopBreakContinue3_test.go b/pkg/fourslash/tests/gen/getOccurrencesLoopBreakContinue3_test.go index 008b2b909..1b4e39a9a 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesLoopBreakContinue3_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesLoopBreakContinue3_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesLoopBreakContinue3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var arr = [1, 2, 3, 4]; label1: for (var n in arr) { diff --git a/pkg/fourslash/tests/gen/getOccurrencesLoopBreakContinue4_test.go b/pkg/fourslash/tests/gen/getOccurrencesLoopBreakContinue4_test.go index c7268a743..b9a0b1b82 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesLoopBreakContinue4_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesLoopBreakContinue4_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesLoopBreakContinue4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var arr = [1, 2, 3, 4]; label1: for (var n in arr) { diff --git a/pkg/fourslash/tests/gen/getOccurrencesLoopBreakContinue5_test.go b/pkg/fourslash/tests/gen/getOccurrencesLoopBreakContinue5_test.go index c3c6fac1f..5f94e1a16 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesLoopBreakContinue5_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesLoopBreakContinue5_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesLoopBreakContinue5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var arr = [1, 2, 3, 4]; label1: for (var n in arr) { diff --git a/pkg/fourslash/tests/gen/getOccurrencesLoopBreakContinue_test.go b/pkg/fourslash/tests/gen/getOccurrencesLoopBreakContinue_test.go index bd14a60dd..abd957cbc 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesLoopBreakContinue_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesLoopBreakContinue_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesLoopBreakContinue(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var arr = [1, 2, 3, 4]; label1: [|for|] (var n in arr) { diff --git a/pkg/fourslash/tests/gen/getOccurrencesModifiersNegatives1_test.go b/pkg/fourslash/tests/gen/getOccurrencesModifiersNegatives1_test.go index 56bd08621..cb601eed0 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesModifiersNegatives1_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesModifiersNegatives1_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesModifiersNegatives1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { [|{| "count": 3 |}export|] foo; diff --git a/pkg/fourslash/tests/gen/getOccurrencesNonStringImportAssertion_test.go b/pkg/fourslash/tests/gen/getOccurrencesNonStringImportAssertion_test.go index 54caff808..504b6f951 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesNonStringImportAssertion_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesNonStringImportAssertion_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOccurrencesNonStringImportAssertion(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 import * as react from "react" assert { cache: /**/0 }; diff --git a/pkg/fourslash/tests/gen/getOccurrencesNonStringImportAttributes_test.go b/pkg/fourslash/tests/gen/getOccurrencesNonStringImportAttributes_test.go index 4f19e616b..c13ebbb66 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesNonStringImportAttributes_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesNonStringImportAttributes_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOccurrencesNonStringImportAttributes(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 import * as react from "react" with { cache: /**/0 }; diff --git a/pkg/fourslash/tests/gen/getOccurrencesOfAnonymousFunction2_test.go b/pkg/fourslash/tests/gen/getOccurrencesOfAnonymousFunction2_test.go index 67b7ceeeb..25b38727e 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesOfAnonymousFunction2_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesOfAnonymousFunction2_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOccurrencesOfAnonymousFunction2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//global foo definition function foo() {} diff --git a/pkg/fourslash/tests/gen/getOccurrencesOfAnonymousFunction_test.go b/pkg/fourslash/tests/gen/getOccurrencesOfAnonymousFunction_test.go index bf8a24e56..0d8c2d750 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesOfAnonymousFunction_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesOfAnonymousFunction_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesOfAnonymousFunction(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `(function [|foo|](): number { var x = [|foo|]; diff --git a/pkg/fourslash/tests/gen/getOccurrencesOfDecorators_test.go b/pkg/fourslash/tests/gen/getOccurrencesOfDecorators_test.go index 612d28752..7ebaeef9d 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesOfDecorators_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesOfDecorators_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOccurrencesOfDecorators(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: b.ts @/*1*/decorator diff --git a/pkg/fourslash/tests/gen/getOccurrencesOfUndefinedSymbol_test.go b/pkg/fourslash/tests/gen/getOccurrencesOfUndefinedSymbol_test.go index c8707febf..b1a81998c 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesOfUndefinedSymbol_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesOfUndefinedSymbol_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOccurrencesOfUndefinedSymbol(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var obj1: { (bar: any): any; diff --git a/pkg/fourslash/tests/gen/getOccurrencesPrivate1_test.go b/pkg/fourslash/tests/gen/getOccurrencesPrivate1_test.go index 62b2d67cd..deb58ae87 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesPrivate1_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesPrivate1_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesPrivate1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module m { export class C1 { diff --git a/pkg/fourslash/tests/gen/getOccurrencesPrivate2_test.go b/pkg/fourslash/tests/gen/getOccurrencesPrivate2_test.go index ef48330fd..b027db802 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesPrivate2_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesPrivate2_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesPrivate2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module m { export class C1 { diff --git a/pkg/fourslash/tests/gen/getOccurrencesPropertyInAliasedInterface_test.go b/pkg/fourslash/tests/gen/getOccurrencesPropertyInAliasedInterface_test.go index 9ca00dfd7..0c69a8303 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesPropertyInAliasedInterface_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesPropertyInAliasedInterface_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesPropertyInAliasedInterface(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module m { export interface Foo { diff --git a/pkg/fourslash/tests/gen/getOccurrencesProtected1_test.go b/pkg/fourslash/tests/gen/getOccurrencesProtected1_test.go index 2f65b8130..e74c760cb 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesProtected1_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesProtected1_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesProtected1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module m { export class C1 { diff --git a/pkg/fourslash/tests/gen/getOccurrencesProtected2_test.go b/pkg/fourslash/tests/gen/getOccurrencesProtected2_test.go index 35dc5b169..514b09062 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesProtected2_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesProtected2_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesProtected2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module m { export class C1 { diff --git a/pkg/fourslash/tests/gen/getOccurrencesPublic1_test.go b/pkg/fourslash/tests/gen/getOccurrencesPublic1_test.go index f25c7ec8e..12a87a9bd 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesPublic1_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesPublic1_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesPublic1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module m { export class C1 { diff --git a/pkg/fourslash/tests/gen/getOccurrencesPublic2_test.go b/pkg/fourslash/tests/gen/getOccurrencesPublic2_test.go index e06717326..0a6e7a149 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesPublic2_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesPublic2_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesPublic2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module m { export class C1 { diff --git a/pkg/fourslash/tests/gen/getOccurrencesReadonly1_test.go b/pkg/fourslash/tests/gen/getOccurrencesReadonly1_test.go index 653fc06f7..9a91ebd1f 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesReadonly1_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesReadonly1_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesReadonly1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { [|readonly|] prop: string; diff --git a/pkg/fourslash/tests/gen/getOccurrencesReadonly2_test.go b/pkg/fourslash/tests/gen/getOccurrencesReadonly2_test.go index 531146d56..5896bf578 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesReadonly2_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesReadonly2_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesReadonly2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type T = { [|readonly|] prop: string; diff --git a/pkg/fourslash/tests/gen/getOccurrencesReadonly3_test.go b/pkg/fourslash/tests/gen/getOccurrencesReadonly3_test.go index 351dff925..915c50aaa 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesReadonly3_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesReadonly3_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesReadonly3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { [|readonly|] prop: /**/readonly string[] = []; diff --git a/pkg/fourslash/tests/gen/getOccurrencesReturn2_test.go b/pkg/fourslash/tests/gen/getOccurrencesReturn2_test.go index 11d8b6b27..8e0b4e45f 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesReturn2_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesReturn2_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesReturn2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f(a: number) { if (a > 0) { diff --git a/pkg/fourslash/tests/gen/getOccurrencesReturn3_test.go b/pkg/fourslash/tests/gen/getOccurrencesReturn3_test.go index 47582c766..a2d49dd47 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesReturn3_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesReturn3_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesReturn3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f(a: number) { if (a > 0) { diff --git a/pkg/fourslash/tests/gen/getOccurrencesReturn_test.go b/pkg/fourslash/tests/gen/getOccurrencesReturn_test.go index 9b719026f..606406be4 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesReturn_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesReturn_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesReturn(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f(a: number) { if (a > 0) { diff --git a/pkg/fourslash/tests/gen/getOccurrencesSetAndGet2_test.go b/pkg/fourslash/tests/gen/getOccurrencesSetAndGet2_test.go index ee331cb03..6492ad13c 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesSetAndGet2_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesSetAndGet2_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesSetAndGet2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { set bar(b: any) { diff --git a/pkg/fourslash/tests/gen/getOccurrencesSetAndGet3_test.go b/pkg/fourslash/tests/gen/getOccurrencesSetAndGet3_test.go index e5237d5a6..9818d8ea2 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesSetAndGet3_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesSetAndGet3_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesSetAndGet3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { set bar(b: any) { diff --git a/pkg/fourslash/tests/gen/getOccurrencesSetAndGet_test.go b/pkg/fourslash/tests/gen/getOccurrencesSetAndGet_test.go index e7e2b457b..768dfd963 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesSetAndGet_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesSetAndGet_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesSetAndGet(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { [|set|] bar(b: any) { diff --git a/pkg/fourslash/tests/gen/getOccurrencesStatic1_test.go b/pkg/fourslash/tests/gen/getOccurrencesStatic1_test.go index 21257e298..0a5683f59 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesStatic1_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesStatic1_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesStatic1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module m { export class C1 { diff --git a/pkg/fourslash/tests/gen/getOccurrencesStringLiteralTypes_test.go b/pkg/fourslash/tests/gen/getOccurrencesStringLiteralTypes_test.go index ea8ffa134..33c8eabce 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesStringLiteralTypes_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesStringLiteralTypes_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesStringLiteralTypes(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(a: "[|option 1|]") { } foo("[|option 1|]");` diff --git a/pkg/fourslash/tests/gen/getOccurrencesStringLiterals_test.go b/pkg/fourslash/tests/gen/getOccurrencesStringLiterals_test.go index 65f2941c8..d3b694546 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesStringLiterals_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesStringLiterals_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesStringLiterals(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = "[|string|]"; function f(a = "[|initial value|]") { }` diff --git a/pkg/fourslash/tests/gen/getOccurrencesSuper2_test.go b/pkg/fourslash/tests/gen/getOccurrencesSuper2_test.go index 27ca83be8..70f584ba9 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesSuper2_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesSuper2_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesSuper2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class SuperType { superMethod() { diff --git a/pkg/fourslash/tests/gen/getOccurrencesSuper3_test.go b/pkg/fourslash/tests/gen/getOccurrencesSuper3_test.go index 3e753bd66..daf811983 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesSuper3_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesSuper3_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesSuper3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let x = { a() { diff --git a/pkg/fourslash/tests/gen/getOccurrencesSuperNegatives_test.go b/pkg/fourslash/tests/gen/getOccurrencesSuperNegatives_test.go index da2f25237..ba129b52a 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesSuperNegatives_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesSuperNegatives_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesSuperNegatives(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f(x = [|super|]) { [|super|]; diff --git a/pkg/fourslash/tests/gen/getOccurrencesSuper_test.go b/pkg/fourslash/tests/gen/getOccurrencesSuper_test.go index 34e049411..bb22aad34 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesSuper_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesSuper_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesSuper(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class SuperType { superMethod() { diff --git a/pkg/fourslash/tests/gen/getOccurrencesSwitchCaseDefault2_test.go b/pkg/fourslash/tests/gen/getOccurrencesSwitchCaseDefault2_test.go index 1fb8436b9..9cce3bf14 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesSwitchCaseDefault2_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesSwitchCaseDefault2_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesSwitchCaseDefault2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `switch (10) { case 1: diff --git a/pkg/fourslash/tests/gen/getOccurrencesSwitchCaseDefault3_test.go b/pkg/fourslash/tests/gen/getOccurrencesSwitchCaseDefault3_test.go index ee866e519..095a9b893 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesSwitchCaseDefault3_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesSwitchCaseDefault3_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesSwitchCaseDefault3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `foo: [|switch|] (1) { [|case|] 1: diff --git a/pkg/fourslash/tests/gen/getOccurrencesSwitchCaseDefault_test.go b/pkg/fourslash/tests/gen/getOccurrencesSwitchCaseDefault_test.go index 3f17b3816..885c24964 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesSwitchCaseDefault_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesSwitchCaseDefault_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesSwitchCaseDefault(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|switch|] (10) { [|case|] 1: diff --git a/pkg/fourslash/tests/gen/getOccurrencesThis2_test.go b/pkg/fourslash/tests/gen/getOccurrencesThis2_test.go index 29f7b5d6e..a3204b4d3 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesThis2_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesThis2_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesThis2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `this; this; diff --git a/pkg/fourslash/tests/gen/getOccurrencesThis3_test.go b/pkg/fourslash/tests/gen/getOccurrencesThis3_test.go index 5931b1e27..b3c8a12e3 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesThis3_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesThis3_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesThis3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `this; this; diff --git a/pkg/fourslash/tests/gen/getOccurrencesThis4_test.go b/pkg/fourslash/tests/gen/getOccurrencesThis4_test.go index 42e016aca..cabbeebc9 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesThis4_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesThis4_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesThis4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `this; this; diff --git a/pkg/fourslash/tests/gen/getOccurrencesThis5_test.go b/pkg/fourslash/tests/gen/getOccurrencesThis5_test.go index 32306467d..9c0cc32e2 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesThis5_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesThis5_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesThis5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `this; this; diff --git a/pkg/fourslash/tests/gen/getOccurrencesThis_test.go b/pkg/fourslash/tests/gen/getOccurrencesThis_test.go index 6de90fa6e..ac30d4632 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesThis_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesThis_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesThis(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|this|]; [|th/**/is|]; diff --git a/pkg/fourslash/tests/gen/getOccurrencesThrow2_test.go b/pkg/fourslash/tests/gen/getOccurrencesThrow2_test.go index 086e3c9ab..420c0660f 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesThrow2_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesThrow2_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesThrow2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f(a: number) { try { diff --git a/pkg/fourslash/tests/gen/getOccurrencesThrow3_test.go b/pkg/fourslash/tests/gen/getOccurrencesThrow3_test.go index f421b61b4..0e97a8836 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesThrow3_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesThrow3_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesThrow3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f(a: number) { try { diff --git a/pkg/fourslash/tests/gen/getOccurrencesThrow4_test.go b/pkg/fourslash/tests/gen/getOccurrencesThrow4_test.go index 55bc821fe..7a7f56163 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesThrow4_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesThrow4_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesThrow4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f(a: number) { try { diff --git a/pkg/fourslash/tests/gen/getOccurrencesThrow5_test.go b/pkg/fourslash/tests/gen/getOccurrencesThrow5_test.go index 300639df5..7ca0d1d44 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesThrow5_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesThrow5_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesThrow5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f(a: number) { try { diff --git a/pkg/fourslash/tests/gen/getOccurrencesThrow6_test.go b/pkg/fourslash/tests/gen/getOccurrencesThrow6_test.go index 543ee993e..8f36e35f2 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesThrow6_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesThrow6_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesThrow6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|throw|] 100; diff --git a/pkg/fourslash/tests/gen/getOccurrencesThrow7_test.go b/pkg/fourslash/tests/gen/getOccurrencesThrow7_test.go index 5543a4071..2f30c58fc 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesThrow7_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesThrow7_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesThrow7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `try { [|throw|] 10; diff --git a/pkg/fourslash/tests/gen/getOccurrencesThrow8_test.go b/pkg/fourslash/tests/gen/getOccurrencesThrow8_test.go index f4b9aea29..b779d6cba 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesThrow8_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesThrow8_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesThrow8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `try { throw 10; diff --git a/pkg/fourslash/tests/gen/getOccurrencesThrow_test.go b/pkg/fourslash/tests/gen/getOccurrencesThrow_test.go index 8b5983fec..74ec6908b 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesThrow_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesThrow_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesThrow(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f(a: number) { try { diff --git a/pkg/fourslash/tests/gen/getOccurrencesYield_test.go b/pkg/fourslash/tests/gen/getOccurrencesYield_test.go index 2c5d3e02d..4730ffbc0 100644 --- a/pkg/fourslash/tests/gen/getOccurrencesYield_test.go +++ b/pkg/fourslash/tests/gen/getOccurrencesYield_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOccurrencesYield(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function* f() { [|yield|] 100; diff --git a/pkg/fourslash/tests/gen/getOutliningForArrayDestructuring_test.go b/pkg/fourslash/tests/gen/getOutliningForArrayDestructuring_test.go index e384279d9..c1bd55b21 100644 --- a/pkg/fourslash/tests/gen/getOutliningForArrayDestructuring_test.go +++ b/pkg/fourslash/tests/gen/getOutliningForArrayDestructuring_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOutliningForArrayDestructuring(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const[| [ a, diff --git a/pkg/fourslash/tests/gen/getOutliningForBlockComments_test.go b/pkg/fourslash/tests/gen/getOutliningForBlockComments_test.go index 388a8aa4a..815fffcc0 100644 --- a/pkg/fourslash/tests/gen/getOutliningForBlockComments_test.go +++ b/pkg/fourslash/tests/gen/getOutliningForBlockComments_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOutliningForBlockComments(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|/* Block comment at the beginning of the file before module: diff --git a/pkg/fourslash/tests/gen/getOutliningForObjectDestructuring_test.go b/pkg/fourslash/tests/gen/getOutliningForObjectDestructuring_test.go index fe2c7b017..db9209249 100644 --- a/pkg/fourslash/tests/gen/getOutliningForObjectDestructuring_test.go +++ b/pkg/fourslash/tests/gen/getOutliningForObjectDestructuring_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOutliningForObjectDestructuring(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const[| { a, diff --git a/pkg/fourslash/tests/gen/getOutliningForObjectsInArray_test.go b/pkg/fourslash/tests/gen/getOutliningForObjectsInArray_test.go index df96f9fe4..0ba95d32a 100644 --- a/pkg/fourslash/tests/gen/getOutliningForObjectsInArray_test.go +++ b/pkg/fourslash/tests/gen/getOutliningForObjectsInArray_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOutliningForObjectsInArray(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const x =[| [ [|{ a: 0 }|], diff --git a/pkg/fourslash/tests/gen/getOutliningForSingleLineComments_test.go b/pkg/fourslash/tests/gen/getOutliningForSingleLineComments_test.go index 71fc37243..5bf013218 100644 --- a/pkg/fourslash/tests/gen/getOutliningForSingleLineComments_test.go +++ b/pkg/fourslash/tests/gen/getOutliningForSingleLineComments_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOutliningForSingleLineComments(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|// Single line comments at the start of the file // line 2 diff --git a/pkg/fourslash/tests/gen/getOutliningForTupleType_test.go b/pkg/fourslash/tests/gen/getOutliningForTupleType_test.go index 0cca76f7e..cde2c6ba2 100644 --- a/pkg/fourslash/tests/gen/getOutliningForTupleType_test.go +++ b/pkg/fourslash/tests/gen/getOutliningForTupleType_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOutliningForTupleType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type A =[| [ number, diff --git a/pkg/fourslash/tests/gen/getOutliningForTypeLiteral_test.go b/pkg/fourslash/tests/gen/getOutliningForTypeLiteral_test.go index 3ef5847bc..58cc0c5db 100644 --- a/pkg/fourslash/tests/gen/getOutliningForTypeLiteral_test.go +++ b/pkg/fourslash/tests/gen/getOutliningForTypeLiteral_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOutliningForTypeLiteral(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type A =[| { a: number; diff --git a/pkg/fourslash/tests/gen/getOutliningSpansDepthChainedCalls_test.go b/pkg/fourslash/tests/gen/getOutliningSpansDepthChainedCalls_test.go index 99368320a..7be16dd62 100644 --- a/pkg/fourslash/tests/gen/getOutliningSpansDepthChainedCalls_test.go +++ b/pkg/fourslash/tests/gen/getOutliningSpansDepthChainedCalls_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOutliningSpansDepthChainedCalls(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare var router: any; router diff --git a/pkg/fourslash/tests/gen/getOutliningSpansDepthElseIf_test.go b/pkg/fourslash/tests/gen/getOutliningSpansDepthElseIf_test.go index bb92fb4ba..8dd171382 100644 --- a/pkg/fourslash/tests/gen/getOutliningSpansDepthElseIf_test.go +++ b/pkg/fourslash/tests/gen/getOutliningSpansDepthElseIf_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOutliningSpansDepthElseIf(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `if (1)[| { 1; diff --git a/pkg/fourslash/tests/gen/getOutliningSpansForComments_test.go b/pkg/fourslash/tests/gen/getOutliningSpansForComments_test.go index edd39d3d3..2caaa659b 100644 --- a/pkg/fourslash/tests/gen/getOutliningSpansForComments_test.go +++ b/pkg/fourslash/tests/gen/getOutliningSpansForComments_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOutliningSpansForComments(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|/* Block comment at the beginning of the file before module: diff --git a/pkg/fourslash/tests/gen/getOutliningSpansForImports_test.go b/pkg/fourslash/tests/gen/getOutliningSpansForImports_test.go index a69fcbb6a..170e691ca 100644 --- a/pkg/fourslash/tests/gen/getOutliningSpansForImports_test.go +++ b/pkg/fourslash/tests/gen/getOutliningSpansForImports_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOutliningSpansForImports(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|import * as ns from "mod"; diff --git a/pkg/fourslash/tests/gen/getOutliningSpansForRegionsNoSingleLineFolds_test.go b/pkg/fourslash/tests/gen/getOutliningSpansForRegionsNoSingleLineFolds_test.go index d841925b5..d954a206a 100644 --- a/pkg/fourslash/tests/gen/getOutliningSpansForRegionsNoSingleLineFolds_test.go +++ b/pkg/fourslash/tests/gen/getOutliningSpansForRegionsNoSingleLineFolds_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOutliningSpansForRegionsNoSingleLineFolds(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|//#region function foo()[| { diff --git a/pkg/fourslash/tests/gen/getOutliningSpansForRegions_test.go b/pkg/fourslash/tests/gen/getOutliningSpansForRegions_test.go index 99fc1220e..559ffbdca 100644 --- a/pkg/fourslash/tests/gen/getOutliningSpansForRegions_test.go +++ b/pkg/fourslash/tests/gen/getOutliningSpansForRegions_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOutliningSpansForRegions(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// region without label [|// #region diff --git a/pkg/fourslash/tests/gen/getOutliningSpansForTemplateLiteral_test.go b/pkg/fourslash/tests/gen/getOutliningSpansForTemplateLiteral_test.go index 98e44f6ab..c9204a0ca 100644 --- a/pkg/fourslash/tests/gen/getOutliningSpansForTemplateLiteral_test.go +++ b/pkg/fourslash/tests/gen/getOutliningSpansForTemplateLiteral_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetOutliningSpansForTemplateLiteral(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function tag(...args: any[]): void const a = [|` + "`" + `signal line` + "`" + `|] diff --git a/pkg/fourslash/tests/gen/getOutliningSpansForUnbalancedEndRegion_test.go b/pkg/fourslash/tests/gen/getOutliningSpansForUnbalancedEndRegion_test.go index 87e8321bb..079f22a0f 100644 --- a/pkg/fourslash/tests/gen/getOutliningSpansForUnbalancedEndRegion_test.go +++ b/pkg/fourslash/tests/gen/getOutliningSpansForUnbalancedEndRegion_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOutliningSpansForUnbalancedEndRegion(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// bottom-heavy region balance [|// #region matched diff --git a/pkg/fourslash/tests/gen/getOutliningSpansForUnbalancedRegion_test.go b/pkg/fourslash/tests/gen/getOutliningSpansForUnbalancedRegion_test.go index ebd252ce2..5c863ca6a 100644 --- a/pkg/fourslash/tests/gen/getOutliningSpansForUnbalancedRegion_test.go +++ b/pkg/fourslash/tests/gen/getOutliningSpansForUnbalancedRegion_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetOutliningSpansForUnbalancedRegion(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// top-heavy region balance // #region unmatched diff --git a/pkg/fourslash/tests/gen/getPreProcessedFile_test.go b/pkg/fourslash/tests/gen/getPreProcessedFile_test.go index 84a1eee06..d509d51d8 100644 --- a/pkg/fourslash/tests/gen/getPreProcessedFile_test.go +++ b/pkg/fourslash/tests/gen/getPreProcessedFile_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetPreProcessedFile(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @moduleResolution: classic // @Filename: refFile1.ts diff --git a/pkg/fourslash/tests/gen/getPropertySymbolsFromBaseTypesDoesntCrash_test.go b/pkg/fourslash/tests/gen/getPropertySymbolsFromBaseTypesDoesntCrash_test.go index e09560793..a5db0ea0d 100644 --- a/pkg/fourslash/tests/gen/getPropertySymbolsFromBaseTypesDoesntCrash_test.go +++ b/pkg/fourslash/tests/gen/getPropertySymbolsFromBaseTypesDoesntCrash_test.go @@ -9,8 +9,8 @@ import ( ) func TestGetPropertySymbolsFromBaseTypesDoesntCrash(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: file1.ts class ClassA implements IInterface { diff --git a/pkg/fourslash/tests/gen/getQuickInfoForIntersectionTypes_test.go b/pkg/fourslash/tests/gen/getQuickInfoForIntersectionTypes_test.go index 55956bcd4..0b0a22f85 100644 --- a/pkg/fourslash/tests/gen/getQuickInfoForIntersectionTypes_test.go +++ b/pkg/fourslash/tests/gen/getQuickInfoForIntersectionTypes_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetQuickInfoForIntersectionTypes(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f(): string & {(): any} { return {}; diff --git a/pkg/fourslash/tests/gen/getRenameInfoTests1_test.go b/pkg/fourslash/tests/gen/getRenameInfoTests1_test.go index b3eb6abf3..db3af86c2 100644 --- a/pkg/fourslash/tests/gen/getRenameInfoTests1_test.go +++ b/pkg/fourslash/tests/gen/getRenameInfoTests1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetRenameInfoTests1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class [|/**/C|] { diff --git a/pkg/fourslash/tests/gen/getRenameInfoTests2_test.go b/pkg/fourslash/tests/gen/getRenameInfoTests2_test.go index 379c7672c..3c9110535 100644 --- a/pkg/fourslash/tests/gen/getRenameInfoTests2_test.go +++ b/pkg/fourslash/tests/gen/getRenameInfoTests2_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetRenameInfoTests2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C /**/extends null { diff --git a/pkg/fourslash/tests/gen/getSemanticDiagnosticForDeclaration1_test.go b/pkg/fourslash/tests/gen/getSemanticDiagnosticForDeclaration1_test.go index f73eadd39..323203881 100644 --- a/pkg/fourslash/tests/gen/getSemanticDiagnosticForDeclaration1_test.go +++ b/pkg/fourslash/tests/gen/getSemanticDiagnosticForDeclaration1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetSemanticDiagnosticForDeclaration1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @declaration: true // @Filename: File.d.ts diff --git a/pkg/fourslash/tests/gen/getSemanticDiagnosticForDeclaration_test.go b/pkg/fourslash/tests/gen/getSemanticDiagnosticForDeclaration_test.go index 1649d4ccd..d147dce07 100644 --- a/pkg/fourslash/tests/gen/getSemanticDiagnosticForDeclaration_test.go +++ b/pkg/fourslash/tests/gen/getSemanticDiagnosticForDeclaration_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetSemanticDiagnosticForDeclaration(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: CommonJS // @declaration: true diff --git a/pkg/fourslash/tests/gen/getSemanticDiagnosticForNoDeclaration_test.go b/pkg/fourslash/tests/gen/getSemanticDiagnosticForNoDeclaration_test.go index 38257ca6a..e2edef646 100644 --- a/pkg/fourslash/tests/gen/getSemanticDiagnosticForNoDeclaration_test.go +++ b/pkg/fourslash/tests/gen/getSemanticDiagnosticForNoDeclaration_test.go @@ -8,8 +8,8 @@ import ( ) func TestGetSemanticDiagnosticForNoDeclaration(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: CommonJS interface privateInterface {} diff --git a/pkg/fourslash/tests/gen/globalThisCompletion_test.go b/pkg/fourslash/tests/gen/globalThisCompletion_test.go index 4ddd7602d..7a8f0d315 100644 --- a/pkg/fourslash/tests/gen/globalThisCompletion_test.go +++ b/pkg/fourslash/tests/gen/globalThisCompletion_test.go @@ -9,8 +9,8 @@ import ( ) func TestGlobalThisCompletion(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @target: esnext diff --git a/pkg/fourslash/tests/gen/goToDefinitionAcrossMultipleProjects_test.go b/pkg/fourslash/tests/gen/goToDefinitionAcrossMultipleProjects_test.go index b7de7619a..bbd55d87d 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionAcrossMultipleProjects_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionAcrossMultipleProjects_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionAcrossMultipleProjects(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: a.ts var /*def1*/x: number; diff --git a/pkg/fourslash/tests/gen/goToDefinitionAlias_test.go b/pkg/fourslash/tests/gen/goToDefinitionAlias_test.go index b0d0d06ce..9e6bd787e 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionAlias_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionAlias_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionAlias(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: b.ts import /*alias1Definition*/alias1 = require("fileb"); diff --git a/pkg/fourslash/tests/gen/goToDefinitionAmbiants_test.go b/pkg/fourslash/tests/gen/goToDefinitionAmbiants_test.go index 0dcc023b4..4be1c018a 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionAmbiants_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionAmbiants_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionAmbiants(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare var /*ambientVariableDefinition*/ambientVar; declare function /*ambientFunctionDefinition*/ambientFunction(); diff --git a/pkg/fourslash/tests/gen/goToDefinitionApparentTypeProperties_test.go b/pkg/fourslash/tests/gen/goToDefinitionApparentTypeProperties_test.go index c0a8bd5bb..026f56d7a 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionApparentTypeProperties_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionApparentTypeProperties_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionApparentTypeProperties(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Number { /*definition*/myObjectMethod(): number; diff --git a/pkg/fourslash/tests/gen/goToDefinitionAwait1_test.go b/pkg/fourslash/tests/gen/goToDefinitionAwait1_test.go index 6b3901d22..c0a4b0a94 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionAwait1_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionAwait1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionAwait1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `async function /*end1*/foo() { [|/*start1*/await|] Promise.resolve(0); diff --git a/pkg/fourslash/tests/gen/goToDefinitionAwait2_test.go b/pkg/fourslash/tests/gen/goToDefinitionAwait2_test.go index 208579be4..b37b37b41 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionAwait2_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionAwait2_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionAwait2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|/*start*/await|] Promise.resolve(0);` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/goToDefinitionAwait3_test.go b/pkg/fourslash/tests/gen/goToDefinitionAwait3_test.go index 1ec163f5a..90ae577b7 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionAwait3_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionAwait3_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionAwait3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { notAsync() { diff --git a/pkg/fourslash/tests/gen/goToDefinitionAwait4_test.go b/pkg/fourslash/tests/gen/goToDefinitionAwait4_test.go index 934686093..449a16120 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionAwait4_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionAwait4_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionAwait4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `async function outerAsyncFun() { let /*end*/af = async () => { diff --git a/pkg/fourslash/tests/gen/goToDefinitionBuiltInTypes_test.go b/pkg/fourslash/tests/gen/goToDefinitionBuiltInTypes_test.go index b58fb2046..fcc58c95a 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionBuiltInTypes_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionBuiltInTypes_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionBuiltInTypes(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var n: /*number*/number; var s: /*string*/string; diff --git a/pkg/fourslash/tests/gen/goToDefinitionBuiltInValues_test.go b/pkg/fourslash/tests/gen/goToDefinitionBuiltInValues_test.go index eb90c3cac..fac968ffb 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionBuiltInValues_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionBuiltInValues_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionBuiltInValues(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var u = /*undefined*/undefined; var n = /*null*/null; diff --git a/pkg/fourslash/tests/gen/goToDefinitionCSSPatternAmbientModule_test.go b/pkg/fourslash/tests/gen/goToDefinitionCSSPatternAmbientModule_test.go index 1f9b3c230..9c9da3c15 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionCSSPatternAmbientModule_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionCSSPatternAmbientModule_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionCSSPatternAmbientModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @esModuleInterop: true // @Filename: index.css diff --git a/pkg/fourslash/tests/gen/goToDefinitionClassConstructors_test.go b/pkg/fourslash/tests/gen/goToDefinitionClassConstructors_test.go index 0a232ccb0..11d18ccd8 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionClassConstructors_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionClassConstructors_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionClassConstructors(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: definitions.ts export class Base { diff --git a/pkg/fourslash/tests/gen/goToDefinitionClassStaticBlocks_test.go b/pkg/fourslash/tests/gen/goToDefinitionClassStaticBlocks_test.go index ce7ca4917..de104c9db 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionClassStaticBlocks_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionClassStaticBlocks_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionClassStaticBlocks(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class ClassStaticBocks { static x; diff --git a/pkg/fourslash/tests/gen/goToDefinitionConstructorOfClassExpression01_test.go b/pkg/fourslash/tests/gen/goToDefinitionConstructorOfClassExpression01_test.go index 9593580cd..6d492e9dd 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionConstructorOfClassExpression01_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionConstructorOfClassExpression01_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionConstructorOfClassExpression01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = class C { /*definition*/constructor() { diff --git a/pkg/fourslash/tests/gen/goToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01_test.go b/pkg/fourslash/tests/gen/goToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01_test.go index f405351c4..9fedb2581 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionConstructorOfClassWhenClassIsPrecededByNamespace01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `namespace Foo { export var x; diff --git a/pkg/fourslash/tests/gen/goToDefinitionConstructorOverloads_test.go b/pkg/fourslash/tests/gen/goToDefinitionConstructorOverloads_test.go index 7a8ee3278..fd532a05e 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionConstructorOverloads_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionConstructorOverloads_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionConstructorOverloads(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class ConstructorOverload { [|/*constructorOverload1*/constructor|](); diff --git a/pkg/fourslash/tests/gen/goToDefinitionDecoratorOverloads_test.go b/pkg/fourslash/tests/gen/goToDefinitionDecoratorOverloads_test.go index f5031135c..5f12c6b7b 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionDecoratorOverloads_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionDecoratorOverloads_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionDecoratorOverloads(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Target: ES6 // @experimentaldecorators: true diff --git a/pkg/fourslash/tests/gen/goToDefinitionDecorator_test.go b/pkg/fourslash/tests/gen/goToDefinitionDecorator_test.go index 4ea3412fe..cc6018e7a 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionDecorator_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionDecorator_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionDecorator(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: b.ts @[|/*decoratorUse*/decorator|] diff --git a/pkg/fourslash/tests/gen/goToDefinitionDestructuredRequire1_test.go b/pkg/fourslash/tests/gen/goToDefinitionDestructuredRequire1_test.go index cf0c53a24..c54fe9f8c 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionDestructuredRequire1_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionDestructuredRequire1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionDestructuredRequire1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: util.js diff --git a/pkg/fourslash/tests/gen/goToDefinitionDestructuredRequire2_test.go b/pkg/fourslash/tests/gen/goToDefinitionDestructuredRequire2_test.go index 710a3b879..b7abfaf8b 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionDestructuredRequire2_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionDestructuredRequire2_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionDestructuredRequire2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: util.js diff --git a/pkg/fourslash/tests/gen/goToDefinitionDifferentFileIndirectly_test.go b/pkg/fourslash/tests/gen/goToDefinitionDifferentFileIndirectly_test.go index af2d507e2..90595c0ea 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionDifferentFileIndirectly_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionDifferentFileIndirectly_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionDifferentFileIndirectly(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: Remote2.ts var /*remoteVariableDefinition*/rem2Var; diff --git a/pkg/fourslash/tests/gen/goToDefinitionDifferentFile_test.go b/pkg/fourslash/tests/gen/goToDefinitionDifferentFile_test.go index b9709cb08..b7e5d3e6c 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionDifferentFile_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionDifferentFile_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionDifferentFile(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: goToDefinitionDifferentFile_Definition.ts var /*remoteVariableDefinition*/remoteVariable; diff --git a/pkg/fourslash/tests/gen/goToDefinitionDynamicImport1_test.go b/pkg/fourslash/tests/gen/goToDefinitionDynamicImport1_test.go index 66d6f2234..d4966ab2d 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionDynamicImport1_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionDynamicImport1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionDynamicImport1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: foo.ts /*Destination*/export function foo() { return "foo"; } diff --git a/pkg/fourslash/tests/gen/goToDefinitionDynamicImport2_test.go b/pkg/fourslash/tests/gen/goToDefinitionDynamicImport2_test.go index d39c8881a..09def0d5d 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionDynamicImport2_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionDynamicImport2_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionDynamicImport2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: foo.ts export function /*Destination*/bar() { return "bar"; } diff --git a/pkg/fourslash/tests/gen/goToDefinitionDynamicImport3_test.go b/pkg/fourslash/tests/gen/goToDefinitionDynamicImport3_test.go index e066c41f8..3d98e49dd 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionDynamicImport3_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionDynamicImport3_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionDynamicImport3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: foo.ts export function /*Destination*/bar() { return "bar"; } diff --git a/pkg/fourslash/tests/gen/goToDefinitionDynamicImport4_test.go b/pkg/fourslash/tests/gen/goToDefinitionDynamicImport4_test.go index e74041a71..6abbbd222 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionDynamicImport4_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionDynamicImport4_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionDynamicImport4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: foo.ts export function /*Destination*/bar() { return "bar"; } diff --git a/pkg/fourslash/tests/gen/goToDefinitionExpandoClass1_test.go b/pkg/fourslash/tests/gen/goToDefinitionExpandoClass1_test.go index 94e10bbe6..d8b3bc78b 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionExpandoClass1_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionExpandoClass1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionExpandoClass1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @allowJs: true diff --git a/pkg/fourslash/tests/gen/goToDefinitionExpandoClass2_test.go b/pkg/fourslash/tests/gen/goToDefinitionExpandoClass2_test.go index ffde2d6af..97970f9dc 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionExpandoClass2_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionExpandoClass2_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionExpandoClass2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @allowJs: true diff --git a/pkg/fourslash/tests/gen/goToDefinitionExpandoElementAccess_test.go b/pkg/fourslash/tests/gen/goToDefinitionExpandoElementAccess_test.go index 49947cdd5..43f527dbe 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionExpandoElementAccess_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionExpandoElementAccess_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionExpandoElementAccess(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f() {} f[/*0*/"x"] = 0; diff --git a/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName2_test.go b/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName2_test.go index 3035f1456..f1690ecac 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName2_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName2_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionExternalModuleName2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: b.ts import n = require([|'./a/*1*/'|]); diff --git a/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName3_test.go b/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName3_test.go index ff824fbf4..58b80161a 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName3_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName3_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionExternalModuleName3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: b.ts import n = require([|'e/*1*/'|]); diff --git a/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName4_test.go b/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName4_test.go index 786ccc8bb..aa59729e3 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName4_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName4_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionExternalModuleName4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: b.ts import n = require('unknown/*1*/');` diff --git a/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName5_test.go b/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName5_test.go index a0252d25a..bb3bd4299 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName5_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName5_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionExternalModuleName5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts declare module /*2*/[|"external/*1*/"|] { diff --git a/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName6_test.go b/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName6_test.go index a843b565c..c94929d7d 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName6_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName6_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionExternalModuleName6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: b.ts import * from [|'e/*1*/'|]; diff --git a/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName7_test.go b/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName7_test.go index 4024c5129..6341ec785 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName7_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName7_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionExternalModuleName7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: b.ts import {Foo, Bar} from [|'e/*1*/'|]; diff --git a/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName8_test.go b/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName8_test.go index f98e4c9a9..eefb160c1 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName8_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName8_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionExternalModuleName8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: b.ts export {Foo, Bar} from [|'e/*1*/'|]; diff --git a/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName9_test.go b/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName9_test.go index 5f3ba337a..638b99eef 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName9_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName9_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionExternalModuleName9(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: b.ts export * from [|'e/*1*/'|]; diff --git a/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName_test.go b/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName_test.go index 8df43b452..a3a5c1536 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionExternalModuleName_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionExternalModuleName(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: b.ts import n = require([|'./a/*1*/'|]); diff --git a/pkg/fourslash/tests/gen/goToDefinitionFunctionOverloadsInClass_test.go b/pkg/fourslash/tests/gen/goToDefinitionFunctionOverloadsInClass_test.go index 57e013bac..5d5fc518e 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionFunctionOverloadsInClass_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionFunctionOverloadsInClass_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionFunctionOverloadsInClass(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class clsInOverload { static fnOverload(); diff --git a/pkg/fourslash/tests/gen/goToDefinitionFunctionOverloads_test.go b/pkg/fourslash/tests/gen/goToDefinitionFunctionOverloads_test.go index 51fa7244f..bdfcc4165 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionFunctionOverloads_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionFunctionOverloads_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionFunctionOverloads(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function [|/*functionOverload1*/functionOverload|](value: number); function /*functionOverload2*/functionOverload(value: string); diff --git a/pkg/fourslash/tests/gen/goToDefinitionFunctionType_test.go b/pkg/fourslash/tests/gen/goToDefinitionFunctionType_test.go index 4a577eada..03f2d2683 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionFunctionType_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionFunctionType_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionFunctionType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const /*constDefinition*/c: () => void; /*constReference*/c(); diff --git a/pkg/fourslash/tests/gen/goToDefinitionImplicitConstructor_test.go b/pkg/fourslash/tests/gen/goToDefinitionImplicitConstructor_test.go index f145c50ad..62d15e844 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionImplicitConstructor_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionImplicitConstructor_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionImplicitConstructor(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class /*constructorDefinition*/ImplicitConstructor { } diff --git a/pkg/fourslash/tests/gen/goToDefinitionImport1_test.go b/pkg/fourslash/tests/gen/goToDefinitionImport1_test.go index 95700fac8..593cdf4d6 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionImport1_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionImport1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionImport1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /b.ts /*2*/export const foo = 1; diff --git a/pkg/fourslash/tests/gen/goToDefinitionImport2_test.go b/pkg/fourslash/tests/gen/goToDefinitionImport2_test.go index e35480365..04495a6d8 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionImport2_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionImport2_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionImport2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /b.ts /*2*/export const foo = 1; diff --git a/pkg/fourslash/tests/gen/goToDefinitionImport3_test.go b/pkg/fourslash/tests/gen/goToDefinitionImport3_test.go index 1aa6f4353..8bc955921 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionImport3_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionImport3_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionImport3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /b.ts /*2*/export const foo = 1; diff --git a/pkg/fourslash/tests/gen/goToDefinitionImportMeta_test.go b/pkg/fourslash/tests/gen/goToDefinitionImportMeta_test.go index eda45aac8..8f10bcc2d 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionImportMeta_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionImportMeta_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionImportMeta(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @Filename: foo.ts diff --git a/pkg/fourslash/tests/gen/goToDefinitionImportedNames10_test.go b/pkg/fourslash/tests/gen/goToDefinitionImportedNames10_test.go index dc70a37e1..545035cfd 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionImportedNames10_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionImportedNames10_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionImportedNames10(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowjs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/goToDefinitionImportedNames11_test.go b/pkg/fourslash/tests/gen/goToDefinitionImportedNames11_test.go index 49a6ed328..fd7912e4a 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionImportedNames11_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionImportedNames11_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionImportedNames11(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowjs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/goToDefinitionImportedNames2_test.go b/pkg/fourslash/tests/gen/goToDefinitionImportedNames2_test.go index 6048daaad..1e7669eb3 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionImportedNames2_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionImportedNames2_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionImportedNames2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: b.ts import {[|/*classAliasDefinition*/Class|]} from "./a"; diff --git a/pkg/fourslash/tests/gen/goToDefinitionImportedNames3_test.go b/pkg/fourslash/tests/gen/goToDefinitionImportedNames3_test.go index b35ac87e2..4f4735555 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionImportedNames3_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionImportedNames3_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionImportedNames3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: e.ts import {M, [|/*classAliasDefinition*/C|], I} from "./d"; diff --git a/pkg/fourslash/tests/gen/goToDefinitionImportedNames4_test.go b/pkg/fourslash/tests/gen/goToDefinitionImportedNames4_test.go index 259905098..245dea9ca 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionImportedNames4_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionImportedNames4_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionImportedNames4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: b.ts import {Class as [|/*classAliasDefinition*/ClassAlias|]} from "./a"; diff --git a/pkg/fourslash/tests/gen/goToDefinitionImportedNames5_test.go b/pkg/fourslash/tests/gen/goToDefinitionImportedNames5_test.go index de090d94e..6110cd955 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionImportedNames5_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionImportedNames5_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionImportedNames5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: b.ts export {Class as [|/*classAliasDefinition*/ClassAlias|]} from "./a"; diff --git a/pkg/fourslash/tests/gen/goToDefinitionImportedNames6_test.go b/pkg/fourslash/tests/gen/goToDefinitionImportedNames6_test.go index 86da969ef..ddb3167df 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionImportedNames6_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionImportedNames6_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionImportedNames6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: b.ts import [|/*moduleAliasDefinition*/alias|] = require("./a"); diff --git a/pkg/fourslash/tests/gen/goToDefinitionImportedNames7_test.go b/pkg/fourslash/tests/gen/goToDefinitionImportedNames7_test.go index eeecd9405..118529ff5 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionImportedNames7_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionImportedNames7_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionImportedNames7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: b.ts import [|/*classAliasDefinition*/defaultExport|] from "./a"; diff --git a/pkg/fourslash/tests/gen/goToDefinitionImportedNames8_test.go b/pkg/fourslash/tests/gen/goToDefinitionImportedNames8_test.go index 3b09cbe69..7db4567aa 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionImportedNames8_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionImportedNames8_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionImportedNames8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowjs: true // @Filename: b.js diff --git a/pkg/fourslash/tests/gen/goToDefinitionImportedNames9_test.go b/pkg/fourslash/tests/gen/goToDefinitionImportedNames9_test.go index cc6d5c470..6ae82531b 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionImportedNames9_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionImportedNames9_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionImportedNames9(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowjs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/goToDefinitionImportedNames_test.go b/pkg/fourslash/tests/gen/goToDefinitionImportedNames_test.go index d7896412c..8862e3346 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionImportedNames_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionImportedNames_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionImportedNames(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: b.ts export {[|/*classAliasDefinition*/Class|]} from "./a"; diff --git a/pkg/fourslash/tests/gen/goToDefinitionImports_test.go b/pkg/fourslash/tests/gen/goToDefinitionImports_test.go index b39264aae..a19110e67 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionImports_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionImports_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionImports(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export default function /*fDef*/f() {} diff --git a/pkg/fourslash/tests/gen/goToDefinitionInMemberDeclaration_test.go b/pkg/fourslash/tests/gen/goToDefinitionInMemberDeclaration_test.go index 1097acbf3..eb5bd1fe9 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionInMemberDeclaration_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionInMemberDeclaration_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionInMemberDeclaration(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface /*interfaceDefinition*/IFoo { method1(): number; } diff --git a/pkg/fourslash/tests/gen/goToDefinitionInTypeArgument_test.go b/pkg/fourslash/tests/gen/goToDefinitionInTypeArgument_test.go index af7405b75..533d9d6d1 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionInTypeArgument_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionInTypeArgument_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionInTypeArgument(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class /*fooDefinition*/Foo { } diff --git a/pkg/fourslash/tests/gen/goToDefinitionIndexSignature2_test.go b/pkg/fourslash/tests/gen/goToDefinitionIndexSignature2_test.go index 9030a28e5..3182cbdfa 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionIndexSignature2_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionIndexSignature2_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionIndexSignature2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/goToDefinitionIndexSignature_test.go b/pkg/fourslash/tests/gen/goToDefinitionIndexSignature_test.go index 82f4bf2f3..58ae41719 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionIndexSignature_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionIndexSignature_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionIndexSignature(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { /*defI*/[x: string]: boolean; diff --git a/pkg/fourslash/tests/gen/goToDefinitionInstanceof1_test.go b/pkg/fourslash/tests/gen/goToDefinitionInstanceof1_test.go index 825c28c91..2f7f0cd19 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionInstanceof1_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionInstanceof1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionInstanceof1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class /*end*/ C { } diff --git a/pkg/fourslash/tests/gen/goToDefinitionInstanceof2_test.go b/pkg/fourslash/tests/gen/goToDefinitionInstanceof2_test.go index 22da41799..fcd5a8b86 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionInstanceof2_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionInstanceof2_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionInstanceof2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @lib: esnext // @filename: /main.ts diff --git a/pkg/fourslash/tests/gen/goToDefinitionInterfaceAfterImplement_test.go b/pkg/fourslash/tests/gen/goToDefinitionInterfaceAfterImplement_test.go index 4004b78b2..1992c78bf 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionInterfaceAfterImplement_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionInterfaceAfterImplement_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionInterfaceAfterImplement(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface /*interfaceDefinition*/sInt { sVar: number; diff --git a/pkg/fourslash/tests/gen/goToDefinitionJsDocImportTag1_test.go b/pkg/fourslash/tests/gen/goToDefinitionJsDocImportTag1_test.go index 9c94e8665..053694f9e 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionJsDocImportTag1_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionJsDocImportTag1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionJsDocImportTag1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJS: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/goToDefinitionJsDocImportTag2_test.go b/pkg/fourslash/tests/gen/goToDefinitionJsDocImportTag2_test.go index e4a0bfb0c..e9404d2ed 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionJsDocImportTag2_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionJsDocImportTag2_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionJsDocImportTag2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJS: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/goToDefinitionJsDocImportTag3_test.go b/pkg/fourslash/tests/gen/goToDefinitionJsDocImportTag3_test.go index eed468af3..c463cfba4 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionJsDocImportTag3_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionJsDocImportTag3_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionJsDocImportTag3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJS: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/goToDefinitionJsDocImportTag4_test.go b/pkg/fourslash/tests/gen/goToDefinitionJsDocImportTag4_test.go index 85ece8983..8ee8ec145 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionJsDocImportTag4_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionJsDocImportTag4_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionJsDocImportTag4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJS: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/goToDefinitionJsDocImportTag5_test.go b/pkg/fourslash/tests/gen/goToDefinitionJsDocImportTag5_test.go index 798700acb..58200e41b 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionJsDocImportTag5_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionJsDocImportTag5_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionJsDocImportTag5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJS: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/goToDefinitionJsModuleExports_test.go b/pkg/fourslash/tests/gen/goToDefinitionJsModuleExports_test.go index b7443a399..0ed681eba 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionJsModuleExports_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionJsModuleExports_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionJsModuleExports(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: foo.js diff --git a/pkg/fourslash/tests/gen/goToDefinitionJsModuleNameAtImportName_test.go b/pkg/fourslash/tests/gen/goToDefinitionJsModuleNameAtImportName_test.go index 717b5e555..a3c9d0963 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionJsModuleNameAtImportName_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionJsModuleNameAtImportName_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionJsModuleNameAtImportName(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /foo.js diff --git a/pkg/fourslash/tests/gen/goToDefinitionJsModuleName_test.go b/pkg/fourslash/tests/gen/goToDefinitionJsModuleName_test.go index ff08404ec..1a676fa11 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionJsModuleName_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionJsModuleName_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionJsModuleName(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: foo.js diff --git a/pkg/fourslash/tests/gen/goToDefinitionJsxCall_test.go b/pkg/fourslash/tests/gen/goToDefinitionJsxCall_test.go index e9e3463c7..073bc97ef 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionJsxCall_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionJsxCall_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionJsxCall(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: ./test.tsx interface FC

{ diff --git a/pkg/fourslash/tests/gen/goToDefinitionJsxNotSet_test.go b/pkg/fourslash/tests/gen/goToDefinitionJsxNotSet_test.go index db9a28f70..8dcbd857d 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionJsxNotSet_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionJsxNotSet_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionJsxNotSet(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /foo.jsx diff --git a/pkg/fourslash/tests/gen/goToDefinitionLabels_test.go b/pkg/fourslash/tests/gen/goToDefinitionLabels_test.go index 53192599b..427fe827e 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionLabels_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionLabels_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionLabels(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*label1Definition*/label1: while (true) { /*label2Definition*/label2: while (true) { diff --git a/pkg/fourslash/tests/gen/goToDefinitionMember_test.go b/pkg/fourslash/tests/gen/goToDefinitionMember_test.go index d13650207..790675c09 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionMember_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionMember_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionMember(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts class A { diff --git a/pkg/fourslash/tests/gen/goToDefinitionMetaProperty_test.go b/pkg/fourslash/tests/gen/goToDefinitionMetaProperty_test.go index ac45312f9..a05350703 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionMetaProperty_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionMetaProperty_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionMetaProperty(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts im/*1*/port.met/*2*/a; diff --git a/pkg/fourslash/tests/gen/goToDefinitionMethodOverloads_test.go b/pkg/fourslash/tests/gen/goToDefinitionMethodOverloads_test.go index eb0224097..d08d44203 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionMethodOverloads_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionMethodOverloads_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionMethodOverloads(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class MethodOverload { static [|/*staticMethodOverload1*/method|](); diff --git a/pkg/fourslash/tests/gen/goToDefinitionModifiers_test.go b/pkg/fourslash/tests/gen/goToDefinitionModifiers_test.go index 141e6bab2..9ccf97e7a 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionModifiers_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionModifiers_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionModifiers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts /*export*/export class A/*A*/ { diff --git a/pkg/fourslash/tests/gen/goToDefinitionMultipleDefinitions_test.go b/pkg/fourslash/tests/gen/goToDefinitionMultipleDefinitions_test.go index 9237f926c..d8c07f67b 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionMultipleDefinitions_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionMultipleDefinitions_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionMultipleDefinitions(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts interface /*interfaceDefinition1*/IFoo { diff --git a/pkg/fourslash/tests/gen/goToDefinitionNewExpressionTargetNotClass_test.go b/pkg/fourslash/tests/gen/goToDefinitionNewExpressionTargetNotClass_test.go index 437e6b968..2af27b2c5 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionNewExpressionTargetNotClass_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionNewExpressionTargetNotClass_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionNewExpressionTargetNotClass(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C2 { } diff --git a/pkg/fourslash/tests/gen/goToDefinitionObjectBindingElementPropertyName01_test.go b/pkg/fourslash/tests/gen/goToDefinitionObjectBindingElementPropertyName01_test.go index 91ef8e686..56a6ae912 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionObjectBindingElementPropertyName01_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionObjectBindingElementPropertyName01_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionObjectBindingElementPropertyName01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { /*def*/property1: number; diff --git a/pkg/fourslash/tests/gen/goToDefinitionObjectLiteralProperties1_test.go b/pkg/fourslash/tests/gen/goToDefinitionObjectLiteralProperties1_test.go index 346b98812..7e92c597b 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionObjectLiteralProperties1_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionObjectLiteralProperties1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionObjectLiteralProperties1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface PropsBag { /*first*/propx: number diff --git a/pkg/fourslash/tests/gen/goToDefinitionObjectLiteralProperties_test.go b/pkg/fourslash/tests/gen/goToDefinitionObjectLiteralProperties_test.go index 75ca0107f..b71f2c31a 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionObjectLiteralProperties_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionObjectLiteralProperties_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionObjectLiteralProperties(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var o = { /*valueDefinition*/value: 0, diff --git a/pkg/fourslash/tests/gen/goToDefinitionObjectSpread_test.go b/pkg/fourslash/tests/gen/goToDefinitionObjectSpread_test.go index b28a456ff..8e5a0e4ab 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionObjectSpread_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionObjectSpread_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionObjectSpread(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface A1 { /*1*/a: number }; interface A2 { /*2*/a?: number }; diff --git a/pkg/fourslash/tests/gen/goToDefinitionOverloadsInMultiplePropertyAccesses_test.go b/pkg/fourslash/tests/gen/goToDefinitionOverloadsInMultiplePropertyAccesses_test.go index 499f0948c..449be9f70 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionOverloadsInMultiplePropertyAccesses_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionOverloadsInMultiplePropertyAccesses_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionOverloadsInMultiplePropertyAccesses(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `namespace A { export namespace B { diff --git a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember10_test.go b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember10_test.go index c9d3330fe..1d7050f0a 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember10_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember10_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionOverriddenMember10(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember11_test.go b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember11_test.go index 4b4179146..8e4215e4e 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember11_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember11_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionOverriddenMember11(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember12_test.go b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember12_test.go index bf5294df2..1a7cdb596 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember12_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember12_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionOverriddenMember12(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noImplicitOverride: true class Foo { diff --git a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember13_test.go b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember13_test.go index c8849879e..ee77a8ea7 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember13_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember13_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionOverriddenMember13(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noImplicitOverride: true class Foo { diff --git a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember14_test.go b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember14_test.go index 351039176..3ffec4194 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember14_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember14_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionOverriddenMember14(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noImplicitOverride: true class A { diff --git a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember15_test.go b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember15_test.go index f17cce832..f8a8634c4 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember15_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember15_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionOverriddenMember15(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noImplicitOverride: true class A { diff --git a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember16_test.go b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember16_test.go index db416971b..5a4608ced 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember16_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember16_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionOverriddenMember16(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: goToDefinitionOverrideJsdoc.ts // @allowJs: true diff --git a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember17_test.go b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember17_test.go index 49790d115..387ef4a52 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember17_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember17_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionOverriddenMember17(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @target: esnext diff --git a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember18_test.go b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember18_test.go index a8c3d8b11..68fe16402 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember18_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember18_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionOverriddenMember18(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @target: esnext diff --git a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember19_test.go b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember19_test.go index 7a8c3f613..46d3500de 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember19_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember19_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionOverriddenMember19(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @target: esnext diff --git a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember1_test.go b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember1_test.go index 5f78b041b..16988ef10 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember1_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionOverriddenMember1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noImplicitOverride: true class Foo { diff --git a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember20_test.go b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember20_test.go index 9ef1ab02b..864b4b764 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember20_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember20_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionOverriddenMember20(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @target: esnext diff --git a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember21_test.go b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember21_test.go index fdd916427..e42ff6d5f 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember21_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember21_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionOverriddenMember21(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @target: esnext diff --git a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember22_test.go b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember22_test.go index e5211c1ca..68784d178 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember22_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember22_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionOverriddenMember22(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @target: esnext diff --git a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember23_test.go b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember23_test.go index 7be0257b0..ba762df32 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember23_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember23_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionOverriddenMember23(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @target: esnext diff --git a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember24_test.go b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember24_test.go index 0a499fd92..3206ca588 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember24_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember24_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionOverriddenMember24(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @target: esnext diff --git a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember25_test.go b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember25_test.go index c754df7f5..35db97f46 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember25_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember25_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionOverriddenMember25(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @target: esnext diff --git a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember26_test.go b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember26_test.go index b71f0c3b2..995c8448d 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember26_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember26_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionOverriddenMember26(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @target: esnext diff --git a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember2_test.go b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember2_test.go index 52263563f..65a93d1d7 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember2_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember2_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionOverriddenMember2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noImplicitOverride: true class Foo { diff --git a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember3_test.go b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember3_test.go index aa399dcfe..18b6ffe2c 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember3_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember3_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionOverriddenMember3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noImplicitOverride: true abstract class Foo { diff --git a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember4_test.go b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember4_test.go index 62e94edc9..c16b37116 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember4_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember4_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionOverriddenMember4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noImplicitOverride: true class Foo { diff --git a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember5_test.go b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember5_test.go index 5ef101343..0a4bc039f 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember5_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember5_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionOverriddenMember5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noImplicitOverride: true class Foo extends (class { diff --git a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember6_test.go b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember6_test.go index 2c4b8c202..70f5541c9 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember6_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember6_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionOverriddenMember6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noImplicitOverride: true class Foo { diff --git a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember7_test.go b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember7_test.go index a243f7116..1f5002f94 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember7_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember7_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionOverriddenMember7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noImplicitOverride: true class Foo { diff --git a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember8_test.go b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember8_test.go index 1b1f38aae..73801173d 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember8_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember8_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionOverriddenMember8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noImplicitOverride: true // @Filename: ./a.ts diff --git a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember9_test.go b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember9_test.go index dc940f6e3..79cac1c31 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember9_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionOverriddenMember9_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionOverriddenMember9(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noImplicitOverride: true interface I { diff --git a/pkg/fourslash/tests/gen/goToDefinitionPartialImplementation_test.go b/pkg/fourslash/tests/gen/goToDefinitionPartialImplementation_test.go index ec8702e77..5951ceff0 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionPartialImplementation_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionPartialImplementation_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionPartialImplementation(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: goToDefinitionPartialImplementation_1.ts module A { diff --git a/pkg/fourslash/tests/gen/goToDefinitionPrimitives_test.go b/pkg/fourslash/tests/gen/goToDefinitionPrimitives_test.go index 13fbf9dd5..db2bcfab7 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionPrimitives_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionPrimitives_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionPrimitives(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x: st/*primitive*/ring;` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/goToDefinitionPrivateName_test.go b/pkg/fourslash/tests/gen/goToDefinitionPrivateName_test.go index 8d8d3aeb9..613675114 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionPrivateName_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionPrivateName_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionPrivateName(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A { [|/*pnMethodDecl*/#method|]() { } diff --git a/pkg/fourslash/tests/gen/goToDefinitionPropertyAssignment_test.go b/pkg/fourslash/tests/gen/goToDefinitionPropertyAssignment_test.go index f7d404cb2..7934d0351 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionPropertyAssignment_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionPropertyAssignment_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionPropertyAssignment(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export const /*FunctionResult*/Component = () => { return "OK"} Component./*PropertyResult*/displayName = 'Component' diff --git a/pkg/fourslash/tests/gen/goToDefinitionRest_test.go b/pkg/fourslash/tests/gen/goToDefinitionRest_test.go index 15c3e0bce..dc4c8b359 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionRest_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionRest_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionRest(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Gen { x: number; diff --git a/pkg/fourslash/tests/gen/goToDefinitionReturn1_test.go b/pkg/fourslash/tests/gen/goToDefinitionReturn1_test.go index 33e27f69a..5ca7196a8 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionReturn1_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionReturn1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionReturn1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function /*end*/foo() { [|/*start*/return|] 10; diff --git a/pkg/fourslash/tests/gen/goToDefinitionReturn2_test.go b/pkg/fourslash/tests/gen/goToDefinitionReturn2_test.go index 5f064e6bb..81fd133b4 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionReturn2_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionReturn2_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionReturn2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo() { return /*end*/() => { diff --git a/pkg/fourslash/tests/gen/goToDefinitionReturn3_test.go b/pkg/fourslash/tests/gen/goToDefinitionReturn3_test.go index f6ab60adb..1aa0c03ce 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionReturn3_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionReturn3_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionReturn3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { /*end*/m() { diff --git a/pkg/fourslash/tests/gen/goToDefinitionReturn4_test.go b/pkg/fourslash/tests/gen/goToDefinitionReturn4_test.go index 0b59ce30e..d7b1feccc 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionReturn4_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionReturn4_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionReturn4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|/*start*/return|];` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/goToDefinitionReturn5_test.go b/pkg/fourslash/tests/gen/goToDefinitionReturn5_test.go index 682ab196a..930cea42b 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionReturn5_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionReturn5_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionReturn5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo() { class Foo { diff --git a/pkg/fourslash/tests/gen/goToDefinitionReturn6_test.go b/pkg/fourslash/tests/gen/goToDefinitionReturn6_test.go index 5da41ecb0..1e4066700 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionReturn6_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionReturn6_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionReturn6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo() { return /*end*/function () { diff --git a/pkg/fourslash/tests/gen/goToDefinitionReturn7_test.go b/pkg/fourslash/tests/gen/goToDefinitionReturn7_test.go index fad3ecd52..4da6d8f43 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionReturn7_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionReturn7_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionReturn7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(a: string, b: string): string; function foo(a: number, b: number): number; diff --git a/pkg/fourslash/tests/gen/goToDefinitionSameFile_test.go b/pkg/fourslash/tests/gen/goToDefinitionSameFile_test.go index afcb56ebc..0c9dd247f 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionSameFile_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionSameFile_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionSameFile(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var /*localVariableDefinition*/localVariable; function /*localFunctionDefinition*/localFunction() { } diff --git a/pkg/fourslash/tests/gen/goToDefinitionSatisfiesExpression1_test.go b/pkg/fourslash/tests/gen/goToDefinitionSatisfiesExpression1_test.go index 2bbd1eca3..946369cac 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionSatisfiesExpression1_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionSatisfiesExpression1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionSatisfiesExpression1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const STRINGS = { [|/*definition*/title|]: 'A Title', diff --git a/pkg/fourslash/tests/gen/goToDefinitionScriptImportServer_test.go b/pkg/fourslash/tests/gen/goToDefinitionScriptImportServer_test.go index 196a841bc..4c4b8fedb 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionScriptImportServer_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionScriptImportServer_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionScriptImportServer(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/scriptThing.ts /*1d*/console.log("woooo side effects") diff --git a/pkg/fourslash/tests/gen/goToDefinitionScriptImport_test.go b/pkg/fourslash/tests/gen/goToDefinitionScriptImport_test.go index f5182210f..cbaab5e9e 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionScriptImport_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionScriptImport_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionScriptImport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: scriptThing.ts /*1d*/console.log("woooo side effects") diff --git a/pkg/fourslash/tests/gen/goToDefinitionShadowVariableInsideModule_test.go b/pkg/fourslash/tests/gen/goToDefinitionShadowVariableInsideModule_test.go index 72a453e53..7eb4c8c7e 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionShadowVariableInsideModule_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionShadowVariableInsideModule_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionShadowVariableInsideModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module shdModule { var /*shadowVariableDefinition*/shdVar; diff --git a/pkg/fourslash/tests/gen/goToDefinitionShadowVariable_test.go b/pkg/fourslash/tests/gen/goToDefinitionShadowVariable_test.go index 0e00e574c..6e0cc71d1 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionShadowVariable_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionShadowVariable_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionShadowVariable(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var shadowVariable = "foo"; function shadowVariableTestModule() { diff --git a/pkg/fourslash/tests/gen/goToDefinitionShorthandProperty01_test.go b/pkg/fourslash/tests/gen/goToDefinitionShorthandProperty01_test.go index 60f355af1..ecb5ebe62 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionShorthandProperty01_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionShorthandProperty01_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionShorthandProperty01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var /*valueDeclaration1*/name = "hello"; var /*valueDeclaration2*/id = 100000; diff --git a/pkg/fourslash/tests/gen/goToDefinitionShorthandProperty02_test.go b/pkg/fourslash/tests/gen/goToDefinitionShorthandProperty02_test.go index 54762c658..c2da70e7c 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionShorthandProperty02_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionShorthandProperty02_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionShorthandProperty02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let x = { [|f/*1*/oo|] diff --git a/pkg/fourslash/tests/gen/goToDefinitionShorthandProperty03_test.go b/pkg/fourslash/tests/gen/goToDefinitionShorthandProperty03_test.go index 72e6e21e4..cb265a6cf 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionShorthandProperty03_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionShorthandProperty03_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionShorthandProperty03(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var /*varDef*/x = { [|/*varProp*/x|] diff --git a/pkg/fourslash/tests/gen/goToDefinitionShorthandProperty04_test.go b/pkg/fourslash/tests/gen/goToDefinitionShorthandProperty04_test.go index c43d313cc..d3eb8a59d 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionShorthandProperty04_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionShorthandProperty04_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionShorthandProperty04(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { /*2*/foo(): void diff --git a/pkg/fourslash/tests/gen/goToDefinitionShorthandProperty05_test.go b/pkg/fourslash/tests/gen/goToDefinitionShorthandProperty05_test.go index 43a207811..1043f258b 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionShorthandProperty05_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionShorthandProperty05_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionShorthandProperty05(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { /*3*/foo(): void diff --git a/pkg/fourslash/tests/gen/goToDefinitionShorthandProperty06_test.go b/pkg/fourslash/tests/gen/goToDefinitionShorthandProperty06_test.go index 4fdff3eed..429dd093d 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionShorthandProperty06_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionShorthandProperty06_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionShorthandProperty06(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { /*2*/foo(): void diff --git a/pkg/fourslash/tests/gen/goToDefinitionSignatureAlias_require_test.go b/pkg/fourslash/tests/gen/goToDefinitionSignatureAlias_require_test.go index e74d439a5..fc69fa25f 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionSignatureAlias_require_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionSignatureAlias_require_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionSignatureAlias_require(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/goToDefinitionSignatureAlias_test.go b/pkg/fourslash/tests/gen/goToDefinitionSignatureAlias_test.go index 10d28a73c..06a559635 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionSignatureAlias_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionSignatureAlias_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionSignatureAlias(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @jsx: preserve // @Filename: /a.tsx diff --git a/pkg/fourslash/tests/gen/goToDefinitionSimple_test.go b/pkg/fourslash/tests/gen/goToDefinitionSimple_test.go index a3a8faebe..d4aeed190 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionSimple_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionSimple_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionSimple(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: Definition.ts class /*2*/c { } diff --git a/pkg/fourslash/tests/gen/goToDefinitionSourceUnit_test.go b/pkg/fourslash/tests/gen/goToDefinitionSourceUnit_test.go index 37a17f64a..af6e8b549 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionSourceUnit_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionSourceUnit_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionSourceUnit(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts //MyFile Comments diff --git a/pkg/fourslash/tests/gen/goToDefinitionSwitchCase1_test.go b/pkg/fourslash/tests/gen/goToDefinitionSwitchCase1_test.go index f21048e14..306562867 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionSwitchCase1_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionSwitchCase1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionSwitchCase1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `switch (null ) { [|/*start*/case|] null: break; diff --git a/pkg/fourslash/tests/gen/goToDefinitionSwitchCase2_test.go b/pkg/fourslash/tests/gen/goToDefinitionSwitchCase2_test.go index 502631f00..69b2471a2 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionSwitchCase2_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionSwitchCase2_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionSwitchCase2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `switch (null) { [|/*start*/default|]: break; diff --git a/pkg/fourslash/tests/gen/goToDefinitionSwitchCase3_test.go b/pkg/fourslash/tests/gen/goToDefinitionSwitchCase3_test.go index 14d26e667..c505bec8f 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionSwitchCase3_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionSwitchCase3_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionSwitchCase3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `switch (null) { [|/*start1*/default|]: { diff --git a/pkg/fourslash/tests/gen/goToDefinitionSwitchCase4_test.go b/pkg/fourslash/tests/gen/goToDefinitionSwitchCase4_test.go index 3db7caf9c..fd20b6396 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionSwitchCase4_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionSwitchCase4_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionSwitchCase4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = ` switch (null) { case null: break; diff --git a/pkg/fourslash/tests/gen/goToDefinitionSwitchCase5_test.go b/pkg/fourslash/tests/gen/goToDefinitionSwitchCase5_test.go index 9c7e594ee..33bdbe21e 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionSwitchCase5_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionSwitchCase5_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionSwitchCase5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export [|/*start*/default|] {}` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/goToDefinitionSwitchCase6_test.go b/pkg/fourslash/tests/gen/goToDefinitionSwitchCase6_test.go index 2ae52cc98..2a80d772b 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionSwitchCase6_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionSwitchCase6_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionSwitchCase6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export default { [|/*a*/case|] }; [|/*b*/default|]; diff --git a/pkg/fourslash/tests/gen/goToDefinitionSwitchCase7_test.go b/pkg/fourslash/tests/gen/goToDefinitionSwitchCase7_test.go index 941a2e149..e382d160f 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionSwitchCase7_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionSwitchCase7_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionSwitchCase7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `switch (null) { case null: diff --git a/pkg/fourslash/tests/gen/goToDefinitionTaggedTemplateOverloads_test.go b/pkg/fourslash/tests/gen/goToDefinitionTaggedTemplateOverloads_test.go index a74ada895..b6b334eb9 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionTaggedTemplateOverloads_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionTaggedTemplateOverloads_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionTaggedTemplateOverloads(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function /*defFNumber*/f(strs: TemplateStringsArray, x: number): void; function /*defFBool*/f(strs: TemplateStringsArray, x: boolean): void; diff --git a/pkg/fourslash/tests/gen/goToDefinitionThis_test.go b/pkg/fourslash/tests/gen/goToDefinitionThis_test.go index 59825425b..491e0ca4d 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionThis_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionThis_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionThis(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f(/*fnDecl*/this: number) { return [|/*fnUse*/this|]; diff --git a/pkg/fourslash/tests/gen/goToDefinitionTypeOnlyImport_test.go b/pkg/fourslash/tests/gen/goToDefinitionTypeOnlyImport_test.go index 506030765..cb7b372a4 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionTypeOnlyImport_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionTypeOnlyImport_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionTypeOnlyImport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts enum /*1*/SyntaxKind { SourceFile } diff --git a/pkg/fourslash/tests/gen/goToDefinitionTypePredicate_test.go b/pkg/fourslash/tests/gen/goToDefinitionTypePredicate_test.go index 0871cab50..9a0e7cc70 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionTypePredicate_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionTypePredicate_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionTypePredicate(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class /*classDeclaration*/A {} function f(/*parameterDeclaration*/parameter: any): [|/*parameterName*/parameter|] is [|/*typeReference*/A|] { diff --git a/pkg/fourslash/tests/gen/goToDefinitionTypeReferenceDirective_test.go b/pkg/fourslash/tests/gen/goToDefinitionTypeReferenceDirective_test.go index f4630fc39..7ed6c83af 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionTypeReferenceDirective_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionTypeReferenceDirective_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionTypeReferenceDirective(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @typeRoots: src/types // @Filename: src/types/lib/index.d.ts diff --git a/pkg/fourslash/tests/gen/goToDefinitionTypeofThis_test.go b/pkg/fourslash/tests/gen/goToDefinitionTypeofThis_test.go index d29dd1472..c4eac5880 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionTypeofThis_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionTypeofThis_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionTypeofThis(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f(/*fnDecl*/this: number) { type X = typeof [|/*fnUse*/this|]; diff --git a/pkg/fourslash/tests/gen/goToDefinitionUndefinedSymbols_test.go b/pkg/fourslash/tests/gen/goToDefinitionUndefinedSymbols_test.go index 8d069541f..67f0dd3da 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionUndefinedSymbols_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionUndefinedSymbols_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionUndefinedSymbols(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `some/*undefinedValue*/Variable; var a: some/*undefinedType*/Type; diff --git a/pkg/fourslash/tests/gen/goToDefinitionUnionTypeProperty1_test.go b/pkg/fourslash/tests/gen/goToDefinitionUnionTypeProperty1_test.go index cf6119b23..cb59a5ad0 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionUnionTypeProperty1_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionUnionTypeProperty1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionUnionTypeProperty1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface One { /*propertyDefinition1*/commonProperty: number; diff --git a/pkg/fourslash/tests/gen/goToDefinitionUnionTypeProperty2_test.go b/pkg/fourslash/tests/gen/goToDefinitionUnionTypeProperty2_test.go index cd15b0fc8..ed70c55d0 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionUnionTypeProperty2_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionUnionTypeProperty2_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionUnionTypeProperty2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface HasAOrB { /*propertyDefinition1*/a: string; diff --git a/pkg/fourslash/tests/gen/goToDefinitionUnionTypeProperty3_test.go b/pkg/fourslash/tests/gen/goToDefinitionUnionTypeProperty3_test.go index 12764a46b..6587f9dc9 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionUnionTypeProperty3_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionUnionTypeProperty3_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionUnionTypeProperty3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Array { /*definition*/specialPop(): T diff --git a/pkg/fourslash/tests/gen/goToDefinitionUnionTypeProperty4_test.go b/pkg/fourslash/tests/gen/goToDefinitionUnionTypeProperty4_test.go index 161c9890f..5c4a9ba5a 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionUnionTypeProperty4_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionUnionTypeProperty4_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionUnionTypeProperty4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface SnapCrackle { /*def1*/pop(): string; diff --git a/pkg/fourslash/tests/gen/goToDefinitionUnionTypeProperty_discriminated_test.go b/pkg/fourslash/tests/gen/goToDefinitionUnionTypeProperty_discriminated_test.go index fa27ac453..86621bae5 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionUnionTypeProperty_discriminated_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionUnionTypeProperty_discriminated_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionUnionTypeProperty_discriminated(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type U = A | B; diff --git a/pkg/fourslash/tests/gen/goToDefinitionVariableAssignment1_test.go b/pkg/fourslash/tests/gen/goToDefinitionVariableAssignment1_test.go index 39399dda1..a35d92dee 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionVariableAssignment1_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionVariableAssignment1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionVariableAssignment1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/goToDefinitionVariableAssignment2_test.go b/pkg/fourslash/tests/gen/goToDefinitionVariableAssignment2_test.go index e480d0176..627410357 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionVariableAssignment2_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionVariableAssignment2_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionVariableAssignment2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: foo.ts const Bar; diff --git a/pkg/fourslash/tests/gen/goToDefinitionVariableAssignment3_test.go b/pkg/fourslash/tests/gen/goToDefinitionVariableAssignment3_test.go index 065ec949b..e31df7208 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionVariableAssignment3_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionVariableAssignment3_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionVariableAssignment3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: foo.ts const Foo = module./*def*/exports = function () {} diff --git a/pkg/fourslash/tests/gen/goToDefinitionVariableAssignment_test.go b/pkg/fourslash/tests/gen/goToDefinitionVariableAssignment_test.go index f770b031d..22a8b374b 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionVariableAssignment_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionVariableAssignment_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionVariableAssignment(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/goToDefinitionYield1_test.go b/pkg/fourslash/tests/gen/goToDefinitionYield1_test.go index c26b7c867..9068a0279 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionYield1_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionYield1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionYield1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function* /*end1*/gen() { [|/*start1*/yield|] 0; diff --git a/pkg/fourslash/tests/gen/goToDefinitionYield2_test.go b/pkg/fourslash/tests/gen/goToDefinitionYield2_test.go index 036761384..7a8a4c341 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionYield2_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionYield2_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionYield2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function* outerGen() { function* /*end*/gen() { diff --git a/pkg/fourslash/tests/gen/goToDefinitionYield3_test.go b/pkg/fourslash/tests/gen/goToDefinitionYield3_test.go index 609eb0258..fb7286cef 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionYield3_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionYield3_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionYield3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { notAGenerator() { diff --git a/pkg/fourslash/tests/gen/goToDefinitionYield4_test.go b/pkg/fourslash/tests/gen/goToDefinitionYield4_test.go index 637014ae7..5c648278d 100644 --- a/pkg/fourslash/tests/gen/goToDefinitionYield4_test.go +++ b/pkg/fourslash/tests/gen/goToDefinitionYield4_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinitionYield4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function* gen() { class C { [/*start*/yield 10]() {} } diff --git a/pkg/fourslash/tests/gen/goToDefinition_filteringGenericMappedType_test.go b/pkg/fourslash/tests/gen/goToDefinition_filteringGenericMappedType_test.go index e88f982ea..85f90697d 100644 --- a/pkg/fourslash/tests/gen/goToDefinition_filteringGenericMappedType_test.go +++ b/pkg/fourslash/tests/gen/goToDefinition_filteringGenericMappedType_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinition_filteringGenericMappedType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const obj = { get /*def*/id() { diff --git a/pkg/fourslash/tests/gen/goToDefinition_filteringMappedType_test.go b/pkg/fourslash/tests/gen/goToDefinition_filteringMappedType_test.go index 8737527fe..0899aabba 100644 --- a/pkg/fourslash/tests/gen/goToDefinition_filteringMappedType_test.go +++ b/pkg/fourslash/tests/gen/goToDefinition_filteringMappedType_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinition_filteringMappedType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const obj = { /*def*/a: 1, b: 2 }; const filtered: { [P in keyof typeof obj as P extends 'b' ? never : P]: 0; } = { a: 0 }; diff --git a/pkg/fourslash/tests/gen/goToDefinition_mappedType_test.go b/pkg/fourslash/tests/gen/goToDefinition_mappedType_test.go index 3a3836652..7683fd2b0 100644 --- a/pkg/fourslash/tests/gen/goToDefinition_mappedType_test.go +++ b/pkg/fourslash/tests/gen/goToDefinition_mappedType_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinition_mappedType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { /*def*/m(): void; }; declare const i: { [K in "m"]: I[K] }; diff --git a/pkg/fourslash/tests/gen/goToDefinition_super_test.go b/pkg/fourslash/tests/gen/goToDefinition_super_test.go index d9f0cdd19..3a92b32b7 100644 --- a/pkg/fourslash/tests/gen/goToDefinition_super_test.go +++ b/pkg/fourslash/tests/gen/goToDefinition_super_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinition_super(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A { /*ctr*/constructor() {} diff --git a/pkg/fourslash/tests/gen/goToDefinition_untypedModule_test.go b/pkg/fourslash/tests/gen/goToDefinition_untypedModule_test.go index fc67b1048..db944373d 100644 --- a/pkg/fourslash/tests/gen/goToDefinition_untypedModule_test.go +++ b/pkg/fourslash/tests/gen/goToDefinition_untypedModule_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToDefinition_untypedModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /node_modules/foo/index.js not read diff --git a/pkg/fourslash/tests/gen/goToImplementationClassMethod_00_test.go b/pkg/fourslash/tests/gen/goToImplementationClassMethod_00_test.go index dfc15b51c..11ffa5659 100644 --- a/pkg/fourslash/tests/gen/goToImplementationClassMethod_00_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationClassMethod_00_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationClassMethod_00(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Bar { [|{|"parts": ["(","method",")"," ","Bar",".","hello","(",")",":"," ","void"], "kind": "method"|}hello|]() {} diff --git a/pkg/fourslash/tests/gen/goToImplementationClassMethod_01_test.go b/pkg/fourslash/tests/gen/goToImplementationClassMethod_01_test.go index fd33f34f4..5a1753590 100644 --- a/pkg/fourslash/tests/gen/goToImplementationClassMethod_01_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationClassMethod_01_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationClassMethod_01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `abstract class AbstractBar { abstract he/*declaration*/llo(): void; diff --git a/pkg/fourslash/tests/gen/goToImplementationEnum_00_test.go b/pkg/fourslash/tests/gen/goToImplementationEnum_00_test.go index 661a1e3f2..bd32302eb 100644 --- a/pkg/fourslash/tests/gen/goToImplementationEnum_00_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationEnum_00_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationEnum_00(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum Foo { [|Foo1|] = function initializer() { return 5 } (), diff --git a/pkg/fourslash/tests/gen/goToImplementationEnum_01_test.go b/pkg/fourslash/tests/gen/goToImplementationEnum_01_test.go index 407123ab9..595e9b959 100644 --- a/pkg/fourslash/tests/gen/goToImplementationEnum_01_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationEnum_01_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationEnum_01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum [|Foo|] { Foo1 = function initializer() { return 5 } (), diff --git a/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_00_test.go b/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_00_test.go index f2e5ab50c..68570c626 100644 --- a/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_00_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_00_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationInterfaceMethod_00(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { he/*declaration*/llo: () => void diff --git a/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_01_test.go b/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_01_test.go index 505fdb7a1..f11b4b9f2 100644 --- a/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_01_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_01_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationInterfaceMethod_01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { hel/*declaration*/lo(): void; diff --git a/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_02_test.go b/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_02_test.go index 1c0ac86a4..167fbb59d 100644 --- a/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_02_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_02_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationInterfaceMethod_02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { he/*declaration*/llo(): void diff --git a/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_03_test.go b/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_03_test.go index fb2a8504e..6e5f672e4 100644 --- a/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_03_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_03_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationInterfaceMethod_03(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { hello (): void; diff --git a/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_04_test.go b/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_04_test.go index b96fea3ba..6008e3e7e 100644 --- a/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_04_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_04_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationInterfaceMethod_04(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { hello (): void; diff --git a/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_05_test.go b/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_05_test.go index 7fb3d7f7d..cbcb3a83b 100644 --- a/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_05_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_05_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationInterfaceMethod_05(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { hello (): void; diff --git a/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_06_test.go b/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_06_test.go index a1de79772..11ceae7db 100644 --- a/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_06_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_06_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationInterfaceMethod_06(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface SuperFoo { hello (): void; diff --git a/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_08_test.go b/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_08_test.go index 2286e25e6..901115378 100644 --- a/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_08_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_08_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationInterfaceMethod_08(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { hello (): void; diff --git a/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_09_test.go b/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_09_test.go index 1a465a0e7..289686da3 100644 --- a/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_09_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_09_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationInterfaceMethod_09(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { hello (): void; diff --git a/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_10_test.go b/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_10_test.go index 8b744c134..9c1b15009 100644 --- a/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_10_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_10_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationInterfaceMethod_10(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface BaseFoo { hello(): void; diff --git a/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_11_test.go b/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_11_test.go index 4ec49245b..8ec1c656e 100644 --- a/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_11_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationInterfaceMethod_11_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationInterfaceMethod_11(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { hel/*reference*/lo(): void; diff --git a/pkg/fourslash/tests/gen/goToImplementationInterfaceProperty_00_test.go b/pkg/fourslash/tests/gen/goToImplementationInterfaceProperty_00_test.go index 0f28c0add..fd50de444 100644 --- a/pkg/fourslash/tests/gen/goToImplementationInterfaceProperty_00_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationInterfaceProperty_00_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationInterfaceProperty_00(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { hello: number diff --git a/pkg/fourslash/tests/gen/goToImplementationInterfaceProperty_01_test.go b/pkg/fourslash/tests/gen/goToImplementationInterfaceProperty_01_test.go index e784a2dac..1fb72723f 100644 --- a/pkg/fourslash/tests/gen/goToImplementationInterfaceProperty_01_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationInterfaceProperty_01_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationInterfaceProperty_01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { hello: number } diff --git a/pkg/fourslash/tests/gen/goToImplementationInterface_00_test.go b/pkg/fourslash/tests/gen/goToImplementationInterface_00_test.go index 7fe11f44a..b4a280631 100644 --- a/pkg/fourslash/tests/gen/goToImplementationInterface_00_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationInterface_00_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationInterface_00(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Fo/*interface_definition*/o { hello: () => void diff --git a/pkg/fourslash/tests/gen/goToImplementationInterface_01_test.go b/pkg/fourslash/tests/gen/goToImplementationInterface_01_test.go index 88b842c03..ae95c7c75 100644 --- a/pkg/fourslash/tests/gen/goToImplementationInterface_01_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationInterface_01_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationInterface_01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Fo/*interface_definition*/o { hello(): void } diff --git a/pkg/fourslash/tests/gen/goToImplementationInterface_02_test.go b/pkg/fourslash/tests/gen/goToImplementationInterface_02_test.go index 8092d32f3..eae8861bd 100644 --- a/pkg/fourslash/tests/gen/goToImplementationInterface_02_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationInterface_02_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationInterface_02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Fo/*interface_definition*/o { hello: () => void } diff --git a/pkg/fourslash/tests/gen/goToImplementationInterface_03_test.go b/pkg/fourslash/tests/gen/goToImplementationInterface_03_test.go index f9f79c026..a38d9b27c 100644 --- a/pkg/fourslash/tests/gen/goToImplementationInterface_03_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationInterface_03_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationInterface_03(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Fo/*interface_definition*/o { hello: () => void } diff --git a/pkg/fourslash/tests/gen/goToImplementationInterface_04_test.go b/pkg/fourslash/tests/gen/goToImplementationInterface_04_test.go index 4105b6fab..7c2a3e88e 100644 --- a/pkg/fourslash/tests/gen/goToImplementationInterface_04_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationInterface_04_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationInterface_04(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Fo/*interface_definition*/o { (a: number): void diff --git a/pkg/fourslash/tests/gen/goToImplementationInterface_05_test.go b/pkg/fourslash/tests/gen/goToImplementationInterface_05_test.go index 1ece7086e..077aad057 100644 --- a/pkg/fourslash/tests/gen/goToImplementationInterface_05_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationInterface_05_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationInterface_05(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Fo/*interface_definition*/o { (a: number): void diff --git a/pkg/fourslash/tests/gen/goToImplementationInterface_06_test.go b/pkg/fourslash/tests/gen/goToImplementationInterface_06_test.go index cdcb3029b..2b9b6ff52 100644 --- a/pkg/fourslash/tests/gen/goToImplementationInterface_06_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationInterface_06_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationInterface_06(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Fo/*interface_definition*/o { new (a: number): SomeOtherType; diff --git a/pkg/fourslash/tests/gen/goToImplementationInterface_07_test.go b/pkg/fourslash/tests/gen/goToImplementationInterface_07_test.go index 89d3ba935..bd955b8c7 100644 --- a/pkg/fourslash/tests/gen/goToImplementationInterface_07_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationInterface_07_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationInterface_07(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Fo/*interface_definition*/o { hello (): void; diff --git a/pkg/fourslash/tests/gen/goToImplementationInterface_08_test.go b/pkg/fourslash/tests/gen/goToImplementationInterface_08_test.go index eeaea9014..75056c45d 100644 --- a/pkg/fourslash/tests/gen/goToImplementationInterface_08_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationInterface_08_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationInterface_08(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Base { hello (): void; diff --git a/pkg/fourslash/tests/gen/goToImplementationInterface_09_test.go b/pkg/fourslash/tests/gen/goToImplementationInterface_09_test.go index 6e52649ac..768b719b5 100644 --- a/pkg/fourslash/tests/gen/goToImplementationInterface_09_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationInterface_09_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationInterface_09(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: def.d.ts export interface Interface { P: number } diff --git a/pkg/fourslash/tests/gen/goToImplementationInterface_10_test.go b/pkg/fourslash/tests/gen/goToImplementationInterface_10_test.go index 56245d73a..126ae2e50 100644 --- a/pkg/fourslash/tests/gen/goToImplementationInterface_10_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationInterface_10_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationInterface_10(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts interface /*def*/A { diff --git a/pkg/fourslash/tests/gen/goToImplementationInvalid_test.go b/pkg/fourslash/tests/gen/goToImplementationInvalid_test.go index b451f83da..e04fe6409 100644 --- a/pkg/fourslash/tests/gen/goToImplementationInvalid_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationInvalid_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationInvalid(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x1 = 50/*0*/0; var x2 = "hel/*1*/lo"; diff --git a/pkg/fourslash/tests/gen/goToImplementationLocal_00_test.go b/pkg/fourslash/tests/gen/goToImplementationLocal_00_test.go index 67031a1a0..dcb8b8996 100644 --- a/pkg/fourslash/tests/gen/goToImplementationLocal_00_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationLocal_00_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationLocal_00(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `he/*function_call*/llo(); function [|hello|]() {}` diff --git a/pkg/fourslash/tests/gen/goToImplementationLocal_01_test.go b/pkg/fourslash/tests/gen/goToImplementationLocal_01_test.go index 0146e91d5..693b7bbfd 100644 --- a/pkg/fourslash/tests/gen/goToImplementationLocal_01_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationLocal_01_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationLocal_01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const [|hello|] = function() {}; he/*function_call*/llo();` diff --git a/pkg/fourslash/tests/gen/goToImplementationLocal_02_test.go b/pkg/fourslash/tests/gen/goToImplementationLocal_02_test.go index 6221042c5..210c9b5a3 100644 --- a/pkg/fourslash/tests/gen/goToImplementationLocal_02_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationLocal_02_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationLocal_02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const x = { [|hello|]: () => {} }; diff --git a/pkg/fourslash/tests/gen/goToImplementationLocal_03_test.go b/pkg/fourslash/tests/gen/goToImplementationLocal_03_test.go index 6e0aa0c5c..14cfca8ed 100644 --- a/pkg/fourslash/tests/gen/goToImplementationLocal_03_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationLocal_03_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationLocal_03(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let [|he/*local_var*/llo|] = {}; diff --git a/pkg/fourslash/tests/gen/goToImplementationLocal_04_test.go b/pkg/fourslash/tests/gen/goToImplementationLocal_04_test.go index d30e42cad..7273fc73f 100644 --- a/pkg/fourslash/tests/gen/goToImplementationLocal_04_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationLocal_04_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationLocal_04(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function [|he/*local_var*/llo|]() {} diff --git a/pkg/fourslash/tests/gen/goToImplementationLocal_05_test.go b/pkg/fourslash/tests/gen/goToImplementationLocal_05_test.go index 22041a4ba..d65f482fa 100644 --- a/pkg/fourslash/tests/gen/goToImplementationLocal_05_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationLocal_05_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationLocal_05(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Bar { public hello() {} diff --git a/pkg/fourslash/tests/gen/goToImplementationLocal_06_test.go b/pkg/fourslash/tests/gen/goToImplementationLocal_06_test.go index a7fd6d2f0..72ec03760 100644 --- a/pkg/fourslash/tests/gen/goToImplementationLocal_06_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationLocal_06_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationLocal_06(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare var [|someVar|]: string; someVa/*reference*/r` diff --git a/pkg/fourslash/tests/gen/goToImplementationLocal_07_test.go b/pkg/fourslash/tests/gen/goToImplementationLocal_07_test.go index f4a152fca..194a16e5a 100644 --- a/pkg/fourslash/tests/gen/goToImplementationLocal_07_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationLocal_07_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationLocal_07(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function [|someFunction|](): () => void; someFun/*reference*/ction();` diff --git a/pkg/fourslash/tests/gen/goToImplementationLocal_08_test.go b/pkg/fourslash/tests/gen/goToImplementationLocal_08_test.go index 9a9faa4aa..75635adf8 100644 --- a/pkg/fourslash/tests/gen/goToImplementationLocal_08_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationLocal_08_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationLocal_08(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function [|someFunction|](): () => void; someFun/*reference*/ction();` diff --git a/pkg/fourslash/tests/gen/goToImplementationNamespace_00_test.go b/pkg/fourslash/tests/gen/goToImplementationNamespace_00_test.go index 549743d7e..5e146025e 100644 --- a/pkg/fourslash/tests/gen/goToImplementationNamespace_00_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationNamespace_00_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationNamespace_00(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `namespace /*implementation0*/Foo { export function hello() {} diff --git a/pkg/fourslash/tests/gen/goToImplementationNamespace_01_test.go b/pkg/fourslash/tests/gen/goToImplementationNamespace_01_test.go index 5c4e53862..dbfa192a7 100644 --- a/pkg/fourslash/tests/gen/goToImplementationNamespace_01_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationNamespace_01_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationNamespace_01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `namespace Foo { export function [|hello|]() {} diff --git a/pkg/fourslash/tests/gen/goToImplementationNamespace_02_test.go b/pkg/fourslash/tests/gen/goToImplementationNamespace_02_test.go index 5ae93d040..053e6d38e 100644 --- a/pkg/fourslash/tests/gen/goToImplementationNamespace_02_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationNamespace_02_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationNamespace_02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module Foo { export function [|hello|]() {} diff --git a/pkg/fourslash/tests/gen/goToImplementationNamespace_03_test.go b/pkg/fourslash/tests/gen/goToImplementationNamespace_03_test.go index 97873cc57..acde835c4 100644 --- a/pkg/fourslash/tests/gen/goToImplementationNamespace_03_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationNamespace_03_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationNamespace_03(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `namespace Foo { export interface Bar { diff --git a/pkg/fourslash/tests/gen/goToImplementationNamespace_04_test.go b/pkg/fourslash/tests/gen/goToImplementationNamespace_04_test.go index abb39aa8f..36c8772b8 100644 --- a/pkg/fourslash/tests/gen/goToImplementationNamespace_04_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationNamespace_04_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationNamespace_04(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module Foo { export interface Bar { diff --git a/pkg/fourslash/tests/gen/goToImplementationNamespace_05_test.go b/pkg/fourslash/tests/gen/goToImplementationNamespace_05_test.go index 2283a59e1..fd071d2a0 100644 --- a/pkg/fourslash/tests/gen/goToImplementationNamespace_05_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationNamespace_05_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationNamespace_05(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `namespace /*implementation0*/Foo./*implementation2*/Baz { export function hello() {} diff --git a/pkg/fourslash/tests/gen/goToImplementationNamespace_06_test.go b/pkg/fourslash/tests/gen/goToImplementationNamespace_06_test.go index f5c39d1b3..d8026e7af 100644 --- a/pkg/fourslash/tests/gen/goToImplementationNamespace_06_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationNamespace_06_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationNamespace_06(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `namespace [|F/*declaration*/oo|] { declare function hello(): void; diff --git a/pkg/fourslash/tests/gen/goToImplementationShorthandPropertyAssignment_00_test.go b/pkg/fourslash/tests/gen/goToImplementationShorthandPropertyAssignment_00_test.go index fd5109bb6..bbbc8b23f 100644 --- a/pkg/fourslash/tests/gen/goToImplementationShorthandPropertyAssignment_00_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationShorthandPropertyAssignment_00_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationShorthandPropertyAssignment_00(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { someFunction(): void; diff --git a/pkg/fourslash/tests/gen/goToImplementationShorthandPropertyAssignment_01_test.go b/pkg/fourslash/tests/gen/goToImplementationShorthandPropertyAssignment_01_test.go index bcda7578b..bd1742356 100644 --- a/pkg/fourslash/tests/gen/goToImplementationShorthandPropertyAssignment_01_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationShorthandPropertyAssignment_01_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationShorthandPropertyAssignment_01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { someFunction(): void; diff --git a/pkg/fourslash/tests/gen/goToImplementationShorthandPropertyAssignment_02_test.go b/pkg/fourslash/tests/gen/goToImplementationShorthandPropertyAssignment_02_test.go index edb7db763..b51decef7 100644 --- a/pkg/fourslash/tests/gen/goToImplementationShorthandPropertyAssignment_02_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationShorthandPropertyAssignment_02_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationShorthandPropertyAssignment_02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { hello(): void; diff --git a/pkg/fourslash/tests/gen/goToImplementationSuper_00_test.go b/pkg/fourslash/tests/gen/goToImplementationSuper_00_test.go index 054a66157..4de713d1d 100644 --- a/pkg/fourslash/tests/gen/goToImplementationSuper_00_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationSuper_00_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationSuper_00(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class [|Foo|] { constructor() {} diff --git a/pkg/fourslash/tests/gen/goToImplementationSuper_01_test.go b/pkg/fourslash/tests/gen/goToImplementationSuper_01_test.go index 6da612713..b51c5bae3 100644 --- a/pkg/fourslash/tests/gen/goToImplementationSuper_01_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationSuper_01_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationSuper_01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class [|Foo|] { hello() {} diff --git a/pkg/fourslash/tests/gen/goToImplementationThis_00_test.go b/pkg/fourslash/tests/gen/goToImplementationThis_00_test.go index 174baf460..f36abceb5 100644 --- a/pkg/fourslash/tests/gen/goToImplementationThis_00_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationThis_00_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationThis_00(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class [|Bar|] extends Foo { hello() { diff --git a/pkg/fourslash/tests/gen/goToImplementationThis_01_test.go b/pkg/fourslash/tests/gen/goToImplementationThis_01_test.go index d724f992b..01f0c6175 100644 --- a/pkg/fourslash/tests/gen/goToImplementationThis_01_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationThis_01_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationThis_01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class [|Bar|] extends Foo { hello(): th/*this_type*/is { diff --git a/pkg/fourslash/tests/gen/goToImplementationTypeAlias_00_test.go b/pkg/fourslash/tests/gen/goToImplementationTypeAlias_00_test.go index 3232c9bc6..09b1a00af 100644 --- a/pkg/fourslash/tests/gen/goToImplementationTypeAlias_00_test.go +++ b/pkg/fourslash/tests/gen/goToImplementationTypeAlias_00_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementationTypeAlias_00(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: def.d.ts export type TypeAlias = { P: number } diff --git a/pkg/fourslash/tests/gen/goToImplementation_inDifferentFiles_test.go b/pkg/fourslash/tests/gen/goToImplementation_inDifferentFiles_test.go index 62a11e8ad..9fd8e76d6 100644 --- a/pkg/fourslash/tests/gen/goToImplementation_inDifferentFiles_test.go +++ b/pkg/fourslash/tests/gen/goToImplementation_inDifferentFiles_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementation_inDifferentFiles(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/bar.ts import {Foo} from './foo' diff --git a/pkg/fourslash/tests/gen/goToImplementation_satisfies_test.go b/pkg/fourslash/tests/gen/goToImplementation_satisfies_test.go index 558ba3f1c..b29b41fef 100644 --- a/pkg/fourslash/tests/gen/goToImplementation_satisfies_test.go +++ b/pkg/fourslash/tests/gen/goToImplementation_satisfies_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToImplementation_satisfies(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: /a.ts interface /*def*/I { diff --git a/pkg/fourslash/tests/gen/goToModuleAliasDefinition_test.go b/pkg/fourslash/tests/gen/goToModuleAliasDefinition_test.go index 11bcaeb40..dff53d619 100644 --- a/pkg/fourslash/tests/gen/goToModuleAliasDefinition_test.go +++ b/pkg/fourslash/tests/gen/goToModuleAliasDefinition_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToModuleAliasDefinition(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts export class /*2*/Foo {} diff --git a/pkg/fourslash/tests/gen/goToTypeDefinition2_test.go b/pkg/fourslash/tests/gen/goToTypeDefinition2_test.go index d1f00706e..8f29d60b5 100644 --- a/pkg/fourslash/tests/gen/goToTypeDefinition2_test.go +++ b/pkg/fourslash/tests/gen/goToTypeDefinition2_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToTypeDefinition2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: goToTypeDefinition2_Definition.ts interface /*definition*/I1 { diff --git a/pkg/fourslash/tests/gen/goToTypeDefinition3_test.go b/pkg/fourslash/tests/gen/goToTypeDefinition3_test.go index d565a428a..0e3447a61 100644 --- a/pkg/fourslash/tests/gen/goToTypeDefinition3_test.go +++ b/pkg/fourslash/tests/gen/goToTypeDefinition3_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToTypeDefinition3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type /*definition*/T = string; const x: /*reference*/T;` diff --git a/pkg/fourslash/tests/gen/goToTypeDefinition4_test.go b/pkg/fourslash/tests/gen/goToTypeDefinition4_test.go index 3fcd28aee..699317ef0 100644 --- a/pkg/fourslash/tests/gen/goToTypeDefinition4_test.go +++ b/pkg/fourslash/tests/gen/goToTypeDefinition4_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToTypeDefinition4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: foo.ts export type /*def0*/T = string; diff --git a/pkg/fourslash/tests/gen/goToTypeDefinition5_test.go b/pkg/fourslash/tests/gen/goToTypeDefinition5_test.go index bacadd153..72c081278 100644 --- a/pkg/fourslash/tests/gen/goToTypeDefinition5_test.go +++ b/pkg/fourslash/tests/gen/goToTypeDefinition5_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToTypeDefinition5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: foo.ts let Foo: /*definition*/unresolved; diff --git a/pkg/fourslash/tests/gen/goToTypeDefinitionAliases_test.go b/pkg/fourslash/tests/gen/goToTypeDefinitionAliases_test.go index f8cf792bf..13bf559fb 100644 --- a/pkg/fourslash/tests/gen/goToTypeDefinitionAliases_test.go +++ b/pkg/fourslash/tests/gen/goToTypeDefinitionAliases_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToTypeDefinitionAliases(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: goToTypeDefinitioAliases_module1.ts interface /*definition*/I { diff --git a/pkg/fourslash/tests/gen/goToTypeDefinitionEnumMembers_test.go b/pkg/fourslash/tests/gen/goToTypeDefinitionEnumMembers_test.go index 5463e9a22..3c940593f 100644 --- a/pkg/fourslash/tests/gen/goToTypeDefinitionEnumMembers_test.go +++ b/pkg/fourslash/tests/gen/goToTypeDefinitionEnumMembers_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToTypeDefinitionEnumMembers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum E { value1, diff --git a/pkg/fourslash/tests/gen/goToTypeDefinitionImportMeta_test.go b/pkg/fourslash/tests/gen/goToTypeDefinitionImportMeta_test.go index 3a54b53dc..5f56a6cc5 100644 --- a/pkg/fourslash/tests/gen/goToTypeDefinitionImportMeta_test.go +++ b/pkg/fourslash/tests/gen/goToTypeDefinitionImportMeta_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToTypeDefinitionImportMeta(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @Filename: foo.ts diff --git a/pkg/fourslash/tests/gen/goToTypeDefinitionModifiers_test.go b/pkg/fourslash/tests/gen/goToTypeDefinitionModifiers_test.go index ae8ba49dc..caab59ee3 100644 --- a/pkg/fourslash/tests/gen/goToTypeDefinitionModifiers_test.go +++ b/pkg/fourslash/tests/gen/goToTypeDefinitionModifiers_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToTypeDefinitionModifiers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts /*export*/export class A/*A*/ { diff --git a/pkg/fourslash/tests/gen/goToTypeDefinitionModule_test.go b/pkg/fourslash/tests/gen/goToTypeDefinitionModule_test.go index 0ddb08ee1..51c22b165 100644 --- a/pkg/fourslash/tests/gen/goToTypeDefinitionModule_test.go +++ b/pkg/fourslash/tests/gen/goToTypeDefinitionModule_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToTypeDefinitionModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: module1.ts module /*definition*/M { diff --git a/pkg/fourslash/tests/gen/goToTypeDefinitionPrimitives_test.go b/pkg/fourslash/tests/gen/goToTypeDefinitionPrimitives_test.go index 657114b6c..71af01de1 100644 --- a/pkg/fourslash/tests/gen/goToTypeDefinitionPrimitives_test.go +++ b/pkg/fourslash/tests/gen/goToTypeDefinitionPrimitives_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToTypeDefinitionPrimitives(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: module1.ts var w: {a: number}; diff --git a/pkg/fourslash/tests/gen/goToTypeDefinitionUnionType_test.go b/pkg/fourslash/tests/gen/goToTypeDefinitionUnionType_test.go index 62695c193..ac27c0abb 100644 --- a/pkg/fourslash/tests/gen/goToTypeDefinitionUnionType_test.go +++ b/pkg/fourslash/tests/gen/goToTypeDefinitionUnionType_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToTypeDefinitionUnionType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class /*definition0*/C { p; diff --git a/pkg/fourslash/tests/gen/goToTypeDefinition_Pick_test.go b/pkg/fourslash/tests/gen/goToTypeDefinition_Pick_test.go index 6f6320c3c..c78167126 100644 --- a/pkg/fourslash/tests/gen/goToTypeDefinition_Pick_test.go +++ b/pkg/fourslash/tests/gen/goToTypeDefinition_Pick_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToTypeDefinition_Pick(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type User = { id: number; name: string; }; declare const user: Pick diff --git a/pkg/fourslash/tests/gen/goToTypeDefinition_arrayType_test.go b/pkg/fourslash/tests/gen/goToTypeDefinition_arrayType_test.go index 399fdcf62..b008d5d08 100644 --- a/pkg/fourslash/tests/gen/goToTypeDefinition_arrayType_test.go +++ b/pkg/fourslash/tests/gen/goToTypeDefinition_arrayType_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToTypeDefinition_arrayType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type User = { name: string }; declare const users: User[] diff --git a/pkg/fourslash/tests/gen/goToTypeDefinition_promiseType_test.go b/pkg/fourslash/tests/gen/goToTypeDefinition_promiseType_test.go index 8fc0a1694..0e43e5541 100644 --- a/pkg/fourslash/tests/gen/goToTypeDefinition_promiseType_test.go +++ b/pkg/fourslash/tests/gen/goToTypeDefinition_promiseType_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToTypeDefinition_promiseType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type User = { name: string }; async function /*reference*/getUser() { return { name: "Bob" } satisfies User as User } diff --git a/pkg/fourslash/tests/gen/goToTypeDefinition_returnType_test.go b/pkg/fourslash/tests/gen/goToTypeDefinition_returnType_test.go index 8cee7e449..feaf42203 100644 --- a/pkg/fourslash/tests/gen/goToTypeDefinition_returnType_test.go +++ b/pkg/fourslash/tests/gen/goToTypeDefinition_returnType_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToTypeDefinition_returnType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface /*I*/I { x: number; } interface /*J*/J { y: number; } diff --git a/pkg/fourslash/tests/gen/goToTypeDefinition_test.go b/pkg/fourslash/tests/gen/goToTypeDefinition_test.go index fa5cb816f..55e52dbbd 100644 --- a/pkg/fourslash/tests/gen/goToTypeDefinition_test.go +++ b/pkg/fourslash/tests/gen/goToTypeDefinition_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToTypeDefinition(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: goToTypeDefinition_Definition.ts class /*definition*/C { diff --git a/pkg/fourslash/tests/gen/goToTypeDefinition_typeReference_test.go b/pkg/fourslash/tests/gen/goToTypeDefinition_typeReference_test.go index 38929fc1d..a39ee3026 100644 --- a/pkg/fourslash/tests/gen/goToTypeDefinition_typeReference_test.go +++ b/pkg/fourslash/tests/gen/goToTypeDefinition_typeReference_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToTypeDefinition_typeReference(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type User = { name: string }; type Box = { value: T }; diff --git a/pkg/fourslash/tests/gen/goToTypeDefinition_typedef_test.go b/pkg/fourslash/tests/gen/goToTypeDefinition_typedef_test.go index 9610b8d10..824f0a2ef 100644 --- a/pkg/fourslash/tests/gen/goToTypeDefinition_typedef_test.go +++ b/pkg/fourslash/tests/gen/goToTypeDefinition_typedef_test.go @@ -8,8 +8,8 @@ import ( ) func TestGoToTypeDefinition_typedef(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/gotoDefinitionConstructorFunction_test.go b/pkg/fourslash/tests/gen/gotoDefinitionConstructorFunction_test.go index 21e57f130..3acc3a022 100644 --- a/pkg/fourslash/tests/gen/gotoDefinitionConstructorFunction_test.go +++ b/pkg/fourslash/tests/gen/gotoDefinitionConstructorFunction_test.go @@ -8,8 +8,8 @@ import ( ) func TestGotoDefinitionConstructorFunction(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/gotoDefinitionInObjectBindingPattern1_test.go b/pkg/fourslash/tests/gen/gotoDefinitionInObjectBindingPattern1_test.go index 016a68b71..76ef0c6f2 100644 --- a/pkg/fourslash/tests/gen/gotoDefinitionInObjectBindingPattern1_test.go +++ b/pkg/fourslash/tests/gen/gotoDefinitionInObjectBindingPattern1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGotoDefinitionInObjectBindingPattern1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function bar(onfulfilled: (value: T) => void) { return undefined; diff --git a/pkg/fourslash/tests/gen/gotoDefinitionInObjectBindingPattern2_test.go b/pkg/fourslash/tests/gen/gotoDefinitionInObjectBindingPattern2_test.go index 0f6079fb4..c02e050a0 100644 --- a/pkg/fourslash/tests/gen/gotoDefinitionInObjectBindingPattern2_test.go +++ b/pkg/fourslash/tests/gen/gotoDefinitionInObjectBindingPattern2_test.go @@ -8,8 +8,8 @@ import ( ) func TestGotoDefinitionInObjectBindingPattern2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var p0 = ({a/*1*/a}) => {console.log(aa)}; function f2({ [|a/*a1*/1|], [|b/*b1*/1|] }: { /*a1_dest*/a1: number, /*b1_dest*/b1: number } = { a1: 0, b1: 0 }) {}` diff --git a/pkg/fourslash/tests/gen/gotoDefinitionLinkTag1_test.go b/pkg/fourslash/tests/gen/gotoDefinitionLinkTag1_test.go index e0c29c081..e7058fa3c 100644 --- a/pkg/fourslash/tests/gen/gotoDefinitionLinkTag1_test.go +++ b/pkg/fourslash/tests/gen/gotoDefinitionLinkTag1_test.go @@ -8,8 +8,8 @@ import ( ) func TestGotoDefinitionLinkTag1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: foo.ts interface [|/*def1*/Foo|] { diff --git a/pkg/fourslash/tests/gen/gotoDefinitionLinkTag2_test.go b/pkg/fourslash/tests/gen/gotoDefinitionLinkTag2_test.go index 5c733e35f..289b67fdf 100644 --- a/pkg/fourslash/tests/gen/gotoDefinitionLinkTag2_test.go +++ b/pkg/fourslash/tests/gen/gotoDefinitionLinkTag2_test.go @@ -8,8 +8,8 @@ import ( ) func TestGotoDefinitionLinkTag2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum E { /** {@link /*1*/[|A|]} */ diff --git a/pkg/fourslash/tests/gen/gotoDefinitionLinkTag3_test.go b/pkg/fourslash/tests/gen/gotoDefinitionLinkTag3_test.go index 04e15fab2..529c7b6dd 100644 --- a/pkg/fourslash/tests/gen/gotoDefinitionLinkTag3_test.go +++ b/pkg/fourslash/tests/gen/gotoDefinitionLinkTag3_test.go @@ -8,8 +8,8 @@ import ( ) func TestGotoDefinitionLinkTag3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts enum E { diff --git a/pkg/fourslash/tests/gen/gotoDefinitionLinkTag4_test.go b/pkg/fourslash/tests/gen/gotoDefinitionLinkTag4_test.go index 7ad3c9e06..6c20bd0ef 100644 --- a/pkg/fourslash/tests/gen/gotoDefinitionLinkTag4_test.go +++ b/pkg/fourslash/tests/gen/gotoDefinitionLinkTag4_test.go @@ -8,8 +8,8 @@ import ( ) func TestGotoDefinitionLinkTag4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: a.ts interface [|/*2*/Foo|] { diff --git a/pkg/fourslash/tests/gen/gotoDefinitionLinkTag5_test.go b/pkg/fourslash/tests/gen/gotoDefinitionLinkTag5_test.go index 24c7a3358..ea0c72320 100644 --- a/pkg/fourslash/tests/gen/gotoDefinitionLinkTag5_test.go +++ b/pkg/fourslash/tests/gen/gotoDefinitionLinkTag5_test.go @@ -8,8 +8,8 @@ import ( ) func TestGotoDefinitionLinkTag5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum E { /** {@link /*1*/[|B|]} */ diff --git a/pkg/fourslash/tests/gen/gotoDefinitionLinkTag6_test.go b/pkg/fourslash/tests/gen/gotoDefinitionLinkTag6_test.go index 6493bc27c..c3f84f408 100644 --- a/pkg/fourslash/tests/gen/gotoDefinitionLinkTag6_test.go +++ b/pkg/fourslash/tests/gen/gotoDefinitionLinkTag6_test.go @@ -8,8 +8,8 @@ import ( ) func TestGotoDefinitionLinkTag6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum E { /** {@link E./*1*/[|A|]} */ diff --git a/pkg/fourslash/tests/gen/gotoDefinitionPropertyAccessExpressionHeritageClause_test.go b/pkg/fourslash/tests/gen/gotoDefinitionPropertyAccessExpressionHeritageClause_test.go index e7cb3ef6e..b1eb1206b 100644 --- a/pkg/fourslash/tests/gen/gotoDefinitionPropertyAccessExpressionHeritageClause_test.go +++ b/pkg/fourslash/tests/gen/gotoDefinitionPropertyAccessExpressionHeritageClause_test.go @@ -8,8 +8,8 @@ import ( ) func TestGotoDefinitionPropertyAccessExpressionHeritageClause(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class B {} function foo() { diff --git a/pkg/fourslash/tests/gen/gotoDefinitionSatisfiesTag_test.go b/pkg/fourslash/tests/gen/gotoDefinitionSatisfiesTag_test.go index fbc5b5ca7..c46937faa 100644 --- a/pkg/fourslash/tests/gen/gotoDefinitionSatisfiesTag_test.go +++ b/pkg/fourslash/tests/gen/gotoDefinitionSatisfiesTag_test.go @@ -8,8 +8,8 @@ import ( ) func TestGotoDefinitionSatisfiesTag(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noEmit: true // @allowJS: true diff --git a/pkg/fourslash/tests/gen/gotoDefinitionThrowsTag_test.go b/pkg/fourslash/tests/gen/gotoDefinitionThrowsTag_test.go index ca1ede10d..ad84f13fa 100644 --- a/pkg/fourslash/tests/gen/gotoDefinitionThrowsTag_test.go +++ b/pkg/fourslash/tests/gen/gotoDefinitionThrowsTag_test.go @@ -8,8 +8,8 @@ import ( ) func TestGotoDefinitionThrowsTag(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class [|/*def*/E|] extends Error {} diff --git a/pkg/fourslash/tests/gen/highlightsForExportFromUnfoundModule_test.go b/pkg/fourslash/tests/gen/highlightsForExportFromUnfoundModule_test.go index 39fe50757..97a24c19d 100644 --- a/pkg/fourslash/tests/gen/highlightsForExportFromUnfoundModule_test.go +++ b/pkg/fourslash/tests/gen/highlightsForExportFromUnfoundModule_test.go @@ -8,8 +8,8 @@ import ( ) func TestHighlightsForExportFromUnfoundModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/hoverOverComment_test.go b/pkg/fourslash/tests/gen/hoverOverComment_test.go index 523560dd1..a975e7219 100644 --- a/pkg/fourslash/tests/gen/hoverOverComment_test.go +++ b/pkg/fourslash/tests/gen/hoverOverComment_test.go @@ -8,8 +8,8 @@ import ( ) func TestHoverOverComment(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export function f() {} //foo diff --git a/pkg/fourslash/tests/gen/hoverOverPrivateName_test.go b/pkg/fourslash/tests/gen/hoverOverPrivateName_test.go index 9684db070..654d95cae 100644 --- a/pkg/fourslash/tests/gen/hoverOverPrivateName_test.go +++ b/pkg/fourslash/tests/gen/hoverOverPrivateName_test.go @@ -8,8 +8,8 @@ import ( ) func TestHoverOverPrivateName(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A { #f/*1*/oo = 3; diff --git a/pkg/fourslash/tests/gen/identifierErrorRecovery_test.go b/pkg/fourslash/tests/gen/identifierErrorRecovery_test.go index 604b896af..4819c070a 100644 --- a/pkg/fourslash/tests/gen/identifierErrorRecovery_test.go +++ b/pkg/fourslash/tests/gen/identifierErrorRecovery_test.go @@ -9,8 +9,8 @@ import ( ) func TestIdentifierErrorRecovery(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var /*1*/export/*2*/; var foo; diff --git a/pkg/fourslash/tests/gen/implementation01_test.go b/pkg/fourslash/tests/gen/implementation01_test.go index b899cb4cb..5807dd47e 100644 --- a/pkg/fourslash/tests/gen/implementation01_test.go +++ b/pkg/fourslash/tests/gen/implementation01_test.go @@ -8,8 +8,8 @@ import ( ) func TestImplementation01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Fo/*1*/o {} class /*2*/Bar implements Foo {}` diff --git a/pkg/fourslash/tests/gen/importCompletionsPackageJsonExportsSpecifierEndsInTs_test.go b/pkg/fourslash/tests/gen/importCompletionsPackageJsonExportsSpecifierEndsInTs_test.go index 87ead5516..ee4a59f54 100644 --- a/pkg/fourslash/tests/gen/importCompletionsPackageJsonExportsSpecifierEndsInTs_test.go +++ b/pkg/fourslash/tests/gen/importCompletionsPackageJsonExportsSpecifierEndsInTs_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportCompletionsPackageJsonExportsSpecifierEndsInTs(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /node_modules/pkg/package.json diff --git a/pkg/fourslash/tests/gen/importCompletionsPackageJsonExportsTrailingSlash1_test.go b/pkg/fourslash/tests/gen/importCompletionsPackageJsonExportsTrailingSlash1_test.go index 2190bb73f..7ce4eaa20 100644 --- a/pkg/fourslash/tests/gen/importCompletionsPackageJsonExportsTrailingSlash1_test.go +++ b/pkg/fourslash/tests/gen/importCompletionsPackageJsonExportsTrailingSlash1_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportCompletionsPackageJsonExportsTrailingSlash1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @moduleResolution: nodenext diff --git a/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsConditions1_test.go b/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsConditions1_test.go index 9448b8920..f847b2618 100644 --- a/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsConditions1_test.go +++ b/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsConditions1_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportCompletionsPackageJsonImportsConditions1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsLength1_test.go b/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsLength1_test.go index 18a1ff3e6..2ab2948b3 100644 --- a/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsLength1_test.go +++ b/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsLength1_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportCompletionsPackageJsonImportsLength1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsLength2_test.go b/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsLength2_test.go index e8275211a..187505c47 100644 --- a/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsLength2_test.go +++ b/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsLength2_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportCompletionsPackageJsonImportsLength2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern2_test.go b/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern2_test.go index 1729964c6..ab8aa8be2 100644 --- a/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern2_test.go +++ b/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern2_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportCompletionsPackageJsonImportsPattern2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @allowImportingTsExtensions: true diff --git a/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_capsInPath1_test.go b/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_capsInPath1_test.go index 32697c4db..3a2501107 100644 --- a/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_capsInPath1_test.go +++ b/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_capsInPath1_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportCompletionsPackageJsonImportsPattern_capsInPath1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /Dev/package.json diff --git a/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_capsInPath2_test.go b/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_capsInPath2_test.go index 1ca78aa25..b964f512c 100644 --- a/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_capsInPath2_test.go +++ b/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_capsInPath2_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportCompletionsPackageJsonImportsPattern_capsInPath2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /Dev/package.json diff --git a/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_js_test.go b/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_js_test.go index 5dfbbf688..603ac3f50 100644 --- a/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_js_test.go +++ b/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_js_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportCompletionsPackageJsonImportsPattern_js(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_js_ts_test.go b/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_js_ts_test.go index 778436af8..ef6b4ea56 100644 --- a/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_js_ts_test.go +++ b/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_js_ts_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportCompletionsPackageJsonImportsPattern_js_ts(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_test.go b/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_test.go index 805b1ad1a..5c1ec3b66 100644 --- a/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_test.go +++ b/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportCompletionsPackageJsonImportsPattern(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_ts_js_test.go b/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_ts_js_test.go index 65307c2ed..893d7e8ba 100644 --- a/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_ts_js_test.go +++ b/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_ts_js_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportCompletionsPackageJsonImportsPattern_ts_js(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_ts_test.go b/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_ts_test.go index 19b0abfc3..3200c30ee 100644 --- a/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_ts_test.go +++ b/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_ts_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportCompletionsPackageJsonImportsPattern_ts(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_ts_ts_test.go b/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_ts_ts_test.go index f9bf4e6d2..661e8a100 100644 --- a/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_ts_ts_test.go +++ b/pkg/fourslash/tests/gen/importCompletionsPackageJsonImportsPattern_ts_ts_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportCompletionsPackageJsonImportsPattern_ts_ts(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/importCompletionsPackageJsonImports_js_test.go b/pkg/fourslash/tests/gen/importCompletionsPackageJsonImports_js_test.go index 457e1a396..b03de7dc9 100644 --- a/pkg/fourslash/tests/gen/importCompletionsPackageJsonImports_js_test.go +++ b/pkg/fourslash/tests/gen/importCompletionsPackageJsonImports_js_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportCompletionsPackageJsonImports_js(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/importCompletionsPackageJsonImports_ts_test.go b/pkg/fourslash/tests/gen/importCompletionsPackageJsonImports_ts_test.go index da2be56e5..a6d596b4b 100644 --- a/pkg/fourslash/tests/gen/importCompletionsPackageJsonImports_ts_test.go +++ b/pkg/fourslash/tests/gen/importCompletionsPackageJsonImports_ts_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportCompletionsPackageJsonImports_ts(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/importCompletions_importsMap1_test.go b/pkg/fourslash/tests/gen/importCompletions_importsMap1_test.go index 9ce400863..5b4c225cb 100644 --- a/pkg/fourslash/tests/gen/importCompletions_importsMap1_test.go +++ b/pkg/fourslash/tests/gen/importCompletions_importsMap1_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportCompletions_importsMap1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/importCompletions_importsMap2_test.go b/pkg/fourslash/tests/gen/importCompletions_importsMap2_test.go index 75a077a53..2447eedf7 100644 --- a/pkg/fourslash/tests/gen/importCompletions_importsMap2_test.go +++ b/pkg/fourslash/tests/gen/importCompletions_importsMap2_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportCompletions_importsMap2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/importCompletions_importsMap3_test.go b/pkg/fourslash/tests/gen/importCompletions_importsMap3_test.go index 5ff1812c7..779982f7e 100644 --- a/pkg/fourslash/tests/gen/importCompletions_importsMap3_test.go +++ b/pkg/fourslash/tests/gen/importCompletions_importsMap3_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportCompletions_importsMap3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/importCompletions_importsMap4_test.go b/pkg/fourslash/tests/gen/importCompletions_importsMap4_test.go index 79e02151d..032c0e02d 100644 --- a/pkg/fourslash/tests/gen/importCompletions_importsMap4_test.go +++ b/pkg/fourslash/tests/gen/importCompletions_importsMap4_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportCompletions_importsMap4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/importCompletions_importsMap5_test.go b/pkg/fourslash/tests/gen/importCompletions_importsMap5_test.go index cfda36c41..b9ed54b20 100644 --- a/pkg/fourslash/tests/gen/importCompletions_importsMap5_test.go +++ b/pkg/fourslash/tests/gen/importCompletions_importsMap5_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportCompletions_importsMap5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/importFixWithMultipleModuleExportAssignment_test.go b/pkg/fourslash/tests/gen/importFixWithMultipleModuleExportAssignment_test.go index 1316a7003..d2793a0cc 100644 --- a/pkg/fourslash/tests/gen/importFixWithMultipleModuleExportAssignment_test.go +++ b/pkg/fourslash/tests/gen/importFixWithMultipleModuleExportAssignment_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportFixWithMultipleModuleExportAssignment(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @allowJs: true diff --git a/pkg/fourslash/tests/gen/importFixesGlobalTypingsCache_test.go b/pkg/fourslash/tests/gen/importFixesGlobalTypingsCache_test.go index 78968f968..4c59c71bb 100644 --- a/pkg/fourslash/tests/gen/importFixesGlobalTypingsCache_test.go +++ b/pkg/fourslash/tests/gen/importFixesGlobalTypingsCache_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportFixesGlobalTypingsCache(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /project/tsconfig.json { "compilerOptions": { "allowJs": true, "checkJs": true } } diff --git a/pkg/fourslash/tests/gen/importFixes_ambientCircularDefaultCrash_test.go b/pkg/fourslash/tests/gen/importFixes_ambientCircularDefaultCrash_test.go index ad7f96736..9129e0ab4 100644 --- a/pkg/fourslash/tests/gen/importFixes_ambientCircularDefaultCrash_test.go +++ b/pkg/fourslash/tests/gen/importFixes_ambientCircularDefaultCrash_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportFixes_ambientCircularDefaultCrash(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/importFixes_quotePreferenceDouble_importHelpers_test.go b/pkg/fourslash/tests/gen/importFixes_quotePreferenceDouble_importHelpers_test.go index 5f30dd9bf..d2fef4b21 100644 --- a/pkg/fourslash/tests/gen/importFixes_quotePreferenceDouble_importHelpers_test.go +++ b/pkg/fourslash/tests/gen/importFixes_quotePreferenceDouble_importHelpers_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportFixes_quotePreferenceDouble_importHelpers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @importHelpers: true // @filename: /a.ts diff --git a/pkg/fourslash/tests/gen/importFixes_quotePreferenceSingle_importHelpers_test.go b/pkg/fourslash/tests/gen/importFixes_quotePreferenceSingle_importHelpers_test.go index d0a8e60d1..4a8793498 100644 --- a/pkg/fourslash/tests/gen/importFixes_quotePreferenceSingle_importHelpers_test.go +++ b/pkg/fourslash/tests/gen/importFixes_quotePreferenceSingle_importHelpers_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportFixes_quotePreferenceSingle_importHelpers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @importHelpers: true // @filename: /a.ts diff --git a/pkg/fourslash/tests/gen/importMetaCompletionDetails_test.go b/pkg/fourslash/tests/gen/importMetaCompletionDetails_test.go index dca021b68..93f20efc6 100644 --- a/pkg/fourslash/tests/gen/importMetaCompletionDetails_test.go +++ b/pkg/fourslash/tests/gen/importMetaCompletionDetails_test.go @@ -10,8 +10,8 @@ import ( ) func TestImportMetaCompletionDetails(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: index.mts // @module: Node16 diff --git a/pkg/fourslash/tests/gen/importNameCodeFixConvertTypeOnly1_test.go b/pkg/fourslash/tests/gen/importNameCodeFixConvertTypeOnly1_test.go index e571f0860..bc2893517 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixConvertTypeOnly1_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixConvertTypeOnly1_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixConvertTypeOnly1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export class A {} diff --git a/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport1_test.go b/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport1_test.go index 415bf4811..8659f1e8c 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport1_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport1_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixDefaultExport1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /foo-bar.ts export default function fooBar(); diff --git a/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport2_test.go b/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport2_test.go index 0fdb37021..2a8f09812 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport2_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport2_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixDefaultExport2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /lib.ts class Base { } diff --git a/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport3_test.go b/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport3_test.go index f5e07eeb6..9067c7e71 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport3_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport3_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixDefaultExport3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /foo-bar/index.ts export default 0; diff --git a/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport4_test.go b/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport4_test.go index 9a65f78ea..998043584 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport4_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport4_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixDefaultExport4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /foo.ts const a = () => {}; diff --git a/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport5_test.go b/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport5_test.go index a041bad6c..852398da1 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport5_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport5_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixDefaultExport5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @moduleResolution: bundler // @Filename: /node_modules/hooks/useFoo.ts diff --git a/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport6_test.go b/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport6_test.go index 5d0dfea45..a6aeee4e2 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport6_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport6_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportNameCodeFixDefaultExport6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export default Math.foo; diff --git a/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport7_test.go b/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport7_test.go index 56c371842..0a1a60b39 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport7_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport7_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixDefaultExport7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @lib: dom // @Filename: foo.ts diff --git a/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport_test.go b/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport_test.go index 06e152e25..f8db33c5d 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixDefaultExport_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixDefaultExport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /foo-bar.ts export default 0; diff --git a/pkg/fourslash/tests/gen/importNameCodeFixExistingImport0_test.go b/pkg/fourslash/tests/gen/importNameCodeFixExistingImport0_test.go index aa444cbf7..b6044a6c5 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixExistingImport0_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixExistingImport0_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixExistingImport0(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `import [|{ v1 }|] from "./module"; f1/*0*/(); diff --git a/pkg/fourslash/tests/gen/importNameCodeFixExistingImport10_test.go b/pkg/fourslash/tests/gen/importNameCodeFixExistingImport10_test.go index fde36afe1..02f8fa465 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixExistingImport10_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixExistingImport10_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixExistingImport10(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `import [|{ v1, diff --git a/pkg/fourslash/tests/gen/importNameCodeFixExistingImport11_test.go b/pkg/fourslash/tests/gen/importNameCodeFixExistingImport11_test.go index 2152585f2..19487fb5f 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixExistingImport11_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixExistingImport11_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixExistingImport11(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `import [|{ v1, v2, diff --git a/pkg/fourslash/tests/gen/importNameCodeFixExistingImport12_test.go b/pkg/fourslash/tests/gen/importNameCodeFixExistingImport12_test.go index a6522316a..b37e7a8d1 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixExistingImport12_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixExistingImport12_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixExistingImport12(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `import [|{}|] from "./module"; f1/*0*/(); diff --git a/pkg/fourslash/tests/gen/importNameCodeFixExistingImport1_test.go b/pkg/fourslash/tests/gen/importNameCodeFixExistingImport1_test.go index a2fdc1569..39d007134 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixExistingImport1_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixExistingImport1_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixExistingImport1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `import d, [|{ v1 }|] from "./module"; f1/*0*/(); diff --git a/pkg/fourslash/tests/gen/importNameCodeFixExistingImport2_test.go b/pkg/fourslash/tests/gen/importNameCodeFixExistingImport2_test.go index 20d7a4261..3e28d3cbe 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixExistingImport2_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixExistingImport2_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixExistingImport2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `import * as ns from "./module"; // Comment diff --git a/pkg/fourslash/tests/gen/importNameCodeFixExistingImport3_test.go b/pkg/fourslash/tests/gen/importNameCodeFixExistingImport3_test.go index c72b18cb9..220208e97 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixExistingImport3_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixExistingImport3_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixExistingImport3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|import d, * as ns from "./module" ; f1/*0*/();|] diff --git a/pkg/fourslash/tests/gen/importNameCodeFixExistingImport4_test.go b/pkg/fourslash/tests/gen/importNameCodeFixExistingImport4_test.go index d95b4c9c3..86553a64c 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixExistingImport4_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixExistingImport4_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixExistingImport4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|import d from "./module"; f1/*0*/();|] diff --git a/pkg/fourslash/tests/gen/importNameCodeFixExistingImport5_test.go b/pkg/fourslash/tests/gen/importNameCodeFixExistingImport5_test.go index 6ad6dbb68..dc37fcc6c 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixExistingImport5_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixExistingImport5_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixExistingImport5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|import "./module"; f1/*0*/();|] diff --git a/pkg/fourslash/tests/gen/importNameCodeFixExistingImport6_test.go b/pkg/fourslash/tests/gen/importNameCodeFixExistingImport6_test.go index d08cbd97d..5fa59588b 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixExistingImport6_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixExistingImport6_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixExistingImport6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `import [|{ v1 }|] from "fake-module"; f1/*0*/(); diff --git a/pkg/fourslash/tests/gen/importNameCodeFixExistingImport7_test.go b/pkg/fourslash/tests/gen/importNameCodeFixExistingImport7_test.go index b81412046..8a014e7da 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixExistingImport7_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixExistingImport7_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixExistingImport7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `import [|{ v1 }|] from "../other_dir/module"; f1/*0*/(); diff --git a/pkg/fourslash/tests/gen/importNameCodeFixExistingImport8_test.go b/pkg/fourslash/tests/gen/importNameCodeFixExistingImport8_test.go index 167daa12f..063e3cc49 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixExistingImport8_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixExistingImport8_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixExistingImport8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `import [|{v1, v2, v3,}|] from "./module"; v4/*0*/(); diff --git a/pkg/fourslash/tests/gen/importNameCodeFixExistingImport9_test.go b/pkg/fourslash/tests/gen/importNameCodeFixExistingImport9_test.go index 604786167..cc66083a5 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixExistingImport9_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixExistingImport9_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixExistingImport9(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `import [|{ v1 diff --git a/pkg/fourslash/tests/gen/importNameCodeFixExistingImportEquals0_test.go b/pkg/fourslash/tests/gen/importNameCodeFixExistingImportEquals0_test.go index 75a8d0b87..d8e55adcc 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixExistingImportEquals0_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixExistingImportEquals0_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixExistingImportEquals0(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|import ns = require("ambient-module"); var x = v1/*0*/ + 5;|] diff --git a/pkg/fourslash/tests/gen/importNameCodeFixExportAsDefaultExistingImport_test.go b/pkg/fourslash/tests/gen/importNameCodeFixExportAsDefaultExistingImport_test.go index c315e28d7..361a1eea5 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixExportAsDefaultExistingImport_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixExportAsDefaultExistingImport_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixExportAsDefaultExistingImport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `import [|{ v1, v2, v3 }|] from "./module"; v4/*0*/(); diff --git a/pkg/fourslash/tests/gen/importNameCodeFixExportAsDefault_test.go b/pkg/fourslash/tests/gen/importNameCodeFixExportAsDefault_test.go index ad46d2f83..da0f47f73 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixExportAsDefault_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixExportAsDefault_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportNameCodeFixExportAsDefault(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /foo.ts const foo = 'foo' diff --git a/pkg/fourslash/tests/gen/importNameCodeFixIndentedIdentifier_test.go b/pkg/fourslash/tests/gen/importNameCodeFixIndentedIdentifier_test.go index f558cd6dc..72ea4f542 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixIndentedIdentifier_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixIndentedIdentifier_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixIndentedIdentifier(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts [|import * as b from "./b"; diff --git a/pkg/fourslash/tests/gen/importNameCodeFixInferEndingPreference_classic_test.go b/pkg/fourslash/tests/gen/importNameCodeFixInferEndingPreference_classic_test.go index ef33fb42d..0d04b3376 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixInferEndingPreference_classic_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixInferEndingPreference_classic_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixInferEndingPreference_classic(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @checkJs: true diff --git a/pkg/fourslash/tests/gen/importNameCodeFixInferEndingPreference_test.go b/pkg/fourslash/tests/gen/importNameCodeFixInferEndingPreference_test.go index 59a393003..8c3aa8a45 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixInferEndingPreference_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixInferEndingPreference_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixInferEndingPreference(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @moduleResolution: bundler diff --git a/pkg/fourslash/tests/gen/importNameCodeFixJsEnding_test.go b/pkg/fourslash/tests/gen/importNameCodeFixJsEnding_test.go index d6f98b93d..6126e464e 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixJsEnding_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixJsEnding_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportNameCodeFixJsEnding(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @Filename: /node_modules/lit/package.json diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportAllowSyntheticDefaultImports0_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportAllowSyntheticDefaultImports0_test.go index 9954f32e9..a1faec5df 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportAllowSyntheticDefaultImports0_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportAllowSyntheticDefaultImports0_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportAllowSyntheticDefaultImports0(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @AllowSyntheticDefaultImports: true // @Filename: a/f1.ts diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportAllowSyntheticDefaultImports1_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportAllowSyntheticDefaultImports1_test.go index bfe03bd7e..e6ba41e9b 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportAllowSyntheticDefaultImports1_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportAllowSyntheticDefaultImports1_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportAllowSyntheticDefaultImports1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Module: system // @Filename: a/f1.ts diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportAllowSyntheticDefaultImports2_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportAllowSyntheticDefaultImports2_test.go index c661f30aa..8c87e7d15 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportAllowSyntheticDefaultImports2_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportAllowSyntheticDefaultImports2_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportAllowSyntheticDefaultImports2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @AllowSyntheticDefaultImports: false // @Module: system diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportAllowSyntheticDefaultImports3_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportAllowSyntheticDefaultImports3_test.go index f23de929a..348a80009 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportAllowSyntheticDefaultImports3_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportAllowSyntheticDefaultImports3_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportAllowSyntheticDefaultImports3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @AllowSyntheticDefaultImports: false // @Module: commonjs diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportAllowSyntheticDefaultImports4_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportAllowSyntheticDefaultImports4_test.go index 7fb79d8d7..beb5fa48f 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportAllowSyntheticDefaultImports4_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportAllowSyntheticDefaultImports4_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportAllowSyntheticDefaultImports4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @AllowSyntheticDefaultImports: false // @Module: amd diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportAllowSyntheticDefaultImports5_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportAllowSyntheticDefaultImports5_test.go index 65faff532..e70a1a364 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportAllowSyntheticDefaultImports5_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportAllowSyntheticDefaultImports5_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportAllowSyntheticDefaultImports5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @AllowSyntheticDefaultImports: false // @Module: umd diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportAmbient0_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportAmbient0_test.go index be14a119e..72a37458f 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportAmbient0_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportAmbient0_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportAmbient0(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|f1/*0*/();|] // @Filename: ambientModule.ts diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportAmbient1_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportAmbient1_test.go index 79d3daa3a..1529541bb 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportAmbient1_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportAmbient1_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportAmbient1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `import d from "other-ambient-module"; import * as ns from "yet-another-ambient-module"; diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportAmbient2_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportAmbient2_test.go index 832a977d8..39d55cf3f 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportAmbient2_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportAmbient2_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportAmbient2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|/*! * I'm a license or something diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportAmbient3_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportAmbient3_test.go index addec0802..21a9b56ac 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportAmbient3_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportAmbient3_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportAmbient3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let a = "I am a non-trivial statement that appears before imports"; import d from "other-ambient-module" diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportBaseUrl0_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportBaseUrl0_test.go index 6ae802e78..94ae151dd 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportBaseUrl0_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportBaseUrl0_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportBaseUrl0(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|f1/*0*/();|] // @Filename: tsconfig.json diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportBaseUrl1_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportBaseUrl1_test.go index fc6d38c66..46d3f4c3f 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportBaseUrl1_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportBaseUrl1_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportNameCodeFixNewImportBaseUrl1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /tsconfig.json { diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportBaseUrl2_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportBaseUrl2_test.go index a90431655..4820adc14 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportBaseUrl2_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportBaseUrl2_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportNameCodeFixNewImportBaseUrl2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /tsconfig.json { diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportDefault0_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportDefault0_test.go index 8e2b6beb1..7b48c3642 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportDefault0_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportDefault0_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportDefault0(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|f1/*0*/();|] // @Filename: module.ts diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportExportEqualsCommonJSInteropOn_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportExportEqualsCommonJSInteropOn_test.go index bbf543031..8de859412 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportExportEqualsCommonJSInteropOn_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportExportEqualsCommonJSInteropOn_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportExportEqualsCommonJSInteropOn(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Module: commonjs // @EsModuleInterop: true diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportExportEqualsESNextInteropOff_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportExportEqualsESNextInteropOff_test.go index 7c0e96cf8..0d89a5d54 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportExportEqualsESNextInteropOff_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportExportEqualsESNextInteropOff_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportExportEqualsESNextInteropOff(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Module: esnext // @Filename: /foo.d.ts diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportExportEqualsESNextInteropOn_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportExportEqualsESNextInteropOn_test.go index f609c61e8..26aeb0f02 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportExportEqualsESNextInteropOn_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportExportEqualsESNextInteropOn_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportExportEqualsESNextInteropOn(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @EsModuleInterop: true // @Module: es2015 diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportFile0_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportFile0_test.go index 296edf6c7..c30d665e9 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportFile0_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportFile0_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportFile0(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|f1/*0*/();|] // @Filename: jalapeño.ts diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportFile1_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportFile1_test.go index 998a85261..586468653 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportFile1_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportFile1_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportFile1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|/// f1/*0*/();|] diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportFile2_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportFile2_test.go index d402a6436..f62278fab 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportFile2_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportFile2_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportFile2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|f1/*0*/();|] // @Filename: ../../other_dir/module.ts diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportFile3_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportFile3_test.go index 96c838b4b..b08c48c47 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportFile3_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportFile3_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportFile3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|let t: XXX/*0*/.I;|] // @Filename: ./module.ts diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportFile4_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportFile4_test.go index 831b23919..873e43dca 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportFile4_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportFile4_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportFile4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|let t: A/*0*/.B.I;|] // @Filename: ./module.ts diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileAllComments_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileAllComments_test.go index 4e4427840..40e8a5fe5 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileAllComments_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileAllComments_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportFileAllComments(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|/*! * This is a license or something diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileDetachedComments_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileDetachedComments_test.go index 68d405336..2e175550d 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileDetachedComments_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileDetachedComments_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportFileDetachedComments(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|/** * This is a comment intended to be attached to this interface diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileQuoteStyle0_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileQuoteStyle0_test.go index b57966624..5de1b8645 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileQuoteStyle0_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileQuoteStyle0_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportFileQuoteStyle0(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|import { v2 } from './module2'; diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileQuoteStyle1_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileQuoteStyle1_test.go index f0afc606d..fa0592f11 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileQuoteStyle1_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileQuoteStyle1_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportFileQuoteStyle1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|import { v2 } from "./module2"; diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileQuoteStyle2_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileQuoteStyle2_test.go index e4d8fdc5d..fccdbd423 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileQuoteStyle2_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileQuoteStyle2_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportFileQuoteStyle2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|import m2 = require('./module2'); diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileQuoteStyle3_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileQuoteStyle3_test.go index 9c6f55060..5f4883770 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileQuoteStyle3_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileQuoteStyle3_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportFileQuoteStyle3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|export { v2 } from './module2'; diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileQuoteStyleMixed0_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileQuoteStyleMixed0_test.go index 0eedc8c49..eadefa593 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileQuoteStyleMixed0_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileQuoteStyleMixed0_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportFileQuoteStyleMixed0(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|import { v2 } from "./module2"; import { v3 } from './module3'; diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileQuoteStyleMixed1_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileQuoteStyleMixed1_test.go index 0ad43e45a..5accab484 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileQuoteStyleMixed1_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportFileQuoteStyleMixed1_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportFileQuoteStyleMixed1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|import { v2 } from './module2'; import { v3 } from "./module3"; diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportFromAtTypesScopedPackage_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportFromAtTypesScopedPackage_test.go index 81077cc5f..4bf1bf14a 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportFromAtTypesScopedPackage_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportFromAtTypesScopedPackage_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportFromAtTypesScopedPackage(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|f1/*0*/();|] // @Filename: node_modules/@types/myLib__scoped/index.d.ts diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportFromAtTypes_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportFromAtTypes_test.go index 284f2340c..c05598917 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportFromAtTypes_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportFromAtTypes_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportFromAtTypes(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|f1/*0*/();|] // @Filename: node_modules/@types/myLib/index.d.ts diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportIndex_notForClassicResolution_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportIndex_notForClassicResolution_test.go index bd517e40c..807e1cf58 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportIndex_notForClassicResolution_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportIndex_notForClassicResolution_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportIndex_notForClassicResolution(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @moduleResolution: classic // @Filename: /a/index.ts diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportIndex_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportIndex_test.go index 18830b5cd..ff01c7e0f 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportIndex_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportIndex_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportIndex(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a/index.ts export const foo = 0; diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules0_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules0_test.go index 1f4c42be3..58b8ffb75 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules0_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules0_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportNodeModules0(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|f1/*0*/();|] // @Filename: ../package.json diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules1_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules1_test.go index f4102585b..e109ec5c9 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules1_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules1_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportNodeModules1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|f1/*0*/();|] // @Filename: ../package.json diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules2_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules2_test.go index 8513657b2..70ccc2a84 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules2_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules2_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportNodeModules2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|f1/*0*/();|] // @Filename: ../package.json diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules3_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules3_test.go index 5959d1119..94a5e698d 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules3_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules3_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportNodeModules3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts [|f1/*0*/();|] diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules4_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules4_test.go index 0be89eac5..59b3300aa 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules4_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules4_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportNodeModules4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|f1/*0*/('');|] // @Filename: package.json diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules6_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules6_test.go index 021f38fa5..507d02474 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules6_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules6_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportNodeModules6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|f1/*0*/('');|] // @Filename: package.json diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules7_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules7_test.go index 896d5610b..1b2d36d2b 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules7_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules7_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportNodeModules7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|f1/*0*/('');|] // @Filename: package.json diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules8_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules8_test.go index 4059b84ca..ff77cf876 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules8_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportNodeModules8_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportNodeModules8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|f1/*0*/('');|] // @Filename: package.json diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportPaths0_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportPaths0_test.go index 5e655511e..420e9ee00 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportPaths0_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportPaths0_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportPaths0(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|foo/*0*/();|] // @Filename: folder_a/f2.ts diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportPaths1_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportPaths1_test.go index 92f441805..6f00c97bb 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportPaths1_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportPaths1_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportPaths1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|foo/*0*/();|] // @Filename: folder_b/f2.ts diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportPaths2_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportPaths2_test.go index 71749e51d..c659d6d22 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportPaths2_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportPaths2_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportPaths2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|foo/*0*/();|] // @Filename: folder_b/index.ts diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportPaths_withExtension_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportPaths_withExtension_test.go index 9142cc8f6..cfe1660df 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportPaths_withExtension_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportPaths_withExtension_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportPaths_withExtension(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /src/a.ts [|foo|] diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportPaths_withLeadingDotSlash_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportPaths_withLeadingDotSlash_test.go index 2a7d6d8fb..3e39bfcff 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportPaths_withLeadingDotSlash_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportPaths_withLeadingDotSlash_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportPaths_withLeadingDotSlash(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts [|foo|] diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportPaths_withParentRelativePath_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportPaths_withParentRelativePath_test.go index 46dad9038..179f7d510 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportPaths_withParentRelativePath_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportPaths_withParentRelativePath_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportPaths_withParentRelativePath(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /src/a.ts [|foo|] diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportRootDirs0_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportRootDirs0_test.go index 6491d7e20..610c3344b 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportRootDirs0_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportRootDirs0_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportRootDirs0(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a/f1.ts [|foo/*0*/();|] diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportRootDirs1_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportRootDirs1_test.go index 2f1e4875a..481220ffc 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportRootDirs1_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportRootDirs1_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportRootDirs1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a/f1.ts [|foo/*0*/();|] diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportTypeRoots0_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportTypeRoots0_test.go index a21f2048b..4a4802742 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportTypeRoots0_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportTypeRoots0_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportTypeRoots0(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a/f1.ts [|foo/*0*/();|] diff --git a/pkg/fourslash/tests/gen/importNameCodeFixNewImportTypeRoots1_test.go b/pkg/fourslash/tests/gen/importNameCodeFixNewImportTypeRoots1_test.go index 7e2cb402f..3b69b8fff 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixNewImportTypeRoots1_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixNewImportTypeRoots1_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixNewImportTypeRoots1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a/f1.ts [|foo/*0*/();|] diff --git a/pkg/fourslash/tests/gen/importNameCodeFixOptionalImport0_test.go b/pkg/fourslash/tests/gen/importNameCodeFixOptionalImport0_test.go index 79ce72f77..d65f5c0ff 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixOptionalImport0_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixOptionalImport0_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixOptionalImport0(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a/f1.ts [|import * as ns from "./foo"; diff --git a/pkg/fourslash/tests/gen/importNameCodeFixOptionalImport1_test.go b/pkg/fourslash/tests/gen/importNameCodeFixOptionalImport1_test.go index 8baae7c00..b3098eefa 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixOptionalImport1_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixOptionalImport1_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixOptionalImport1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a/f1.ts [|foo/*0*/();|] diff --git a/pkg/fourslash/tests/gen/importNameCodeFixShebang_test.go b/pkg/fourslash/tests/gen/importNameCodeFixShebang_test.go index 79d5cdf27..31638616a 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixShebang_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixShebang_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixShebang(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export const foo = 0; diff --git a/pkg/fourslash/tests/gen/importNameCodeFixUMDGlobal0_test.go b/pkg/fourslash/tests/gen/importNameCodeFixUMDGlobal0_test.go index d11991302..a3dd9f720 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixUMDGlobal0_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixUMDGlobal0_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixUMDGlobal0(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @AllowSyntheticDefaultImports: false // @Module: es2015 diff --git a/pkg/fourslash/tests/gen/importNameCodeFixUMDGlobal1_test.go b/pkg/fourslash/tests/gen/importNameCodeFixUMDGlobal1_test.go index da01b58ee..c9113e7d6 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixUMDGlobal1_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixUMDGlobal1_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixUMDGlobal1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @AllowSyntheticDefaultImports: false // @Module: esnext diff --git a/pkg/fourslash/tests/gen/importNameCodeFixUMDGlobalJavaScript_test.go b/pkg/fourslash/tests/gen/importNameCodeFixUMDGlobalJavaScript_test.go index 42130b1d1..c312560d3 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixUMDGlobalJavaScript_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixUMDGlobalJavaScript_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixUMDGlobalJavaScript(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @AllowSyntheticDefaultImports: false // @Module: commonjs diff --git a/pkg/fourslash/tests/gen/importNameCodeFixUMDGlobalReact0_test.go b/pkg/fourslash/tests/gen/importNameCodeFixUMDGlobalReact0_test.go index 08ae6d5ac..1ecc06342 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixUMDGlobalReact0_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixUMDGlobalReact0_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixUMDGlobalReact0(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @jsx: react // @allowSyntheticDefaultImports: false diff --git a/pkg/fourslash/tests/gen/importNameCodeFixUMDGlobalReact1_test.go b/pkg/fourslash/tests/gen/importNameCodeFixUMDGlobalReact1_test.go index 359bef4ac..64b97c959 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixUMDGlobalReact1_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixUMDGlobalReact1_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixUMDGlobalReact1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @jsx: react // @allowSyntheticDefaultImports: false diff --git a/pkg/fourslash/tests/gen/importNameCodeFixUMDGlobalReact2_test.go b/pkg/fourslash/tests/gen/importNameCodeFixUMDGlobalReact2_test.go index 357def88b..6b28e9074 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFixUMDGlobalReact2_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFixUMDGlobalReact2_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFixUMDGlobalReact2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @jsx: react // @jsxFactory: factory diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_HeaderComment1_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_HeaderComment1_test.go index fbb569433..c5c1ea8cc 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_HeaderComment1_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_HeaderComment1_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_HeaderComment1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export const foo = 0; diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_HeaderComment2_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_HeaderComment2_test.go index 8ee27f591..26dbae903 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_HeaderComment2_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_HeaderComment2_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_HeaderComment2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export const foo = 0; diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_avoidRelativeNodeModules_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_avoidRelativeNodeModules_test.go index 7e2dbcb0e..b9b768348 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_avoidRelativeNodeModules_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_avoidRelativeNodeModules_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_avoidRelativeNodeModules(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a/index.d.ts // @Symlink: /b/node_modules/a/index.d.ts diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_barrelExport2_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_barrelExport2_test.go index bc793d18a..d2d535d4a 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_barrelExport2_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_barrelExport2_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportNameCodeFix_barrelExport2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @baseUrl: / diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_barrelExport3_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_barrelExport3_test.go index c3a1f3042..03ed89e84 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_barrelExport3_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_barrelExport3_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportNameCodeFix_barrelExport3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @Filename: /foo/a.ts diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_barrelExport4_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_barrelExport4_test.go index fb411e767..6704d26ba 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_barrelExport4_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_barrelExport4_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_barrelExport4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: preserve // @moduleResolution: bundler diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_barrelExport5_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_barrelExport5_test.go index 2d65ce685..e986e0050 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_barrelExport5_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_barrelExport5_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_barrelExport5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_barrelExport_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_barrelExport_test.go index 1f1a35ee3..79745d915 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_barrelExport_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_barrelExport_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_barrelExport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @Filename: /foo/a.ts diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_commonjs_allowSynthetic_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_commonjs_allowSynthetic_test.go index 690406a1b..0e837d8a0 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_commonjs_allowSynthetic_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_commonjs_allowSynthetic_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_commonjs_allowSynthetic(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @moduleResolution: bundler diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_defaultExport_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_defaultExport_test.go index 83484a19e..72c960bc4 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_defaultExport_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_defaultExport_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_defaultExport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @allowJs: true diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_dollar_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_dollar_test.go index d91964210..f10cd2b14 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_dollar_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_dollar_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_dollar(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @moduleResolution: bundler diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_fileWithNoTrailingNewline_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_fileWithNoTrailingNewline_test.go index 0f7db008b..169d773d9 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_fileWithNoTrailingNewline_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_fileWithNoTrailingNewline_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_fileWithNoTrailingNewline(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export const foo = 0; diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_fromPathMapping_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_fromPathMapping_test.go index 644923b09..752585db2 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_fromPathMapping_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_fromPathMapping_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_fromPathMapping(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export const foo = 0; diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_getCanonicalFileName_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_getCanonicalFileName_test.go index 9718f8b4b..201e4dcdc 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_getCanonicalFileName_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_getCanonicalFileName_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_getCanonicalFileName(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /howNow/node_modules/brownCow/index.d.ts export const foo: number; diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_importType1_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_importType1_test.go index 71bed0d9e..eb090fec1 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_importType1_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_importType1_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_importType1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @verbatimModuleSyntax: true // @module: es2015 diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_importType2_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_importType2_test.go index 189735b52..626ba06e3 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_importType2_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_importType2_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_importType2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @verbatimModuleSyntax: true // @module: es2015 diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_importType3_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_importType3_test.go index f98d937a2..76a9d1992 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_importType3_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_importType3_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_importType3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @verbatimModuleSyntax: true // @module: es2015 diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_importType4_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_importType4_test.go index 7d6922ee9..927a3e361 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_importType4_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_importType4_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_importType4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @preserveValueImports: true // @isolatedModules: true diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_importType5_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_importType5_test.go index bb559dbc1..61f95e960 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_importType5_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_importType5_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_importType5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: es2015 // @Filename: /exports.ts diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_importType6_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_importType6_test.go index 228f92773..07f3b7b49 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_importType6_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_importType6_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_importType6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: es2015 // @esModuleInterop: true diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_importType7_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_importType7_test.go index f8bfe638e..b2413f1cc 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_importType7_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_importType7_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_importType7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: es2015 // @Filename: /exports.ts diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_importType8_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_importType8_test.go index 976dccd30..3f32a7ef2 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_importType8_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_importType8_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_importType8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: es2015 // @verbatimModuleSyntax: true diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_importType_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_importType_test.go index 44e5dd278..a3f770033 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_importType_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_importType_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_importType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_jsCJSvsESM1_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_jsCJSvsESM1_test.go index 32ad16467..64f2ae294 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_jsCJSvsESM1_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_jsCJSvsESM1_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_jsCJSvsESM1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_jsCJSvsESM2_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_jsCJSvsESM2_test.go index f3e863d3b..c29462e00 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_jsCJSvsESM2_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_jsCJSvsESM2_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_jsCJSvsESM2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_jsCJSvsESM3_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_jsCJSvsESM3_test.go index f1d5fa5d8..7c8393a55 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_jsCJSvsESM3_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_jsCJSvsESM3_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_jsCJSvsESM3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_jsx1_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_jsx1_test.go index c4198335c..7f94901c6 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_jsx1_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_jsx1_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_jsx1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @jsx: react // @Filename: /node_modules/react/index.d.ts diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_jsxOpeningTagImportDefault_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_jsxOpeningTagImportDefault_test.go index 7cc4209c9..58711ffbd 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_jsxOpeningTagImportDefault_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_jsxOpeningTagImportDefault_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_jsxOpeningTagImportDefault(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @jsx: react-jsx diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_jsxReact17_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_jsxReact17_test.go index 79ca6dadd..a3136ff00 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_jsxReact17_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_jsxReact17_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_jsxReact17(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @jsx: preserve // @module: commonjs diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_noDestructureNonObjectLiteral_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_noDestructureNonObjectLiteral_test.go index 313bee756..cf2e2abc6 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_noDestructureNonObjectLiteral_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_noDestructureNonObjectLiteral_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_noDestructureNonObjectLiteral(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @target: es2015 // @strict: true diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_order2_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_order2_test.go index 8f4e8075f..0db3fe1f1 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_order2_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_order2_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_order2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export const _aB: number; diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_order_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_order_test.go index d550ca709..745c2730b 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_order_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_order_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_order(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export const foo: number; diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_pathsWithExtension_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_pathsWithExtension_test.go index 3d9c093c4..d638bde90 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_pathsWithExtension_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_pathsWithExtension_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportNameCodeFix_pathsWithExtension(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /tsconfig.json { diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_pathsWithoutBaseUrl1_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_pathsWithoutBaseUrl1_test.go index c150f1bfc..238904313 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_pathsWithoutBaseUrl1_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_pathsWithoutBaseUrl1_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_pathsWithoutBaseUrl1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tsconfig.json { diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_pathsWithoutBaseUrl2_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_pathsWithoutBaseUrl2_test.go index 9bf8ffc16..c00ac43f1 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_pathsWithoutBaseUrl2_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_pathsWithoutBaseUrl2_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_pathsWithoutBaseUrl2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /packages/test-package-1/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_pnpm1_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_pnpm1_test.go index 47d12ad3f..1f31987a5 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_pnpm1_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_pnpm1_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_pnpm1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { "compilerOptions": { "module": "commonjs" } } diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_preferBaseUrl_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_preferBaseUrl_test.go index c9219bcc5..3dfc8847d 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_preferBaseUrl_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_preferBaseUrl_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_preferBaseUrl(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /tsconfig.json { "compilerOptions": { "baseUrl": "./src" } } diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_quoteStyle_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_quoteStyle_test.go index 3b67b045e..e2f8facd0 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_quoteStyle_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_quoteStyle_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportNameCodeFix_quoteStyle(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export const foo: number; diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_reExportDefault_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_reExportDefault_test.go index c2da121cf..20583e296 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_reExportDefault_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_reExportDefault_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_reExportDefault(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /user.ts foo; diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_reExport_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_reExport_test.go index 8375b8657..110af1052 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_reExport_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_reExport_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_reExport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export default function foo(): void {} diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_shorthandPropertyAssignment1_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_shorthandPropertyAssignment1_test.go index 398084416..8d09a2ded 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_shorthandPropertyAssignment1_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_shorthandPropertyAssignment1_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_shorthandPropertyAssignment1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export const a = 1; diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_shorthandPropertyAssignment2_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_shorthandPropertyAssignment2_test.go index bbecc272c..e5a378f57 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_shorthandPropertyAssignment2_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_shorthandPropertyAssignment2_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_shorthandPropertyAssignment2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts const a = 1; diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_sortByDistance_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_sortByDistance_test.go index 201154eb6..4717b5d6a 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_sortByDistance_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_sortByDistance_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_sortByDistance(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @Filename: /src/admin/utils/db/db.ts diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_symlink_own_package_2_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_symlink_own_package_2_test.go index 7b2638002..22a35ec26 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_symlink_own_package_2_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_symlink_own_package_2_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_symlink_own_package_2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /packages/a/test.ts // @Symlink: /node_modules/a/test.ts diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_symlink_own_package_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_symlink_own_package_test.go index 5f2d5f98c..6bf2d6c2f 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_symlink_own_package_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_symlink_own_package_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_symlink_own_package(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /packages/b/b0.ts // @Symlink: /node_modules/b/b0.ts diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_symlink_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_symlink_test.go index c53999865..3531a986a 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_symlink_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_symlink_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_symlink(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @moduleResolution: bundler // @noLib: true diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_trailingComma_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_trailingComma_test.go index 28fb45d0d..52dd8a078 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_trailingComma_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_trailingComma_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_trailingComma(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: index.ts import { diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_tripleSlashOrdering_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_tripleSlashOrdering_test.go index f19fc272b..d9d5e8afd 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_tripleSlashOrdering_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_tripleSlashOrdering_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_tripleSlashOrdering(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /tsconfig.json { diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_typeOnly_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_typeOnly_test.go index aeaa9fa7c..ecc808461 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_typeOnly_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_typeOnly_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_typeOnly(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @verbatimModuleSyntax: true diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_typeUsedAsValue_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_typeUsedAsValue_test.go index 418538224..d9a6b244d 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_typeUsedAsValue_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_typeUsedAsValue_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_typeUsedAsValue(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export class ReadonlyArray {} diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_typesVersions_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_typesVersions_test.go index b7b647a0d..32f2ddd3a 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_typesVersions_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_typesVersions_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportNameCodeFix_typesVersions(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @checkJs: true diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_uriStyleNodeCoreModules1_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_uriStyleNodeCoreModules1_test.go index ab8446b94..3158904c8 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_uriStyleNodeCoreModules1_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_uriStyleNodeCoreModules1_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_uriStyleNodeCoreModules1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @Filename: /node_modules/@types/node/index.d.ts diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_uriStyleNodeCoreModules2_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_uriStyleNodeCoreModules2_test.go index f067d93c1..2593540b7 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_uriStyleNodeCoreModules2_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_uriStyleNodeCoreModules2_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_uriStyleNodeCoreModules2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @Filename: /node_modules/@types/node/index.d.ts diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_uriStyleNodeCoreModules3_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_uriStyleNodeCoreModules3_test.go index b549a3882..806e44ef5 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_uriStyleNodeCoreModules3_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_uriStyleNodeCoreModules3_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_uriStyleNodeCoreModules3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @Filename: /node_modules/@types/node/index.d.ts diff --git a/pkg/fourslash/tests/gen/importNameCodeFix_withJson_test.go b/pkg/fourslash/tests/gen/importNameCodeFix_withJson_test.go index fd789d390..7fe2e25de 100644 --- a/pkg/fourslash/tests/gen/importNameCodeFix_withJson_test.go +++ b/pkg/fourslash/tests/gen/importNameCodeFix_withJson_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportNameCodeFix_withJson(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export const a = 'a'; diff --git a/pkg/fourslash/tests/gen/importStatementCompletions4_test.go b/pkg/fourslash/tests/gen/importStatementCompletions4_test.go index 6cc3d44d3..135973f35 100644 --- a/pkg/fourslash/tests/gen/importStatementCompletions4_test.go +++ b/pkg/fourslash/tests/gen/importStatementCompletions4_test.go @@ -11,8 +11,8 @@ import ( ) func TestImportStatementCompletions4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/importStatementCompletions_noPatternAmbient_test.go b/pkg/fourslash/tests/gen/importStatementCompletions_noPatternAmbient_test.go index cae143f32..a7a075130 100644 --- a/pkg/fourslash/tests/gen/importStatementCompletions_noPatternAmbient_test.go +++ b/pkg/fourslash/tests/gen/importStatementCompletions_noPatternAmbient_test.go @@ -11,8 +11,8 @@ import ( ) func TestImportStatementCompletions_noPatternAmbient(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /types.d.ts declare module "*.css" { diff --git a/pkg/fourslash/tests/gen/importStatementCompletions_pnpmTransitive_test.go b/pkg/fourslash/tests/gen/importStatementCompletions_pnpmTransitive_test.go index 720dc4b99..9c6b80aba 100644 --- a/pkg/fourslash/tests/gen/importStatementCompletions_pnpmTransitive_test.go +++ b/pkg/fourslash/tests/gen/importStatementCompletions_pnpmTransitive_test.go @@ -11,8 +11,8 @@ import ( ) func TestImportStatementCompletions_pnpmTransitive(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { "compilerOptions": { "module": "commonjs" } } diff --git a/pkg/fourslash/tests/gen/importSuggestionsCache_exportUndefined_test.go b/pkg/fourslash/tests/gen/importSuggestionsCache_exportUndefined_test.go index 28d651d23..670df0c5d 100644 --- a/pkg/fourslash/tests/gen/importSuggestionsCache_exportUndefined_test.go +++ b/pkg/fourslash/tests/gen/importSuggestionsCache_exportUndefined_test.go @@ -11,8 +11,8 @@ import ( ) func TestImportSuggestionsCache_exportUndefined(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { "compilerOptions": { "module": "esnext" } } diff --git a/pkg/fourslash/tests/gen/importSuggestionsCache_invalidPackageJson_test.go b/pkg/fourslash/tests/gen/importSuggestionsCache_invalidPackageJson_test.go index ba1149154..d73bd0141 100644 --- a/pkg/fourslash/tests/gen/importSuggestionsCache_invalidPackageJson_test.go +++ b/pkg/fourslash/tests/gen/importSuggestionsCache_invalidPackageJson_test.go @@ -11,8 +11,8 @@ import ( ) func TestImportSuggestionsCache_invalidPackageJson(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/jsconfig.json { diff --git a/pkg/fourslash/tests/gen/importTypeCompletions1_test.go b/pkg/fourslash/tests/gen/importTypeCompletions1_test.go index 01f4456f1..eed626b8c 100644 --- a/pkg/fourslash/tests/gen/importTypeCompletions1_test.go +++ b/pkg/fourslash/tests/gen/importTypeCompletions1_test.go @@ -10,8 +10,8 @@ import ( ) func TestImportTypeCompletions1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @target: esnext // @filename: /foo.ts diff --git a/pkg/fourslash/tests/gen/importTypeCompletions2_test.go b/pkg/fourslash/tests/gen/importTypeCompletions2_test.go index f6feae28d..9d8a60477 100644 --- a/pkg/fourslash/tests/gen/importTypeCompletions2_test.go +++ b/pkg/fourslash/tests/gen/importTypeCompletions2_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportTypeCompletions2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @target: esnext // @filename: /foo.ts diff --git a/pkg/fourslash/tests/gen/importTypeCompletions3_test.go b/pkg/fourslash/tests/gen/importTypeCompletions3_test.go index effac0081..0730ea8b3 100644 --- a/pkg/fourslash/tests/gen/importTypeCompletions3_test.go +++ b/pkg/fourslash/tests/gen/importTypeCompletions3_test.go @@ -10,8 +10,8 @@ import ( ) func TestImportTypeCompletions3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @target: esnext // @filename: /foo.ts diff --git a/pkg/fourslash/tests/gen/importTypeCompletions4_test.go b/pkg/fourslash/tests/gen/importTypeCompletions4_test.go index 53eedb169..5f088a2f1 100644 --- a/pkg/fourslash/tests/gen/importTypeCompletions4_test.go +++ b/pkg/fourslash/tests/gen/importTypeCompletions4_test.go @@ -10,8 +10,8 @@ import ( ) func TestImportTypeCompletions4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @esModuleInterop: true // @Filename: /foo.ts diff --git a/pkg/fourslash/tests/gen/importTypeCompletions5_test.go b/pkg/fourslash/tests/gen/importTypeCompletions5_test.go index 0f3ed00c8..8ae6d8115 100644 --- a/pkg/fourslash/tests/gen/importTypeCompletions5_test.go +++ b/pkg/fourslash/tests/gen/importTypeCompletions5_test.go @@ -10,8 +10,8 @@ import ( ) func TestImportTypeCompletions5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowSyntheticDefaultImports: false // @esModuleInterop: false diff --git a/pkg/fourslash/tests/gen/importTypeCompletions6_test.go b/pkg/fourslash/tests/gen/importTypeCompletions6_test.go index 0c7153922..0cb4a3880 100644 --- a/pkg/fourslash/tests/gen/importTypeCompletions6_test.go +++ b/pkg/fourslash/tests/gen/importTypeCompletions6_test.go @@ -10,8 +10,8 @@ import ( ) func TestImportTypeCompletions6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @Filename: /foo.ts diff --git a/pkg/fourslash/tests/gen/importTypeCompletions7_test.go b/pkg/fourslash/tests/gen/importTypeCompletions7_test.go index c2253a6c0..ce75910c8 100644 --- a/pkg/fourslash/tests/gen/importTypeCompletions7_test.go +++ b/pkg/fourslash/tests/gen/importTypeCompletions7_test.go @@ -11,8 +11,8 @@ import ( ) func TestImportTypeCompletions7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @target: es2020 // @module: esnext diff --git a/pkg/fourslash/tests/gen/importTypeCompletions8_test.go b/pkg/fourslash/tests/gen/importTypeCompletions8_test.go index 43ecd679b..9d67aeac8 100644 --- a/pkg/fourslash/tests/gen/importTypeCompletions8_test.go +++ b/pkg/fourslash/tests/gen/importTypeCompletions8_test.go @@ -10,8 +10,8 @@ import ( ) func TestImportTypeCompletions8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @target: esnext // @filename: /foo.ts diff --git a/pkg/fourslash/tests/gen/importTypeCompletions9_test.go b/pkg/fourslash/tests/gen/importTypeCompletions9_test.go index 9bb39694e..88647df6a 100644 --- a/pkg/fourslash/tests/gen/importTypeCompletions9_test.go +++ b/pkg/fourslash/tests/gen/importTypeCompletions9_test.go @@ -10,8 +10,8 @@ import ( ) func TestImportTypeCompletions9(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @target: esnext // @filename: /foo.ts diff --git a/pkg/fourslash/tests/gen/importTypeMemberCompletions_test.go b/pkg/fourslash/tests/gen/importTypeMemberCompletions_test.go index 1a88b8392..3256b25b2 100644 --- a/pkg/fourslash/tests/gen/importTypeMemberCompletions_test.go +++ b/pkg/fourslash/tests/gen/importTypeMemberCompletions_test.go @@ -9,8 +9,8 @@ import ( ) func TestImportTypeMemberCompletions(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /ns.ts export namespace Foo { diff --git a/pkg/fourslash/tests/gen/importTypeNodeGoToDefinition_test.go b/pkg/fourslash/tests/gen/importTypeNodeGoToDefinition_test.go index 17176ce50..b012f5ae1 100644 --- a/pkg/fourslash/tests/gen/importTypeNodeGoToDefinition_test.go +++ b/pkg/fourslash/tests/gen/importTypeNodeGoToDefinition_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportTypeNodeGoToDefinition(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /ns.ts /*refFile*/export namespace /*refFoo*/Foo { diff --git a/pkg/fourslash/tests/gen/importTypesDeclarationDiagnosticsNoServerError_test.go b/pkg/fourslash/tests/gen/importTypesDeclarationDiagnosticsNoServerError_test.go index cdc4c0bf0..93f417fb0 100644 --- a/pkg/fourslash/tests/gen/importTypesDeclarationDiagnosticsNoServerError_test.go +++ b/pkg/fourslash/tests/gen/importTypesDeclarationDiagnosticsNoServerError_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportTypesDeclarationDiagnosticsNoServerError(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @declaration: true // @Filename: node_modules/foo/index.d.ts diff --git a/pkg/fourslash/tests/gen/importValueUsedAsType_test.go b/pkg/fourslash/tests/gen/importValueUsedAsType_test.go index 390f24220..ebfa2c626 100644 --- a/pkg/fourslash/tests/gen/importValueUsedAsType_test.go +++ b/pkg/fourslash/tests/gen/importValueUsedAsType_test.go @@ -8,8 +8,8 @@ import ( ) func TestImportValueUsedAsType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/**/ module A { diff --git a/pkg/fourslash/tests/gen/incompatibleOverride_test.go b/pkg/fourslash/tests/gen/incompatibleOverride_test.go index 55f9a8bd2..2e98e8125 100644 --- a/pkg/fourslash/tests/gen/incompatibleOverride_test.go +++ b/pkg/fourslash/tests/gen/incompatibleOverride_test.go @@ -8,8 +8,8 @@ import ( ) func TestIncompatibleOverride(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { xyz: string; } class Bar extends Foo { /*1*/xyz/*2*/: number = 1; } diff --git a/pkg/fourslash/tests/gen/incrementalEditInvocationExpressionAboveInterfaceDeclaration_test.go b/pkg/fourslash/tests/gen/incrementalEditInvocationExpressionAboveInterfaceDeclaration_test.go index ad2d69e65..8f680cdc0 100644 --- a/pkg/fourslash/tests/gen/incrementalEditInvocationExpressionAboveInterfaceDeclaration_test.go +++ b/pkg/fourslash/tests/gen/incrementalEditInvocationExpressionAboveInterfaceDeclaration_test.go @@ -8,8 +8,8 @@ import ( ) func TestIncrementalEditInvocationExpressionAboveInterfaceDeclaration(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function alert(message?: any): void; /*1*/ diff --git a/pkg/fourslash/tests/gen/incrementalParsingDynamicImport1_test.go b/pkg/fourslash/tests/gen/incrementalParsingDynamicImport1_test.go index 5da1ec517..95a078544 100644 --- a/pkg/fourslash/tests/gen/incrementalParsingDynamicImport1_test.go +++ b/pkg/fourslash/tests/gen/incrementalParsingDynamicImport1_test.go @@ -8,8 +8,8 @@ import ( ) func TestIncrementalParsingDynamicImport1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @lib: es6 // @Filename: ./foo.ts diff --git a/pkg/fourslash/tests/gen/incrementalParsingDynamicImport2_test.go b/pkg/fourslash/tests/gen/incrementalParsingDynamicImport2_test.go index c8f583484..b5e09c363 100644 --- a/pkg/fourslash/tests/gen/incrementalParsingDynamicImport2_test.go +++ b/pkg/fourslash/tests/gen/incrementalParsingDynamicImport2_test.go @@ -8,8 +8,8 @@ import ( ) func TestIncrementalParsingDynamicImport2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @lib: es2015 // @Filename: ./foo.ts diff --git a/pkg/fourslash/tests/gen/incrementalParsingDynamicImport3_test.go b/pkg/fourslash/tests/gen/incrementalParsingDynamicImport3_test.go index 92bb9e86f..6877e312c 100644 --- a/pkg/fourslash/tests/gen/incrementalParsingDynamicImport3_test.go +++ b/pkg/fourslash/tests/gen/incrementalParsingDynamicImport3_test.go @@ -8,8 +8,8 @@ import ( ) func TestIncrementalParsingDynamicImport3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @lib: es2015 // @Filename: ./foo.ts diff --git a/pkg/fourslash/tests/gen/incrementalParsingDynamicImport4_test.go b/pkg/fourslash/tests/gen/incrementalParsingDynamicImport4_test.go index 86f567a1a..58a2dba1b 100644 --- a/pkg/fourslash/tests/gen/incrementalParsingDynamicImport4_test.go +++ b/pkg/fourslash/tests/gen/incrementalParsingDynamicImport4_test.go @@ -8,8 +8,8 @@ import ( ) func TestIncrementalParsingDynamicImport4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @lib: es2015 // @Filename: ./foo.ts diff --git a/pkg/fourslash/tests/gen/incrementalParsingInsertIntoMethod1_test.go b/pkg/fourslash/tests/gen/incrementalParsingInsertIntoMethod1_test.go index 2ad4e98f4..9972e8437 100644 --- a/pkg/fourslash/tests/gen/incrementalParsingInsertIntoMethod1_test.go +++ b/pkg/fourslash/tests/gen/incrementalParsingInsertIntoMethod1_test.go @@ -8,8 +8,8 @@ import ( ) func TestIncrementalParsingInsertIntoMethod1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { public foo1() { } diff --git a/pkg/fourslash/tests/gen/incrementalParsingTopLevelAwait1_test.go b/pkg/fourslash/tests/gen/incrementalParsingTopLevelAwait1_test.go index dfb4fecd4..2b4f17aad 100644 --- a/pkg/fourslash/tests/gen/incrementalParsingTopLevelAwait1_test.go +++ b/pkg/fourslash/tests/gen/incrementalParsingTopLevelAwait1_test.go @@ -8,8 +8,8 @@ import ( ) func TestIncrementalParsingTopLevelAwait1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @target: esnext // @module: esnext diff --git a/pkg/fourslash/tests/gen/incrementalParsingTopLevelAwait2_test.go b/pkg/fourslash/tests/gen/incrementalParsingTopLevelAwait2_test.go index 4a9077a61..864c430aa 100644 --- a/pkg/fourslash/tests/gen/incrementalParsingTopLevelAwait2_test.go +++ b/pkg/fourslash/tests/gen/incrementalParsingTopLevelAwait2_test.go @@ -8,8 +8,8 @@ import ( ) func TestIncrementalParsingTopLevelAwait2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @target: esnext // @module: esnext diff --git a/pkg/fourslash/tests/gen/incrementalResolveAccessor_test.go b/pkg/fourslash/tests/gen/incrementalResolveAccessor_test.go index 1ef36c82d..4873350ca 100644 --- a/pkg/fourslash/tests/gen/incrementalResolveAccessor_test.go +++ b/pkg/fourslash/tests/gen/incrementalResolveAccessor_test.go @@ -8,8 +8,8 @@ import ( ) func TestIncrementalResolveAccessor(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class c1 { get p1(): string { diff --git a/pkg/fourslash/tests/gen/incrementalResolveConstructorDeclaration_test.go b/pkg/fourslash/tests/gen/incrementalResolveConstructorDeclaration_test.go index b936b0dda..02e53d272 100644 --- a/pkg/fourslash/tests/gen/incrementalResolveConstructorDeclaration_test.go +++ b/pkg/fourslash/tests/gen/incrementalResolveConstructorDeclaration_test.go @@ -8,8 +8,8 @@ import ( ) func TestIncrementalResolveConstructorDeclaration(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class c1 { private b: number; diff --git a/pkg/fourslash/tests/gen/incrementalResolveFunctionPropertyAssignment_test.go b/pkg/fourslash/tests/gen/incrementalResolveFunctionPropertyAssignment_test.go index 023def6ae..09688b3b5 100644 --- a/pkg/fourslash/tests/gen/incrementalResolveFunctionPropertyAssignment_test.go +++ b/pkg/fourslash/tests/gen/incrementalResolveFunctionPropertyAssignment_test.go @@ -8,8 +8,8 @@ import ( ) func TestIncrementalResolveFunctionPropertyAssignment(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function bar(indexer: { getLength(): number; getTypeAtIndex(index: number): string; }): string { return indexer.getTypeAtIndex(indexer.getLength() - 1); diff --git a/pkg/fourslash/tests/gen/incrementalUpdateToClassImplementingGenericClass_test.go b/pkg/fourslash/tests/gen/incrementalUpdateToClassImplementingGenericClass_test.go index e96dc1590..7be5a1bd5 100644 --- a/pkg/fourslash/tests/gen/incrementalUpdateToClassImplementingGenericClass_test.go +++ b/pkg/fourslash/tests/gen/incrementalUpdateToClassImplementingGenericClass_test.go @@ -8,8 +8,8 @@ import ( ) func TestIncrementalUpdateToClassImplementingGenericClass(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function alert(message?: string): void; class Animal { diff --git a/pkg/fourslash/tests/gen/indentAfterFunctionClosingBraces_test.go b/pkg/fourslash/tests/gen/indentAfterFunctionClosingBraces_test.go index 476aec5ce..ec193b743 100644 --- a/pkg/fourslash/tests/gen/indentAfterFunctionClosingBraces_test.go +++ b/pkg/fourslash/tests/gen/indentAfterFunctionClosingBraces_test.go @@ -8,8 +8,8 @@ import ( ) func TestIndentAfterFunctionClosingBraces(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class foo { public f() { diff --git a/pkg/fourslash/tests/gen/indexSignatureWithoutAnnotation_test.go b/pkg/fourslash/tests/gen/indexSignatureWithoutAnnotation_test.go index 215dfb7cc..c106cdaed 100644 --- a/pkg/fourslash/tests/gen/indexSignatureWithoutAnnotation_test.go +++ b/pkg/fourslash/tests/gen/indexSignatureWithoutAnnotation_test.go @@ -8,8 +8,8 @@ import ( ) func TestIndexSignatureWithoutAnnotation(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface B { 1: any; diff --git a/pkg/fourslash/tests/gen/indexerReturnTypes1_test.go b/pkg/fourslash/tests/gen/indexerReturnTypes1_test.go index 1e52bddc3..ce374215a 100644 --- a/pkg/fourslash/tests/gen/indexerReturnTypes1_test.go +++ b/pkg/fourslash/tests/gen/indexerReturnTypes1_test.go @@ -8,8 +8,8 @@ import ( ) func TestIndexerReturnTypes1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Numeric { [x: number]: Date; diff --git a/pkg/fourslash/tests/gen/indirectClassInstantiation_test.go b/pkg/fourslash/tests/gen/indirectClassInstantiation_test.go index 2649bc079..72a41d2ec 100644 --- a/pkg/fourslash/tests/gen/indirectClassInstantiation_test.go +++ b/pkg/fourslash/tests/gen/indirectClassInstantiation_test.go @@ -11,8 +11,8 @@ import ( ) func TestIndirectClassInstantiation(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: something.js diff --git a/pkg/fourslash/tests/gen/indirectJsRequireRename_test.go b/pkg/fourslash/tests/gen/indirectJsRequireRename_test.go index 96b104978..9ee12b797 100644 --- a/pkg/fourslash/tests/gen/indirectJsRequireRename_test.go +++ b/pkg/fourslash/tests/gen/indirectJsRequireRename_test.go @@ -8,8 +8,8 @@ import ( ) func TestIndirectJsRequireRename(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /bin/serverless.js diff --git a/pkg/fourslash/tests/gen/inheritedModuleMembersForClodule2_test.go b/pkg/fourslash/tests/gen/inheritedModuleMembersForClodule2_test.go index 7a6c70845..bc172a40f 100644 --- a/pkg/fourslash/tests/gen/inheritedModuleMembersForClodule2_test.go +++ b/pkg/fourslash/tests/gen/inheritedModuleMembersForClodule2_test.go @@ -8,8 +8,8 @@ import ( ) func TestInheritedModuleMembersForClodule2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module M { export module A { diff --git a/pkg/fourslash/tests/gen/inlayHintsCrash1_test.go b/pkg/fourslash/tests/gen/inlayHintsCrash1_test.go index b4ce2a88c..e7ecec985 100644 --- a/pkg/fourslash/tests/gen/inlayHintsCrash1_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsCrash1_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsCrash1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/inlayHintsEnumMemberValue_test.go b/pkg/fourslash/tests/gen/inlayHintsEnumMemberValue_test.go index ac89c9cfa..7748f8145 100644 --- a/pkg/fourslash/tests/gen/inlayHintsEnumMemberValue_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsEnumMemberValue_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsEnumMemberValue(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum E { A, diff --git a/pkg/fourslash/tests/gen/inlayHintsFunctionParameterTypes1_test.go b/pkg/fourslash/tests/gen/inlayHintsFunctionParameterTypes1_test.go index 604e2b2a9..72294ff51 100644 --- a/pkg/fourslash/tests/gen/inlayHintsFunctionParameterTypes1_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsFunctionParameterTypes1_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsFunctionParameterTypes1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type F1 = (a: string, b: number) => void const f1: F1 = (a, b) => { } diff --git a/pkg/fourslash/tests/gen/inlayHintsFunctionParameterTypes2_test.go b/pkg/fourslash/tests/gen/inlayHintsFunctionParameterTypes2_test.go index 1b9deaece..db29d45ec 100644 --- a/pkg/fourslash/tests/gen/inlayHintsFunctionParameterTypes2_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsFunctionParameterTypes2_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsFunctionParameterTypes2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C {} namespace N { export class Foo {} } diff --git a/pkg/fourslash/tests/gen/inlayHintsFunctionParameterTypes3_test.go b/pkg/fourslash/tests/gen/inlayHintsFunctionParameterTypes3_test.go index c4696845f..3ba564790 100644 --- a/pkg/fourslash/tests/gen/inlayHintsFunctionParameterTypes3_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsFunctionParameterTypes3_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsFunctionParameterTypes3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IFoo { bar(x?: boolean): void; diff --git a/pkg/fourslash/tests/gen/inlayHintsFunctionParameterTypes4_test.go b/pkg/fourslash/tests/gen/inlayHintsFunctionParameterTypes4_test.go index 372baed47..9deb3f610 100644 --- a/pkg/fourslash/tests/gen/inlayHintsFunctionParameterTypes4_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsFunctionParameterTypes4_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsFunctionParameterTypes4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/inlayHintsFunctionParameterTypes5_test.go b/pkg/fourslash/tests/gen/inlayHintsFunctionParameterTypes5_test.go index 6eb81192a..68e8e2e09 100644 --- a/pkg/fourslash/tests/gen/inlayHintsFunctionParameterTypes5_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsFunctionParameterTypes5_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsFunctionParameterTypes5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const STATE_SIGNAL: unique symbol; diff --git a/pkg/fourslash/tests/gen/inlayHintsImportType1_test.go b/pkg/fourslash/tests/gen/inlayHintsImportType1_test.go index 2e30917a4..731a4869e 100644 --- a/pkg/fourslash/tests/gen/inlayHintsImportType1_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsImportType1_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsImportType1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/inlayHintsImportType2_test.go b/pkg/fourslash/tests/gen/inlayHintsImportType2_test.go index 2c32ac1d4..681a311a1 100644 --- a/pkg/fourslash/tests/gen/inlayHintsImportType2_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsImportType2_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsImportType2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/inlayHintsInferredTypePredicate1_test.go b/pkg/fourslash/tests/gen/inlayHintsInferredTypePredicate1_test.go index 1a00b72ec..61e1991c7 100644 --- a/pkg/fourslash/tests/gen/inlayHintsInferredTypePredicate1_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsInferredTypePredicate1_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsInferredTypePredicate1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true function test(x: unknown) { diff --git a/pkg/fourslash/tests/gen/inlayHintsInteractiveAnyParameter1_test.go b/pkg/fourslash/tests/gen/inlayHintsInteractiveAnyParameter1_test.go index 9f1af4c22..1f371fafe 100644 --- a/pkg/fourslash/tests/gen/inlayHintsInteractiveAnyParameter1_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsInteractiveAnyParameter1_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsInteractiveAnyParameter1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo (v: any) {} foo(1); diff --git a/pkg/fourslash/tests/gen/inlayHintsInteractiveAnyParameter2_test.go b/pkg/fourslash/tests/gen/inlayHintsInteractiveAnyParameter2_test.go index b8b7d1cee..deeb0c253 100644 --- a/pkg/fourslash/tests/gen/inlayHintsInteractiveAnyParameter2_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsInteractiveAnyParameter2_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsInteractiveAnyParameter2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo (v: any) {} foo(1); diff --git a/pkg/fourslash/tests/gen/inlayHintsInteractiveFunctionParameterTypes1_test.go b/pkg/fourslash/tests/gen/inlayHintsInteractiveFunctionParameterTypes1_test.go index 31b7090db..fcce2e3a5 100644 --- a/pkg/fourslash/tests/gen/inlayHintsInteractiveFunctionParameterTypes1_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsInteractiveFunctionParameterTypes1_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsInteractiveFunctionParameterTypes1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = ` type F1 = (a: string, b: number) => void const f1: F1 = (a, b) => { } diff --git a/pkg/fourslash/tests/gen/inlayHintsInteractiveFunctionParameterTypes2_test.go b/pkg/fourslash/tests/gen/inlayHintsInteractiveFunctionParameterTypes2_test.go index 67fdf2de4..a00880eec 100644 --- a/pkg/fourslash/tests/gen/inlayHintsInteractiveFunctionParameterTypes2_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsInteractiveFunctionParameterTypes2_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsInteractiveFunctionParameterTypes2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C {} namespace N { export class Foo {} } diff --git a/pkg/fourslash/tests/gen/inlayHintsInteractiveFunctionParameterTypes3_test.go b/pkg/fourslash/tests/gen/inlayHintsInteractiveFunctionParameterTypes3_test.go index 06913478d..f27d22580 100644 --- a/pkg/fourslash/tests/gen/inlayHintsInteractiveFunctionParameterTypes3_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsInteractiveFunctionParameterTypes3_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsInteractiveFunctionParameterTypes3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IFoo { bar(x?: boolean): void; diff --git a/pkg/fourslash/tests/gen/inlayHintsInteractiveFunctionParameterTypes4_test.go b/pkg/fourslash/tests/gen/inlayHintsInteractiveFunctionParameterTypes4_test.go index 819570491..c1aaf411e 100644 --- a/pkg/fourslash/tests/gen/inlayHintsInteractiveFunctionParameterTypes4_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsInteractiveFunctionParameterTypes4_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsInteractiveFunctionParameterTypes4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/inlayHintsInteractiveFunctionParameterTypes5_test.go b/pkg/fourslash/tests/gen/inlayHintsInteractiveFunctionParameterTypes5_test.go index c01d7d51e..9f8453642 100644 --- a/pkg/fourslash/tests/gen/inlayHintsInteractiveFunctionParameterTypes5_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsInteractiveFunctionParameterTypes5_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsInteractiveFunctionParameterTypes5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const foo: 1n = 1n; export function fn(b = foo) {}` diff --git a/pkg/fourslash/tests/gen/inlayHintsInteractiveImportType1_test.go b/pkg/fourslash/tests/gen/inlayHintsInteractiveImportType1_test.go index 7bd970ad0..ce3055c58 100644 --- a/pkg/fourslash/tests/gen/inlayHintsInteractiveImportType1_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsInteractiveImportType1_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsInteractiveImportType1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/inlayHintsInteractiveImportType2_test.go b/pkg/fourslash/tests/gen/inlayHintsInteractiveImportType2_test.go index 431c9a538..63a76f00c 100644 --- a/pkg/fourslash/tests/gen/inlayHintsInteractiveImportType2_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsInteractiveImportType2_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsInteractiveImportType2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/inlayHintsInteractiveInferredTypePredicate1_test.go b/pkg/fourslash/tests/gen/inlayHintsInteractiveInferredTypePredicate1_test.go index 9f683e485..fadc62f32 100644 --- a/pkg/fourslash/tests/gen/inlayHintsInteractiveInferredTypePredicate1_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsInteractiveInferredTypePredicate1_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsInteractiveInferredTypePredicate1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true function test(x: unknown) { diff --git a/pkg/fourslash/tests/gen/inlayHintsInteractiveJsDocParameterNames_test.go b/pkg/fourslash/tests/gen/inlayHintsInteractiveJsDocParameterNames_test.go index a943829cc..5974c7f18 100644 --- a/pkg/fourslash/tests/gen/inlayHintsInteractiveJsDocParameterNames_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsInteractiveJsDocParameterNames_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsInteractiveJsDocParameterNames(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/inlayHintsInteractiveMultifile1_test.go b/pkg/fourslash/tests/gen/inlayHintsInteractiveMultifile1_test.go index 0e375b8d6..d93d3e8a4 100644 --- a/pkg/fourslash/tests/gen/inlayHintsInteractiveMultifile1_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsInteractiveMultifile1_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsInteractiveMultifile1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export interface Foo { a: string } diff --git a/pkg/fourslash/tests/gen/inlayHintsInteractiveMultifileFunctionCalls_test.go b/pkg/fourslash/tests/gen/inlayHintsInteractiveMultifileFunctionCalls_test.go index 4b1424a6e..a19832a4a 100644 --- a/pkg/fourslash/tests/gen/inlayHintsInteractiveMultifileFunctionCalls_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsInteractiveMultifileFunctionCalls_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsInteractiveMultifileFunctionCalls(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Target: esnext // @module: node18 diff --git a/pkg/fourslash/tests/gen/inlayHintsInteractiveOverloadCall_test.go b/pkg/fourslash/tests/gen/inlayHintsInteractiveOverloadCall_test.go index 5b0bca421..ed7418a5e 100644 --- a/pkg/fourslash/tests/gen/inlayHintsInteractiveOverloadCall_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsInteractiveOverloadCall_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsInteractiveOverloadCall(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Call { (a: number): void diff --git a/pkg/fourslash/tests/gen/inlayHintsInteractiveParameterNamesWithComments_test.go b/pkg/fourslash/tests/gen/inlayHintsInteractiveParameterNamesWithComments_test.go index 7726edec6..af3665a21 100644 --- a/pkg/fourslash/tests/gen/inlayHintsInteractiveParameterNamesWithComments_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsInteractiveParameterNamesWithComments_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsInteractiveParameterNamesWithComments(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const fn = (x: any) => { } fn(/* nobody knows exactly what this param is */ 42); diff --git a/pkg/fourslash/tests/gen/inlayHintsInteractiveParameterNames_test.go b/pkg/fourslash/tests/gen/inlayHintsInteractiveParameterNames_test.go index 0016c5daf..f5c9cad85 100644 --- a/pkg/fourslash/tests/gen/inlayHintsInteractiveParameterNames_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsInteractiveParameterNames_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsInteractiveParameterNames(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = ` function foo1 (a: number, b: number) {} foo1(1, 2); diff --git a/pkg/fourslash/tests/gen/inlayHintsInteractiveRestParameters1_test.go b/pkg/fourslash/tests/gen/inlayHintsInteractiveRestParameters1_test.go index d9f17f6c3..2956eac35 100644 --- a/pkg/fourslash/tests/gen/inlayHintsInteractiveRestParameters1_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsInteractiveRestParameters1_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsInteractiveRestParameters1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo1(a: number, ...b: number[]) {} foo1(1, 1, 1, 1); diff --git a/pkg/fourslash/tests/gen/inlayHintsInteractiveRestParameters2_test.go b/pkg/fourslash/tests/gen/inlayHintsInteractiveRestParameters2_test.go index fc9866378..8f0f6050a 100644 --- a/pkg/fourslash/tests/gen/inlayHintsInteractiveRestParameters2_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsInteractiveRestParameters2_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsInteractiveRestParameters2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(a: unknown, b: unknown, c: unknown) { } function foo1(...x: [number, number | undefined]) { diff --git a/pkg/fourslash/tests/gen/inlayHintsInteractiveRestParameters3_test.go b/pkg/fourslash/tests/gen/inlayHintsInteractiveRestParameters3_test.go index c472bff32..2bf405e9b 100644 --- a/pkg/fourslash/tests/gen/inlayHintsInteractiveRestParameters3_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsInteractiveRestParameters3_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsInteractiveRestParameters3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function fn(x: number, y: number, a: number, b: number) { return x + y + a + b; diff --git a/pkg/fourslash/tests/gen/inlayHintsInteractiveReturnType_test.go b/pkg/fourslash/tests/gen/inlayHintsInteractiveReturnType_test.go index d06b5a231..e6991b9fd 100644 --- a/pkg/fourslash/tests/gen/inlayHintsInteractiveReturnType_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsInteractiveReturnType_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsInteractiveReturnType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo1 () { return 1 diff --git a/pkg/fourslash/tests/gen/inlayHintsInteractiveTemplateLiteralTypes_test.go b/pkg/fourslash/tests/gen/inlayHintsInteractiveTemplateLiteralTypes_test.go index 071bbc79e..f056ac605 100644 --- a/pkg/fourslash/tests/gen/inlayHintsInteractiveTemplateLiteralTypes_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsInteractiveTemplateLiteralTypes_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsInteractiveTemplateLiteralTypes(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function getTemplateLiteral1(): ` + "`" + `${string},${string}` + "`" + `; const lit1 = getTemplateLiteral1(); diff --git a/pkg/fourslash/tests/gen/inlayHintsInteractiveVariableTypes1_test.go b/pkg/fourslash/tests/gen/inlayHintsInteractiveVariableTypes1_test.go index 6179ce10c..b1e174416 100644 --- a/pkg/fourslash/tests/gen/inlayHintsInteractiveVariableTypes1_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsInteractiveVariableTypes1_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsInteractiveVariableTypes1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C {} namespace N { export class Foo {} } diff --git a/pkg/fourslash/tests/gen/inlayHintsInteractiveVariableTypes2_test.go b/pkg/fourslash/tests/gen/inlayHintsInteractiveVariableTypes2_test.go index 9cdf62945..0352bfae4 100644 --- a/pkg/fourslash/tests/gen/inlayHintsInteractiveVariableTypes2_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsInteractiveVariableTypes2_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsInteractiveVariableTypes2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const object = { foo: 1, bar: 2 } const array = [1, 2] diff --git a/pkg/fourslash/tests/gen/inlayHintsInteractiveWithClosures_test.go b/pkg/fourslash/tests/gen/inlayHintsInteractiveWithClosures_test.go index 6c39560b0..e69be9c40 100644 --- a/pkg/fourslash/tests/gen/inlayHintsInteractiveWithClosures_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsInteractiveWithClosures_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsInteractiveWithClosures(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo1(a: number) { return (b: number) => { diff --git a/pkg/fourslash/tests/gen/inlayHintsJsDocParameterNames_test.go b/pkg/fourslash/tests/gen/inlayHintsJsDocParameterNames_test.go index ced5c36f3..647dc183b 100644 --- a/pkg/fourslash/tests/gen/inlayHintsJsDocParameterNames_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsJsDocParameterNames_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsJsDocParameterNames(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/inlayHintsMultifile1_test.go b/pkg/fourslash/tests/gen/inlayHintsMultifile1_test.go index 59059a855..323440bf5 100644 --- a/pkg/fourslash/tests/gen/inlayHintsMultifile1_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsMultifile1_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsMultifile1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export interface Foo { a: string } diff --git a/pkg/fourslash/tests/gen/inlayHintsNoHintWhenArgumentMatchesName_test.go b/pkg/fourslash/tests/gen/inlayHintsNoHintWhenArgumentMatchesName_test.go index 2ba5cdcea..b376ca0b8 100644 --- a/pkg/fourslash/tests/gen/inlayHintsNoHintWhenArgumentMatchesName_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsNoHintWhenArgumentMatchesName_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsNoHintWhenArgumentMatchesName(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo (a: number, b: number) {} declare const a: 1; diff --git a/pkg/fourslash/tests/gen/inlayHintsNoParameterHints_test.go b/pkg/fourslash/tests/gen/inlayHintsNoParameterHints_test.go index 42507e085..93eed00b0 100644 --- a/pkg/fourslash/tests/gen/inlayHintsNoParameterHints_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsNoParameterHints_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsNoParameterHints(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo (a: number, b: number) {} foo(1, 2);` diff --git a/pkg/fourslash/tests/gen/inlayHintsNoVariableTypeHints_test.go b/pkg/fourslash/tests/gen/inlayHintsNoVariableTypeHints_test.go index 7d00cdb6a..42ec01f31 100644 --- a/pkg/fourslash/tests/gen/inlayHintsNoVariableTypeHints_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsNoVariableTypeHints_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsNoVariableTypeHints(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const a = 123;` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/inlayHintsOverloadCall1_test.go b/pkg/fourslash/tests/gen/inlayHintsOverloadCall1_test.go index fb2ff0935..2855b7ef3 100644 --- a/pkg/fourslash/tests/gen/inlayHintsOverloadCall1_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsOverloadCall1_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsOverloadCall1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Call { (a: number): void diff --git a/pkg/fourslash/tests/gen/inlayHintsOverloadCall2_test.go b/pkg/fourslash/tests/gen/inlayHintsOverloadCall2_test.go index 8b387a3c3..e495ef7cf 100644 --- a/pkg/fourslash/tests/gen/inlayHintsOverloadCall2_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsOverloadCall2_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsOverloadCall2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type HasID = { id: number; diff --git a/pkg/fourslash/tests/gen/inlayHintsParameterNames_test.go b/pkg/fourslash/tests/gen/inlayHintsParameterNames_test.go index a3a41b10d..c6765ac0a 100644 --- a/pkg/fourslash/tests/gen/inlayHintsParameterNames_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsParameterNames_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsParameterNames(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = ` function foo1 (a: number, b: number) {} foo1(1, 2); diff --git a/pkg/fourslash/tests/gen/inlayHintsPropertyDeclarations2_test.go b/pkg/fourslash/tests/gen/inlayHintsPropertyDeclarations2_test.go index 47f97f127..567c03ed8 100644 --- a/pkg/fourslash/tests/gen/inlayHintsPropertyDeclarations2_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsPropertyDeclarations2_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsPropertyDeclarations2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @target: esnext diff --git a/pkg/fourslash/tests/gen/inlayHintsPropertyDeclarations_test.go b/pkg/fourslash/tests/gen/inlayHintsPropertyDeclarations_test.go index 73de547e9..ec37b8018 100644 --- a/pkg/fourslash/tests/gen/inlayHintsPropertyDeclarations_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsPropertyDeclarations_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsPropertyDeclarations(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true class C { diff --git a/pkg/fourslash/tests/gen/inlayHintsQuotePreference1_test.go b/pkg/fourslash/tests/gen/inlayHintsQuotePreference1_test.go index 8996989b5..734e8d01b 100644 --- a/pkg/fourslash/tests/gen/inlayHintsQuotePreference1_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsQuotePreference1_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsQuotePreference1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const a1: '"' = '"'; const b1: '\\' = '\\'; diff --git a/pkg/fourslash/tests/gen/inlayHintsQuotePreference2_test.go b/pkg/fourslash/tests/gen/inlayHintsQuotePreference2_test.go index de7b7eedf..8215f6c89 100644 --- a/pkg/fourslash/tests/gen/inlayHintsQuotePreference2_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsQuotePreference2_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsQuotePreference2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const a1: "'" = "'"; const b1: "\\" = "\\"; diff --git a/pkg/fourslash/tests/gen/inlayHintsRestParameters1_test.go b/pkg/fourslash/tests/gen/inlayHintsRestParameters1_test.go index 47dcf9258..a921b3085 100644 --- a/pkg/fourslash/tests/gen/inlayHintsRestParameters1_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsRestParameters1_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsRestParameters1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo1(a: number, ...b: number[]) {} foo1(1, 1, 1, 1); diff --git a/pkg/fourslash/tests/gen/inlayHintsRestParameters2_test.go b/pkg/fourslash/tests/gen/inlayHintsRestParameters2_test.go index 3698a8b80..7eb5e2f53 100644 --- a/pkg/fourslash/tests/gen/inlayHintsRestParameters2_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsRestParameters2_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsRestParameters2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(a: unknown, b: unknown, c: unknown) { } function foo1(...x: [number, number | undefined]) { diff --git a/pkg/fourslash/tests/gen/inlayHintsReturnType_test.go b/pkg/fourslash/tests/gen/inlayHintsReturnType_test.go index bcd1f3dd9..67a753f50 100644 --- a/pkg/fourslash/tests/gen/inlayHintsReturnType_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsReturnType_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsReturnType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo1 () { return 1 diff --git a/pkg/fourslash/tests/gen/inlayHintsThisParameter_test.go b/pkg/fourslash/tests/gen/inlayHintsThisParameter_test.go index 49939e74d..45f46c288 100644 --- a/pkg/fourslash/tests/gen/inlayHintsThisParameter_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsThisParameter_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsThisParameter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { a: number; diff --git a/pkg/fourslash/tests/gen/inlayHintsTypeMatchesName_test.go b/pkg/fourslash/tests/gen/inlayHintsTypeMatchesName_test.go index c2e29793d..6ff02e5eb 100644 --- a/pkg/fourslash/tests/gen/inlayHintsTypeMatchesName_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsTypeMatchesName_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsTypeMatchesName(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type Client = {}; function getClient(): Client { return {}; }; diff --git a/pkg/fourslash/tests/gen/inlayHintsVariableTypes1_test.go b/pkg/fourslash/tests/gen/inlayHintsVariableTypes1_test.go index f59ea4255..be0a3a3d5 100644 --- a/pkg/fourslash/tests/gen/inlayHintsVariableTypes1_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsVariableTypes1_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsVariableTypes1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C {} namespace N { export class Foo {} } diff --git a/pkg/fourslash/tests/gen/inlayHintsVariableTypes2_test.go b/pkg/fourslash/tests/gen/inlayHintsVariableTypes2_test.go index 96abec2e5..2821b38d4 100644 --- a/pkg/fourslash/tests/gen/inlayHintsVariableTypes2_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsVariableTypes2_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsVariableTypes2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const object = { foo: 1, bar: 2 } const array = [1, 2] diff --git a/pkg/fourslash/tests/gen/inlayHintsVariableTypes3_test.go b/pkg/fourslash/tests/gen/inlayHintsVariableTypes3_test.go index edf47771b..aeba1bc3d 100644 --- a/pkg/fourslash/tests/gen/inlayHintsVariableTypes3_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsVariableTypes3_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsVariableTypes3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @target: esnext diff --git a/pkg/fourslash/tests/gen/inlayHintsWithClosures_test.go b/pkg/fourslash/tests/gen/inlayHintsWithClosures_test.go index f1dda97b4..f515bbc56 100644 --- a/pkg/fourslash/tests/gen/inlayHintsWithClosures_test.go +++ b/pkg/fourslash/tests/gen/inlayHintsWithClosures_test.go @@ -9,8 +9,8 @@ import ( ) func TestInlayHintsWithClosures(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo1(a: number) { return (b: number) => { diff --git a/pkg/fourslash/tests/gen/insertArgumentBeforeOverloadedConstructor_test.go b/pkg/fourslash/tests/gen/insertArgumentBeforeOverloadedConstructor_test.go index 445524852..4a4994a67 100644 --- a/pkg/fourslash/tests/gen/insertArgumentBeforeOverloadedConstructor_test.go +++ b/pkg/fourslash/tests/gen/insertArgumentBeforeOverloadedConstructor_test.go @@ -8,8 +8,8 @@ import ( ) func TestInsertArgumentBeforeOverloadedConstructor(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `alert(/**/100); diff --git a/pkg/fourslash/tests/gen/insertInterfaceAndCheckTypeLiteralField_test.go b/pkg/fourslash/tests/gen/insertInterfaceAndCheckTypeLiteralField_test.go index cc2c09ea7..8d2bdf547 100644 --- a/pkg/fourslash/tests/gen/insertInterfaceAndCheckTypeLiteralField_test.go +++ b/pkg/fourslash/tests/gen/insertInterfaceAndCheckTypeLiteralField_test.go @@ -8,8 +8,8 @@ import ( ) func TestInsertInterfaceAndCheckTypeLiteralField(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*addC*/ interface G { } diff --git a/pkg/fourslash/tests/gen/insertMethodCallAboveOthers_test.go b/pkg/fourslash/tests/gen/insertMethodCallAboveOthers_test.go index 93cbdfe0e..12d03c285 100644 --- a/pkg/fourslash/tests/gen/insertMethodCallAboveOthers_test.go +++ b/pkg/fourslash/tests/gen/insertMethodCallAboveOthers_test.go @@ -8,8 +8,8 @@ import ( ) func TestInsertMethodCallAboveOthers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/**/ paired.reduce(); diff --git a/pkg/fourslash/tests/gen/insertPublicBeforeSetter_test.go b/pkg/fourslash/tests/gen/insertPublicBeforeSetter_test.go index 57a4b339c..7f9011ea8 100644 --- a/pkg/fourslash/tests/gen/insertPublicBeforeSetter_test.go +++ b/pkg/fourslash/tests/gen/insertPublicBeforeSetter_test.go @@ -8,8 +8,8 @@ import ( ) func TestInsertPublicBeforeSetter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { /**/set Bar(bar:string) {} diff --git a/pkg/fourslash/tests/gen/insertReturnStatementInDuplicateIdentifierFunction_test.go b/pkg/fourslash/tests/gen/insertReturnStatementInDuplicateIdentifierFunction_test.go index 8ccc16ce7..efe2e7bb3 100644 --- a/pkg/fourslash/tests/gen/insertReturnStatementInDuplicateIdentifierFunction_test.go +++ b/pkg/fourslash/tests/gen/insertReturnStatementInDuplicateIdentifierFunction_test.go @@ -8,8 +8,8 @@ import ( ) func TestInsertReturnStatementInDuplicateIdentifierFunction(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class foo { }; function foo() { /**/ }` diff --git a/pkg/fourslash/tests/gen/insertSecondTryCatchBlock_test.go b/pkg/fourslash/tests/gen/insertSecondTryCatchBlock_test.go index 81c812819..4dbe16fa8 100644 --- a/pkg/fourslash/tests/gen/insertSecondTryCatchBlock_test.go +++ b/pkg/fourslash/tests/gen/insertSecondTryCatchBlock_test.go @@ -8,8 +8,8 @@ import ( ) func TestInsertSecondTryCatchBlock(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `try {} catch(e) { } /**/` diff --git a/pkg/fourslash/tests/gen/insertVarAfterEmptyTypeParamList_test.go b/pkg/fourslash/tests/gen/insertVarAfterEmptyTypeParamList_test.go index 722615883..2476d8714 100644 --- a/pkg/fourslash/tests/gen/insertVarAfterEmptyTypeParamList_test.go +++ b/pkg/fourslash/tests/gen/insertVarAfterEmptyTypeParamList_test.go @@ -8,8 +8,8 @@ import ( ) func TestInsertVarAfterEmptyTypeParamList(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Dictionary<> { } var x; diff --git a/pkg/fourslash/tests/gen/instanceTypesForGenericType1_test.go b/pkg/fourslash/tests/gen/instanceTypesForGenericType1_test.go index f95744454..6a0f3be5c 100644 --- a/pkg/fourslash/tests/gen/instanceTypesForGenericType1_test.go +++ b/pkg/fourslash/tests/gen/instanceTypesForGenericType1_test.go @@ -8,8 +8,8 @@ import ( ) func TestInstanceTypesForGenericType1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class G { // Introduce type parameter T self: G; // Use T as type argument to form instance type diff --git a/pkg/fourslash/tests/gen/intellisenseInObjectLiteral_test.go b/pkg/fourslash/tests/gen/intellisenseInObjectLiteral_test.go index c17a0eaa9..77c9b4958 100644 --- a/pkg/fourslash/tests/gen/intellisenseInObjectLiteral_test.go +++ b/pkg/fourslash/tests/gen/intellisenseInObjectLiteral_test.go @@ -8,8 +8,8 @@ import ( ) func TestIntellisenseInObjectLiteral(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = 3; diff --git a/pkg/fourslash/tests/gen/interfaceExtendsPrimitive_test.go b/pkg/fourslash/tests/gen/interfaceExtendsPrimitive_test.go index 6aab46f61..53afbb9ca 100644 --- a/pkg/fourslash/tests/gen/interfaceExtendsPrimitive_test.go +++ b/pkg/fourslash/tests/gen/interfaceExtendsPrimitive_test.go @@ -8,8 +8,8 @@ import ( ) func TestInterfaceExtendsPrimitive(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface x extends /*1*/string/*2*/ { }` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/invalidRestArgError_test.go b/pkg/fourslash/tests/gen/invalidRestArgError_test.go index 2ee611e12..1abe40eec 100644 --- a/pkg/fourslash/tests/gen/invalidRestArgError_test.go +++ b/pkg/fourslash/tests/gen/invalidRestArgError_test.go @@ -8,8 +8,8 @@ import ( ) func TestInvalidRestArgError(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function b(.../*1*/)/*2*/ {} ` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/invertedCloduleAfterQuickInfo_test.go b/pkg/fourslash/tests/gen/invertedCloduleAfterQuickInfo_test.go index dcdcc20c2..47f767f0c 100644 --- a/pkg/fourslash/tests/gen/invertedCloduleAfterQuickInfo_test.go +++ b/pkg/fourslash/tests/gen/invertedCloduleAfterQuickInfo_test.go @@ -8,8 +8,8 @@ import ( ) func TestInvertedCloduleAfterQuickInfo(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module M { module A { diff --git a/pkg/fourslash/tests/gen/invertedFunduleAfterQuickInfo_test.go b/pkg/fourslash/tests/gen/invertedFunduleAfterQuickInfo_test.go index 076565609..ee6a701cd 100644 --- a/pkg/fourslash/tests/gen/invertedFunduleAfterQuickInfo_test.go +++ b/pkg/fourslash/tests/gen/invertedFunduleAfterQuickInfo_test.go @@ -8,8 +8,8 @@ import ( ) func TestInvertedFunduleAfterQuickInfo(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module M { module A { diff --git a/pkg/fourslash/tests/gen/isDefinitionAcrossGlobalProjects_test.go b/pkg/fourslash/tests/gen/isDefinitionAcrossGlobalProjects_test.go index 8b3ac41c9..fce3ced86 100644 --- a/pkg/fourslash/tests/gen/isDefinitionAcrossGlobalProjects_test.go +++ b/pkg/fourslash/tests/gen/isDefinitionAcrossGlobalProjects_test.go @@ -8,8 +8,8 @@ import ( ) func TestIsDefinitionAcrossGlobalProjects(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/a/index.ts namespace NS { diff --git a/pkg/fourslash/tests/gen/isDefinitionAcrossModuleProjects_test.go b/pkg/fourslash/tests/gen/isDefinitionAcrossModuleProjects_test.go index 3feaacd61..bc8c946f4 100644 --- a/pkg/fourslash/tests/gen/isDefinitionAcrossModuleProjects_test.go +++ b/pkg/fourslash/tests/gen/isDefinitionAcrossModuleProjects_test.go @@ -8,8 +8,8 @@ import ( ) func TestIsDefinitionAcrossModuleProjects(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/a/index.ts import { NS } from "../b"; diff --git a/pkg/fourslash/tests/gen/isDefinitionInterfaceImplementation_test.go b/pkg/fourslash/tests/gen/isDefinitionInterfaceImplementation_test.go index d2e0eb8ca..936f1e257 100644 --- a/pkg/fourslash/tests/gen/isDefinitionInterfaceImplementation_test.go +++ b/pkg/fourslash/tests/gen/isDefinitionInterfaceImplementation_test.go @@ -8,8 +8,8 @@ import ( ) func TestIsDefinitionInterfaceImplementation(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { /*1*/M(): void; diff --git a/pkg/fourslash/tests/gen/isDefinitionOverloads_test.go b/pkg/fourslash/tests/gen/isDefinitionOverloads_test.go index 3752ec82f..b7610dd0f 100644 --- a/pkg/fourslash/tests/gen/isDefinitionOverloads_test.go +++ b/pkg/fourslash/tests/gen/isDefinitionOverloads_test.go @@ -8,8 +8,8 @@ import ( ) func TestIsDefinitionOverloads(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function /*1*/f(x: number): void; function /*2*/f(x: string): void; diff --git a/pkg/fourslash/tests/gen/isDefinitionShorthandProperty_test.go b/pkg/fourslash/tests/gen/isDefinitionShorthandProperty_test.go index 7d31ee6dd..f939b367b 100644 --- a/pkg/fourslash/tests/gen/isDefinitionShorthandProperty_test.go +++ b/pkg/fourslash/tests/gen/isDefinitionShorthandProperty_test.go @@ -8,8 +8,8 @@ import ( ) func TestIsDefinitionShorthandProperty(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const /*1*/x = 1; const y: { /*2*/x: number } = { /*3*/x };` diff --git a/pkg/fourslash/tests/gen/isDefinitionSingleImport_test.go b/pkg/fourslash/tests/gen/isDefinitionSingleImport_test.go index 7ae072148..3614caedc 100644 --- a/pkg/fourslash/tests/gen/isDefinitionSingleImport_test.go +++ b/pkg/fourslash/tests/gen/isDefinitionSingleImport_test.go @@ -8,8 +8,8 @@ import ( ) func TestIsDefinitionSingleImport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: a.ts export function /*1*/f() {} diff --git a/pkg/fourslash/tests/gen/isDefinitionSingleReference_test.go b/pkg/fourslash/tests/gen/isDefinitionSingleReference_test.go index 68116978f..c47c9a29e 100644 --- a/pkg/fourslash/tests/gen/isDefinitionSingleReference_test.go +++ b/pkg/fourslash/tests/gen/isDefinitionSingleReference_test.go @@ -8,8 +8,8 @@ import ( ) func TestIsDefinitionSingleReference(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function /*1*/f() {} /*2*/f();` diff --git a/pkg/fourslash/tests/gen/issue57429_test.go b/pkg/fourslash/tests/gen/issue57429_test.go index e48aca2fa..3670cd024 100644 --- a/pkg/fourslash/tests/gen/issue57429_test.go +++ b/pkg/fourslash/tests/gen/issue57429_test.go @@ -10,8 +10,8 @@ import ( ) func TestIssue57429(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true function Builder(def: I) { diff --git a/pkg/fourslash/tests/gen/issue57585-2_test.go b/pkg/fourslash/tests/gen/issue57585-2_test.go index e3d52f37b..bf822a126 100644 --- a/pkg/fourslash/tests/gen/issue57585-2_test.go +++ b/pkg/fourslash/tests/gen/issue57585-2_test.go @@ -8,8 +8,8 @@ import ( ) func TestIssue57585_2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @target: esnext diff --git a/pkg/fourslash/tests/gen/javaScriptClass2_test.go b/pkg/fourslash/tests/gen/javaScriptClass2_test.go index eb35f7d61..f3ba3ff73 100644 --- a/pkg/fourslash/tests/gen/javaScriptClass2_test.go +++ b/pkg/fourslash/tests/gen/javaScriptClass2_test.go @@ -8,8 +8,8 @@ import ( ) func TestJavaScriptClass2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/javaScriptClass3_test.go b/pkg/fourslash/tests/gen/javaScriptClass3_test.go index d168c26c6..c235ae18e 100644 --- a/pkg/fourslash/tests/gen/javaScriptClass3_test.go +++ b/pkg/fourslash/tests/gen/javaScriptClass3_test.go @@ -8,8 +8,8 @@ import ( ) func TestJavaScriptClass3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/javaScriptClass4_test.go b/pkg/fourslash/tests/gen/javaScriptClass4_test.go index 25ada99b2..7919e27bb 100644 --- a/pkg/fourslash/tests/gen/javaScriptClass4_test.go +++ b/pkg/fourslash/tests/gen/javaScriptClass4_test.go @@ -10,8 +10,8 @@ import ( ) func TestJavaScriptClass4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/javaScriptModules12_test.go b/pkg/fourslash/tests/gen/javaScriptModules12_test.go index b3dbc13dc..97ef769e0 100644 --- a/pkg/fourslash/tests/gen/javaScriptModules12_test.go +++ b/pkg/fourslash/tests/gen/javaScriptModules12_test.go @@ -11,8 +11,8 @@ import ( ) func TestJavaScriptModules12(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: mod1.js diff --git a/pkg/fourslash/tests/gen/javaScriptModules13_test.go b/pkg/fourslash/tests/gen/javaScriptModules13_test.go index 58dc5bd2f..eb23baa4a 100644 --- a/pkg/fourslash/tests/gen/javaScriptModules13_test.go +++ b/pkg/fourslash/tests/gen/javaScriptModules13_test.go @@ -11,8 +11,8 @@ import ( ) func TestJavaScriptModules13(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: myMod.js diff --git a/pkg/fourslash/tests/gen/javaScriptModules14_test.go b/pkg/fourslash/tests/gen/javaScriptModules14_test.go index bf330a87b..f81e98ea1 100644 --- a/pkg/fourslash/tests/gen/javaScriptModules14_test.go +++ b/pkg/fourslash/tests/gen/javaScriptModules14_test.go @@ -11,8 +11,8 @@ import ( ) func TestJavaScriptModules14(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: myMod.js diff --git a/pkg/fourslash/tests/gen/javaScriptModules18_test.go b/pkg/fourslash/tests/gen/javaScriptModules18_test.go index 30a551c6c..a43dd7113 100644 --- a/pkg/fourslash/tests/gen/javaScriptModules18_test.go +++ b/pkg/fourslash/tests/gen/javaScriptModules18_test.go @@ -9,8 +9,8 @@ import ( ) func TestJavaScriptModules18(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: myMod.js diff --git a/pkg/fourslash/tests/gen/javaScriptModules19_test.go b/pkg/fourslash/tests/gen/javaScriptModules19_test.go index 4acc84691..9ebf8707e 100644 --- a/pkg/fourslash/tests/gen/javaScriptModules19_test.go +++ b/pkg/fourslash/tests/gen/javaScriptModules19_test.go @@ -11,8 +11,8 @@ import ( ) func TestJavaScriptModules19(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: myMod.js diff --git a/pkg/fourslash/tests/gen/javaScriptModulesError1_test.go b/pkg/fourslash/tests/gen/javaScriptModulesError1_test.go index b10cba74b..8458645de 100644 --- a/pkg/fourslash/tests/gen/javaScriptModulesError1_test.go +++ b/pkg/fourslash/tests/gen/javaScriptModulesError1_test.go @@ -8,8 +8,8 @@ import ( ) func TestJavaScriptModulesError1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/javaScriptModulesWithBackticks_test.go b/pkg/fourslash/tests/gen/javaScriptModulesWithBackticks_test.go index 79ccfadca..32576ea12 100644 --- a/pkg/fourslash/tests/gen/javaScriptModulesWithBackticks_test.go +++ b/pkg/fourslash/tests/gen/javaScriptModulesWithBackticks_test.go @@ -9,8 +9,8 @@ import ( ) func TestJavaScriptModulesWithBackticks(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/javascriptModules20_test.go b/pkg/fourslash/tests/gen/javascriptModules20_test.go index 2997c9a43..92e0cda35 100644 --- a/pkg/fourslash/tests/gen/javascriptModules20_test.go +++ b/pkg/fourslash/tests/gen/javascriptModules20_test.go @@ -11,8 +11,8 @@ import ( ) func TestJavascriptModules20(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: mod.js diff --git a/pkg/fourslash/tests/gen/javascriptModules21_test.go b/pkg/fourslash/tests/gen/javascriptModules21_test.go index 2f92198b6..dea640210 100644 --- a/pkg/fourslash/tests/gen/javascriptModules21_test.go +++ b/pkg/fourslash/tests/gen/javascriptModules21_test.go @@ -11,8 +11,8 @@ import ( ) func TestJavascriptModules21(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @module: system diff --git a/pkg/fourslash/tests/gen/javascriptModules22_test.go b/pkg/fourslash/tests/gen/javascriptModules22_test.go index 09374401f..285a7be6d 100644 --- a/pkg/fourslash/tests/gen/javascriptModules22_test.go +++ b/pkg/fourslash/tests/gen/javascriptModules22_test.go @@ -9,8 +9,8 @@ import ( ) func TestJavascriptModules22(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @module: commonjs diff --git a/pkg/fourslash/tests/gen/javascriptModules23_test.go b/pkg/fourslash/tests/gen/javascriptModules23_test.go index c188f6b8f..fec3a1483 100644 --- a/pkg/fourslash/tests/gen/javascriptModules23_test.go +++ b/pkg/fourslash/tests/gen/javascriptModules23_test.go @@ -9,8 +9,8 @@ import ( ) func TestJavascriptModules23(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: mod.ts var foo = {a: "test"}; diff --git a/pkg/fourslash/tests/gen/javascriptModules24_test.go b/pkg/fourslash/tests/gen/javascriptModules24_test.go index 6044511f2..d7476b5e3 100644 --- a/pkg/fourslash/tests/gen/javascriptModules24_test.go +++ b/pkg/fourslash/tests/gen/javascriptModules24_test.go @@ -8,8 +8,8 @@ import ( ) func TestJavascriptModules24(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: mod.ts function foo() { return 42; } diff --git a/pkg/fourslash/tests/gen/javascriptModules25_test.go b/pkg/fourslash/tests/gen/javascriptModules25_test.go index 560406364..28adbe5be 100644 --- a/pkg/fourslash/tests/gen/javascriptModules25_test.go +++ b/pkg/fourslash/tests/gen/javascriptModules25_test.go @@ -9,8 +9,8 @@ import ( ) func TestJavascriptModules25(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: mod.js diff --git a/pkg/fourslash/tests/gen/javascriptModulesTypeImportAsValue_test.go b/pkg/fourslash/tests/gen/javascriptModulesTypeImportAsValue_test.go index 81461499c..9e45e0a05 100644 --- a/pkg/fourslash/tests/gen/javascriptModulesTypeImportAsValue_test.go +++ b/pkg/fourslash/tests/gen/javascriptModulesTypeImportAsValue_test.go @@ -9,8 +9,8 @@ import ( ) func TestJavascriptModulesTypeImportAsValue(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: types.js diff --git a/pkg/fourslash/tests/gen/javascriptModulesTypeImport_test.go b/pkg/fourslash/tests/gen/javascriptModulesTypeImport_test.go index f96ab28b6..b49ad3d59 100644 --- a/pkg/fourslash/tests/gen/javascriptModulesTypeImport_test.go +++ b/pkg/fourslash/tests/gen/javascriptModulesTypeImport_test.go @@ -9,8 +9,8 @@ import ( ) func TestJavascriptModulesTypeImport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: types.js diff --git a/pkg/fourslash/tests/gen/jsDocAliasQuickInfo_test.go b/pkg/fourslash/tests/gen/jsDocAliasQuickInfo_test.go index 68d5da862..73b9b3941 100644 --- a/pkg/fourslash/tests/gen/jsDocAliasQuickInfo_test.go +++ b/pkg/fourslash/tests/gen/jsDocAliasQuickInfo_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocAliasQuickInfo(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /jsDocAliasQuickInfo.ts /** diff --git a/pkg/fourslash/tests/gen/jsDocAugmentsAndExtends_test.go b/pkg/fourslash/tests/gen/jsDocAugmentsAndExtends_test.go index 9426adf00..2d71b93e1 100644 --- a/pkg/fourslash/tests/gen/jsDocAugmentsAndExtends_test.go +++ b/pkg/fourslash/tests/gen/jsDocAugmentsAndExtends_test.go @@ -10,8 +10,8 @@ import ( ) func TestJsDocAugmentsAndExtends(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/jsDocAugments_test.go b/pkg/fourslash/tests/gen/jsDocAugments_test.go index 5fe0ff7cf..270d1c744 100644 --- a/pkg/fourslash/tests/gen/jsDocAugments_test.go +++ b/pkg/fourslash/tests/gen/jsDocAugments_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocAugments(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: dummy.js diff --git a/pkg/fourslash/tests/gen/jsDocDontBreakWithNamespaces_test.go b/pkg/fourslash/tests/gen/jsDocDontBreakWithNamespaces_test.go index a44ddfdb2..1956c645e 100644 --- a/pkg/fourslash/tests/gen/jsDocDontBreakWithNamespaces_test.go +++ b/pkg/fourslash/tests/gen/jsDocDontBreakWithNamespaces_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocDontBreakWithNamespaces(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: jsDocDontBreakWithNamespaces.js diff --git a/pkg/fourslash/tests/gen/jsDocExtends_test.go b/pkg/fourslash/tests/gen/jsDocExtends_test.go index cb7fa3f4f..8bb820575 100644 --- a/pkg/fourslash/tests/gen/jsDocExtends_test.go +++ b/pkg/fourslash/tests/gen/jsDocExtends_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocExtends(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: dummy.js diff --git a/pkg/fourslash/tests/gen/jsDocForTypeAlias_test.go b/pkg/fourslash/tests/gen/jsDocForTypeAlias_test.go index 5e5586290..70b2a9046 100644 --- a/pkg/fourslash/tests/gen/jsDocForTypeAlias_test.go +++ b/pkg/fourslash/tests/gen/jsDocForTypeAlias_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocForTypeAlias(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** DOC */ type /**/T = number` diff --git a/pkg/fourslash/tests/gen/jsDocFunctionSignatures10_test.go b/pkg/fourslash/tests/gen/jsDocFunctionSignatures10_test.go index bdaabd440..821f942f2 100644 --- a/pkg/fourslash/tests/gen/jsDocFunctionSignatures10_test.go +++ b/pkg/fourslash/tests/gen/jsDocFunctionSignatures10_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocFunctionSignatures10(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/jsDocFunctionSignatures11_test.go b/pkg/fourslash/tests/gen/jsDocFunctionSignatures11_test.go index 7762d9f33..f3493030f 100644 --- a/pkg/fourslash/tests/gen/jsDocFunctionSignatures11_test.go +++ b/pkg/fourslash/tests/gen/jsDocFunctionSignatures11_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocFunctionSignatures11(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/jsDocFunctionSignatures13_test.go b/pkg/fourslash/tests/gen/jsDocFunctionSignatures13_test.go index 9b74c6c93..6dbe1c080 100644 --- a/pkg/fourslash/tests/gen/jsDocFunctionSignatures13_test.go +++ b/pkg/fourslash/tests/gen/jsDocFunctionSignatures13_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocFunctionSignatures13(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * @template {string} K/**/ a golden opportunity diff --git a/pkg/fourslash/tests/gen/jsDocFunctionSignatures3_test.go b/pkg/fourslash/tests/gen/jsDocFunctionSignatures3_test.go index 2c471de36..14b9502e4 100644 --- a/pkg/fourslash/tests/gen/jsDocFunctionSignatures3_test.go +++ b/pkg/fourslash/tests/gen/jsDocFunctionSignatures3_test.go @@ -10,8 +10,8 @@ import ( ) func TestJsDocFunctionSignatures3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/jsDocFunctionSignatures4_test.go b/pkg/fourslash/tests/gen/jsDocFunctionSignatures4_test.go index cf91181f9..bb36c9dd0 100644 --- a/pkg/fourslash/tests/gen/jsDocFunctionSignatures4_test.go +++ b/pkg/fourslash/tests/gen/jsDocFunctionSignatures4_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocFunctionSignatures4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/jsDocFunctionSignatures5_test.go b/pkg/fourslash/tests/gen/jsDocFunctionSignatures5_test.go index c6f41adbf..3ef652ab7 100644 --- a/pkg/fourslash/tests/gen/jsDocFunctionSignatures5_test.go +++ b/pkg/fourslash/tests/gen/jsDocFunctionSignatures5_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocFunctionSignatures5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/jsDocFunctionSignatures6_test.go b/pkg/fourslash/tests/gen/jsDocFunctionSignatures6_test.go index fe1dfa68c..ecf1d4965 100644 --- a/pkg/fourslash/tests/gen/jsDocFunctionSignatures6_test.go +++ b/pkg/fourslash/tests/gen/jsDocFunctionSignatures6_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocFunctionSignatures6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/jsDocFunctionSignatures7_test.go b/pkg/fourslash/tests/gen/jsDocFunctionSignatures7_test.go index 8bafe9876..dafd04d06 100644 --- a/pkg/fourslash/tests/gen/jsDocFunctionSignatures7_test.go +++ b/pkg/fourslash/tests/gen/jsDocFunctionSignatures7_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocFunctionSignatures7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/jsDocFunctionSignatures8_test.go b/pkg/fourslash/tests/gen/jsDocFunctionSignatures8_test.go index f8ebd36b4..8394e4e62 100644 --- a/pkg/fourslash/tests/gen/jsDocFunctionSignatures8_test.go +++ b/pkg/fourslash/tests/gen/jsDocFunctionSignatures8_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocFunctionSignatures8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/jsDocFunctionTypeCompletionsNoCrash_test.go b/pkg/fourslash/tests/gen/jsDocFunctionTypeCompletionsNoCrash_test.go index 387916c7a..1f52e73fd 100644 --- a/pkg/fourslash/tests/gen/jsDocFunctionTypeCompletionsNoCrash_test.go +++ b/pkg/fourslash/tests/gen/jsDocFunctionTypeCompletionsNoCrash_test.go @@ -9,8 +9,8 @@ import ( ) func TestJsDocFunctionTypeCompletionsNoCrash(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * @returns {function/**/(): string} diff --git a/pkg/fourslash/tests/gen/jsDocGenerics1_test.go b/pkg/fourslash/tests/gen/jsDocGenerics1_test.go index df089fc15..716fe7fc7 100644 --- a/pkg/fourslash/tests/gen/jsDocGenerics1_test.go +++ b/pkg/fourslash/tests/gen/jsDocGenerics1_test.go @@ -10,8 +10,8 @@ import ( ) func TestJsDocGenerics1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: ref.d.ts diff --git a/pkg/fourslash/tests/gen/jsDocGenerics2_test.go b/pkg/fourslash/tests/gen/jsDocGenerics2_test.go index d93d1ff67..75e66dbf2 100644 --- a/pkg/fourslash/tests/gen/jsDocGenerics2_test.go +++ b/pkg/fourslash/tests/gen/jsDocGenerics2_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocGenerics2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/jsDocIndentationPreservation1_test.go b/pkg/fourslash/tests/gen/jsDocIndentationPreservation1_test.go index 8a31d5842..857411eae 100644 --- a/pkg/fourslash/tests/gen/jsDocIndentationPreservation1_test.go +++ b/pkg/fourslash/tests/gen/jsDocIndentationPreservation1_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocIndentationPreservation1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/jsDocIndentationPreservation2_test.go b/pkg/fourslash/tests/gen/jsDocIndentationPreservation2_test.go index 44edba1c3..0026b3e74 100644 --- a/pkg/fourslash/tests/gen/jsDocIndentationPreservation2_test.go +++ b/pkg/fourslash/tests/gen/jsDocIndentationPreservation2_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocIndentationPreservation2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/jsDocIndentationPreservation3_test.go b/pkg/fourslash/tests/gen/jsDocIndentationPreservation3_test.go index 369428aba..c0474d48c 100644 --- a/pkg/fourslash/tests/gen/jsDocIndentationPreservation3_test.go +++ b/pkg/fourslash/tests/gen/jsDocIndentationPreservation3_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocIndentationPreservation3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/jsDocInheritDoc_test.go b/pkg/fourslash/tests/gen/jsDocInheritDoc_test.go index f0d9e41a9..6a12eb58b 100644 --- a/pkg/fourslash/tests/gen/jsDocInheritDoc_test.go +++ b/pkg/fourslash/tests/gen/jsDocInheritDoc_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocInheritDoc(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: inheritDoc.ts class Foo { diff --git a/pkg/fourslash/tests/gen/jsDocPropertyDescription10_test.go b/pkg/fourslash/tests/gen/jsDocPropertyDescription10_test.go index 49e1fa3ba..26643e748 100644 --- a/pkg/fourslash/tests/gen/jsDocPropertyDescription10_test.go +++ b/pkg/fourslash/tests/gen/jsDocPropertyDescription10_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocPropertyDescription10(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class MultipleClass { /** Something generic */ diff --git a/pkg/fourslash/tests/gen/jsDocPropertyDescription11_test.go b/pkg/fourslash/tests/gen/jsDocPropertyDescription11_test.go index ad1aaf282..f6cb0451b 100644 --- a/pkg/fourslash/tests/gen/jsDocPropertyDescription11_test.go +++ b/pkg/fourslash/tests/gen/jsDocPropertyDescription11_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocPropertyDescription11(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type AliasExample = { /** Something generic */ diff --git a/pkg/fourslash/tests/gen/jsDocPropertyDescription12_test.go b/pkg/fourslash/tests/gen/jsDocPropertyDescription12_test.go index fd6252751..0017ed3d3 100644 --- a/pkg/fourslash/tests/gen/jsDocPropertyDescription12_test.go +++ b/pkg/fourslash/tests/gen/jsDocPropertyDescription12_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocPropertyDescription12(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type SymbolAlias = { /** Something generic */ diff --git a/pkg/fourslash/tests/gen/jsDocPropertyDescription1_test.go b/pkg/fourslash/tests/gen/jsDocPropertyDescription1_test.go index 0a7b6e2fe..fca6cad3b 100644 --- a/pkg/fourslash/tests/gen/jsDocPropertyDescription1_test.go +++ b/pkg/fourslash/tests/gen/jsDocPropertyDescription1_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocPropertyDescription1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface StringExample { /** Something generic */ diff --git a/pkg/fourslash/tests/gen/jsDocPropertyDescription2_test.go b/pkg/fourslash/tests/gen/jsDocPropertyDescription2_test.go index aec4b6df4..a788743f3 100644 --- a/pkg/fourslash/tests/gen/jsDocPropertyDescription2_test.go +++ b/pkg/fourslash/tests/gen/jsDocPropertyDescription2_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocPropertyDescription2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface SymbolExample { /** Something generic */ diff --git a/pkg/fourslash/tests/gen/jsDocPropertyDescription3_test.go b/pkg/fourslash/tests/gen/jsDocPropertyDescription3_test.go index c531f24dd..546ccb67a 100644 --- a/pkg/fourslash/tests/gen/jsDocPropertyDescription3_test.go +++ b/pkg/fourslash/tests/gen/jsDocPropertyDescription3_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocPropertyDescription3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface LiteralExample { /** Something generic */ diff --git a/pkg/fourslash/tests/gen/jsDocPropertyDescription4_test.go b/pkg/fourslash/tests/gen/jsDocPropertyDescription4_test.go index b3e44606f..a8d387339 100644 --- a/pkg/fourslash/tests/gen/jsDocPropertyDescription4_test.go +++ b/pkg/fourslash/tests/gen/jsDocPropertyDescription4_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocPropertyDescription4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface MultipleExample { /** Something generic */ diff --git a/pkg/fourslash/tests/gen/jsDocPropertyDescription5_test.go b/pkg/fourslash/tests/gen/jsDocPropertyDescription5_test.go index a1f20225f..6dbe7b3f5 100644 --- a/pkg/fourslash/tests/gen/jsDocPropertyDescription5_test.go +++ b/pkg/fourslash/tests/gen/jsDocPropertyDescription5_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocPropertyDescription5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Multiple1Example { /** Something generic */ diff --git a/pkg/fourslash/tests/gen/jsDocPropertyDescription6_test.go b/pkg/fourslash/tests/gen/jsDocPropertyDescription6_test.go index 0a576bd2c..0a1b30dad 100644 --- a/pkg/fourslash/tests/gen/jsDocPropertyDescription6_test.go +++ b/pkg/fourslash/tests/gen/jsDocPropertyDescription6_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocPropertyDescription6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Literal1Example { [key: ` + "`" + `prefix${string}` + "`" + `]: number | string; diff --git a/pkg/fourslash/tests/gen/jsDocPropertyDescription7_test.go b/pkg/fourslash/tests/gen/jsDocPropertyDescription7_test.go index f9040bd16..cca16e3b2 100644 --- a/pkg/fourslash/tests/gen/jsDocPropertyDescription7_test.go +++ b/pkg/fourslash/tests/gen/jsDocPropertyDescription7_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocPropertyDescription7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class StringClass { /** Something generic */ diff --git a/pkg/fourslash/tests/gen/jsDocPropertyDescription8_test.go b/pkg/fourslash/tests/gen/jsDocPropertyDescription8_test.go index a698b4860..b50570217 100644 --- a/pkg/fourslash/tests/gen/jsDocPropertyDescription8_test.go +++ b/pkg/fourslash/tests/gen/jsDocPropertyDescription8_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocPropertyDescription8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class SymbolClass { /** Something generic */ diff --git a/pkg/fourslash/tests/gen/jsDocPropertyDescription9_test.go b/pkg/fourslash/tests/gen/jsDocPropertyDescription9_test.go index e2782da08..8a9b560a5 100644 --- a/pkg/fourslash/tests/gen/jsDocPropertyDescription9_test.go +++ b/pkg/fourslash/tests/gen/jsDocPropertyDescription9_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocPropertyDescription9(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class LiteralClass { /** Something generic */ diff --git a/pkg/fourslash/tests/gen/jsDocSee1_test.go b/pkg/fourslash/tests/gen/jsDocSee1_test.go index 2949c8716..21e0deafb 100644 --- a/pkg/fourslash/tests/gen/jsDocSee1_test.go +++ b/pkg/fourslash/tests/gen/jsDocSee1_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocSee1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface [|/*def1*/Foo|] { foo: string diff --git a/pkg/fourslash/tests/gen/jsDocSee2_test.go b/pkg/fourslash/tests/gen/jsDocSee2_test.go index 121921a40..a8983cff2 100644 --- a/pkg/fourslash/tests/gen/jsDocSee2_test.go +++ b/pkg/fourslash/tests/gen/jsDocSee2_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocSee2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** @see {/*use1*/[|foooo|]} unknown reference*/ const a = "" diff --git a/pkg/fourslash/tests/gen/jsDocSee3_test.go b/pkg/fourslash/tests/gen/jsDocSee3_test.go index 0add66480..7e1c779ea 100644 --- a/pkg/fourslash/tests/gen/jsDocSee3_test.go +++ b/pkg/fourslash/tests/gen/jsDocSee3_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocSee3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo ([|/*def1*/a|]: string) { /** diff --git a/pkg/fourslash/tests/gen/jsDocSee4_test.go b/pkg/fourslash/tests/gen/jsDocSee4_test.go index 0b187ba8d..6221435ce 100644 --- a/pkg/fourslash/tests/gen/jsDocSee4_test.go +++ b/pkg/fourslash/tests/gen/jsDocSee4_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocSee4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class [|/*def1*/A|] { foo () { } diff --git a/pkg/fourslash/tests/gen/jsDocSee_rename1_test.go b/pkg/fourslash/tests/gen/jsDocSee_rename1_test.go index 85185abd5..d1bb47e4f 100644 --- a/pkg/fourslash/tests/gen/jsDocSee_rename1_test.go +++ b/pkg/fourslash/tests/gen/jsDocSee_rename1_test.go @@ -9,8 +9,8 @@ import ( ) func TestJsDocSee_rename1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|interface [|{| "contextRangeIndex": 0 |}A|] {}|] /** diff --git a/pkg/fourslash/tests/gen/jsDocServices_test.go b/pkg/fourslash/tests/gen/jsDocServices_test.go index 1de792d6d..64f264aea 100644 --- a/pkg/fourslash/tests/gen/jsDocServices_test.go +++ b/pkg/fourslash/tests/gen/jsDocServices_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocServices(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface /*I*/I {} diff --git a/pkg/fourslash/tests/gen/jsDocSignature-43394_test.go b/pkg/fourslash/tests/gen/jsDocSignature-43394_test.go index 4b462b663..c0e2fbb1c 100644 --- a/pkg/fourslash/tests/gen/jsDocSignature-43394_test.go +++ b/pkg/fourslash/tests/gen/jsDocSignature-43394_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocSignature_43394(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * @typedef {Object} Foo diff --git a/pkg/fourslash/tests/gen/jsDocTagsWithHyphen_test.go b/pkg/fourslash/tests/gen/jsDocTagsWithHyphen_test.go index 08c5b7ef5..5f65e9cb4 100644 --- a/pkg/fourslash/tests/gen/jsDocTagsWithHyphen_test.go +++ b/pkg/fourslash/tests/gen/jsDocTagsWithHyphen_test.go @@ -9,8 +9,8 @@ import ( ) func TestJsDocTagsWithHyphen(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: dummy.js diff --git a/pkg/fourslash/tests/gen/jsDocTypeTagQuickInfo1_test.go b/pkg/fourslash/tests/gen/jsDocTypeTagQuickInfo1_test.go index d5bb7de6a..69224fa07 100644 --- a/pkg/fourslash/tests/gen/jsDocTypeTagQuickInfo1_test.go +++ b/pkg/fourslash/tests/gen/jsDocTypeTagQuickInfo1_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocTypeTagQuickInfo1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: jsDocTypeTag1.js diff --git a/pkg/fourslash/tests/gen/jsDocTypeTagQuickInfo2_test.go b/pkg/fourslash/tests/gen/jsDocTypeTagQuickInfo2_test.go index 5d3eb4882..14dcefbcc 100644 --- a/pkg/fourslash/tests/gen/jsDocTypeTagQuickInfo2_test.go +++ b/pkg/fourslash/tests/gen/jsDocTypeTagQuickInfo2_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocTypeTagQuickInfo2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: jsDocTypeTag2.js diff --git a/pkg/fourslash/tests/gen/jsDocTypedefQuickInfo1_test.go b/pkg/fourslash/tests/gen/jsDocTypedefQuickInfo1_test.go index 7d16cc419..bc363a02a 100644 --- a/pkg/fourslash/tests/gen/jsDocTypedefQuickInfo1_test.go +++ b/pkg/fourslash/tests/gen/jsDocTypedefQuickInfo1_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsDocTypedefQuickInfo1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: jsDocTypedef1.js diff --git a/pkg/fourslash/tests/gen/jsFileImportNoTypes2_test.go b/pkg/fourslash/tests/gen/jsFileImportNoTypes2_test.go index 94f85b13d..d3a347219 100644 --- a/pkg/fourslash/tests/gen/jsFileImportNoTypes2_test.go +++ b/pkg/fourslash/tests/gen/jsFileImportNoTypes2_test.go @@ -10,8 +10,8 @@ import ( ) func TestJsFileImportNoTypes2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /default.ts diff --git a/pkg/fourslash/tests/gen/jsObjectDefinePropertyRenameLocations_test.go b/pkg/fourslash/tests/gen/jsObjectDefinePropertyRenameLocations_test.go index b8992e402..78339cee6 100644 --- a/pkg/fourslash/tests/gen/jsObjectDefinePropertyRenameLocations_test.go +++ b/pkg/fourslash/tests/gen/jsObjectDefinePropertyRenameLocations_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsObjectDefinePropertyRenameLocations(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/jsQuickInfoGenerallyAcceptableSize_test.go b/pkg/fourslash/tests/gen/jsQuickInfoGenerallyAcceptableSize_test.go index 081b68f91..9bbc18661 100644 --- a/pkg/fourslash/tests/gen/jsQuickInfoGenerallyAcceptableSize_test.go +++ b/pkg/fourslash/tests/gen/jsQuickInfoGenerallyAcceptableSize_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsQuickInfoGenerallyAcceptableSize(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/jsRequireQuickInfo_test.go b/pkg/fourslash/tests/gen/jsRequireQuickInfo_test.go index 7029bfdcd..37dff9d5b 100644 --- a/pkg/fourslash/tests/gen/jsRequireQuickInfo_test.go +++ b/pkg/fourslash/tests/gen/jsRequireQuickInfo_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsRequireQuickInfo(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/jsSignature-41059_test.go b/pkg/fourslash/tests/gen/jsSignature-41059_test.go index 452502e95..61e9aef43 100644 --- a/pkg/fourslash/tests/gen/jsSignature-41059_test.go +++ b/pkg/fourslash/tests/gen/jsSignature-41059_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsSignature_41059(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @lib: esnext // @allowNonTsExtensions: true diff --git a/pkg/fourslash/tests/gen/jsconfig_test.go b/pkg/fourslash/tests/gen/jsconfig_test.go index aedd2f21f..bdccb02a3 100644 --- a/pkg/fourslash/tests/gen/jsconfig_test.go +++ b/pkg/fourslash/tests/gen/jsconfig_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsconfig(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.js function f(/**/x) { diff --git a/pkg/fourslash/tests/gen/jsdocCallbackTagRename01_test.go b/pkg/fourslash/tests/gen/jsdocCallbackTagRename01_test.go index 5ff5b5c0c..fc59b7538 100644 --- a/pkg/fourslash/tests/gen/jsdocCallbackTagRename01_test.go +++ b/pkg/fourslash/tests/gen/jsdocCallbackTagRename01_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsdocCallbackTagRename01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: jsDocCallback.js diff --git a/pkg/fourslash/tests/gen/jsdocCallbackTag_test.go b/pkg/fourslash/tests/gen/jsdocCallbackTag_test.go index 79e7fbbfe..dd4ca46e1 100644 --- a/pkg/fourslash/tests/gen/jsdocCallbackTag_test.go +++ b/pkg/fourslash/tests/gen/jsdocCallbackTag_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsdocCallbackTag(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: jsdocCallbackTag.js diff --git a/pkg/fourslash/tests/gen/jsdocDeprecated_suggestion22_test.go b/pkg/fourslash/tests/gen/jsdocDeprecated_suggestion22_test.go index 9d2d2dba7..4572e37b9 100644 --- a/pkg/fourslash/tests/gen/jsdocDeprecated_suggestion22_test.go +++ b/pkg/fourslash/tests/gen/jsdocDeprecated_suggestion22_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsdocDeprecated_suggestion22(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: /a.ts const foo: { diff --git a/pkg/fourslash/tests/gen/jsdocDeprecated_suggestion5_test.go b/pkg/fourslash/tests/gen/jsdocDeprecated_suggestion5_test.go index e512cf6b7..f5c284dac 100644 --- a/pkg/fourslash/tests/gen/jsdocDeprecated_suggestion5_test.go +++ b/pkg/fourslash/tests/gen/jsdocDeprecated_suggestion5_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsdocDeprecated_suggestion5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @checkJs: true // @allowJs: true diff --git a/pkg/fourslash/tests/gen/jsdocDeprecated_suggestion7_test.go b/pkg/fourslash/tests/gen/jsdocDeprecated_suggestion7_test.go index aa7ed7014..306bb1d81 100644 --- a/pkg/fourslash/tests/gen/jsdocDeprecated_suggestion7_test.go +++ b/pkg/fourslash/tests/gen/jsdocDeprecated_suggestion7_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsdocDeprecated_suggestion7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum Direction { Left = -1, diff --git a/pkg/fourslash/tests/gen/jsdocDeprecated_suggestion8_test.go b/pkg/fourslash/tests/gen/jsdocDeprecated_suggestion8_test.go index 59880ef1f..090777503 100644 --- a/pkg/fourslash/tests/gen/jsdocDeprecated_suggestion8_test.go +++ b/pkg/fourslash/tests/gen/jsdocDeprecated_suggestion8_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsdocDeprecated_suggestion8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: first.ts /** @deprecated */ diff --git a/pkg/fourslash/tests/gen/jsdocDeprecated_suggestion9_test.go b/pkg/fourslash/tests/gen/jsdocDeprecated_suggestion9_test.go index 0ca5f2ef0..74cbcc54b 100644 --- a/pkg/fourslash/tests/gen/jsdocDeprecated_suggestion9_test.go +++ b/pkg/fourslash/tests/gen/jsdocDeprecated_suggestion9_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsdocDeprecated_suggestion9(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: first.ts export class logger { } diff --git a/pkg/fourslash/tests/gen/jsdocExtendsTagCompletion_test.go b/pkg/fourslash/tests/gen/jsdocExtendsTagCompletion_test.go index 3324ecea1..b9eb4e7b3 100644 --- a/pkg/fourslash/tests/gen/jsdocExtendsTagCompletion_test.go +++ b/pkg/fourslash/tests/gen/jsdocExtendsTagCompletion_test.go @@ -9,8 +9,8 @@ import ( ) func TestJsdocExtendsTagCompletion(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** @extends {/**/} */ class A {}` diff --git a/pkg/fourslash/tests/gen/jsdocImplementsTagCompletion_test.go b/pkg/fourslash/tests/gen/jsdocImplementsTagCompletion_test.go index 7d226404a..1fda332bf 100644 --- a/pkg/fourslash/tests/gen/jsdocImplementsTagCompletion_test.go +++ b/pkg/fourslash/tests/gen/jsdocImplementsTagCompletion_test.go @@ -9,8 +9,8 @@ import ( ) func TestJsdocImplementsTagCompletion(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** @implements {/**/} */ class A {}` diff --git a/pkg/fourslash/tests/gen/jsdocImportTagCompletion1_test.go b/pkg/fourslash/tests/gen/jsdocImportTagCompletion1_test.go index 618855831..dab1df1c3 100644 --- a/pkg/fourslash/tests/gen/jsdocImportTagCompletion1_test.go +++ b/pkg/fourslash/tests/gen/jsdocImportTagCompletion1_test.go @@ -9,8 +9,8 @@ import ( ) func TestJsdocImportTagCompletion1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJS: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/jsdocLink1_test.go b/pkg/fourslash/tests/gen/jsdocLink1_test.go index 10d7966ab..90a33366f 100644 --- a/pkg/fourslash/tests/gen/jsdocLink1_test.go +++ b/pkg/fourslash/tests/gen/jsdocLink1_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsdocLink1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { } diff --git a/pkg/fourslash/tests/gen/jsdocLink2_test.go b/pkg/fourslash/tests/gen/jsdocLink2_test.go index 955f1abe6..cbb9d37d4 100644 --- a/pkg/fourslash/tests/gen/jsdocLink2_test.go +++ b/pkg/fourslash/tests/gen/jsdocLink2_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsdocLink2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: jsdocLink2.ts class C { diff --git a/pkg/fourslash/tests/gen/jsdocLink3_test.go b/pkg/fourslash/tests/gen/jsdocLink3_test.go index b75e0ae27..0bb81a631 100644 --- a/pkg/fourslash/tests/gen/jsdocLink3_test.go +++ b/pkg/fourslash/tests/gen/jsdocLink3_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsdocLink3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /jsdocLink3.ts export class C { diff --git a/pkg/fourslash/tests/gen/jsdocLink4_test.go b/pkg/fourslash/tests/gen/jsdocLink4_test.go index c53ead76f..69b54ca77 100644 --- a/pkg/fourslash/tests/gen/jsdocLink4_test.go +++ b/pkg/fourslash/tests/gen/jsdocLink4_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsdocLink4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare class I { /** {@link I} */ diff --git a/pkg/fourslash/tests/gen/jsdocLink5_test.go b/pkg/fourslash/tests/gen/jsdocLink5_test.go index 34817f2eb..5d0041b94 100644 --- a/pkg/fourslash/tests/gen/jsdocLink5_test.go +++ b/pkg/fourslash/tests/gen/jsdocLink5_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsdocLink5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function g() { } /** diff --git a/pkg/fourslash/tests/gen/jsdocLink6_test.go b/pkg/fourslash/tests/gen/jsdocLink6_test.go index 3dee2703a..fa0d8e799 100644 --- a/pkg/fourslash/tests/gen/jsdocLink6_test.go +++ b/pkg/fourslash/tests/gen/jsdocLink6_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsdocLink6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: /a.ts export default function A() { } diff --git a/pkg/fourslash/tests/gen/jsdocLink_findAllReferences1_test.go b/pkg/fourslash/tests/gen/jsdocLink_findAllReferences1_test.go index e8625a09f..10e5e4655 100644 --- a/pkg/fourslash/tests/gen/jsdocLink_findAllReferences1_test.go +++ b/pkg/fourslash/tests/gen/jsdocLink_findAllReferences1_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsdocLink_findAllReferences1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface A/**/ {} /** diff --git a/pkg/fourslash/tests/gen/jsdocLink_rename1_test.go b/pkg/fourslash/tests/gen/jsdocLink_rename1_test.go index 75b178d65..7d277f2fd 100644 --- a/pkg/fourslash/tests/gen/jsdocLink_rename1_test.go +++ b/pkg/fourslash/tests/gen/jsdocLink_rename1_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsdocLink_rename1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface A/**/ {} /** diff --git a/pkg/fourslash/tests/gen/jsdocNullableUnion_test.go b/pkg/fourslash/tests/gen/jsdocNullableUnion_test.go index 414878c14..859165161 100644 --- a/pkg/fourslash/tests/gen/jsdocNullableUnion_test.go +++ b/pkg/fourslash/tests/gen/jsdocNullableUnion_test.go @@ -9,8 +9,8 @@ import ( ) func TestJsdocNullableUnion(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/jsdocOnInheritedMembers1_test.go b/pkg/fourslash/tests/gen/jsdocOnInheritedMembers1_test.go index 18db03189..53493a8fc 100644 --- a/pkg/fourslash/tests/gen/jsdocOnInheritedMembers1_test.go +++ b/pkg/fourslash/tests/gen/jsdocOnInheritedMembers1_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsdocOnInheritedMembers1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/jsdocOnInheritedMembers2_test.go b/pkg/fourslash/tests/gen/jsdocOnInheritedMembers2_test.go index 0558cfb02..2b2978cf4 100644 --- a/pkg/fourslash/tests/gen/jsdocOnInheritedMembers2_test.go +++ b/pkg/fourslash/tests/gen/jsdocOnInheritedMembers2_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsdocOnInheritedMembers2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/jsdocOverloadTagCompletion_test.go b/pkg/fourslash/tests/gen/jsdocOverloadTagCompletion_test.go index 62f9916bb..b957d13de 100644 --- a/pkg/fourslash/tests/gen/jsdocOverloadTagCompletion_test.go +++ b/pkg/fourslash/tests/gen/jsdocOverloadTagCompletion_test.go @@ -9,8 +9,8 @@ import ( ) func TestJsdocOverloadTagCompletion(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJS: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/jsdocParamTagSpecialKeywords_test.go b/pkg/fourslash/tests/gen/jsdocParamTagSpecialKeywords_test.go index cefe74b43..c2b69ca19 100644 --- a/pkg/fourslash/tests/gen/jsdocParamTagSpecialKeywords_test.go +++ b/pkg/fourslash/tests/gen/jsdocParamTagSpecialKeywords_test.go @@ -9,8 +9,8 @@ import ( ) func TestJsdocParamTagSpecialKeywords(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: test.js diff --git a/pkg/fourslash/tests/gen/jsdocParam_suggestion1_test.go b/pkg/fourslash/tests/gen/jsdocParam_suggestion1_test.go index f9ab687a4..ae89f7c71 100644 --- a/pkg/fourslash/tests/gen/jsdocParam_suggestion1_test.go +++ b/pkg/fourslash/tests/gen/jsdocParam_suggestion1_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsdocParam_suggestion1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts /** diff --git a/pkg/fourslash/tests/gen/jsdocParameterNameCompletion_test.go b/pkg/fourslash/tests/gen/jsdocParameterNameCompletion_test.go index d7080c9d6..506da4aba 100644 --- a/pkg/fourslash/tests/gen/jsdocParameterNameCompletion_test.go +++ b/pkg/fourslash/tests/gen/jsdocParameterNameCompletion_test.go @@ -9,8 +9,8 @@ import ( ) func TestJsdocParameterNameCompletion(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * @param /*0*/ diff --git a/pkg/fourslash/tests/gen/jsdocPropTagCompletion_test.go b/pkg/fourslash/tests/gen/jsdocPropTagCompletion_test.go index df8164d85..6deef54a3 100644 --- a/pkg/fourslash/tests/gen/jsdocPropTagCompletion_test.go +++ b/pkg/fourslash/tests/gen/jsdocPropTagCompletion_test.go @@ -9,8 +9,8 @@ import ( ) func TestJsdocPropTagCompletion(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * @typedef Foo diff --git a/pkg/fourslash/tests/gen/jsdocPropertyTagCompletion_test.go b/pkg/fourslash/tests/gen/jsdocPropertyTagCompletion_test.go index 18752abb7..613cacf3a 100644 --- a/pkg/fourslash/tests/gen/jsdocPropertyTagCompletion_test.go +++ b/pkg/fourslash/tests/gen/jsdocPropertyTagCompletion_test.go @@ -9,8 +9,8 @@ import ( ) func TestJsdocPropertyTagCompletion(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * @typedef {Object} Foo diff --git a/pkg/fourslash/tests/gen/jsdocReturnsTag_test.go b/pkg/fourslash/tests/gen/jsdocReturnsTag_test.go index 0c5a2fe2f..9d3105845 100644 --- a/pkg/fourslash/tests/gen/jsdocReturnsTag_test.go +++ b/pkg/fourslash/tests/gen/jsdocReturnsTag_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsdocReturnsTag(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: dummy.js diff --git a/pkg/fourslash/tests/gen/jsdocSatisfiesTagCompletion1_test.go b/pkg/fourslash/tests/gen/jsdocSatisfiesTagCompletion1_test.go index 46a9ebbf4..6ac388326 100644 --- a/pkg/fourslash/tests/gen/jsdocSatisfiesTagCompletion1_test.go +++ b/pkg/fourslash/tests/gen/jsdocSatisfiesTagCompletion1_test.go @@ -9,8 +9,8 @@ import ( ) func TestJsdocSatisfiesTagCompletion1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noEmit: true // @allowJS: true diff --git a/pkg/fourslash/tests/gen/jsdocSatisfiesTagCompletion2_test.go b/pkg/fourslash/tests/gen/jsdocSatisfiesTagCompletion2_test.go index f725e4b17..fa0922c3a 100644 --- a/pkg/fourslash/tests/gen/jsdocSatisfiesTagCompletion2_test.go +++ b/pkg/fourslash/tests/gen/jsdocSatisfiesTagCompletion2_test.go @@ -9,8 +9,8 @@ import ( ) func TestJsdocSatisfiesTagCompletion2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noEmit: true // @allowJS: true diff --git a/pkg/fourslash/tests/gen/jsdocSatisfiesTagFindAllReferences_test.go b/pkg/fourslash/tests/gen/jsdocSatisfiesTagFindAllReferences_test.go index 2dfcb8071..5d08f836f 100644 --- a/pkg/fourslash/tests/gen/jsdocSatisfiesTagFindAllReferences_test.go +++ b/pkg/fourslash/tests/gen/jsdocSatisfiesTagFindAllReferences_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsdocSatisfiesTagFindAllReferences(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noEmit: true // @allowJS: true diff --git a/pkg/fourslash/tests/gen/jsdocSatisfiesTagRename_test.go b/pkg/fourslash/tests/gen/jsdocSatisfiesTagRename_test.go index c4ae962b0..631a68761 100644 --- a/pkg/fourslash/tests/gen/jsdocSatisfiesTagRename_test.go +++ b/pkg/fourslash/tests/gen/jsdocSatisfiesTagRename_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsdocSatisfiesTagRename(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noEmit: true // @allowJS: true diff --git a/pkg/fourslash/tests/gen/jsdocTemplatePrototypeCompletions_test.go b/pkg/fourslash/tests/gen/jsdocTemplatePrototypeCompletions_test.go index 8e02baebb..e40975e41 100644 --- a/pkg/fourslash/tests/gen/jsdocTemplatePrototypeCompletions_test.go +++ b/pkg/fourslash/tests/gen/jsdocTemplatePrototypeCompletions_test.go @@ -9,8 +9,8 @@ import ( ) func TestJsdocTemplatePrototypeCompletions(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @checkJs: true // @filename: index.js diff --git a/pkg/fourslash/tests/gen/jsdocTemplateTagCompletion_test.go b/pkg/fourslash/tests/gen/jsdocTemplateTagCompletion_test.go index 7a6f052ab..c361aace1 100644 --- a/pkg/fourslash/tests/gen/jsdocTemplateTagCompletion_test.go +++ b/pkg/fourslash/tests/gen/jsdocTemplateTagCompletion_test.go @@ -9,8 +9,8 @@ import ( ) func TestJsdocTemplateTagCompletion(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * @template {/**/} T diff --git a/pkg/fourslash/tests/gen/jsdocThrowsTagCompletion_test.go b/pkg/fourslash/tests/gen/jsdocThrowsTagCompletion_test.go index a56f4e155..ce1bba5ae 100644 --- a/pkg/fourslash/tests/gen/jsdocThrowsTagCompletion_test.go +++ b/pkg/fourslash/tests/gen/jsdocThrowsTagCompletion_test.go @@ -9,8 +9,8 @@ import ( ) func TestJsdocThrowsTagCompletion(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * @throws {/**/} description diff --git a/pkg/fourslash/tests/gen/jsdocThrowsTag_findAllReferences_test.go b/pkg/fourslash/tests/gen/jsdocThrowsTag_findAllReferences_test.go index e7d4a97e6..f355a5330 100644 --- a/pkg/fourslash/tests/gen/jsdocThrowsTag_findAllReferences_test.go +++ b/pkg/fourslash/tests/gen/jsdocThrowsTag_findAllReferences_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsdocThrowsTag_findAllReferences(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class /**/E extends Error {} /** diff --git a/pkg/fourslash/tests/gen/jsdocThrowsTag_rename_test.go b/pkg/fourslash/tests/gen/jsdocThrowsTag_rename_test.go index 32fde9703..4df3b18f5 100644 --- a/pkg/fourslash/tests/gen/jsdocThrowsTag_rename_test.go +++ b/pkg/fourslash/tests/gen/jsdocThrowsTag_rename_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsdocThrowsTag_rename(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class /**/E extends Error {} /** diff --git a/pkg/fourslash/tests/gen/jsdocTypedefTag1_test.go b/pkg/fourslash/tests/gen/jsdocTypedefTag1_test.go index c1e5af1e5..a83774f2a 100644 --- a/pkg/fourslash/tests/gen/jsdocTypedefTag1_test.go +++ b/pkg/fourslash/tests/gen/jsdocTypedefTag1_test.go @@ -9,8 +9,8 @@ import ( ) func TestJsdocTypedefTag1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: jsdocCompletion_typedef.js diff --git a/pkg/fourslash/tests/gen/jsdocTypedefTag2_test.go b/pkg/fourslash/tests/gen/jsdocTypedefTag2_test.go index 7f90d1892..2ae22b380 100644 --- a/pkg/fourslash/tests/gen/jsdocTypedefTag2_test.go +++ b/pkg/fourslash/tests/gen/jsdocTypedefTag2_test.go @@ -9,8 +9,8 @@ import ( ) func TestJsdocTypedefTag2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: jsdocCompletion_typedef.js diff --git a/pkg/fourslash/tests/gen/jsdocTypedefTagGoToDefinition_test.go b/pkg/fourslash/tests/gen/jsdocTypedefTagGoToDefinition_test.go index 422d2496c..309980b17 100644 --- a/pkg/fourslash/tests/gen/jsdocTypedefTagGoToDefinition_test.go +++ b/pkg/fourslash/tests/gen/jsdocTypedefTagGoToDefinition_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsdocTypedefTagGoToDefinition(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: jsdocCompletion_typedef.js diff --git a/pkg/fourslash/tests/gen/jsdocTypedefTagNamespace_test.go b/pkg/fourslash/tests/gen/jsdocTypedefTagNamespace_test.go index 9694365c3..74c85cd9d 100644 --- a/pkg/fourslash/tests/gen/jsdocTypedefTagNamespace_test.go +++ b/pkg/fourslash/tests/gen/jsdocTypedefTagNamespace_test.go @@ -11,8 +11,8 @@ import ( ) func TestJsdocTypedefTagNamespace(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: jsdocCompletion_typedef.js diff --git a/pkg/fourslash/tests/gen/jsdocTypedefTagNavigateTo_test.go b/pkg/fourslash/tests/gen/jsdocTypedefTagNavigateTo_test.go index 4b027a3be..f01b33aa4 100644 --- a/pkg/fourslash/tests/gen/jsdocTypedefTagNavigateTo_test.go +++ b/pkg/fourslash/tests/gen/jsdocTypedefTagNavigateTo_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsdocTypedefTagNavigateTo(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: jsDocTypedef_form2.js diff --git a/pkg/fourslash/tests/gen/jsdocTypedefTagRename01_test.go b/pkg/fourslash/tests/gen/jsdocTypedefTagRename01_test.go index a68ec70d5..e3c50609b 100644 --- a/pkg/fourslash/tests/gen/jsdocTypedefTagRename01_test.go +++ b/pkg/fourslash/tests/gen/jsdocTypedefTagRename01_test.go @@ -9,8 +9,8 @@ import ( ) func TestJsdocTypedefTagRename01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: jsDocTypedef_form1.js diff --git a/pkg/fourslash/tests/gen/jsdocTypedefTagRename02_test.go b/pkg/fourslash/tests/gen/jsdocTypedefTagRename02_test.go index e3f7be762..19359b1c4 100644 --- a/pkg/fourslash/tests/gen/jsdocTypedefTagRename02_test.go +++ b/pkg/fourslash/tests/gen/jsdocTypedefTagRename02_test.go @@ -9,8 +9,8 @@ import ( ) func TestJsdocTypedefTagRename02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: jsDocTypedef_form2.js diff --git a/pkg/fourslash/tests/gen/jsdocTypedefTagRename03_test.go b/pkg/fourslash/tests/gen/jsdocTypedefTagRename03_test.go index 9fcc82bc7..8319ecc7e 100644 --- a/pkg/fourslash/tests/gen/jsdocTypedefTagRename03_test.go +++ b/pkg/fourslash/tests/gen/jsdocTypedefTagRename03_test.go @@ -9,8 +9,8 @@ import ( ) func TestJsdocTypedefTagRename03(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: jsDocTypedef_form3.js diff --git a/pkg/fourslash/tests/gen/jsdocTypedefTagRename04_test.go b/pkg/fourslash/tests/gen/jsdocTypedefTagRename04_test.go index b9b4d57c1..861be97ea 100644 --- a/pkg/fourslash/tests/gen/jsdocTypedefTagRename04_test.go +++ b/pkg/fourslash/tests/gen/jsdocTypedefTagRename04_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsdocTypedefTagRename04(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: jsDocTypedef_form2.js diff --git a/pkg/fourslash/tests/gen/jsdocTypedefTagSemanticMeaning0_test.go b/pkg/fourslash/tests/gen/jsdocTypedefTagSemanticMeaning0_test.go index a122f3bdd..81dca09eb 100644 --- a/pkg/fourslash/tests/gen/jsdocTypedefTagSemanticMeaning0_test.go +++ b/pkg/fourslash/tests/gen/jsdocTypedefTagSemanticMeaning0_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsdocTypedefTagSemanticMeaning0(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/jsdocTypedefTagSemanticMeaning1_test.go b/pkg/fourslash/tests/gen/jsdocTypedefTagSemanticMeaning1_test.go index 0d6a44faf..3d09ef864 100644 --- a/pkg/fourslash/tests/gen/jsdocTypedefTagSemanticMeaning1_test.go +++ b/pkg/fourslash/tests/gen/jsdocTypedefTagSemanticMeaning1_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsdocTypedefTagSemanticMeaning1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/jsdocTypedefTagServices_test.go b/pkg/fourslash/tests/gen/jsdocTypedefTagServices_test.go index 46e99e7bb..b569dabf0 100644 --- a/pkg/fourslash/tests/gen/jsdocTypedefTagServices_test.go +++ b/pkg/fourslash/tests/gen/jsdocTypedefTagServices_test.go @@ -9,8 +9,8 @@ import ( ) func TestJsdocTypedefTagServices(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/jsdocTypedefTagTypeExpressionCompletion_test.go b/pkg/fourslash/tests/gen/jsdocTypedefTagTypeExpressionCompletion_test.go index 9cdd63096..c8682d796 100644 --- a/pkg/fourslash/tests/gen/jsdocTypedefTagTypeExpressionCompletion_test.go +++ b/pkg/fourslash/tests/gen/jsdocTypedefTagTypeExpressionCompletion_test.go @@ -11,8 +11,8 @@ import ( ) func TestJsdocTypedefTagTypeExpressionCompletion(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { age: number; diff --git a/pkg/fourslash/tests/gen/jsdocTypedefTag_test.go b/pkg/fourslash/tests/gen/jsdocTypedefTag_test.go index 264b296b5..c396390ba 100644 --- a/pkg/fourslash/tests/gen/jsdocTypedefTag_test.go +++ b/pkg/fourslash/tests/gen/jsdocTypedefTag_test.go @@ -9,8 +9,8 @@ import ( ) func TestJsdocTypedefTag(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: jsdocCompletion_typedef.js diff --git a/pkg/fourslash/tests/gen/jsxAriaLikeCompletions_test.go b/pkg/fourslash/tests/gen/jsxAriaLikeCompletions_test.go index 976c16bd6..0f15ac465 100644 --- a/pkg/fourslash/tests/gen/jsxAriaLikeCompletions_test.go +++ b/pkg/fourslash/tests/gen/jsxAriaLikeCompletions_test.go @@ -11,8 +11,8 @@ import ( ) func TestJsxAriaLikeCompletions(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx declare var React: any; diff --git a/pkg/fourslash/tests/gen/jsxElementExtendsNoCrash1_test.go b/pkg/fourslash/tests/gen/jsxElementExtendsNoCrash1_test.go index fac5f4f0f..7e57f75b8 100644 --- a/pkg/fourslash/tests/gen/jsxElementExtendsNoCrash1_test.go +++ b/pkg/fourslash/tests/gen/jsxElementExtendsNoCrash1_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsxElementExtendsNoCrash1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: index.tsx ` diff --git a/pkg/fourslash/tests/gen/jsxElementExtendsNoCrash2_test.go b/pkg/fourslash/tests/gen/jsxElementExtendsNoCrash2_test.go index 41416b838..713ac3a30 100644 --- a/pkg/fourslash/tests/gen/jsxElementExtendsNoCrash2_test.go +++ b/pkg/fourslash/tests/gen/jsxElementExtendsNoCrash2_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsxElementExtendsNoCrash2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: index.tsx ` diff --git a/pkg/fourslash/tests/gen/jsxElementExtendsNoCrash3_test.go b/pkg/fourslash/tests/gen/jsxElementExtendsNoCrash3_test.go index cd117585f..adfcd0f52 100644 --- a/pkg/fourslash/tests/gen/jsxElementExtendsNoCrash3_test.go +++ b/pkg/fourslash/tests/gen/jsxElementExtendsNoCrash3_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsxElementExtendsNoCrash3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: index.tsx ` diff --git a/pkg/fourslash/tests/gen/jsxElementMissingOpeningTagNoCrash_test.go b/pkg/fourslash/tests/gen/jsxElementMissingOpeningTagNoCrash_test.go index 97a7a7036..3da2a0e8b 100644 --- a/pkg/fourslash/tests/gen/jsxElementMissingOpeningTagNoCrash_test.go +++ b/pkg/fourslash/tests/gen/jsxElementMissingOpeningTagNoCrash_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsxElementMissingOpeningTagNoCrash(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx declare function Foo(): any; diff --git a/pkg/fourslash/tests/gen/jsxFindAllReferencesOnRuntimeImportWithPaths1_test.go b/pkg/fourslash/tests/gen/jsxFindAllReferencesOnRuntimeImportWithPaths1_test.go index 8acc24921..69b236dab 100644 --- a/pkg/fourslash/tests/gen/jsxFindAllReferencesOnRuntimeImportWithPaths1_test.go +++ b/pkg/fourslash/tests/gen/jsxFindAllReferencesOnRuntimeImportWithPaths1_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsxFindAllReferencesOnRuntimeImportWithPaths1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: project/src/foo.ts import * as x from /**/"@foo/dir/jsx-runtime"; diff --git a/pkg/fourslash/tests/gen/jsxQualifiedTagCompletion_test.go b/pkg/fourslash/tests/gen/jsxQualifiedTagCompletion_test.go index 4b24d5d37..f01c50be6 100644 --- a/pkg/fourslash/tests/gen/jsxQualifiedTagCompletion_test.go +++ b/pkg/fourslash/tests/gen/jsxQualifiedTagCompletion_test.go @@ -9,8 +9,8 @@ import ( ) func TestJsxQualifiedTagCompletion(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx declare var React: any; diff --git a/pkg/fourslash/tests/gen/jsxSpreadReference_test.go b/pkg/fourslash/tests/gen/jsxSpreadReference_test.go index 5ceafa15e..bcf1f67e9 100644 --- a/pkg/fourslash/tests/gen/jsxSpreadReference_test.go +++ b/pkg/fourslash/tests/gen/jsxSpreadReference_test.go @@ -8,8 +8,8 @@ import ( ) func TestJsxSpreadReference(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx declare module JSX { diff --git a/pkg/fourslash/tests/gen/jsxTagNameCompletionClosed_test.go b/pkg/fourslash/tests/gen/jsxTagNameCompletionClosed_test.go index 96a740f12..57db06dc9 100644 --- a/pkg/fourslash/tests/gen/jsxTagNameCompletionClosed_test.go +++ b/pkg/fourslash/tests/gen/jsxTagNameCompletionClosed_test.go @@ -10,8 +10,8 @@ import ( ) func TestJsxTagNameCompletionClosed(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx interface NestedInterface { diff --git a/pkg/fourslash/tests/gen/jsxTagNameCompletionUnclosed_test.go b/pkg/fourslash/tests/gen/jsxTagNameCompletionUnclosed_test.go index 0b44cf1fd..ae8dccc7e 100644 --- a/pkg/fourslash/tests/gen/jsxTagNameCompletionUnclosed_test.go +++ b/pkg/fourslash/tests/gen/jsxTagNameCompletionUnclosed_test.go @@ -10,8 +10,8 @@ import ( ) func TestJsxTagNameCompletionUnclosed(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx interface NestedInterface { diff --git a/pkg/fourslash/tests/gen/jsxTagNameCompletionUnderElementClosed_test.go b/pkg/fourslash/tests/gen/jsxTagNameCompletionUnderElementClosed_test.go index 2e2551b24..e0231d1d6 100644 --- a/pkg/fourslash/tests/gen/jsxTagNameCompletionUnderElementClosed_test.go +++ b/pkg/fourslash/tests/gen/jsxTagNameCompletionUnderElementClosed_test.go @@ -10,8 +10,8 @@ import ( ) func TestJsxTagNameCompletionUnderElementClosed(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx declare namespace JSX { diff --git a/pkg/fourslash/tests/gen/jsxTagNameCompletionUnderElementUnclosed_test.go b/pkg/fourslash/tests/gen/jsxTagNameCompletionUnderElementUnclosed_test.go index e8347c382..8369a5bc4 100644 --- a/pkg/fourslash/tests/gen/jsxTagNameCompletionUnderElementUnclosed_test.go +++ b/pkg/fourslash/tests/gen/jsxTagNameCompletionUnderElementUnclosed_test.go @@ -10,8 +10,8 @@ import ( ) func TestJsxTagNameCompletionUnderElementUnclosed(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx declare namespace JSX { diff --git a/pkg/fourslash/tests/gen/lambdaThisMembers_test.go b/pkg/fourslash/tests/gen/lambdaThisMembers_test.go index db9531966..98160e361 100644 --- a/pkg/fourslash/tests/gen/lambdaThisMembers_test.go +++ b/pkg/fourslash/tests/gen/lambdaThisMembers_test.go @@ -9,8 +9,8 @@ import ( ) func TestLambdaThisMembers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { a: number; diff --git a/pkg/fourslash/tests/gen/letQuickInfoAndCompletionList_test.go b/pkg/fourslash/tests/gen/letQuickInfoAndCompletionList_test.go index b74b935f9..430a961dc 100644 --- a/pkg/fourslash/tests/gen/letQuickInfoAndCompletionList_test.go +++ b/pkg/fourslash/tests/gen/letQuickInfoAndCompletionList_test.go @@ -10,8 +10,8 @@ import ( ) func TestLetQuickInfoAndCompletionList(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let /*1*/a = 10; /*2*/a = 30; diff --git a/pkg/fourslash/tests/gen/localFunction_test.go b/pkg/fourslash/tests/gen/localFunction_test.go index 38ed3739f..75ef49ee2 100644 --- a/pkg/fourslash/tests/gen/localFunction_test.go +++ b/pkg/fourslash/tests/gen/localFunction_test.go @@ -8,8 +8,8 @@ import ( ) func TestLocalFunction(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function /*1*/foo() { function /*2*/bar2() { diff --git a/pkg/fourslash/tests/gen/localGetReferences_test.go b/pkg/fourslash/tests/gen/localGetReferences_test.go index beb9183c9..ed02fd737 100644 --- a/pkg/fourslash/tests/gen/localGetReferences_test.go +++ b/pkg/fourslash/tests/gen/localGetReferences_test.go @@ -8,8 +8,8 @@ import ( ) func TestLocalGetReferences(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: localGetReferences_1.ts // Comment Refence Test: g/*43*/lobalVar diff --git a/pkg/fourslash/tests/gen/memberCompletionFromFunctionCall_test.go b/pkg/fourslash/tests/gen/memberCompletionFromFunctionCall_test.go index 57658a3e2..bd8c2c32b 100644 --- a/pkg/fourslash/tests/gen/memberCompletionFromFunctionCall_test.go +++ b/pkg/fourslash/tests/gen/memberCompletionFromFunctionCall_test.go @@ -9,8 +9,8 @@ import ( ) func TestMemberCompletionFromFunctionCall(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare interface ifoo { text: (value: any) => ifoo; diff --git a/pkg/fourslash/tests/gen/memberCompletionOnRightSideOfImport_test.go b/pkg/fourslash/tests/gen/memberCompletionOnRightSideOfImport_test.go index 908468cb0..35642dd52 100644 --- a/pkg/fourslash/tests/gen/memberCompletionOnRightSideOfImport_test.go +++ b/pkg/fourslash/tests/gen/memberCompletionOnRightSideOfImport_test.go @@ -8,8 +8,8 @@ import ( ) func TestMemberCompletionOnRightSideOfImport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `import x = M./**/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/memberCompletionOnTypeParameters2_test.go b/pkg/fourslash/tests/gen/memberCompletionOnTypeParameters2_test.go index dd6c8d8bb..00ef54bf1 100644 --- a/pkg/fourslash/tests/gen/memberCompletionOnTypeParameters2_test.go +++ b/pkg/fourslash/tests/gen/memberCompletionOnTypeParameters2_test.go @@ -9,8 +9,8 @@ import ( ) func TestMemberCompletionOnTypeParameters2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A { foo(): string { return ''; } diff --git a/pkg/fourslash/tests/gen/memberCompletionOnTypeParameters_test.go b/pkg/fourslash/tests/gen/memberCompletionOnTypeParameters_test.go index a3388e2c7..90ef23978 100644 --- a/pkg/fourslash/tests/gen/memberCompletionOnTypeParameters_test.go +++ b/pkg/fourslash/tests/gen/memberCompletionOnTypeParameters_test.go @@ -10,8 +10,8 @@ import ( ) func TestMemberCompletionOnTypeParameters(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IFoo { x: number; diff --git a/pkg/fourslash/tests/gen/memberConstructorEdits_test.go b/pkg/fourslash/tests/gen/memberConstructorEdits_test.go index c6bdf6f0f..e015bd315 100644 --- a/pkg/fourslash/tests/gen/memberConstructorEdits_test.go +++ b/pkg/fourslash/tests/gen/memberConstructorEdits_test.go @@ -8,8 +8,8 @@ import ( ) func TestMemberConstructorEdits(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = ` module M { export class A { diff --git a/pkg/fourslash/tests/gen/memberListAfterDoubleDot_test.go b/pkg/fourslash/tests/gen/memberListAfterDoubleDot_test.go index 1e5a4e703..4938a83e9 100644 --- a/pkg/fourslash/tests/gen/memberListAfterDoubleDot_test.go +++ b/pkg/fourslash/tests/gen/memberListAfterDoubleDot_test.go @@ -8,8 +8,8 @@ import ( ) func TestMemberListAfterDoubleDot(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `../**/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/memberListAfterSingleDot_test.go b/pkg/fourslash/tests/gen/memberListAfterSingleDot_test.go index 6386aa695..49105a208 100644 --- a/pkg/fourslash/tests/gen/memberListAfterSingleDot_test.go +++ b/pkg/fourslash/tests/gen/memberListAfterSingleDot_test.go @@ -8,8 +8,8 @@ import ( ) func TestMemberListAfterSingleDot(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `./**/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/memberListErrorRecovery_test.go b/pkg/fourslash/tests/gen/memberListErrorRecovery_test.go index 41514692b..52a5fd8bd 100644 --- a/pkg/fourslash/tests/gen/memberListErrorRecovery_test.go +++ b/pkg/fourslash/tests/gen/memberListErrorRecovery_test.go @@ -11,8 +11,8 @@ import ( ) func TestMemberListErrorRecovery(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { static fun() { }; } diff --git a/pkg/fourslash/tests/gen/memberListInFunctionCall2_test.go b/pkg/fourslash/tests/gen/memberListInFunctionCall2_test.go index d8c72b0ff..8654d354b 100644 --- a/pkg/fourslash/tests/gen/memberListInFunctionCall2_test.go +++ b/pkg/fourslash/tests/gen/memberListInFunctionCall2_test.go @@ -10,8 +10,8 @@ import ( ) func TestMemberListInFunctionCall2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type T = { a: 1; diff --git a/pkg/fourslash/tests/gen/memberListInFunctionCall_test.go b/pkg/fourslash/tests/gen/memberListInFunctionCall_test.go index e0ff9656e..5d1c59aa6 100644 --- a/pkg/fourslash/tests/gen/memberListInFunctionCall_test.go +++ b/pkg/fourslash/tests/gen/memberListInFunctionCall_test.go @@ -9,8 +9,8 @@ import ( ) func TestMemberListInFunctionCall(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function aa(x: any) {} aa({ diff --git a/pkg/fourslash/tests/gen/memberListInReopenedEnum_test.go b/pkg/fourslash/tests/gen/memberListInReopenedEnum_test.go index 20add66ff..3010fa1e9 100644 --- a/pkg/fourslash/tests/gen/memberListInReopenedEnum_test.go +++ b/pkg/fourslash/tests/gen/memberListInReopenedEnum_test.go @@ -10,8 +10,8 @@ import ( ) func TestMemberListInReopenedEnum(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module M { enum E { diff --git a/pkg/fourslash/tests/gen/memberListInWithBlock2_test.go b/pkg/fourslash/tests/gen/memberListInWithBlock2_test.go index 76b9863f8..636b3b52c 100644 --- a/pkg/fourslash/tests/gen/memberListInWithBlock2_test.go +++ b/pkg/fourslash/tests/gen/memberListInWithBlock2_test.go @@ -8,8 +8,8 @@ import ( ) func TestMemberListInWithBlock2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IFoo { a: number; diff --git a/pkg/fourslash/tests/gen/memberListInWithBlock3_test.go b/pkg/fourslash/tests/gen/memberListInWithBlock3_test.go index c5ec8e09f..ccc8d1e02 100644 --- a/pkg/fourslash/tests/gen/memberListInWithBlock3_test.go +++ b/pkg/fourslash/tests/gen/memberListInWithBlock3_test.go @@ -9,8 +9,8 @@ import ( ) func TestMemberListInWithBlock3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = { a: 0 }; with(x./*1*/` diff --git a/pkg/fourslash/tests/gen/memberListInWithBlock_test.go b/pkg/fourslash/tests/gen/memberListInWithBlock_test.go index 2c67f9606..a5813f67b 100644 --- a/pkg/fourslash/tests/gen/memberListInWithBlock_test.go +++ b/pkg/fourslash/tests/gen/memberListInWithBlock_test.go @@ -9,8 +9,8 @@ import ( ) func TestMemberListInWithBlock(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class c { static x: number; diff --git a/pkg/fourslash/tests/gen/memberListInsideObjectLiterals_test.go b/pkg/fourslash/tests/gen/memberListInsideObjectLiterals_test.go index a7435412f..cbd89b4e8 100644 --- a/pkg/fourslash/tests/gen/memberListInsideObjectLiterals_test.go +++ b/pkg/fourslash/tests/gen/memberListInsideObjectLiterals_test.go @@ -10,8 +10,8 @@ import ( ) func TestMemberListInsideObjectLiterals(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module ObjectLiterals { interface MyPoint { diff --git a/pkg/fourslash/tests/gen/memberListOfClass_test.go b/pkg/fourslash/tests/gen/memberListOfClass_test.go index 44dd805c7..ff8e4f88a 100644 --- a/pkg/fourslash/tests/gen/memberListOfClass_test.go +++ b/pkg/fourslash/tests/gen/memberListOfClass_test.go @@ -10,8 +10,8 @@ import ( ) func TestMemberListOfClass(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C1 { public pubMeth() { } diff --git a/pkg/fourslash/tests/gen/memberListOfEnumFromExternalModule_test.go b/pkg/fourslash/tests/gen/memberListOfEnumFromExternalModule_test.go index 38a331800..eb257466b 100644 --- a/pkg/fourslash/tests/gen/memberListOfEnumFromExternalModule_test.go +++ b/pkg/fourslash/tests/gen/memberListOfEnumFromExternalModule_test.go @@ -9,8 +9,8 @@ import ( ) func TestMemberListOfEnumFromExternalModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: memberListOfEnumFromExternalModule_file0.ts export enum Topic{ One, Two } diff --git a/pkg/fourslash/tests/gen/memberListOfEnumInModule_test.go b/pkg/fourslash/tests/gen/memberListOfEnumInModule_test.go index 250b89cc2..98666beeb 100644 --- a/pkg/fourslash/tests/gen/memberListOfEnumInModule_test.go +++ b/pkg/fourslash/tests/gen/memberListOfEnumInModule_test.go @@ -9,8 +9,8 @@ import ( ) func TestMemberListOfEnumInModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module Fixes { enum Foo { diff --git a/pkg/fourslash/tests/gen/memberListOfExportedClass_test.go b/pkg/fourslash/tests/gen/memberListOfExportedClass_test.go index a9b33ecce..ce2d97306 100644 --- a/pkg/fourslash/tests/gen/memberListOfExportedClass_test.go +++ b/pkg/fourslash/tests/gen/memberListOfExportedClass_test.go @@ -10,8 +10,8 @@ import ( ) func TestMemberListOfExportedClass(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module M { export class C { public pub = 0; private priv = 1; } diff --git a/pkg/fourslash/tests/gen/memberListOfModuleAfterInvalidCharater_test.go b/pkg/fourslash/tests/gen/memberListOfModuleAfterInvalidCharater_test.go index e375f9470..be223c879 100644 --- a/pkg/fourslash/tests/gen/memberListOfModuleAfterInvalidCharater_test.go +++ b/pkg/fourslash/tests/gen/memberListOfModuleAfterInvalidCharater_test.go @@ -10,8 +10,8 @@ import ( ) func TestMemberListOfModuleAfterInvalidCharater(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module testModule { export var foo = 1; diff --git a/pkg/fourslash/tests/gen/memberListOfModuleBeforeKeyword_test.go b/pkg/fourslash/tests/gen/memberListOfModuleBeforeKeyword_test.go index b6d55a903..5abd2955e 100644 --- a/pkg/fourslash/tests/gen/memberListOfModuleBeforeKeyword_test.go +++ b/pkg/fourslash/tests/gen/memberListOfModuleBeforeKeyword_test.go @@ -9,8 +9,8 @@ import ( ) func TestMemberListOfModuleBeforeKeyword(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module TypeModule1 { export class C1 { } diff --git a/pkg/fourslash/tests/gen/memberListOfModule_test.go b/pkg/fourslash/tests/gen/memberListOfModule_test.go index 85fc77245..36959a526 100644 --- a/pkg/fourslash/tests/gen/memberListOfModule_test.go +++ b/pkg/fourslash/tests/gen/memberListOfModule_test.go @@ -9,8 +9,8 @@ import ( ) func TestMemberListOfModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module Foo { export class Bar { diff --git a/pkg/fourslash/tests/gen/memberListOfVarInArrowExpression_test.go b/pkg/fourslash/tests/gen/memberListOfVarInArrowExpression_test.go index ebc8d00e9..198d5c39f 100644 --- a/pkg/fourslash/tests/gen/memberListOfVarInArrowExpression_test.go +++ b/pkg/fourslash/tests/gen/memberListOfVarInArrowExpression_test.go @@ -10,8 +10,8 @@ import ( ) func TestMemberListOfVarInArrowExpression(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IMap { [key: string]: T; diff --git a/pkg/fourslash/tests/gen/memberListOnConstructorType_test.go b/pkg/fourslash/tests/gen/memberListOnConstructorType_test.go index d5e0b3eee..552f918f0 100644 --- a/pkg/fourslash/tests/gen/memberListOnConstructorType_test.go +++ b/pkg/fourslash/tests/gen/memberListOnConstructorType_test.go @@ -9,8 +9,8 @@ import ( ) func TestMemberListOnConstructorType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var f: new () => void; f./*1*/` diff --git a/pkg/fourslash/tests/gen/memberListOnContextualThis_test.go b/pkg/fourslash/tests/gen/memberListOnContextualThis_test.go index e58be224e..066ed8af2 100644 --- a/pkg/fourslash/tests/gen/memberListOnContextualThis_test.go +++ b/pkg/fourslash/tests/gen/memberListOnContextualThis_test.go @@ -10,8 +10,8 @@ import ( ) func TestMemberListOnContextualThis(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface A { a: string; diff --git a/pkg/fourslash/tests/gen/memberListOnExplicitThis_test.go b/pkg/fourslash/tests/gen/memberListOnExplicitThis_test.go index c0c7c081e..a3a133321 100644 --- a/pkg/fourslash/tests/gen/memberListOnExplicitThis_test.go +++ b/pkg/fourslash/tests/gen/memberListOnExplicitThis_test.go @@ -10,8 +10,8 @@ import ( ) func TestMemberListOnExplicitThis(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Restricted { n: number; diff --git a/pkg/fourslash/tests/gen/memberListOnFunctionParameter_test.go b/pkg/fourslash/tests/gen/memberListOnFunctionParameter_test.go index e55589f9e..e95f8969c 100644 --- a/pkg/fourslash/tests/gen/memberListOnFunctionParameter_test.go +++ b/pkg/fourslash/tests/gen/memberListOnFunctionParameter_test.go @@ -9,8 +9,8 @@ import ( ) func TestMemberListOnFunctionParameter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module Test10 { var x: string[] = []; diff --git a/pkg/fourslash/tests/gen/memberListOnThisInClassWithPrivates_test.go b/pkg/fourslash/tests/gen/memberListOnThisInClassWithPrivates_test.go index 37c18ec40..e4b23b4a0 100644 --- a/pkg/fourslash/tests/gen/memberListOnThisInClassWithPrivates_test.go +++ b/pkg/fourslash/tests/gen/memberListOnThisInClassWithPrivates_test.go @@ -10,8 +10,8 @@ import ( ) func TestMemberListOnThisInClassWithPrivates(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C1 { public pubMeth() {this./**/} // test on 'this.' diff --git a/pkg/fourslash/tests/gen/memberOverloadEdits_test.go b/pkg/fourslash/tests/gen/memberOverloadEdits_test.go index c21aee31f..1762cee95 100644 --- a/pkg/fourslash/tests/gen/memberOverloadEdits_test.go +++ b/pkg/fourslash/tests/gen/memberOverloadEdits_test.go @@ -8,8 +8,8 @@ import ( ) func TestMemberOverloadEdits(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module M { export class A { diff --git a/pkg/fourslash/tests/gen/memberlistOnDDot_test.go b/pkg/fourslash/tests/gen/memberlistOnDDot_test.go index 4b85da3b7..7bb005dc4 100644 --- a/pkg/fourslash/tests/gen/memberlistOnDDot_test.go +++ b/pkg/fourslash/tests/gen/memberlistOnDDot_test.go @@ -8,8 +8,8 @@ import ( ) func TestMemberlistOnDDot(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var q = ''; q/**/` diff --git a/pkg/fourslash/tests/gen/missingMethodAfterEditAfterImport_test.go b/pkg/fourslash/tests/gen/missingMethodAfterEditAfterImport_test.go index fc250162b..88aee6525 100644 --- a/pkg/fourslash/tests/gen/missingMethodAfterEditAfterImport_test.go +++ b/pkg/fourslash/tests/gen/missingMethodAfterEditAfterImport_test.go @@ -8,8 +8,8 @@ import ( ) func TestMissingMethodAfterEditAfterImport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `namespace foo { export namespace bar { namespace baz { export class boo { } } } diff --git a/pkg/fourslash/tests/gen/moduleDeclarationDeprecated_suggestion2_test.go b/pkg/fourslash/tests/gen/moduleDeclarationDeprecated_suggestion2_test.go index 3cd9c2d0f..cfc6ae5be 100644 --- a/pkg/fourslash/tests/gen/moduleDeclarationDeprecated_suggestion2_test.go +++ b/pkg/fourslash/tests/gen/moduleDeclarationDeprecated_suggestion2_test.go @@ -8,8 +8,8 @@ import ( ) func TestModuleDeclarationDeprecated_suggestion2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts declare module` diff --git a/pkg/fourslash/tests/gen/moduleEnumModule_test.go b/pkg/fourslash/tests/gen/moduleEnumModule_test.go index 5f618a309..172f5ca62 100644 --- a/pkg/fourslash/tests/gen/moduleEnumModule_test.go +++ b/pkg/fourslash/tests/gen/moduleEnumModule_test.go @@ -8,8 +8,8 @@ import ( ) func TestModuleEnumModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module A { var o; diff --git a/pkg/fourslash/tests/gen/moduleMembersOfGenericType_test.go b/pkg/fourslash/tests/gen/moduleMembersOfGenericType_test.go index f6cdf679e..fdffcad83 100644 --- a/pkg/fourslash/tests/gen/moduleMembersOfGenericType_test.go +++ b/pkg/fourslash/tests/gen/moduleMembersOfGenericType_test.go @@ -10,8 +10,8 @@ import ( ) func TestModuleMembersOfGenericType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module M { export var x = (x: T) => x; diff --git a/pkg/fourslash/tests/gen/moduleNodeNextAutoImport1_test.go b/pkg/fourslash/tests/gen/moduleNodeNextAutoImport1_test.go index a0cbe2b4e..f2103c556 100644 --- a/pkg/fourslash/tests/gen/moduleNodeNextAutoImport1_test.go +++ b/pkg/fourslash/tests/gen/moduleNodeNextAutoImport1_test.go @@ -8,8 +8,8 @@ import ( ) func TestModuleNodeNextAutoImport1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /tsconfig.json { "compilerOptions": { "module": "nodenext" } } diff --git a/pkg/fourslash/tests/gen/moduleNodeNextAutoImport2_test.go b/pkg/fourslash/tests/gen/moduleNodeNextAutoImport2_test.go index 2801dba67..e8b179e3e 100644 --- a/pkg/fourslash/tests/gen/moduleNodeNextAutoImport2_test.go +++ b/pkg/fourslash/tests/gen/moduleNodeNextAutoImport2_test.go @@ -8,8 +8,8 @@ import ( ) func TestModuleNodeNextAutoImport2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /tsconfig.json { "compilerOptions": { "module": "nodenext" } } diff --git a/pkg/fourslash/tests/gen/moduleNodeNextAutoImport3_test.go b/pkg/fourslash/tests/gen/moduleNodeNextAutoImport3_test.go index ea822ebb7..ac37233cd 100644 --- a/pkg/fourslash/tests/gen/moduleNodeNextAutoImport3_test.go +++ b/pkg/fourslash/tests/gen/moduleNodeNextAutoImport3_test.go @@ -8,8 +8,8 @@ import ( ) func TestModuleNodeNextAutoImport3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /tsconfig.json { "compilerOptions": { "module": "nodenext" } } diff --git a/pkg/fourslash/tests/gen/moduleReexportedIntoGlobalQuickInfo_test.go b/pkg/fourslash/tests/gen/moduleReexportedIntoGlobalQuickInfo_test.go index 4f74b5cb0..2f97d0f2e 100644 --- a/pkg/fourslash/tests/gen/moduleReexportedIntoGlobalQuickInfo_test.go +++ b/pkg/fourslash/tests/gen/moduleReexportedIntoGlobalQuickInfo_test.go @@ -8,8 +8,8 @@ import ( ) func TestModuleReexportedIntoGlobalQuickInfo(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /node_modules/@types/three/index.d.ts export class Vector3 {} diff --git a/pkg/fourslash/tests/gen/multiModuleClodule_test.go b/pkg/fourslash/tests/gen/multiModuleClodule_test.go index c5f4e3da4..5476550ed 100644 --- a/pkg/fourslash/tests/gen/multiModuleClodule_test.go +++ b/pkg/fourslash/tests/gen/multiModuleClodule_test.go @@ -11,8 +11,8 @@ import ( ) func TestMultiModuleClodule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { constructor(x: number) { } diff --git a/pkg/fourslash/tests/gen/multiModuleFundule_test.go b/pkg/fourslash/tests/gen/multiModuleFundule_test.go index 65fad02d8..dd8719382 100644 --- a/pkg/fourslash/tests/gen/multiModuleFundule_test.go +++ b/pkg/fourslash/tests/gen/multiModuleFundule_test.go @@ -9,8 +9,8 @@ import ( ) func TestMultiModuleFundule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function C(x: number) { } diff --git a/pkg/fourslash/tests/gen/navbar01_test.go b/pkg/fourslash/tests/gen/navbar01_test.go index a40f1045c..8af1e3990 100644 --- a/pkg/fourslash/tests/gen/navbar01_test.go +++ b/pkg/fourslash/tests/gen/navbar01_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavbar01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// Interface interface IPoint { diff --git a/pkg/fourslash/tests/gen/navbarNestedCommonJsExports_test.go b/pkg/fourslash/tests/gen/navbarNestedCommonJsExports_test.go index b8db7ac22..ae6a01e94 100644 --- a/pkg/fourslash/tests/gen/navbarNestedCommonJsExports_test.go +++ b/pkg/fourslash/tests/gen/navbarNestedCommonJsExports_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavbarNestedCommonJsExports(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/navbar_const_test.go b/pkg/fourslash/tests/gen/navbar_const_test.go index a2a045317..2369477e5 100644 --- a/pkg/fourslash/tests/gen/navbar_const_test.go +++ b/pkg/fourslash/tests/gen/navbar_const_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavbar_const(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const c = 0;` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/navbar_contains-no-duplicates_test.go b/pkg/fourslash/tests/gen/navbar_contains-no-duplicates_test.go index 4371b1fdb..1e313f7a8 100644 --- a/pkg/fourslash/tests/gen/navbar_contains-no-duplicates_test.go +++ b/pkg/fourslash/tests/gen/navbar_contains-no-duplicates_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavbar_contains_no_duplicates(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare module Windows { export module Foundation { diff --git a/pkg/fourslash/tests/gen/navbar_exportDefault_test.go b/pkg/fourslash/tests/gen/navbar_exportDefault_test.go index 425626e2f..b40c0488e 100644 --- a/pkg/fourslash/tests/gen/navbar_exportDefault_test.go +++ b/pkg/fourslash/tests/gen/navbar_exportDefault_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavbar_exportDefault(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts export default class { } diff --git a/pkg/fourslash/tests/gen/navbar_let_test.go b/pkg/fourslash/tests/gen/navbar_let_test.go index c872123fd..977aef888 100644 --- a/pkg/fourslash/tests/gen/navbar_let_test.go +++ b/pkg/fourslash/tests/gen/navbar_let_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavbar_let(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let c = 0;` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/navigateItemsLet_test.go b/pkg/fourslash/tests/gen/navigateItemsLet_test.go index 2bebfd67e..cf19d7e9e 100644 --- a/pkg/fourslash/tests/gen/navigateItemsLet_test.go +++ b/pkg/fourslash/tests/gen/navigateItemsLet_test.go @@ -10,8 +10,8 @@ import ( ) func TestNavigateItemsLet(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noLib: true let [|c = 10|]; diff --git a/pkg/fourslash/tests/gen/navigateToImport_test.go b/pkg/fourslash/tests/gen/navigateToImport_test.go index 4420ec42c..c15eb7980 100644 --- a/pkg/fourslash/tests/gen/navigateToImport_test.go +++ b/pkg/fourslash/tests/gen/navigateToImport_test.go @@ -10,8 +10,8 @@ import ( ) func TestNavigateToImport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: library.ts [|export function foo() {}|] diff --git a/pkg/fourslash/tests/gen/navigateToSymbolIterator_test.go b/pkg/fourslash/tests/gen/navigateToSymbolIterator_test.go index 04339cd0e..f1ff097a6 100644 --- a/pkg/fourslash/tests/gen/navigateToSymbolIterator_test.go +++ b/pkg/fourslash/tests/gen/navigateToSymbolIterator_test.go @@ -10,8 +10,8 @@ import ( ) func TestNavigateToSymbolIterator(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { [|[Symbol.iterator]() {}|] diff --git a/pkg/fourslash/tests/gen/navigationBarAnonymousClassAndFunctionExpressions2_test.go b/pkg/fourslash/tests/gen/navigationBarAnonymousClassAndFunctionExpressions2_test.go index 7eaf12c66..6f15a7bed 100644 --- a/pkg/fourslash/tests/gen/navigationBarAnonymousClassAndFunctionExpressions2_test.go +++ b/pkg/fourslash/tests/gen/navigationBarAnonymousClassAndFunctionExpressions2_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarAnonymousClassAndFunctionExpressions2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `console.log(console.log(class Y {}, class X {}), console.log(class B {}, class A {})); console.log(class Cls { meth() {} });` diff --git a/pkg/fourslash/tests/gen/navigationBarAnonymousClassAndFunctionExpressions3_test.go b/pkg/fourslash/tests/gen/navigationBarAnonymousClassAndFunctionExpressions3_test.go index ce73359f7..8b985c337 100644 --- a/pkg/fourslash/tests/gen/navigationBarAnonymousClassAndFunctionExpressions3_test.go +++ b/pkg/fourslash/tests/gen/navigationBarAnonymousClassAndFunctionExpressions3_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarAnonymousClassAndFunctionExpressions3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `describe('foo', () => { test(` + "`" + `a ${1} b ${2}` + "`" + `, () => {}) diff --git a/pkg/fourslash/tests/gen/navigationBarAnonymousClassAndFunctionExpressions_test.go b/pkg/fourslash/tests/gen/navigationBarAnonymousClassAndFunctionExpressions_test.go index 2b35d740f..989663ff5 100644 --- a/pkg/fourslash/tests/gen/navigationBarAnonymousClassAndFunctionExpressions_test.go +++ b/pkg/fourslash/tests/gen/navigationBarAnonymousClassAndFunctionExpressions_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarAnonymousClassAndFunctionExpressions(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `global.cls = class { }; (function() { diff --git a/pkg/fourslash/tests/gen/navigationBarAssignmentTypes_test.go b/pkg/fourslash/tests/gen/navigationBarAssignmentTypes_test.go index dd8c73a4c..35b32b051 100644 --- a/pkg/fourslash/tests/gen/navigationBarAssignmentTypes_test.go +++ b/pkg/fourslash/tests/gen/navigationBarAssignmentTypes_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarAssignmentTypes(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `'use strict' const a = { diff --git a/pkg/fourslash/tests/gen/navigationBarClassStaticBlock_test.go b/pkg/fourslash/tests/gen/navigationBarClassStaticBlock_test.go index ea828321c..6dd5f6b63 100644 --- a/pkg/fourslash/tests/gen/navigationBarClassStaticBlock_test.go +++ b/pkg/fourslash/tests/gen/navigationBarClassStaticBlock_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarClassStaticBlock(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { static { diff --git a/pkg/fourslash/tests/gen/navigationBarComputedPropertyName_test.go b/pkg/fourslash/tests/gen/navigationBarComputedPropertyName_test.go index c2913294f..5d28f7ec0 100644 --- a/pkg/fourslash/tests/gen/navigationBarComputedPropertyName_test.go +++ b/pkg/fourslash/tests/gen/navigationBarComputedPropertyName_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarComputedPropertyName(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function F(key, value) { return { diff --git a/pkg/fourslash/tests/gen/navigationBarFunctionIndirectlyInVariableDeclaration_test.go b/pkg/fourslash/tests/gen/navigationBarFunctionIndirectlyInVariableDeclaration_test.go index e4c03f9a3..91477d076 100644 --- a/pkg/fourslash/tests/gen/navigationBarFunctionIndirectlyInVariableDeclaration_test.go +++ b/pkg/fourslash/tests/gen/navigationBarFunctionIndirectlyInVariableDeclaration_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarFunctionIndirectlyInVariableDeclaration(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var a = { propA: function() { diff --git a/pkg/fourslash/tests/gen/navigationBarFunctionLikePropertyAssignments_test.go b/pkg/fourslash/tests/gen/navigationBarFunctionLikePropertyAssignments_test.go index 4920f72f6..5810c2271 100644 --- a/pkg/fourslash/tests/gen/navigationBarFunctionLikePropertyAssignments_test.go +++ b/pkg/fourslash/tests/gen/navigationBarFunctionLikePropertyAssignments_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarFunctionLikePropertyAssignments(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var functions = { a: 0, diff --git a/pkg/fourslash/tests/gen/navigationBarGetterAndSetter_test.go b/pkg/fourslash/tests/gen/navigationBarGetterAndSetter_test.go index 936f487a4..6003f7659 100644 --- a/pkg/fourslash/tests/gen/navigationBarGetterAndSetter_test.go +++ b/pkg/fourslash/tests/gen/navigationBarGetterAndSetter_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarGetterAndSetter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class X { get x() {} diff --git a/pkg/fourslash/tests/gen/navigationBarImports_test.go b/pkg/fourslash/tests/gen/navigationBarImports_test.go index 350202d1c..79c8b3399 100644 --- a/pkg/fourslash/tests/gen/navigationBarImports_test.go +++ b/pkg/fourslash/tests/gen/navigationBarImports_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarImports(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `import a, {b} from "m"; import c = require("m"); diff --git a/pkg/fourslash/tests/gen/navigationBarInitializerSpans_test.go b/pkg/fourslash/tests/gen/navigationBarInitializerSpans_test.go index 5acc70753..633ad39c6 100644 --- a/pkg/fourslash/tests/gen/navigationBarInitializerSpans_test.go +++ b/pkg/fourslash/tests/gen/navigationBarInitializerSpans_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarInitializerSpans(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// get the name for the navbar from the variable name rather than the function name const [|[|x|] = () => { var [|a|]; }|]; diff --git a/pkg/fourslash/tests/gen/navigationBarItemsBindingPatternsInConstructor_test.go b/pkg/fourslash/tests/gen/navigationBarItemsBindingPatternsInConstructor_test.go index a2117afa7..13d462696 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsBindingPatternsInConstructor_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsBindingPatternsInConstructor_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsBindingPatternsInConstructor(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A { x: any diff --git a/pkg/fourslash/tests/gen/navigationBarItemsBindingPatterns_test.go b/pkg/fourslash/tests/gen/navigationBarItemsBindingPatterns_test.go index 6d283af04..a208bd387 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsBindingPatterns_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsBindingPatterns_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsBindingPatterns(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `'use strict' var foo, {} diff --git a/pkg/fourslash/tests/gen/navigationBarItemsClass1_test.go b/pkg/fourslash/tests/gen/navigationBarItemsClass1_test.go index df5548d72..963276913 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsClass1_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsClass1_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsClass1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function Foo() {} class Foo {}` diff --git a/pkg/fourslash/tests/gen/navigationBarItemsClass2_test.go b/pkg/fourslash/tests/gen/navigationBarItemsClass2_test.go index 10429a227..5db1b21ca 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsClass2_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsClass2_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsClass2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo {} function Foo() {}` diff --git a/pkg/fourslash/tests/gen/navigationBarItemsClass3_test.go b/pkg/fourslash/tests/gen/navigationBarItemsClass3_test.go index fd09fbc12..02d75065b 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsClass3_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsClass3_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsClass3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @filename: /foo.js diff --git a/pkg/fourslash/tests/gen/navigationBarItemsClass4_test.go b/pkg/fourslash/tests/gen/navigationBarItemsClass4_test.go index 912a724bc..f4e09a37f 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsClass4_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsClass4_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsClass4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @filename: /foo.js diff --git a/pkg/fourslash/tests/gen/navigationBarItemsClass5_test.go b/pkg/fourslash/tests/gen/navigationBarItemsClass5_test.go index 9db3ed0c2..d34c821bf 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsClass5_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsClass5_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsClass5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo {} let Foo = 1;` diff --git a/pkg/fourslash/tests/gen/navigationBarItemsClass6_test.go b/pkg/fourslash/tests/gen/navigationBarItemsClass6_test.go index a8e4e0d01..1a604fe81 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsClass6_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsClass6_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsClass6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function Z() { } diff --git a/pkg/fourslash/tests/gen/navigationBarItemsComputedNames_test.go b/pkg/fourslash/tests/gen/navigationBarItemsComputedNames_test.go index 86f73f19b..ea9187755 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsComputedNames_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsComputedNames_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsComputedNames(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const enum E { A = 'A', diff --git a/pkg/fourslash/tests/gen/navigationBarItemsEmptyConstructors_test.go b/pkg/fourslash/tests/gen/navigationBarItemsEmptyConstructors_test.go index 7bda60f24..3a46fe8ff 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsEmptyConstructors_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsEmptyConstructors_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsEmptyConstructors(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Test { constructor() { diff --git a/pkg/fourslash/tests/gen/navigationBarItemsExports_test.go b/pkg/fourslash/tests/gen/navigationBarItemsExports_test.go index 7b97efd41..abaaa932c 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsExports_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsExports_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsExports(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export { a } from "a"; diff --git a/pkg/fourslash/tests/gen/navigationBarItemsFunctionProperties_test.go b/pkg/fourslash/tests/gen/navigationBarItemsFunctionProperties_test.go index fdb4964d0..ef487212b 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsFunctionProperties_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsFunctionProperties_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsFunctionProperties(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `(function(){ var A; diff --git a/pkg/fourslash/tests/gen/navigationBarItemsFunctionsBroken2_test.go b/pkg/fourslash/tests/gen/navigationBarItemsFunctionsBroken2_test.go index eac4fb96b..b48acca92 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsFunctionsBroken2_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsFunctionsBroken2_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsFunctionsBroken2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function; function f() { diff --git a/pkg/fourslash/tests/gen/navigationBarItemsFunctionsBroken_test.go b/pkg/fourslash/tests/gen/navigationBarItemsFunctionsBroken_test.go index 3f4606925..ed4f8e2f9 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsFunctionsBroken_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsFunctionsBroken_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsFunctionsBroken(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f() { function; diff --git a/pkg/fourslash/tests/gen/navigationBarItemsFunctions_test.go b/pkg/fourslash/tests/gen/navigationBarItemsFunctions_test.go index 5280676c0..2a9c29d8a 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsFunctions_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsFunctions_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsFunctions(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo() { var x = 10; diff --git a/pkg/fourslash/tests/gen/navigationBarItemsImports_test.go b/pkg/fourslash/tests/gen/navigationBarItemsImports_test.go index e7ce8437c..d1f1ae217 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsImports_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsImports_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsImports(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `import d1 from "a"; diff --git a/pkg/fourslash/tests/gen/navigationBarItemsInsideMethodsAndConstructors_test.go b/pkg/fourslash/tests/gen/navigationBarItemsInsideMethodsAndConstructors_test.go index 9cda16bac..21b86ac70 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsInsideMethodsAndConstructors_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsInsideMethodsAndConstructors_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsInsideMethodsAndConstructors(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Class { constructor() { diff --git a/pkg/fourslash/tests/gen/navigationBarItemsItems2_test.go b/pkg/fourslash/tests/gen/navigationBarItemsItems2_test.go index 4e9c04e52..7f13b3a9a 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsItems2_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsItems2_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsItems2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/**/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/navigationBarItemsItemsExternalModules2_test.go b/pkg/fourslash/tests/gen/navigationBarItemsItemsExternalModules2_test.go index 41dca06aa..fbb0a8a08 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsItemsExternalModules2_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsItemsExternalModules2_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsItemsExternalModules2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: test/file.ts export class Bar { diff --git a/pkg/fourslash/tests/gen/navigationBarItemsItemsExternalModules3_test.go b/pkg/fourslash/tests/gen/navigationBarItemsItemsExternalModules3_test.go index 7e0c7a1ea..0e26d20d4 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsItemsExternalModules3_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsItemsExternalModules3_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsItemsExternalModules3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: test/my fil e.ts export class Bar { diff --git a/pkg/fourslash/tests/gen/navigationBarItemsItemsExternalModules_test.go b/pkg/fourslash/tests/gen/navigationBarItemsItemsExternalModules_test.go index b052c9789..ec847011e 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsItemsExternalModules_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsItemsExternalModules_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsItemsExternalModules(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export class Bar { public s: string; diff --git a/pkg/fourslash/tests/gen/navigationBarItemsItemsModuleVariables_test.go b/pkg/fourslash/tests/gen/navigationBarItemsItemsModuleVariables_test.go index cdc57f2fe..da2ff85d1 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsItemsModuleVariables_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsItemsModuleVariables_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsItemsModuleVariables(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: navigationItemsModuleVariables_0.ts /*file1*/ diff --git a/pkg/fourslash/tests/gen/navigationBarItemsItems_test.go b/pkg/fourslash/tests/gen/navigationBarItemsItems_test.go index 240ba44cd..3793903df 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsItems_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsItems_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsItems(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// Interface interface IPoint { diff --git a/pkg/fourslash/tests/gen/navigationBarItemsMissingName1_test.go b/pkg/fourslash/tests/gen/navigationBarItemsMissingName1_test.go index 187dbbce0..31d8ded64 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsMissingName1_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsMissingName1_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsMissingName1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export function class C { diff --git a/pkg/fourslash/tests/gen/navigationBarItemsMissingName2_test.go b/pkg/fourslash/tests/gen/navigationBarItemsMissingName2_test.go index 8b54fe2e1..db460d42e 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsMissingName2_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsMissingName2_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsMissingName2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * This is a class. diff --git a/pkg/fourslash/tests/gen/navigationBarItemsModules1_test.go b/pkg/fourslash/tests/gen/navigationBarItemsModules1_test.go index d79a75670..e6f3f87ef 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsModules1_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsModules1_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsModules1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare module "X.Y.Z" {} diff --git a/pkg/fourslash/tests/gen/navigationBarItemsModules2_test.go b/pkg/fourslash/tests/gen/navigationBarItemsModules2_test.go index 08d579e1c..bb6c1546c 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsModules2_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsModules2_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsModules2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `namespace Test.A { } diff --git a/pkg/fourslash/tests/gen/navigationBarItemsMultilineStringIdentifiers1_test.go b/pkg/fourslash/tests/gen/navigationBarItemsMultilineStringIdentifiers1_test.go index 90f5f249d..2454fc6ac 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsMultilineStringIdentifiers1_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsMultilineStringIdentifiers1_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsMultilineStringIdentifiers1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare module "Multiline\r\nMadness" { } diff --git a/pkg/fourslash/tests/gen/navigationBarItemsMultilineStringIdentifiers2_test.go b/pkg/fourslash/tests/gen/navigationBarItemsMultilineStringIdentifiers2_test.go index 8d0f35371..3490df0ef 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsMultilineStringIdentifiers2_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsMultilineStringIdentifiers2_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsMultilineStringIdentifiers2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f(p1: () => any, p2: string) { } f(() => { }, ` + "`" + `line1\ diff --git a/pkg/fourslash/tests/gen/navigationBarItemsMultilineStringIdentifiers3_test.go b/pkg/fourslash/tests/gen/navigationBarItemsMultilineStringIdentifiers3_test.go index 732a7eb44..323e4e554 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsMultilineStringIdentifiers3_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsMultilineStringIdentifiers3_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsMultilineStringIdentifiers3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare module 'MoreThanOneHundredAndFiftyCharacters\ MoreThanOneHundredAndFiftyCharacters\ diff --git a/pkg/fourslash/tests/gen/navigationBarItemsNamedArrowFunctions_test.go b/pkg/fourslash/tests/gen/navigationBarItemsNamedArrowFunctions_test.go index 2c5192e9b..8e4238cf1 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsNamedArrowFunctions_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsNamedArrowFunctions_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsNamedArrowFunctions(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export const value = 2; export const func = () => 2; diff --git a/pkg/fourslash/tests/gen/navigationBarItemsPropertiesDefinedInConstructors_test.go b/pkg/fourslash/tests/gen/navigationBarItemsPropertiesDefinedInConstructors_test.go index 9d59ae289..b1acc17ca 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsPropertiesDefinedInConstructors_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsPropertiesDefinedInConstructors_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsPropertiesDefinedInConstructors(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class List { constructor(public a: boolean, private b: T, readonly c: string, d: number) { diff --git a/pkg/fourslash/tests/gen/navigationBarItemsStaticAndNonStaticNoMerge_test.go b/pkg/fourslash/tests/gen/navigationBarItemsStaticAndNonStaticNoMerge_test.go index aa12f1b48..4efa08823 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsStaticAndNonStaticNoMerge_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsStaticAndNonStaticNoMerge_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsStaticAndNonStaticNoMerge(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { static x; diff --git a/pkg/fourslash/tests/gen/navigationBarItemsSymbols1_test.go b/pkg/fourslash/tests/gen/navigationBarItemsSymbols1_test.go index dd6712ec2..5162bcc7e 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsSymbols1_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsSymbols1_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsSymbols1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { [Symbol.isRegExp] = 0; diff --git a/pkg/fourslash/tests/gen/navigationBarItemsSymbols2_test.go b/pkg/fourslash/tests/gen/navigationBarItemsSymbols2_test.go index af3a3220f..1ec3a999e 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsSymbols2_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsSymbols2_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsSymbols2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { [Symbol.isRegExp]: string; diff --git a/pkg/fourslash/tests/gen/navigationBarItemsSymbols3_test.go b/pkg/fourslash/tests/gen/navigationBarItemsSymbols3_test.go index ca171c479..5c56ff7eb 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsSymbols3_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsSymbols3_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsSymbols3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum E { // No nav bar entry for this diff --git a/pkg/fourslash/tests/gen/navigationBarItemsSymbols4_test.go b/pkg/fourslash/tests/gen/navigationBarItemsSymbols4_test.go index acc9c7383..ebfffc13a 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsSymbols4_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsSymbols4_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsSymbols4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @checkJs: true // @allowJs: true diff --git a/pkg/fourslash/tests/gen/navigationBarItemsTypeAlias_test.go b/pkg/fourslash/tests/gen/navigationBarItemsTypeAlias_test.go index eb294d413..de8da9418 100644 --- a/pkg/fourslash/tests/gen/navigationBarItemsTypeAlias_test.go +++ b/pkg/fourslash/tests/gen/navigationBarItemsTypeAlias_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarItemsTypeAlias(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type T = number | string;` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/navigationBarJsDocCommentWithNoTags_test.go b/pkg/fourslash/tests/gen/navigationBarJsDocCommentWithNoTags_test.go index 9225fca78..d80eb2f96 100644 --- a/pkg/fourslash/tests/gen/navigationBarJsDocCommentWithNoTags_test.go +++ b/pkg/fourslash/tests/gen/navigationBarJsDocCommentWithNoTags_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarJsDocCommentWithNoTags(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** Test */ export const Test = {}` diff --git a/pkg/fourslash/tests/gen/navigationBarMerging_grandchildren_test.go b/pkg/fourslash/tests/gen/navigationBarMerging_grandchildren_test.go index 50377843d..5bfdb4832 100644 --- a/pkg/fourslash/tests/gen/navigationBarMerging_grandchildren_test.go +++ b/pkg/fourslash/tests/gen/navigationBarMerging_grandchildren_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarMerging_grandchildren(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// Should not merge grandchildren with property assignments const o = { diff --git a/pkg/fourslash/tests/gen/navigationBarMerging_test.go b/pkg/fourslash/tests/gen/navigationBarMerging_test.go index 0e5b67a16..a23e2f66f 100644 --- a/pkg/fourslash/tests/gen/navigationBarMerging_test.go +++ b/pkg/fourslash/tests/gen/navigationBarMerging_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarMerging(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: file1.ts module a { diff --git a/pkg/fourslash/tests/gen/navigationBarNamespaceImportWithNoName_test.go b/pkg/fourslash/tests/gen/navigationBarNamespaceImportWithNoName_test.go index eeab89b1b..239b999c7 100644 --- a/pkg/fourslash/tests/gen/navigationBarNamespaceImportWithNoName_test.go +++ b/pkg/fourslash/tests/gen/navigationBarNamespaceImportWithNoName_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarNamespaceImportWithNoName(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `import *{} from 'foo';` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/navigationBarNestedObjectLiterals_test.go b/pkg/fourslash/tests/gen/navigationBarNestedObjectLiterals_test.go index b61c883c6..bcf9673c9 100644 --- a/pkg/fourslash/tests/gen/navigationBarNestedObjectLiterals_test.go +++ b/pkg/fourslash/tests/gen/navigationBarNestedObjectLiterals_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarNestedObjectLiterals(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var a = { b: 0, diff --git a/pkg/fourslash/tests/gen/navigationBarPrivateNameMethod_test.go b/pkg/fourslash/tests/gen/navigationBarPrivateNameMethod_test.go index b67b12b02..9c8c1ad61 100644 --- a/pkg/fourslash/tests/gen/navigationBarPrivateNameMethod_test.go +++ b/pkg/fourslash/tests/gen/navigationBarPrivateNameMethod_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarPrivateNameMethod(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A { #foo() { diff --git a/pkg/fourslash/tests/gen/navigationBarPrivateName_test.go b/pkg/fourslash/tests/gen/navigationBarPrivateName_test.go index 21555fb1c..03c5d19e9 100644 --- a/pkg/fourslash/tests/gen/navigationBarPrivateName_test.go +++ b/pkg/fourslash/tests/gen/navigationBarPrivateName_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarPrivateName(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A { #foo: () => { diff --git a/pkg/fourslash/tests/gen/navigationBarPropertyDeclarations_test.go b/pkg/fourslash/tests/gen/navigationBarPropertyDeclarations_test.go index 6e0fad005..d7ad46cae 100644 --- a/pkg/fourslash/tests/gen/navigationBarPropertyDeclarations_test.go +++ b/pkg/fourslash/tests/gen/navigationBarPropertyDeclarations_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarPropertyDeclarations(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A { public A1 = class { diff --git a/pkg/fourslash/tests/gen/navigationBarVariables_test.go b/pkg/fourslash/tests/gen/navigationBarVariables_test.go index 204382720..3e7a915de 100644 --- a/pkg/fourslash/tests/gen/navigationBarVariables_test.go +++ b/pkg/fourslash/tests/gen/navigationBarVariables_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarVariables(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = 0; let y = 1; diff --git a/pkg/fourslash/tests/gen/navigationBarWellKnownSymbolExpando_test.go b/pkg/fourslash/tests/gen/navigationBarWellKnownSymbolExpando_test.go index d2d7fb239..92482ea16 100644 --- a/pkg/fourslash/tests/gen/navigationBarWellKnownSymbolExpando_test.go +++ b/pkg/fourslash/tests/gen/navigationBarWellKnownSymbolExpando_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarWellKnownSymbolExpando(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f() {} f[Symbol.iterator] = function() {}` diff --git a/pkg/fourslash/tests/gen/navigationBarWithLocalVariables_test.go b/pkg/fourslash/tests/gen/navigationBarWithLocalVariables_test.go index 914036b41..b909f5190 100644 --- a/pkg/fourslash/tests/gen/navigationBarWithLocalVariables_test.go +++ b/pkg/fourslash/tests/gen/navigationBarWithLocalVariables_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationBarWithLocalVariables(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function x(){ const x = Object() diff --git a/pkg/fourslash/tests/gen/navigationItemsExportDefaultExpression_test.go b/pkg/fourslash/tests/gen/navigationItemsExportDefaultExpression_test.go index 29cd45a62..3ae73170f 100644 --- a/pkg/fourslash/tests/gen/navigationItemsExportDefaultExpression_test.go +++ b/pkg/fourslash/tests/gen/navigationItemsExportDefaultExpression_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationItemsExportDefaultExpression(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export default function () {} export default function () { diff --git a/pkg/fourslash/tests/gen/navigationItemsExportEqualsExpression_test.go b/pkg/fourslash/tests/gen/navigationItemsExportEqualsExpression_test.go index d8e710923..d8dd9b7c6 100644 --- a/pkg/fourslash/tests/gen/navigationItemsExportEqualsExpression_test.go +++ b/pkg/fourslash/tests/gen/navigationItemsExportEqualsExpression_test.go @@ -8,8 +8,8 @@ import ( ) func TestNavigationItemsExportEqualsExpression(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export = function () {} export = function () { diff --git a/pkg/fourslash/tests/gen/navigationItemsInConstructorsExactMatch_test.go b/pkg/fourslash/tests/gen/navigationItemsInConstructorsExactMatch_test.go index c0366087e..945696d12 100644 --- a/pkg/fourslash/tests/gen/navigationItemsInConstructorsExactMatch_test.go +++ b/pkg/fourslash/tests/gen/navigationItemsInConstructorsExactMatch_test.go @@ -10,8 +10,8 @@ import ( ) func TestNavigationItemsInConstructorsExactMatch(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noLib: true class Test { diff --git a/pkg/fourslash/tests/gen/navigationItemsPrefixMatch2_test.go b/pkg/fourslash/tests/gen/navigationItemsPrefixMatch2_test.go index 09fd7a833..b32f138cb 100644 --- a/pkg/fourslash/tests/gen/navigationItemsPrefixMatch2_test.go +++ b/pkg/fourslash/tests/gen/navigationItemsPrefixMatch2_test.go @@ -10,8 +10,8 @@ import ( ) func TestNavigationItemsPrefixMatch2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module Shapes { export class Point { diff --git a/pkg/fourslash/tests/gen/navto_emptyPattern_test.go b/pkg/fourslash/tests/gen/navto_emptyPattern_test.go index 6d793f756..871f3985e 100644 --- a/pkg/fourslash/tests/gen/navto_emptyPattern_test.go +++ b/pkg/fourslash/tests/gen/navto_emptyPattern_test.go @@ -10,8 +10,8 @@ import ( ) func TestNavto_emptyPattern(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: foo.ts const [|x: number = 1|]; diff --git a/pkg/fourslash/tests/gen/navto_excludeLib3_test.go b/pkg/fourslash/tests/gen/navto_excludeLib3_test.go index 15ad2f807..8e5823fba 100644 --- a/pkg/fourslash/tests/gen/navto_excludeLib3_test.go +++ b/pkg/fourslash/tests/gen/navto_excludeLib3_test.go @@ -10,8 +10,8 @@ import ( ) func TestNavto_excludeLib3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: /index.ts [|function parseInt(s: string): number {}|]` diff --git a/pkg/fourslash/tests/gen/ngProxy1_test.go b/pkg/fourslash/tests/gen/ngProxy1_test.go index c460ae7a0..617db28e3 100644 --- a/pkg/fourslash/tests/gen/ngProxy1_test.go +++ b/pkg/fourslash/tests/gen/ngProxy1_test.go @@ -8,8 +8,8 @@ import ( ) func TestNgProxy1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tsconfig.json { diff --git a/pkg/fourslash/tests/gen/ngProxy2_test.go b/pkg/fourslash/tests/gen/ngProxy2_test.go index 5e0f99bab..d752e12b3 100644 --- a/pkg/fourslash/tests/gen/ngProxy2_test.go +++ b/pkg/fourslash/tests/gen/ngProxy2_test.go @@ -8,8 +8,8 @@ import ( ) func TestNgProxy2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tsconfig.json { diff --git a/pkg/fourslash/tests/gen/ngProxy3_test.go b/pkg/fourslash/tests/gen/ngProxy3_test.go index 580a20e4b..8a3aef9f8 100644 --- a/pkg/fourslash/tests/gen/ngProxy3_test.go +++ b/pkg/fourslash/tests/gen/ngProxy3_test.go @@ -8,8 +8,8 @@ import ( ) func TestNgProxy3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tsconfig.json { diff --git a/pkg/fourslash/tests/gen/ngProxy4_test.go b/pkg/fourslash/tests/gen/ngProxy4_test.go index 131236813..8df8e18a9 100644 --- a/pkg/fourslash/tests/gen/ngProxy4_test.go +++ b/pkg/fourslash/tests/gen/ngProxy4_test.go @@ -8,8 +8,8 @@ import ( ) func TestNgProxy4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tsconfig.json { diff --git a/pkg/fourslash/tests/gen/noCompletionListOnCommentsInsideObjectLiterals_test.go b/pkg/fourslash/tests/gen/noCompletionListOnCommentsInsideObjectLiterals_test.go index 6452f21a1..1de9d482e 100644 --- a/pkg/fourslash/tests/gen/noCompletionListOnCommentsInsideObjectLiterals_test.go +++ b/pkg/fourslash/tests/gen/noCompletionListOnCommentsInsideObjectLiterals_test.go @@ -8,8 +8,8 @@ import ( ) func TestNoCompletionListOnCommentsInsideObjectLiterals(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module ObjectLiterals { interface MyPoint { diff --git a/pkg/fourslash/tests/gen/noCompletionsForCurrentOrLaterParametersInDefaults_test.go b/pkg/fourslash/tests/gen/noCompletionsForCurrentOrLaterParametersInDefaults_test.go index 10dd4450b..bc63e57cc 100644 --- a/pkg/fourslash/tests/gen/noCompletionsForCurrentOrLaterParametersInDefaults_test.go +++ b/pkg/fourslash/tests/gen/noCompletionsForCurrentOrLaterParametersInDefaults_test.go @@ -9,8 +9,8 @@ import ( ) func TestNoCompletionsForCurrentOrLaterParametersInDefaults(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f1(a = /*1*/, b) { } function f2(a = a/*2*/, b) { } diff --git a/pkg/fourslash/tests/gen/noErrorsAfterCompletionsRequestWithinGenericFunction1_test.go b/pkg/fourslash/tests/gen/noErrorsAfterCompletionsRequestWithinGenericFunction1_test.go index 074eea6ce..5e87a90ce 100644 --- a/pkg/fourslash/tests/gen/noErrorsAfterCompletionsRequestWithinGenericFunction1_test.go +++ b/pkg/fourslash/tests/gen/noErrorsAfterCompletionsRequestWithinGenericFunction1_test.go @@ -8,8 +8,8 @@ import ( ) func TestNoErrorsAfterCompletionsRequestWithinGenericFunction1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true diff --git a/pkg/fourslash/tests/gen/noErrorsAfterCompletionsRequestWithinGenericFunction2_test.go b/pkg/fourslash/tests/gen/noErrorsAfterCompletionsRequestWithinGenericFunction2_test.go index 35b3d64c3..4afe13f89 100644 --- a/pkg/fourslash/tests/gen/noErrorsAfterCompletionsRequestWithinGenericFunction2_test.go +++ b/pkg/fourslash/tests/gen/noErrorsAfterCompletionsRequestWithinGenericFunction2_test.go @@ -8,8 +8,8 @@ import ( ) func TestNoErrorsAfterCompletionsRequestWithinGenericFunction2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true diff --git a/pkg/fourslash/tests/gen/noQuickInfoForLabel_test.go b/pkg/fourslash/tests/gen/noQuickInfoForLabel_test.go index f394bee9c..319c97311 100644 --- a/pkg/fourslash/tests/gen/noQuickInfoForLabel_test.go +++ b/pkg/fourslash/tests/gen/noQuickInfoForLabel_test.go @@ -8,8 +8,8 @@ import ( ) func TestNoQuickInfoForLabel(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/label : while(true){ break /*2*/label; diff --git a/pkg/fourslash/tests/gen/noQuickInfoInWhitespace_test.go b/pkg/fourslash/tests/gen/noQuickInfoInWhitespace_test.go index 4dd84fc08..f9f20fc50 100644 --- a/pkg/fourslash/tests/gen/noQuickInfoInWhitespace_test.go +++ b/pkg/fourslash/tests/gen/noQuickInfoInWhitespace_test.go @@ -8,8 +8,8 @@ import ( ) func TestNoQuickInfoInWhitespace(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { /*1*/ private _mspointerupHandler(args) { diff --git a/pkg/fourslash/tests/gen/noSignatureHelpOnNewKeyword_test.go b/pkg/fourslash/tests/gen/noSignatureHelpOnNewKeyword_test.go index 68ae2a47b..73f4e3b0c 100644 --- a/pkg/fourslash/tests/gen/noSignatureHelpOnNewKeyword_test.go +++ b/pkg/fourslash/tests/gen/noSignatureHelpOnNewKeyword_test.go @@ -8,8 +8,8 @@ import ( ) func TestNoSignatureHelpOnNewKeyword(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { } new/*1*/ Foo diff --git a/pkg/fourslash/tests/gen/noTypeParameterInLHS_test.go b/pkg/fourslash/tests/gen/noTypeParameterInLHS_test.go index 59d1ce5e7..9d393937b 100644 --- a/pkg/fourslash/tests/gen/noTypeParameterInLHS_test.go +++ b/pkg/fourslash/tests/gen/noTypeParameterInLHS_test.go @@ -8,8 +8,8 @@ import ( ) func TestNoTypeParameterInLHS(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { } class C {} diff --git a/pkg/fourslash/tests/gen/nodeModulesFileEditStillAllowsResolutionsToWork_test.go b/pkg/fourslash/tests/gen/nodeModulesFileEditStillAllowsResolutionsToWork_test.go index 6f506ff49..a03b710bd 100644 --- a/pkg/fourslash/tests/gen/nodeModulesFileEditStillAllowsResolutionsToWork_test.go +++ b/pkg/fourslash/tests/gen/nodeModulesFileEditStillAllowsResolutionsToWork_test.go @@ -8,8 +8,8 @@ import ( ) func TestNodeModulesFileEditStillAllowsResolutionsToWork(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /tsconfig.json { "compilerOptions": { "module": "nodenext", "strict": true } } diff --git a/pkg/fourslash/tests/gen/nodeModulesImportCompletions1_test.go b/pkg/fourslash/tests/gen/nodeModulesImportCompletions1_test.go index 0a4a2a1a9..eeacf564f 100644 --- a/pkg/fourslash/tests/gen/nodeModulesImportCompletions1_test.go +++ b/pkg/fourslash/tests/gen/nodeModulesImportCompletions1_test.go @@ -9,8 +9,8 @@ import ( ) func TestNodeModulesImportCompletions1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @module: node18 diff --git a/pkg/fourslash/tests/gen/nodeNextModuleKindCaching1_test.go b/pkg/fourslash/tests/gen/nodeNextModuleKindCaching1_test.go index 1beed6957..1a4f80925 100644 --- a/pkg/fourslash/tests/gen/nodeNextModuleKindCaching1_test.go +++ b/pkg/fourslash/tests/gen/nodeNextModuleKindCaching1_test.go @@ -8,8 +8,8 @@ import ( ) func TestNodeNextModuleKindCaching1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tsconfig.json { diff --git a/pkg/fourslash/tests/gen/nonExistingImport_test.go b/pkg/fourslash/tests/gen/nonExistingImport_test.go index f25f81f95..8c687b8ab 100644 --- a/pkg/fourslash/tests/gen/nonExistingImport_test.go +++ b/pkg/fourslash/tests/gen/nonExistingImport_test.go @@ -9,8 +9,8 @@ import ( ) func TestNonExistingImport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module m { import foo = module(_foo); diff --git a/pkg/fourslash/tests/gen/numericPropertyNames_test.go b/pkg/fourslash/tests/gen/numericPropertyNames_test.go index 7087951b0..26b9aac14 100644 --- a/pkg/fourslash/tests/gen/numericPropertyNames_test.go +++ b/pkg/fourslash/tests/gen/numericPropertyNames_test.go @@ -8,8 +8,8 @@ import ( ) func TestNumericPropertyNames(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var /**/t2 = { 0: 1, 1: "" };` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/objectLiteralBindingInParameter_test.go b/pkg/fourslash/tests/gen/objectLiteralBindingInParameter_test.go index 6ad73606e..35e465ab6 100644 --- a/pkg/fourslash/tests/gen/objectLiteralBindingInParameter_test.go +++ b/pkg/fourslash/tests/gen/objectLiteralBindingInParameter_test.go @@ -9,8 +9,8 @@ import ( ) func TestObjectLiteralBindingInParameter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { x1: number; x2: string } function f(cb: (ev: I) => any) { } diff --git a/pkg/fourslash/tests/gen/occurrences01_test.go b/pkg/fourslash/tests/gen/occurrences01_test.go index 579088836..a67678d4e 100644 --- a/pkg/fourslash/tests/gen/occurrences01_test.go +++ b/pkg/fourslash/tests/gen/occurrences01_test.go @@ -9,8 +9,8 @@ import ( ) func TestOccurrences01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `foo: [|switch|] (10) { [|case|] 1: diff --git a/pkg/fourslash/tests/gen/occurrences02_test.go b/pkg/fourslash/tests/gen/occurrences02_test.go index ee772a986..74fbd5a14 100644 --- a/pkg/fourslash/tests/gen/occurrences02_test.go +++ b/pkg/fourslash/tests/gen/occurrences02_test.go @@ -9,8 +9,8 @@ import ( ) func TestOccurrences02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function [|f|](x: typeof [|f|]) { [|f|]([|f|]); diff --git a/pkg/fourslash/tests/gen/outlineSpansBlockCommentsWithoutStatements_test.go b/pkg/fourslash/tests/gen/outlineSpansBlockCommentsWithoutStatements_test.go index 269125bd8..8c8c81107 100644 --- a/pkg/fourslash/tests/gen/outlineSpansBlockCommentsWithoutStatements_test.go +++ b/pkg/fourslash/tests/gen/outlineSpansBlockCommentsWithoutStatements_test.go @@ -8,8 +8,8 @@ import ( ) func TestOutlineSpansBlockCommentsWithoutStatements(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|/* / * Some text diff --git a/pkg/fourslash/tests/gen/outlineSpansTrailingBlockCommentsAfterStatements_test.go b/pkg/fourslash/tests/gen/outlineSpansTrailingBlockCommentsAfterStatements_test.go index 926930e47..6d65461a1 100644 --- a/pkg/fourslash/tests/gen/outlineSpansTrailingBlockCommentsAfterStatements_test.go +++ b/pkg/fourslash/tests/gen/outlineSpansTrailingBlockCommentsAfterStatements_test.go @@ -8,8 +8,8 @@ import ( ) func TestOutlineSpansTrailingBlockCommentsAfterStatements(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `console.log(0); [|/* diff --git a/pkg/fourslash/tests/gen/outliningSpansForArguments_test.go b/pkg/fourslash/tests/gen/outliningSpansForArguments_test.go index d94c1576b..3703f2833 100644 --- a/pkg/fourslash/tests/gen/outliningSpansForArguments_test.go +++ b/pkg/fourslash/tests/gen/outliningSpansForArguments_test.go @@ -8,8 +8,8 @@ import ( ) func TestOutliningSpansForArguments(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `console.log(123, 456)l; console.log( diff --git a/pkg/fourslash/tests/gen/outliningSpansForArrowFunctionBody_test.go b/pkg/fourslash/tests/gen/outliningSpansForArrowFunctionBody_test.go index 9e5886896..4d3fa665a 100644 --- a/pkg/fourslash/tests/gen/outliningSpansForArrowFunctionBody_test.go +++ b/pkg/fourslash/tests/gen/outliningSpansForArrowFunctionBody_test.go @@ -8,8 +8,8 @@ import ( ) func TestOutliningSpansForArrowFunctionBody(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `() => 42; () => ( 42 ); diff --git a/pkg/fourslash/tests/gen/outliningSpansForFunction_test.go b/pkg/fourslash/tests/gen/outliningSpansForFunction_test.go index 76df6f78a..5be0fac5e 100644 --- a/pkg/fourslash/tests/gen/outliningSpansForFunction_test.go +++ b/pkg/fourslash/tests/gen/outliningSpansForFunction_test.go @@ -8,8 +8,8 @@ import ( ) func TestOutliningSpansForFunction(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|( a: number, diff --git a/pkg/fourslash/tests/gen/outliningSpansForImportAndExportAttributes_test.go b/pkg/fourslash/tests/gen/outliningSpansForImportAndExportAttributes_test.go index 058f0bb59..6afb6028c 100644 --- a/pkg/fourslash/tests/gen/outliningSpansForImportAndExportAttributes_test.go +++ b/pkg/fourslash/tests/gen/outliningSpansForImportAndExportAttributes_test.go @@ -8,8 +8,8 @@ import ( ) func TestOutliningSpansForImportAndExportAttributes(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `import { a1, a2 } from "a"; ; diff --git a/pkg/fourslash/tests/gen/outliningSpansForImportsAndExports_test.go b/pkg/fourslash/tests/gen/outliningSpansForImportsAndExports_test.go index 61b3a2ccb..8932cb33a 100644 --- a/pkg/fourslash/tests/gen/outliningSpansForImportsAndExports_test.go +++ b/pkg/fourslash/tests/gen/outliningSpansForImportsAndExports_test.go @@ -8,8 +8,8 @@ import ( ) func TestOutliningSpansForImportsAndExports(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `import { a1, a2 } from "a"; ; diff --git a/pkg/fourslash/tests/gen/outliningSpansForParenthesizedExpression_test.go b/pkg/fourslash/tests/gen/outliningSpansForParenthesizedExpression_test.go index 0ced7306d..62e1a990e 100644 --- a/pkg/fourslash/tests/gen/outliningSpansForParenthesizedExpression_test.go +++ b/pkg/fourslash/tests/gen/outliningSpansForParenthesizedExpression_test.go @@ -8,8 +8,8 @@ import ( ) func TestOutliningSpansForParenthesizedExpression(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const a = [|( true diff --git a/pkg/fourslash/tests/gen/outliningSpansSwitchCases_test.go b/pkg/fourslash/tests/gen/outliningSpansSwitchCases_test.go index 644496429..61cf65c5a 100644 --- a/pkg/fourslash/tests/gen/outliningSpansSwitchCases_test.go +++ b/pkg/fourslash/tests/gen/outliningSpansSwitchCases_test.go @@ -8,8 +8,8 @@ import ( ) func TestOutliningSpansSwitchCases(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `switch (undefined)[| { case 0:[| diff --git a/pkg/fourslash/tests/gen/overloadObjectLiteralCrash_test.go b/pkg/fourslash/tests/gen/overloadObjectLiteralCrash_test.go index c2baba35e..daa0a6a2a 100644 --- a/pkg/fourslash/tests/gen/overloadObjectLiteralCrash_test.go +++ b/pkg/fourslash/tests/gen/overloadObjectLiteralCrash_test.go @@ -8,8 +8,8 @@ import ( ) func TestOverloadObjectLiteralCrash(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { extend(...objs: any[]): T; diff --git a/pkg/fourslash/tests/gen/overloadOnConstCallSignature_test.go b/pkg/fourslash/tests/gen/overloadOnConstCallSignature_test.go index 8164d302f..60ecac2cd 100644 --- a/pkg/fourslash/tests/gen/overloadOnConstCallSignature_test.go +++ b/pkg/fourslash/tests/gen/overloadOnConstCallSignature_test.go @@ -8,8 +8,8 @@ import ( ) func TestOverloadOnConstCallSignature(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var foo: { (name: string): string; diff --git a/pkg/fourslash/tests/gen/overloadQuickInfo_test.go b/pkg/fourslash/tests/gen/overloadQuickInfo_test.go index fc6168198..74d695198 100644 --- a/pkg/fourslash/tests/gen/overloadQuickInfo_test.go +++ b/pkg/fourslash/tests/gen/overloadQuickInfo_test.go @@ -8,8 +8,8 @@ import ( ) func TestOverloadQuickInfo(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function Foo(a: string, b: number, c: boolean); function Foo(a: any, name: string, age: number); diff --git a/pkg/fourslash/tests/gen/packageJsonImportsFailedLookups_test.go b/pkg/fourslash/tests/gen/packageJsonImportsFailedLookups_test.go index 7d38558ad..e4f294304 100644 --- a/pkg/fourslash/tests/gen/packageJsonImportsFailedLookups_test.go +++ b/pkg/fourslash/tests/gen/packageJsonImportsFailedLookups_test.go @@ -8,8 +8,8 @@ import ( ) func TestPackageJsonImportsFailedLookups(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a/b/c/d/e/tsconfig.json { "compilerOptions": { "module": "nodenext" } } diff --git a/pkg/fourslash/tests/gen/parameterWithDestructuring_test.go b/pkg/fourslash/tests/gen/parameterWithDestructuring_test.go index 2d00b4832..1bd2734f8 100644 --- a/pkg/fourslash/tests/gen/parameterWithDestructuring_test.go +++ b/pkg/fourslash/tests/gen/parameterWithDestructuring_test.go @@ -8,8 +8,8 @@ import ( ) func TestParameterWithDestructuring(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const result = [{ a: 'hello' }] .map(({ /*1*/a }) => /*2*/a) diff --git a/pkg/fourslash/tests/gen/parameterWithNestedDestructuring_test.go b/pkg/fourslash/tests/gen/parameterWithNestedDestructuring_test.go index 65fd7f8be..30f1b78d9 100644 --- a/pkg/fourslash/tests/gen/parameterWithNestedDestructuring_test.go +++ b/pkg/fourslash/tests/gen/parameterWithNestedDestructuring_test.go @@ -8,8 +8,8 @@ import ( ) func TestParameterWithNestedDestructuring(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[[{ a: 'hello', b: [1] }]] .map(([{ a, b: [c] }]) => /*1*/a + /*2*/c); diff --git a/pkg/fourslash/tests/gen/parameterlessSetter_test.go b/pkg/fourslash/tests/gen/parameterlessSetter_test.go index d1b4178a6..8b8439f3f 100644 --- a/pkg/fourslash/tests/gen/parameterlessSetter_test.go +++ b/pkg/fourslash/tests/gen/parameterlessSetter_test.go @@ -8,8 +8,8 @@ import ( ) func TestParameterlessSetter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class foo { get getterOnly() { diff --git a/pkg/fourslash/tests/gen/partialUnionPropertyCacheInconsistentErrors_test.go b/pkg/fourslash/tests/gen/partialUnionPropertyCacheInconsistentErrors_test.go index c7644a60e..1320633f9 100644 --- a/pkg/fourslash/tests/gen/partialUnionPropertyCacheInconsistentErrors_test.go +++ b/pkg/fourslash/tests/gen/partialUnionPropertyCacheInconsistentErrors_test.go @@ -8,8 +8,8 @@ import ( ) func TestPartialUnionPropertyCacheInconsistentErrors(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @lib: esnext diff --git a/pkg/fourslash/tests/gen/pasteLambdaOverModule_test.go b/pkg/fourslash/tests/gen/pasteLambdaOverModule_test.go index 9d8722e95..e3e7ba960 100644 --- a/pkg/fourslash/tests/gen/pasteLambdaOverModule_test.go +++ b/pkg/fourslash/tests/gen/pasteLambdaOverModule_test.go @@ -8,8 +8,8 @@ import ( ) func TestPasteLambdaOverModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/**/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/paste_test.go b/pkg/fourslash/tests/gen/paste_test.go index 783a9d599..2faf004fe 100644 --- a/pkg/fourslash/tests/gen/paste_test.go +++ b/pkg/fourslash/tests/gen/paste_test.go @@ -8,8 +8,8 @@ import ( ) func TestPaste(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `fn(/**/);` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/pathCompletionsAllowModuleAugmentationExtensions_test.go b/pkg/fourslash/tests/gen/pathCompletionsAllowModuleAugmentationExtensions_test.go index a2dd48e33..654ae2af2 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsAllowModuleAugmentationExtensions_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsAllowModuleAugmentationExtensions_test.go @@ -9,8 +9,8 @@ import ( ) func TestPathCompletionsAllowModuleAugmentationExtensions(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /project/foo.css export const foo = 0; diff --git a/pkg/fourslash/tests/gen/pathCompletionsAllowTsExtensions_test.go b/pkg/fourslash/tests/gen/pathCompletionsAllowTsExtensions_test.go index 4fc1a6b83..f286d623f 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsAllowTsExtensions_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsAllowTsExtensions_test.go @@ -9,8 +9,8 @@ import ( ) func TestPathCompletionsAllowTsExtensions(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @moduleResolution: bundler // @allowImportingTsExtensions: true diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsBundlerNoNodeCondition_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsBundlerNoNodeCondition_test.go index 59e6b5a65..0235b2e2a 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsBundlerNoNodeCondition_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsBundlerNoNodeCondition_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonExportsBundlerNoNodeCondition(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @moduleResolution: bundler // @Filename: /node_modules/foo/package.json diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsCustomConditions_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsCustomConditions_test.go index bb37f5a87..69243210e 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsCustomConditions_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsCustomConditions_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonExportsCustomConditions(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @customConditions: custom-condition diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard10_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard10_test.go index fbdde6acb..9f52c7ca2 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard10_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard10_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonExportsWildcard10(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: preserve // @moduleResolution: bundler diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard11_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard11_test.go index b96ea582c..bcd6d8df8 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard11_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard11_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonExportsWildcard11(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: preserve // @moduleResolution: bundler diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard12_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard12_test.go index db991c926..df3ee749e 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard12_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard12_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonExportsWildcard12(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /node_modules/foo/package.json diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard1_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard1_test.go index a20eb3fa4..d5e7b338b 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard1_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard1_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonExportsWildcard1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /node_modules/foo/package.json diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard2_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard2_test.go index 031a58a6b..a429d8ec8 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard2_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard2_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonExportsWildcard2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /node_modules/salesforce-pageobjects/package.json diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard3_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard3_test.go index be8481d1c..41233588b 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard3_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard3_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonExportsWildcard3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /node_modules/foo/package.json diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard4_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard4_test.go index 8fa9f78d1..a14e9797e 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard4_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard4_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonExportsWildcard4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /node_modules/foo/package.json diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard5_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard5_test.go index 978de463c..0103d2c94 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard5_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard5_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonExportsWildcard5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /node_modules/foo/package.json diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard6_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard6_test.go index 9ffae6664..1f48c555c 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard6_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard6_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonExportsWildcard6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /node_modules/foo/package.json diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard7_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard7_test.go index 56bdec9aa..43317fc73 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard7_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard7_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonExportsWildcard7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /node_modules/foo/package.json diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard8_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard8_test.go index 8cfccbea2..c5776bd76 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard8_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard8_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonExportsWildcard8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /node_modules/foo/package.json diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard9_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard9_test.go index 4905c2f71..85b5cd6f0 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard9_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonExportsWildcard9_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonExportsWildcard9(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @allowJs: true diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsBundlerNoNodeCondition_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsBundlerNoNodeCondition_test.go index 1f55475f2..9ba4910eb 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsBundlerNoNodeCondition_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsBundlerNoNodeCondition_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonImportsBundlerNoNodeCondition(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @moduleResolution: bundler // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsCustomConditions_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsCustomConditions_test.go index a810fe41c..9180e89ad 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsCustomConditions_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsCustomConditions_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonImportsCustomConditions(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @customConditions: custom-condition diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsIgnoreMatchingNodeModule1_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsIgnoreMatchingNodeModule1_test.go index 141dfa350..7fe325778 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsIgnoreMatchingNodeModule1_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsIgnoreMatchingNodeModule1_test.go @@ -9,8 +9,8 @@ import ( ) func TestPathCompletionsPackageJsonImportsIgnoreMatchingNodeModule1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /src/node_modules/#internal/package.json diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsIgnoreMatchingNodeModule2_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsIgnoreMatchingNodeModule2_test.go index 5e87261c6..54f7f2a62 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsIgnoreMatchingNodeModule2_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsIgnoreMatchingNodeModule2_test.go @@ -9,8 +9,8 @@ import ( ) func TestPathCompletionsPackageJsonImportsIgnoreMatchingNodeModule2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsOnlyFromClosestScope1_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsOnlyFromClosestScope1_test.go index b803b7895..a4dadd769 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsOnlyFromClosestScope1_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsOnlyFromClosestScope1_test.go @@ -9,8 +9,8 @@ import ( ) func TestPathCompletionsPackageJsonImportsOnlyFromClosestScope1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard1_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard1_test.go index 5a6efe4ce..33a78b8cf 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard1_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard1_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonImportsSrcNoDistWildcard1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard2_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard2_test.go index 34520ef4a..941ddadad 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard2_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard2_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonImportsSrcNoDistWildcard2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard3_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard3_test.go index fca274a27..44bd13657 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard3_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard3_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonImportsSrcNoDistWildcard3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard4_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard4_test.go index 8f45952a6..70ca5c749 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard4_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard4_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonImportsSrcNoDistWildcard4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard5_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard5_test.go index faff44783..353ad863a 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard5_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard5_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonImportsSrcNoDistWildcard5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard6_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard6_test.go index 1e32aabdd..ee39803b7 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard6_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard6_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonImportsSrcNoDistWildcard6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard7_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard7_test.go index 92269eb3f..4767dedd4 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard7_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard7_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonImportsSrcNoDistWildcard7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard8_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard8_test.go index 3dfac2847..96afe7b92 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard8_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard8_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonImportsSrcNoDistWildcard8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard9_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard9_test.go index 1c0d64795..6866cb46b 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard9_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsSrcNoDistWildcard9_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonImportsSrcNoDistWildcard9(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard10_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard10_test.go index cba8ceeea..da14ea97c 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard10_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard10_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonImportsWildcard10(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: preserve // @moduleResolution: bundler diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard11_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard11_test.go index 68d9ae9b0..8d417a299 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard11_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard11_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonImportsWildcard11(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: preserve // @moduleResolution: bundler diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard12_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard12_test.go index d1ed43446..721b21d5f 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard12_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard12_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonImportsWildcard12(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard1_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard1_test.go index 6d213557e..16394e748 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard1_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard1_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonImportsWildcard1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard2_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard2_test.go index 602e81c48..b3b090c85 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard2_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard2_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonImportsWildcard2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard3_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard3_test.go index 21a718893..6d41184ab 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard3_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard3_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonImportsWildcard3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard4_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard4_test.go index 9fde15491..18c527905 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard4_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard4_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonImportsWildcard4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard5_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard5_test.go index 5615c8027..1366281ce 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard5_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard5_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonImportsWildcard5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard6_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard6_test.go index e302f144f..bb43ed2ba 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard6_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard6_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonImportsWildcard6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard7_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard7_test.go index 3cc4e01a8..ec0f2c64a 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard7_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard7_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonImportsWildcard7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard8_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard8_test.go index d2f7dbd0b..362d4c942 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard8_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard8_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonImportsWildcard8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @Filename: /package.json diff --git a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard9_test.go b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard9_test.go index 700c8ac76..7f32b0465 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard9_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsPackageJsonImportsWildcard9_test.go @@ -10,8 +10,8 @@ import ( ) func TestPathCompletionsPackageJsonImportsWildcard9(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: node18 // @allowJs: true diff --git a/pkg/fourslash/tests/gen/pathCompletionsTypesVersionsLocal_test.go b/pkg/fourslash/tests/gen/pathCompletionsTypesVersionsLocal_test.go index 89ad8317a..c5301f6eb 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsTypesVersionsLocal_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsTypesVersionsLocal_test.go @@ -9,8 +9,8 @@ import ( ) func TestPathCompletionsTypesVersionsLocal(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /package.json { diff --git a/pkg/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard1_test.go b/pkg/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard1_test.go index dc35a6a2a..7790fafa9 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard1_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard1_test.go @@ -9,8 +9,8 @@ import ( ) func TestPathCompletionsTypesVersionsWildcard1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @Filename: /node_modules/foo/package.json diff --git a/pkg/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard2_test.go b/pkg/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard2_test.go index df06393ab..bf60e0fc7 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard2_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard2_test.go @@ -9,8 +9,8 @@ import ( ) func TestPathCompletionsTypesVersionsWildcard2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @resolveJsonModule: false diff --git a/pkg/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard3_test.go b/pkg/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard3_test.go index 8009ad35f..4f81164d8 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard3_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard3_test.go @@ -9,8 +9,8 @@ import ( ) func TestPathCompletionsTypesVersionsWildcard3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @resolveJsonModule: false diff --git a/pkg/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard4_test.go b/pkg/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard4_test.go index b1183b042..61073806a 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard4_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard4_test.go @@ -9,8 +9,8 @@ import ( ) func TestPathCompletionsTypesVersionsWildcard4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @resolveJsonModule: false diff --git a/pkg/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard5_test.go b/pkg/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard5_test.go index 2d4741208..4cef62f38 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard5_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard5_test.go @@ -9,8 +9,8 @@ import ( ) func TestPathCompletionsTypesVersionsWildcard5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @Filename: /node_modules/foo/package.json diff --git a/pkg/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard6_test.go b/pkg/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard6_test.go index 30a6298e5..f66ced49c 100644 --- a/pkg/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard6_test.go +++ b/pkg/fourslash/tests/gen/pathCompletionsTypesVersionsWildcard6_test.go @@ -9,8 +9,8 @@ import ( ) func TestPathCompletionsTypesVersionsWildcard6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: commonjs // @Filename: /node_modules/foo/package.json diff --git a/pkg/fourslash/tests/gen/processInvalidSyntax1_test.go b/pkg/fourslash/tests/gen/processInvalidSyntax1_test.go index 167b7e4ab..9cc8fad55 100644 --- a/pkg/fourslash/tests/gen/processInvalidSyntax1_test.go +++ b/pkg/fourslash/tests/gen/processInvalidSyntax1_test.go @@ -8,8 +8,8 @@ import ( ) func TestProcessInvalidSyntax1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: decl.js diff --git a/pkg/fourslash/tests/gen/promiseTyping1_test.go b/pkg/fourslash/tests/gen/promiseTyping1_test.go index e4fdf301b..69933458f 100644 --- a/pkg/fourslash/tests/gen/promiseTyping1_test.go +++ b/pkg/fourslash/tests/gen/promiseTyping1_test.go @@ -8,8 +8,8 @@ import ( ) func TestPromiseTyping1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IPromise { then(success: (value: T) => IPromise, error?: (error: any) => IPromise, progress?: (progress: any) => void ): IPromise; diff --git a/pkg/fourslash/tests/gen/promiseTyping2_test.go b/pkg/fourslash/tests/gen/promiseTyping2_test.go index 1f12ece23..ed581e60c 100644 --- a/pkg/fourslash/tests/gen/promiseTyping2_test.go +++ b/pkg/fourslash/tests/gen/promiseTyping2_test.go @@ -8,8 +8,8 @@ import ( ) func TestPromiseTyping2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IPromise { then(success?: (value: T) => IPromise, error?: (error: any) => IPromise, progress?: (progress: any) => void ): IPromise; diff --git a/pkg/fourslash/tests/gen/propertyDuplicateIdentifierError_test.go b/pkg/fourslash/tests/gen/propertyDuplicateIdentifierError_test.go index fb6b4348c..b55eeff69 100644 --- a/pkg/fourslash/tests/gen/propertyDuplicateIdentifierError_test.go +++ b/pkg/fourslash/tests/gen/propertyDuplicateIdentifierError_test.go @@ -8,8 +8,8 @@ import ( ) func TestPropertyDuplicateIdentifierError(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export class C { x: number; diff --git a/pkg/fourslash/tests/gen/protoPropertyInObjectLiteral_test.go b/pkg/fourslash/tests/gen/protoPropertyInObjectLiteral_test.go index 348b67d8a..ff8678228 100644 --- a/pkg/fourslash/tests/gen/protoPropertyInObjectLiteral_test.go +++ b/pkg/fourslash/tests/gen/protoPropertyInObjectLiteral_test.go @@ -10,8 +10,8 @@ import ( ) func TestProtoPropertyInObjectLiteral(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var o1 = { "__proto__": 10 diff --git a/pkg/fourslash/tests/gen/protoVarInContextualObjectLiteral_test.go b/pkg/fourslash/tests/gen/protoVarInContextualObjectLiteral_test.go index 9f4b7a8be..dd129b72b 100644 --- a/pkg/fourslash/tests/gen/protoVarInContextualObjectLiteral_test.go +++ b/pkg/fourslash/tests/gen/protoVarInContextualObjectLiteral_test.go @@ -10,8 +10,8 @@ import ( ) func TestProtoVarInContextualObjectLiteral(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var o1 : { __proto__: number; diff --git a/pkg/fourslash/tests/gen/protoVarVisibleWithOuterScopeUnderscoreProto_test.go b/pkg/fourslash/tests/gen/protoVarVisibleWithOuterScopeUnderscoreProto_test.go index f13c2c115..bd29f7d91 100644 --- a/pkg/fourslash/tests/gen/protoVarVisibleWithOuterScopeUnderscoreProto_test.go +++ b/pkg/fourslash/tests/gen/protoVarVisibleWithOuterScopeUnderscoreProto_test.go @@ -10,8 +10,8 @@ import ( ) func TestProtoVarVisibleWithOuterScopeUnderscoreProto(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// outer var ___proto__ = 10; diff --git a/pkg/fourslash/tests/gen/prototypeProperty_test.go b/pkg/fourslash/tests/gen/prototypeProperty_test.go index e02620132..e5b7fc45d 100644 --- a/pkg/fourslash/tests/gen/prototypeProperty_test.go +++ b/pkg/fourslash/tests/gen/prototypeProperty_test.go @@ -10,8 +10,8 @@ import ( ) func TestPrototypeProperty(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A {} A./*1*/prototype; diff --git a/pkg/fourslash/tests/gen/publicBreak_test.go b/pkg/fourslash/tests/gen/publicBreak_test.go index 4b720bc07..9582e4842 100644 --- a/pkg/fourslash/tests/gen/publicBreak_test.go +++ b/pkg/fourslash/tests/gen/publicBreak_test.go @@ -8,8 +8,8 @@ import ( ) func TestPublicBreak(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `public break; /**/` diff --git a/pkg/fourslash/tests/gen/qualifiedName_import-declaration-with-variable-entity-names_test.go b/pkg/fourslash/tests/gen/qualifiedName_import-declaration-with-variable-entity-names_test.go index 50bbd6f76..36addb44c 100644 --- a/pkg/fourslash/tests/gen/qualifiedName_import-declaration-with-variable-entity-names_test.go +++ b/pkg/fourslash/tests/gen/qualifiedName_import-declaration-with-variable-entity-names_test.go @@ -10,8 +10,8 @@ import ( ) func TestQualifiedName_import_declaration_with_variable_entity_names(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module Alpha { export var [|{| "name" : "def" |}x|] = 100; diff --git a/pkg/fourslash/tests/gen/qualifyModuleTypeNames_test.go b/pkg/fourslash/tests/gen/qualifyModuleTypeNames_test.go index 4c89686fa..517e5690c 100644 --- a/pkg/fourslash/tests/gen/qualifyModuleTypeNames_test.go +++ b/pkg/fourslash/tests/gen/qualifyModuleTypeNames_test.go @@ -8,8 +8,8 @@ import ( ) func TestQualifyModuleTypeNames(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module m { export class c { } }; function x(arg: m.c) { return arg; } diff --git a/pkg/fourslash/tests/gen/quickInfoAlias_test.go b/pkg/fourslash/tests/gen/quickInfoAlias_test.go index ed7ab9957..a8220ef5e 100644 --- a/pkg/fourslash/tests/gen/quickInfoAlias_test.go +++ b/pkg/fourslash/tests/gen/quickInfoAlias_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoAlias(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts /** diff --git a/pkg/fourslash/tests/gen/quickInfoAssertionNodeNotReusedWhenTypeNotEquivalent1_test.go b/pkg/fourslash/tests/gen/quickInfoAssertionNodeNotReusedWhenTypeNotEquivalent1_test.go index 786202a2e..406ba016d 100644 --- a/pkg/fourslash/tests/gen/quickInfoAssertionNodeNotReusedWhenTypeNotEquivalent1_test.go +++ b/pkg/fourslash/tests/gen/quickInfoAssertionNodeNotReusedWhenTypeNotEquivalent1_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoAssertionNodeNotReusedWhenTypeNotEquivalent1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true type Wrapper = { diff --git a/pkg/fourslash/tests/gen/quickInfoAssignToExistingClass_test.go b/pkg/fourslash/tests/gen/quickInfoAssignToExistingClass_test.go index ce168fdf3..a9652520e 100644 --- a/pkg/fourslash/tests/gen/quickInfoAssignToExistingClass_test.go +++ b/pkg/fourslash/tests/gen/quickInfoAssignToExistingClass_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoAssignToExistingClass(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module Test { class Mocked { diff --git a/pkg/fourslash/tests/gen/quickInfoAtPropWithAmbientDeclarationInJs_test.go b/pkg/fourslash/tests/gen/quickInfoAtPropWithAmbientDeclarationInJs_test.go index 8b5d93312..2ae4069d6 100644 --- a/pkg/fourslash/tests/gen/quickInfoAtPropWithAmbientDeclarationInJs_test.go +++ b/pkg/fourslash/tests/gen/quickInfoAtPropWithAmbientDeclarationInJs_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoAtPropWithAmbientDeclarationInJs(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @filename: /a.js diff --git a/pkg/fourslash/tests/gen/quickInfoBindingPatternInJsdocNoCrash1_test.go b/pkg/fourslash/tests/gen/quickInfoBindingPatternInJsdocNoCrash1_test.go index 24ad9d08e..02094a34e 100644 --- a/pkg/fourslash/tests/gen/quickInfoBindingPatternInJsdocNoCrash1_test.go +++ b/pkg/fourslash/tests/gen/quickInfoBindingPatternInJsdocNoCrash1_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoBindingPatternInJsdocNoCrash1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** @type {({ /*1*/data: any }?) => { data: string[] }} */ function useQuery({ data }): { data: string[] } { diff --git a/pkg/fourslash/tests/gen/quickInfoCallProperty_test.go b/pkg/fourslash/tests/gen/quickInfoCallProperty_test.go index 8c1adeee2..158058a11 100644 --- a/pkg/fourslash/tests/gen/quickInfoCallProperty_test.go +++ b/pkg/fourslash/tests/gen/quickInfoCallProperty_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoCallProperty(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { /** Doc */ diff --git a/pkg/fourslash/tests/gen/quickInfoCanBeTruncated_test.go b/pkg/fourslash/tests/gen/quickInfoCanBeTruncated_test.go index ac69ae98f..2343a56a5 100644 --- a/pkg/fourslash/tests/gen/quickInfoCanBeTruncated_test.go +++ b/pkg/fourslash/tests/gen/quickInfoCanBeTruncated_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoCanBeTruncated(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noLib: true interface Foo { diff --git a/pkg/fourslash/tests/gen/quickInfoCircularInstantiationExpression_test.go b/pkg/fourslash/tests/gen/quickInfoCircularInstantiationExpression_test.go index 8dcb20330..7ad3f8ddc 100644 --- a/pkg/fourslash/tests/gen/quickInfoCircularInstantiationExpression_test.go +++ b/pkg/fourslash/tests/gen/quickInfoCircularInstantiationExpression_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoCircularInstantiationExpression(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function foo(t: T): typeof foo; /**/foo("");` diff --git a/pkg/fourslash/tests/gen/quickInfoClassKeyword_test.go b/pkg/fourslash/tests/gen/quickInfoClassKeyword_test.go index 34594e672..add38c832 100644 --- a/pkg/fourslash/tests/gen/quickInfoClassKeyword_test.go +++ b/pkg/fourslash/tests/gen/quickInfoClassKeyword_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoClassKeyword(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[1].forEach(cla/*1*/ss {}); [1].forEach(cla/*2*/ss OK{});` diff --git a/pkg/fourslash/tests/gen/quickInfoCloduleWithRecursiveReference_test.go b/pkg/fourslash/tests/gen/quickInfoCloduleWithRecursiveReference_test.go index a169fa3dc..3935d763f 100644 --- a/pkg/fourslash/tests/gen/quickInfoCloduleWithRecursiveReference_test.go +++ b/pkg/fourslash/tests/gen/quickInfoCloduleWithRecursiveReference_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoCloduleWithRecursiveReference(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module M { export class C { diff --git a/pkg/fourslash/tests/gen/quickInfoCommentsClassMembers_test.go b/pkg/fourslash/tests/gen/quickInfoCommentsClassMembers_test.go index e3d812eb8..e0bd2c47a 100644 --- a/pkg/fourslash/tests/gen/quickInfoCommentsClassMembers_test.go +++ b/pkg/fourslash/tests/gen/quickInfoCommentsClassMembers_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoCommentsClassMembers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** This is comment for c1*/ class c/*1*/1 { diff --git a/pkg/fourslash/tests/gen/quickInfoCommentsClass_test.go b/pkg/fourslash/tests/gen/quickInfoCommentsClass_test.go index e05760a3e..be9ca4861 100644 --- a/pkg/fourslash/tests/gen/quickInfoCommentsClass_test.go +++ b/pkg/fourslash/tests/gen/quickInfoCommentsClass_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoCommentsClass(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** This is class c2 without constructor*/ class c/*1*/2 { diff --git a/pkg/fourslash/tests/gen/quickInfoCommentsCommentParsing_test.go b/pkg/fourslash/tests/gen/quickInfoCommentsCommentParsing_test.go index 8477ca2f7..aeba712a1 100644 --- a/pkg/fourslash/tests/gen/quickInfoCommentsCommentParsing_test.go +++ b/pkg/fourslash/tests/gen/quickInfoCommentsCommentParsing_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoCommentsCommentParsing(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/// This is simple /// comments function simple() { diff --git a/pkg/fourslash/tests/gen/quickInfoCommentsFunctionDeclaration_test.go b/pkg/fourslash/tests/gen/quickInfoCommentsFunctionDeclaration_test.go index a2152798f..9191329ec 100644 --- a/pkg/fourslash/tests/gen/quickInfoCommentsFunctionDeclaration_test.go +++ b/pkg/fourslash/tests/gen/quickInfoCommentsFunctionDeclaration_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoCommentsFunctionDeclaration(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** This comment should appear for foo*/ function f/*1*/oo() { diff --git a/pkg/fourslash/tests/gen/quickInfoCommentsFunctionExpression_test.go b/pkg/fourslash/tests/gen/quickInfoCommentsFunctionExpression_test.go index 0ee3cb56a..1841f7088 100644 --- a/pkg/fourslash/tests/gen/quickInfoCommentsFunctionExpression_test.go +++ b/pkg/fourslash/tests/gen/quickInfoCommentsFunctionExpression_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoCommentsFunctionExpression(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** lambdaFoo var comment*/ var lamb/*1*/daFoo = /** this is lambda comment*/ (/**param a*/a: number, /**param b*/b: number) => a + b; diff --git a/pkg/fourslash/tests/gen/quickInfoContextualTyping_test.go b/pkg/fourslash/tests/gen/quickInfoContextualTyping_test.go index 1f285880c..99c11c14f 100644 --- a/pkg/fourslash/tests/gen/quickInfoContextualTyping_test.go +++ b/pkg/fourslash/tests/gen/quickInfoContextualTyping_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoContextualTyping(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// DEFAULT INTERFACES interface IFoo { diff --git a/pkg/fourslash/tests/gen/quickInfoContextuallyTypedSignatureOptionalParameterFromIntersection1_test.go b/pkg/fourslash/tests/gen/quickInfoContextuallyTypedSignatureOptionalParameterFromIntersection1_test.go index 637222e0b..04c9f359c 100644 --- a/pkg/fourslash/tests/gen/quickInfoContextuallyTypedSignatureOptionalParameterFromIntersection1_test.go +++ b/pkg/fourslash/tests/gen/quickInfoContextuallyTypedSignatureOptionalParameterFromIntersection1_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoContextuallyTypedSignatureOptionalParameterFromIntersection1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true const optionals: ((a?: number) => unknown) & ((b?: string) => unknown) = ( diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsArrowFunctionExpression_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsArrowFunctionExpression_test.go index eb1a80d55..f84c470ce 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsArrowFunctionExpression_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsArrowFunctionExpression_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsArrowFunctionExpression(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var /*1*/x = /*5*/a => 10; var /*2*/y = (/*6*/a, /*7*/b) => 10; diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassAccessors_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassAccessors_test.go index 6fea40ca0..60a926a99 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassAccessors_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassAccessors_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsClassAccessors(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class c { public get /*1*/publicProperty() { return ""; } diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassAutoAccessors_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassAutoAccessors_test.go index 57a8bf671..cf6284c58 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassAutoAccessors_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassAutoAccessors_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsClassAutoAccessors(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class c { public accessor /*1a*/publicProperty: string; diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassConstructor_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassConstructor_test.go index 14e6050e3..b5e72160f 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassConstructor_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassConstructor_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsClassConstructor(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class c { /*1*/constructor() { diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassDefaultAnonymous_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassDefaultAnonymous_test.go index fc36b57a2..2305d1427 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassDefaultAnonymous_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassDefaultAnonymous_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsClassDefaultAnonymous(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/export /*2*/default /*3*/class /*4*/ { }` diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassDefaultNamed_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassDefaultNamed_test.go index c8223cc3d..a1131dd8b 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassDefaultNamed_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassDefaultNamed_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsClassDefaultNamed(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/export /*2*/default /*3*/class /*4*/C /*5*/ { }` diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassIncomplete_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassIncomplete_test.go index bd92b3420..e778f2334 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassIncomplete_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassIncomplete_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsClassIncomplete(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/class /*2*/ { }` diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassMethod_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassMethod_test.go index 6e9f99853..287e3648e 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassMethod_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassMethod_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsClassMethod(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class c { public /*1*/publicMethod() { } diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassProperty_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassProperty_test.go index aaf01dca4..3ffffbd35 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassProperty_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsClassProperty_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsClassProperty(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class c { public /*1*/publicProperty: string; diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsClass_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsClass_test.go index fff250916..11d82ec91 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsClass_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsClass_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsClass(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class /*1*/c { } diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsConst_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsConst_test.go index 87e6ed979..5e26f22c7 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsConst_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsConst_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsConst(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const /*1*/a = 10; function foo() { diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsEnum1_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsEnum1_test.go index 91dbe3f71..b5eec233b 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsEnum1_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsEnum1_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsEnum1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum /*1*/E { /*2*/e1, diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsEnum2_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsEnum2_test.go index 85e276194..ed986e29f 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsEnum2_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsEnum2_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsEnum2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum /*1*/E { /*2*/"e1", diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsEnum3_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsEnum3_test.go index a6cec9adb..172e6a73d 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsEnum3_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsEnum3_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsEnum3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum /*1*/E { /*2*/"e1", diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsEnum4_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsEnum4_test.go index 17c0cea23..e8acdfec5 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsEnum4_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsEnum4_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsEnum4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const enum Foo { "\t" = 9, diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsExternalModuleAlias_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsExternalModuleAlias_test.go index 183d977ea..ee131394f 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsExternalModuleAlias_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsExternalModuleAlias_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsExternalModuleAlias(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: quickInfoDisplayPartsExternalModuleAlias_file0.ts export namespace m1 { diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsExternalModules_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsExternalModules_test.go index 7b38ca5fe..6567033af 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsExternalModules_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsExternalModules_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsExternalModules(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export namespace /*1*/m { var /*2*/namespaceElemWithoutExport = 10; diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsFunctionExpression_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsFunctionExpression_test.go index 71527cf4a..034be5cfc 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsFunctionExpression_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsFunctionExpression_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsFunctionExpression(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var /*1*/x = function /*2*/foo() { /*3*/foo(); diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsFunctionIncomplete_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsFunctionIncomplete_test.go index 26b0ad7b6..93669a358 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsFunctionIncomplete_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsFunctionIncomplete_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsFunctionIncomplete(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/function /*2*/(param: string) { }\ diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsFunction_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsFunction_test.go index 57041df24..93025a816 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsFunction_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsFunction_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsFunction(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function /*1*/foo(param: string, optionalParam?: string, paramWithInitializer = "hello", ...restParam: string[]) { } diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsIife_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsIife_test.go index 088c3a0fc..d92c9011e 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsIife_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsIife_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsIife(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strictNullChecks: true var iife = (function foo/*1*/(x, y) { return x })(12);` diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsInterfaceMembers_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsInterfaceMembers_test.go index 226e130c6..7477631a7 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsInterfaceMembers_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsInterfaceMembers_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsInterfaceMembers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { /*1*/property: string; diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsInterface_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsInterface_test.go index 3336eeb8a..7f525f9a6 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsInterface_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsInterface_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsInterface(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface /*1*/i { } diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsInternalModuleAlias_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsInternalModuleAlias_test.go index da1b232a1..4054572b5 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsInternalModuleAlias_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsInternalModuleAlias_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsInternalModuleAlias(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module m.m1 { export class c { diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsLet_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsLet_test.go index 4ef2584dd..70d5a0bc8 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsLet_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsLet_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsLet(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let /*1*/a = 10; function foo() { diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsLiteralLikeNames01_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsLiteralLikeNames01_test.go index 71eb3e796..bee587111 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsLiteralLikeNames01_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsLiteralLikeNames01_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsLiteralLikeNames01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { public /*1*/1() { } diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsLocalFunction_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsLocalFunction_test.go index 84adbb611..810149fcc 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsLocalFunction_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsLocalFunction_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsLocalFunction(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function /*1*/outerFoo() { function /*2*/foo(param: string, optionalParam?: string, paramWithInitializer = "hello", ...restParam: string[]) { diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsModules_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsModules_test.go index c4c54014f..93675c3de 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsModules_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsModules_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsModules(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `namespace /*1*/m { var /*2*/namespaceElemWithoutExport = 10; diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsParameters_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsParameters_test.go index 1fced7c7b..619b568cb 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsParameters_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsParameters_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsParameters(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** @return *crunch* */ function /*1*/foo(/*2*/param: string, /*3*/optionalParam?: string, /*4*/paramWithInitializer = "hello", .../*5*/restParam: string[]) { diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsTypeAlias_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsTypeAlias_test.go index 8dad1e41a..7bb7e9d3e 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsTypeAlias_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsTypeAlias_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsTypeAlias(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class /*1*/c { } diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsTypeParameterInClass_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsTypeParameterInClass_test.go index 29bf4057e..daa6b544a 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsTypeParameterInClass_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsTypeParameterInClass_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsTypeParameterInClass(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class /*1*/c { /*3*/constructor(/*4*/a: /*5*/T) { diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias_test.go index 557b2d438..a6f59ccfc 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsTypeParameterInFunctionLikeInTypeAlias(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type MixinCtor = new () => /*0*/A & { constructor: MixinCtor }; type MixinCtor = new () => A & { constructor: { constructor: MixinCtor } };` diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsTypeParameterInFunction_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsTypeParameterInFunction_test.go index 97662be7d..44f4748f8 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsTypeParameterInFunction_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsTypeParameterInFunction_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsTypeParameterInFunction(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function /*1*/foo(/*3*/a: /*4*/U) { return /*5*/a; diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsTypeParameterInInterface_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsTypeParameterInInterface_test.go index 9569b0168..e3b0cbe5a 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsTypeParameterInInterface_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsTypeParameterInInterface_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsTypeParameterInInterface(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface /*1*/I { new (/*4*/a: /*5*/U, /*6*/b: /*7*/T): /*8*/U; diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsTypeParameterInTypeAlias_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsTypeParameterInTypeAlias_test.go index 107939a69..029c6e85b 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsTypeParameterInTypeAlias_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsTypeParameterInTypeAlias_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsTypeParameterInTypeAlias(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type /*0*/List = /*2*/T[] type /*3*/List2 = /*5*/T[];` diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsUsing_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsUsing_test.go index 4f489e72d..b5ff817ba 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsUsing_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsUsing_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsUsing(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @lib: esnext using a/*a*/ = "a"; diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsVarWithStringTypes01_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsVarWithStringTypes01_test.go index d30c7f5ea..44908f296 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsVarWithStringTypes01_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsVarWithStringTypes01_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsVarWithStringTypes01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let /*1*/hello: "hello" | 'hello' = "hello"; let /*2*/world: 'world' = "world"; diff --git a/pkg/fourslash/tests/gen/quickInfoDisplayPartsVar_test.go b/pkg/fourslash/tests/gen/quickInfoDisplayPartsVar_test.go index 69f71d50a..631c7b760 100644 --- a/pkg/fourslash/tests/gen/quickInfoDisplayPartsVar_test.go +++ b/pkg/fourslash/tests/gen/quickInfoDisplayPartsVar_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoDisplayPartsVar(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var /*1*/a = 10; function foo() { diff --git a/pkg/fourslash/tests/gen/quickInfoElementAccessDeclaration_test.go b/pkg/fourslash/tests/gen/quickInfoElementAccessDeclaration_test.go index 155077727..d8676934c 100644 --- a/pkg/fourslash/tests/gen/quickInfoElementAccessDeclaration_test.go +++ b/pkg/fourslash/tests/gen/quickInfoElementAccessDeclaration_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoElementAccessDeclaration(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @checkJs: true // @allowJs: true diff --git a/pkg/fourslash/tests/gen/quickInfoEnumMembersAcceptNonAsciiStrings_test.go b/pkg/fourslash/tests/gen/quickInfoEnumMembersAcceptNonAsciiStrings_test.go index cba1dc1aa..bfa672c91 100644 --- a/pkg/fourslash/tests/gen/quickInfoEnumMembersAcceptNonAsciiStrings_test.go +++ b/pkg/fourslash/tests/gen/quickInfoEnumMembersAcceptNonAsciiStrings_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoEnumMembersAcceptNonAsciiStrings(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum Demo { /*Emoji*/Emoji = '🍎', diff --git a/pkg/fourslash/tests/gen/quickInfoExportAssignmentOfGenericInterface_test.go b/pkg/fourslash/tests/gen/quickInfoExportAssignmentOfGenericInterface_test.go index 2b69d8d12..08006f0ca 100644 --- a/pkg/fourslash/tests/gen/quickInfoExportAssignmentOfGenericInterface_test.go +++ b/pkg/fourslash/tests/gen/quickInfoExportAssignmentOfGenericInterface_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoExportAssignmentOfGenericInterface(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: quickInfoExportAssignmentOfGenericInterface_0.ts interface Foo { diff --git a/pkg/fourslash/tests/gen/quickInfoExtendArray_test.go b/pkg/fourslash/tests/gen/quickInfoExtendArray_test.go index 425540a95..88cbf0599 100644 --- a/pkg/fourslash/tests/gen/quickInfoExtendArray_test.go +++ b/pkg/fourslash/tests/gen/quickInfoExtendArray_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoExtendArray(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo extends Array { } var x: Foo; diff --git a/pkg/fourslash/tests/gen/quickInfoForAliasedGeneric_test.go b/pkg/fourslash/tests/gen/quickInfoForAliasedGeneric_test.go index fd000c607..45b5a6081 100644 --- a/pkg/fourslash/tests/gen/quickInfoForAliasedGeneric_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForAliasedGeneric_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForAliasedGeneric(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module M { export module N { diff --git a/pkg/fourslash/tests/gen/quickInfoForArgumentsPropertyNameInJsMode1_test.go b/pkg/fourslash/tests/gen/quickInfoForArgumentsPropertyNameInJsMode1_test.go index 4f59323c3..a6377b17b 100644 --- a/pkg/fourslash/tests/gen/quickInfoForArgumentsPropertyNameInJsMode1_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForArgumentsPropertyNameInJsMode1_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForArgumentsPropertyNameInJsMode1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @filename: a.js diff --git a/pkg/fourslash/tests/gen/quickInfoForArgumentsPropertyNameInJsMode2_test.go b/pkg/fourslash/tests/gen/quickInfoForArgumentsPropertyNameInJsMode2_test.go index a5aa42ce2..7aaf72a1c 100644 --- a/pkg/fourslash/tests/gen/quickInfoForArgumentsPropertyNameInJsMode2_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForArgumentsPropertyNameInJsMode2_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForArgumentsPropertyNameInJsMode2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @filename: a.js diff --git a/pkg/fourslash/tests/gen/quickInfoForConstAssertions_test.go b/pkg/fourslash/tests/gen/quickInfoForConstAssertions_test.go index 612f9840c..acd43154f 100644 --- a/pkg/fourslash/tests/gen/quickInfoForConstAssertions_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForConstAssertions_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForConstAssertions(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const a = { a: 1 } as /*1*/const; const b = 1 as /*2*/const; diff --git a/pkg/fourslash/tests/gen/quickInfoForConstDeclaration_test.go b/pkg/fourslash/tests/gen/quickInfoForConstDeclaration_test.go index cfb745bd0..9c51a0a64 100644 --- a/pkg/fourslash/tests/gen/quickInfoForConstDeclaration_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForConstDeclaration_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForConstDeclaration(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const /**/c = 0 ;` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/quickInfoForConstTypeReference_test.go b/pkg/fourslash/tests/gen/quickInfoForConstTypeReference_test.go index e72ff94c2..71e96909e 100644 --- a/pkg/fourslash/tests/gen/quickInfoForConstTypeReference_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForConstTypeReference_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForConstTypeReference(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `"" as /**/const;` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/quickInfoForContextuallyTypedArrowFunctionInSuperCall_test.go b/pkg/fourslash/tests/gen/quickInfoForContextuallyTypedArrowFunctionInSuperCall_test.go index 85e46bcc5..85916db82 100644 --- a/pkg/fourslash/tests/gen/quickInfoForContextuallyTypedArrowFunctionInSuperCall_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForContextuallyTypedArrowFunctionInSuperCall_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForContextuallyTypedArrowFunctionInSuperCall(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A { constructor(private map: (value: T1) => T2) { diff --git a/pkg/fourslash/tests/gen/quickInfoForContextuallyTypedFunctionInReturnStatement_test.go b/pkg/fourslash/tests/gen/quickInfoForContextuallyTypedFunctionInReturnStatement_test.go index 187865e51..fc8f3b815 100644 --- a/pkg/fourslash/tests/gen/quickInfoForContextuallyTypedFunctionInReturnStatement_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForContextuallyTypedFunctionInReturnStatement_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForContextuallyTypedFunctionInReturnStatement(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Accumulator { clear(): void; diff --git a/pkg/fourslash/tests/gen/quickInfoForContextuallyTypedIife_test.go b/pkg/fourslash/tests/gen/quickInfoForContextuallyTypedIife_test.go index 5e840d3be..cc838c62a 100644 --- a/pkg/fourslash/tests/gen/quickInfoForContextuallyTypedIife_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForContextuallyTypedIife_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForContextuallyTypedIife(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `(({ q/*1*/, qq/*2*/ }, x/*3*/, { p/*4*/ }) => { var s: number = q/*5*/; diff --git a/pkg/fourslash/tests/gen/quickInfoForContextuallyTypedParameters_test.go b/pkg/fourslash/tests/gen/quickInfoForContextuallyTypedParameters_test.go index 88e6abecf..488ec8e3e 100644 --- a/pkg/fourslash/tests/gen/quickInfoForContextuallyTypedParameters_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForContextuallyTypedParameters_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForContextuallyTypedParameters(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function foo1(obj: T, settings: (row: T) => { value: string, func?: Function }): void; diff --git a/pkg/fourslash/tests/gen/quickInfoForDecorators_test.go b/pkg/fourslash/tests/gen/quickInfoForDecorators_test.go index 4be333fbf..22d890d28 100644 --- a/pkg/fourslash/tests/gen/quickInfoForDecorators_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForDecorators_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForDecorators(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `@/*1*/decorator class C { diff --git a/pkg/fourslash/tests/gen/quickInfoForDerivedGenericTypeWithConstructor_test.go b/pkg/fourslash/tests/gen/quickInfoForDerivedGenericTypeWithConstructor_test.go index 9368925c7..602971078 100644 --- a/pkg/fourslash/tests/gen/quickInfoForDerivedGenericTypeWithConstructor_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForDerivedGenericTypeWithConstructor_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForDerivedGenericTypeWithConstructor(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A { foo() { } diff --git a/pkg/fourslash/tests/gen/quickInfoForDestructuringShorthandInitializer_test.go b/pkg/fourslash/tests/gen/quickInfoForDestructuringShorthandInitializer_test.go index 3ee5f05ee..98b5913a7 100644 --- a/pkg/fourslash/tests/gen/quickInfoForDestructuringShorthandInitializer_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForDestructuringShorthandInitializer_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForDestructuringShorthandInitializer(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let a = ''; let b: string; diff --git a/pkg/fourslash/tests/gen/quickInfoForFunctionDeclaration_test.go b/pkg/fourslash/tests/gen/quickInfoForFunctionDeclaration_test.go index 53caa7cfd..cc208031e 100644 --- a/pkg/fourslash/tests/gen/quickInfoForFunctionDeclaration_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForFunctionDeclaration_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForFunctionDeclaration(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface A { } diff --git a/pkg/fourslash/tests/gen/quickInfoForGenericConstraints1_test.go b/pkg/fourslash/tests/gen/quickInfoForGenericConstraints1_test.go index b86a1538d..02d0ea72f 100644 --- a/pkg/fourslash/tests/gen/quickInfoForGenericConstraints1_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForGenericConstraints1_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForGenericConstraints1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo4(te/**/st: T): T; function foo4(test: any): any { return null; }` diff --git a/pkg/fourslash/tests/gen/quickInfoForGenericPrototypeMember_test.go b/pkg/fourslash/tests/gen/quickInfoForGenericPrototypeMember_test.go index 6fcb66304..f354e2ca9 100644 --- a/pkg/fourslash/tests/gen/quickInfoForGenericPrototypeMember_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForGenericPrototypeMember_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForGenericPrototypeMember(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { foo(x: T) { } diff --git a/pkg/fourslash/tests/gen/quickInfoForGenericTaggedTemplateExpression_test.go b/pkg/fourslash/tests/gen/quickInfoForGenericTaggedTemplateExpression_test.go index f845c7e1f..e483097d2 100644 --- a/pkg/fourslash/tests/gen/quickInfoForGenericTaggedTemplateExpression_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForGenericTaggedTemplateExpression_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForGenericTaggedTemplateExpression(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface T1 {} class T2 {} diff --git a/pkg/fourslash/tests/gen/quickInfoForGetterAndSetter_test.go b/pkg/fourslash/tests/gen/quickInfoForGetterAndSetter_test.go index e72bb65b1..9949554cd 100644 --- a/pkg/fourslash/tests/gen/quickInfoForGetterAndSetter_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForGetterAndSetter_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForGetterAndSetter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Test { constructor() { diff --git a/pkg/fourslash/tests/gen/quickInfoForIn_test.go b/pkg/fourslash/tests/gen/quickInfoForIn_test.go index 84e1fe3c1..b9f383cce 100644 --- a/pkg/fourslash/tests/gen/quickInfoForIn_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForIn_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForIn(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var obj; for (var /**/p in obj) { }` diff --git a/pkg/fourslash/tests/gen/quickInfoForIndexerResultWithConstraint_test.go b/pkg/fourslash/tests/gen/quickInfoForIndexerResultWithConstraint_test.go index 9eda74337..448ec396c 100644 --- a/pkg/fourslash/tests/gen/quickInfoForIndexerResultWithConstraint_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForIndexerResultWithConstraint_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForIndexerResultWithConstraint(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(x: T) { return x; diff --git a/pkg/fourslash/tests/gen/quickInfoForJSDocCodefence_test.go b/pkg/fourslash/tests/gen/quickInfoForJSDocCodefence_test.go index dde8b0698..4d658bf80 100644 --- a/pkg/fourslash/tests/gen/quickInfoForJSDocCodefence_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForJSDocCodefence_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForJSDocCodefence(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * @example diff --git a/pkg/fourslash/tests/gen/quickInfoForJSDocUnknownTag_test.go b/pkg/fourslash/tests/gen/quickInfoForJSDocUnknownTag_test.go index 5e98436ab..fc42c1a29 100644 --- a/pkg/fourslash/tests/gen/quickInfoForJSDocUnknownTag_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForJSDocUnknownTag_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForJSDocUnknownTag(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * @example diff --git a/pkg/fourslash/tests/gen/quickInfoForJSDocWithHttpLinks_test.go b/pkg/fourslash/tests/gen/quickInfoForJSDocWithHttpLinks_test.go index e11cbd642..cb4f174fb 100644 --- a/pkg/fourslash/tests/gen/quickInfoForJSDocWithHttpLinks_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForJSDocWithHttpLinks_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForJSDocWithHttpLinks(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @checkJs: true // @filename: quickInfoForJSDocWithHttpLinks.js diff --git a/pkg/fourslash/tests/gen/quickInfoForJSDocWithUnresolvedHttpLinks_test.go b/pkg/fourslash/tests/gen/quickInfoForJSDocWithUnresolvedHttpLinks_test.go index 740ac20b3..281ff3af9 100644 --- a/pkg/fourslash/tests/gen/quickInfoForJSDocWithUnresolvedHttpLinks_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForJSDocWithUnresolvedHttpLinks_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForJSDocWithUnresolvedHttpLinks(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @checkJs: true // @filename: quickInfoForJSDocWithHttpLinks.js diff --git a/pkg/fourslash/tests/gen/quickInfoForNamedTupleMember_test.go b/pkg/fourslash/tests/gen/quickInfoForNamedTupleMember_test.go index 862ea656a..58e12c091 100644 --- a/pkg/fourslash/tests/gen/quickInfoForNamedTupleMember_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForNamedTupleMember_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForNamedTupleMember(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type foo = [/**/x: string];` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementName01_test.go b/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementName01_test.go index 41c403f7a..421f704e6 100644 --- a/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementName01_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementName01_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForObjectBindingElementName01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { property1: number; diff --git a/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementName02_test.go b/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementName02_test.go index a0d6e4a96..eaf14b16c 100644 --- a/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementName02_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementName02_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForObjectBindingElementName02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { property1: number; diff --git a/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementName03_test.go b/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementName03_test.go index 039e31a62..35985cc1f 100644 --- a/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementName03_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementName03_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForObjectBindingElementName03(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Options { /** diff --git a/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementName04_test.go b/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementName04_test.go index 0d39d22d8..6f95ed72b 100644 --- a/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementName04_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementName04_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForObjectBindingElementName04(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Options { /** diff --git a/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementName05_test.go b/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementName05_test.go index 954be1c03..2ae3a375b 100644 --- a/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementName05_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementName05_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForObjectBindingElementName05(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface A { /** diff --git a/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementName06_test.go b/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementName06_test.go index f56ef997a..76f48d592 100644 --- a/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementName06_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementName06_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForObjectBindingElementName06(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type Foo = { /** diff --git a/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementPropertyName01_test.go b/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementPropertyName01_test.go index bdf9ed5e9..c6032660c 100644 --- a/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementPropertyName01_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementPropertyName01_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForObjectBindingElementPropertyName01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { property1: number; diff --git a/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementPropertyName02_test.go b/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementPropertyName02_test.go index 54e202fbe..d9c59727b 100644 --- a/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementPropertyName02_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementPropertyName02_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForObjectBindingElementPropertyName02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { property1: number; diff --git a/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementPropertyName04_test.go b/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementPropertyName04_test.go index 193358d30..965808763 100644 --- a/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementPropertyName04_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForObjectBindingElementPropertyName04_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForObjectBindingElementPropertyName04(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Recursive { next?: Recursive; diff --git a/pkg/fourslash/tests/gen/quickInfoForRequire_test.go b/pkg/fourslash/tests/gen/quickInfoForRequire_test.go index 2ad35f27f..40b90bd8a 100644 --- a/pkg/fourslash/tests/gen/quickInfoForRequire_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForRequire_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForRequire(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: AA/BB.ts export class a{} diff --git a/pkg/fourslash/tests/gen/quickInfoForShorthandProperty_test.go b/pkg/fourslash/tests/gen/quickInfoForShorthandProperty_test.go index d4a23f8f8..6bf4e8562 100644 --- a/pkg/fourslash/tests/gen/quickInfoForShorthandProperty_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForShorthandProperty_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForShorthandProperty(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var name1 = undefined, id1 = undefined; var /*obj1*/obj1 = {/*name1*/name1, /*id1*/id1}; diff --git a/pkg/fourslash/tests/gen/quickInfoForSyntaxErrorNoError_test.go b/pkg/fourslash/tests/gen/quickInfoForSyntaxErrorNoError_test.go index cd04e1ead..06303631a 100644 --- a/pkg/fourslash/tests/gen/quickInfoForSyntaxErrorNoError_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForSyntaxErrorNoError_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForSyntaxErrorNoError(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `namespace X { export = diff --git a/pkg/fourslash/tests/gen/quickInfoForTypeParameterInTypeAlias1_test.go b/pkg/fourslash/tests/gen/quickInfoForTypeParameterInTypeAlias1_test.go index 8aa10f0fd..4a5123c76 100644 --- a/pkg/fourslash/tests/gen/quickInfoForTypeParameterInTypeAlias1_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForTypeParameterInTypeAlias1_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForTypeParameterInTypeAlias1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type Ctor = new () => A/*1*/A; type MixinCtor = new () => AA & { constructor: MixinCtor }; diff --git a/pkg/fourslash/tests/gen/quickInfoForTypeParameterInTypeAlias2_test.go b/pkg/fourslash/tests/gen/quickInfoForTypeParameterInTypeAlias2_test.go index c2cba02ed..66d2cc56d 100644 --- a/pkg/fourslash/tests/gen/quickInfoForTypeParameterInTypeAlias2_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForTypeParameterInTypeAlias2_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForTypeParameterInTypeAlias2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type Call = { (): A/*1*/A }; type Index = {[foo: string]: A/*2*/A}; diff --git a/pkg/fourslash/tests/gen/quickInfoForTypeofParameter_test.go b/pkg/fourslash/tests/gen/quickInfoForTypeofParameter_test.go index 7f050c00a..52f7f8037 100644 --- a/pkg/fourslash/tests/gen/quickInfoForTypeofParameter_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForTypeofParameter_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForTypeofParameter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo() { var y/*ref1*/1: string; diff --git a/pkg/fourslash/tests/gen/quickInfoForUMDModuleAlias_test.go b/pkg/fourslash/tests/gen/quickInfoForUMDModuleAlias_test.go index acc8d7e23..24bdc25a9 100644 --- a/pkg/fourslash/tests/gen/quickInfoForUMDModuleAlias_test.go +++ b/pkg/fourslash/tests/gen/quickInfoForUMDModuleAlias_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoForUMDModuleAlias(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: 0.d.ts export function doThing(): string; diff --git a/pkg/fourslash/tests/gen/quickInfoFromContextualType_test.go b/pkg/fourslash/tests/gen/quickInfoFromContextualType_test.go index c2feb6441..4ca822de1 100644 --- a/pkg/fourslash/tests/gen/quickInfoFromContextualType_test.go +++ b/pkg/fourslash/tests/gen/quickInfoFromContextualType_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoFromContextualType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: quickInfoExportAssignmentOfGenericInterface_0.ts interface I { diff --git a/pkg/fourslash/tests/gen/quickInfoFromContextualUnionType1_test.go b/pkg/fourslash/tests/gen/quickInfoFromContextualUnionType1_test.go index 0233f817a..5482f66b8 100644 --- a/pkg/fourslash/tests/gen/quickInfoFromContextualUnionType1_test.go +++ b/pkg/fourslash/tests/gen/quickInfoFromContextualUnionType1_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoFromContextualUnionType1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // based on https://github.com/microsoft/TypeScript/issues/55495 diff --git a/pkg/fourslash/tests/gen/quickInfoFromEmptyBlockComment_test.go b/pkg/fourslash/tests/gen/quickInfoFromEmptyBlockComment_test.go index bcb730668..35bad9069 100644 --- a/pkg/fourslash/tests/gen/quickInfoFromEmptyBlockComment_test.go +++ b/pkg/fourslash/tests/gen/quickInfoFromEmptyBlockComment_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoFromEmptyBlockComment(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/**/ class Foo { diff --git a/pkg/fourslash/tests/gen/quickInfoFunctionCheckType_test.go b/pkg/fourslash/tests/gen/quickInfoFunctionCheckType_test.go index 705e0c7e5..4bf018fab 100644 --- a/pkg/fourslash/tests/gen/quickInfoFunctionCheckType_test.go +++ b/pkg/fourslash/tests/gen/quickInfoFunctionCheckType_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoFunctionCheckType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export type /**/Tail = ((...t: T) => void) extends (h: any, ...rest: infer R) => void ? R : never;` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/quickInfoFunctionKeyword_test.go b/pkg/fourslash/tests/gen/quickInfoFunctionKeyword_test.go index 12e18c013..2827745a5 100644 --- a/pkg/fourslash/tests/gen/quickInfoFunctionKeyword_test.go +++ b/pkg/fourslash/tests/gen/quickInfoFunctionKeyword_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoFunctionKeyword(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[1].forEach(fu/*1*/nction() {}); [1].map(x =/*2*/> x + 1);` diff --git a/pkg/fourslash/tests/gen/quickInfoGenericCombinators2_test.go b/pkg/fourslash/tests/gen/quickInfoGenericCombinators2_test.go index d506cf32a..3b6a2bded 100644 --- a/pkg/fourslash/tests/gen/quickInfoGenericCombinators2_test.go +++ b/pkg/fourslash/tests/gen/quickInfoGenericCombinators2_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoGenericCombinators2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Collection { length: number; diff --git a/pkg/fourslash/tests/gen/quickInfoGenericTypeArgumentInference1_test.go b/pkg/fourslash/tests/gen/quickInfoGenericTypeArgumentInference1_test.go index c75eb47f2..5502d73f3 100644 --- a/pkg/fourslash/tests/gen/quickInfoGenericTypeArgumentInference1_test.go +++ b/pkg/fourslash/tests/gen/quickInfoGenericTypeArgumentInference1_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoGenericTypeArgumentInference1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module Underscore { export interface Iterator { diff --git a/pkg/fourslash/tests/gen/quickInfoGenerics_test.go b/pkg/fourslash/tests/gen/quickInfoGenerics_test.go index 62ad686d1..e1463919f 100644 --- a/pkg/fourslash/tests/gen/quickInfoGenerics_test.go +++ b/pkg/fourslash/tests/gen/quickInfoGenerics_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoGenerics(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Con/*1*/tainer { x: T; diff --git a/pkg/fourslash/tests/gen/quickInfoGetterSetter_test.go b/pkg/fourslash/tests/gen/quickInfoGetterSetter_test.go index 88dcdc466..685a7962a 100644 --- a/pkg/fourslash/tests/gen/quickInfoGetterSetter_test.go +++ b/pkg/fourslash/tests/gen/quickInfoGetterSetter_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoGetterSetter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @target: es2015 class C { diff --git a/pkg/fourslash/tests/gen/quickInfoImportMeta_test.go b/pkg/fourslash/tests/gen/quickInfoImportMeta_test.go index 154903dd4..6923faef1 100644 --- a/pkg/fourslash/tests/gen/quickInfoImportMeta_test.go +++ b/pkg/fourslash/tests/gen/quickInfoImportMeta_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoImportMeta(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: esnext // @Filename: foo.ts diff --git a/pkg/fourslash/tests/gen/quickInfoImportNonunicodePath_test.go b/pkg/fourslash/tests/gen/quickInfoImportNonunicodePath_test.go index 8a0d0d843..171f874e8 100644 --- a/pkg/fourslash/tests/gen/quickInfoImportNonunicodePath_test.go +++ b/pkg/fourslash/tests/gen/quickInfoImportNonunicodePath_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoImportNonunicodePath(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /江南今何在/tmp.ts export const foo = 1; diff --git a/pkg/fourslash/tests/gen/quickInfoInFunctionTypeReference2_test.go b/pkg/fourslash/tests/gen/quickInfoInFunctionTypeReference2_test.go index 0aa4dca43..598ad5831 100644 --- a/pkg/fourslash/tests/gen/quickInfoInFunctionTypeReference2_test.go +++ b/pkg/fourslash/tests/gen/quickInfoInFunctionTypeReference2_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoInFunctionTypeReference2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { map(fn: (/*1*/k: string, /*2*/value: T, context: any) => void, context: any) { diff --git a/pkg/fourslash/tests/gen/quickInfoInFunctionTypeReference_test.go b/pkg/fourslash/tests/gen/quickInfoInFunctionTypeReference_test.go index 7cd9c22a1..f87a8b7ba 100644 --- a/pkg/fourslash/tests/gen/quickInfoInFunctionTypeReference_test.go +++ b/pkg/fourslash/tests/gen/quickInfoInFunctionTypeReference_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoInFunctionTypeReference(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function map(fn: (variab/*1*/le1: string) => void) { } diff --git a/pkg/fourslash/tests/gen/quickInfoInInvalidIndexSignature_test.go b/pkg/fourslash/tests/gen/quickInfoInInvalidIndexSignature_test.go index 0f79f177a..c2fe8eec0 100644 --- a/pkg/fourslash/tests/gen/quickInfoInInvalidIndexSignature_test.go +++ b/pkg/fourslash/tests/gen/quickInfoInInvalidIndexSignature_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoInInvalidIndexSignature(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function method() { var /**/dictionary = <{ [index]: string; }>{}; }` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/quickInfoInJsdocInTsFile1_test.go b/pkg/fourslash/tests/gen/quickInfoInJsdocInTsFile1_test.go index 0400a26f2..a5335fbf5 100644 --- a/pkg/fourslash/tests/gen/quickInfoInJsdocInTsFile1_test.go +++ b/pkg/fourslash/tests/gen/quickInfoInJsdocInTsFile1_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoInJsdocInTsFile1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** @type {() => { /*1*/data: string[] }} */ function test(): { data: string[] } { diff --git a/pkg/fourslash/tests/gen/quickInfoInObjectLiteral_test.go b/pkg/fourslash/tests/gen/quickInfoInObjectLiteral_test.go index e7b570c5c..e91a611ee 100644 --- a/pkg/fourslash/tests/gen/quickInfoInObjectLiteral_test.go +++ b/pkg/fourslash/tests/gen/quickInfoInObjectLiteral_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoInObjectLiteral(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { doStuff(x: string, callback: (a: string) => string); diff --git a/pkg/fourslash/tests/gen/quickInfoInOptionalChain_test.go b/pkg/fourslash/tests/gen/quickInfoInOptionalChain_test.go index 556c2181c..d3c7bf911 100644 --- a/pkg/fourslash/tests/gen/quickInfoInOptionalChain_test.go +++ b/pkg/fourslash/tests/gen/quickInfoInOptionalChain_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoInOptionalChain(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface A { diff --git a/pkg/fourslash/tests/gen/quickInfoInWithBlock_test.go b/pkg/fourslash/tests/gen/quickInfoInWithBlock_test.go index 42b4ddcf3..4fc207816 100644 --- a/pkg/fourslash/tests/gen/quickInfoInWithBlock_test.go +++ b/pkg/fourslash/tests/gen/quickInfoInWithBlock_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoInWithBlock(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `with (x) { function /*1*/f() { } diff --git a/pkg/fourslash/tests/gen/quickInfoInheritDoc2_test.go b/pkg/fourslash/tests/gen/quickInfoInheritDoc2_test.go index 0c7334eab..df74cae7d 100644 --- a/pkg/fourslash/tests/gen/quickInfoInheritDoc2_test.go +++ b/pkg/fourslash/tests/gen/quickInfoInheritDoc2_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoInheritDoc2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noEmit: true // @allowJs: true diff --git a/pkg/fourslash/tests/gen/quickInfoInheritDoc3_test.go b/pkg/fourslash/tests/gen/quickInfoInheritDoc3_test.go index 271d3cea6..eb70881e4 100644 --- a/pkg/fourslash/tests/gen/quickInfoInheritDoc3_test.go +++ b/pkg/fourslash/tests/gen/quickInfoInheritDoc3_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoInheritDoc3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noEmit: true // @allowJs: true diff --git a/pkg/fourslash/tests/gen/quickInfoInheritDoc4_test.go b/pkg/fourslash/tests/gen/quickInfoInheritDoc4_test.go index d2da5c432..49124feb9 100644 --- a/pkg/fourslash/tests/gen/quickInfoInheritDoc4_test.go +++ b/pkg/fourslash/tests/gen/quickInfoInheritDoc4_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoInheritDoc4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: quickInfoInheritDoc4.ts var A: any; diff --git a/pkg/fourslash/tests/gen/quickInfoInheritDoc5_test.go b/pkg/fourslash/tests/gen/quickInfoInheritDoc5_test.go index 59e6744bd..bb0c16f5e 100644 --- a/pkg/fourslash/tests/gen/quickInfoInheritDoc5_test.go +++ b/pkg/fourslash/tests/gen/quickInfoInheritDoc5_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoInheritDoc5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/quickInfoInheritDoc6_test.go b/pkg/fourslash/tests/gen/quickInfoInheritDoc6_test.go index adfe6b500..0f6af3268 100644 --- a/pkg/fourslash/tests/gen/quickInfoInheritDoc6_test.go +++ b/pkg/fourslash/tests/gen/quickInfoInheritDoc6_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoInheritDoc6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/quickInfoInheritDoc_test.go b/pkg/fourslash/tests/gen/quickInfoInheritDoc_test.go index 05e0026df..4a5dfe588 100644 --- a/pkg/fourslash/tests/gen/quickInfoInheritDoc_test.go +++ b/pkg/fourslash/tests/gen/quickInfoInheritDoc_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoInheritDoc(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noEmit: true // @allowJs: true diff --git a/pkg/fourslash/tests/gen/quickInfoInheritedLinkTag_test.go b/pkg/fourslash/tests/gen/quickInfoInheritedLinkTag_test.go index f30349f7b..d2ee727b3 100644 --- a/pkg/fourslash/tests/gen/quickInfoInheritedLinkTag_test.go +++ b/pkg/fourslash/tests/gen/quickInfoInheritedLinkTag_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoInheritedLinkTag(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export class C { /** diff --git a/pkg/fourslash/tests/gen/quickInfoJSDocAtBeforeSpace_test.go b/pkg/fourslash/tests/gen/quickInfoJSDocAtBeforeSpace_test.go index 8000291a8..2f043d2fc 100644 --- a/pkg/fourslash/tests/gen/quickInfoJSDocAtBeforeSpace_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJSDocAtBeforeSpace_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJSDocAtBeforeSpace(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * @return Don't @ me diff --git a/pkg/fourslash/tests/gen/quickInfoJSDocBackticks_test.go b/pkg/fourslash/tests/gen/quickInfoJSDocBackticks_test.go index aac490479..1ace88dba 100644 --- a/pkg/fourslash/tests/gen/quickInfoJSDocBackticks_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJSDocBackticks_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJSDocBackticks(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noEmit: true // @allowJs: true diff --git a/pkg/fourslash/tests/gen/quickInfoJSDocFunctionNew_test.go b/pkg/fourslash/tests/gen/quickInfoJSDocFunctionNew_test.go index 0f826a05d..cbe67a721 100644 --- a/pkg/fourslash/tests/gen/quickInfoJSDocFunctionNew_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJSDocFunctionNew_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJSDocFunctionNew(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/quickInfoJSDocFunctionThis_test.go b/pkg/fourslash/tests/gen/quickInfoJSDocFunctionThis_test.go index b6a7d9407..423f0d4ea 100644 --- a/pkg/fourslash/tests/gen/quickInfoJSDocFunctionThis_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJSDocFunctionThis_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJSDocFunctionThis(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/quickInfoJSDocTags_test.go b/pkg/fourslash/tests/gen/quickInfoJSDocTags_test.go index bf3607d09..cf0ec0e33 100644 --- a/pkg/fourslash/tests/gen/quickInfoJSDocTags_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJSDocTags_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJSDocTags(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * This is class Foo. diff --git a/pkg/fourslash/tests/gen/quickInfoJSExport_test.go b/pkg/fourslash/tests/gen/quickInfoJSExport_test.go index faaacdf75..6ae5a5dee 100644 --- a/pkg/fourslash/tests/gen/quickInfoJSExport_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJSExport_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJSExport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.js // @allowJs: true diff --git a/pkg/fourslash/tests/gen/quickInfoJsDocAlias_test.go b/pkg/fourslash/tests/gen/quickInfoJsDocAlias_test.go index 06244684c..b1af0c671 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsDocAlias_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsDocAlias_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsDocAlias(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: /a.d.ts /** docs - type T */ diff --git a/pkg/fourslash/tests/gen/quickInfoJsDocGetterSetterNoCrash1_test.go b/pkg/fourslash/tests/gen/quickInfoJsDocGetterSetterNoCrash1_test.go index cc16a72b5..eae83bd79 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsDocGetterSetterNoCrash1_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsDocGetterSetterNoCrash1_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsDocGetterSetterNoCrash1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A implements A { get x(): string { return "" } diff --git a/pkg/fourslash/tests/gen/quickInfoJsDocGetterSetter_test.go b/pkg/fourslash/tests/gen/quickInfoJsDocGetterSetter_test.go index 6cd955949..aa156249a 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsDocGetterSetter_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsDocGetterSetter_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsDocGetterSetter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A { /** diff --git a/pkg/fourslash/tests/gen/quickInfoJsDocInheritage_test.go b/pkg/fourslash/tests/gen/quickInfoJsDocInheritage_test.go index 22e09d996..22d41114c 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsDocInheritage_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsDocInheritage_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsDocInheritage(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface A { /** diff --git a/pkg/fourslash/tests/gen/quickInfoJsDocNonDiscriminatedUnionSharedProp_test.go b/pkg/fourslash/tests/gen/quickInfoJsDocNonDiscriminatedUnionSharedProp_test.go index 75548d2c2..83110fe15 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsDocNonDiscriminatedUnionSharedProp_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsDocNonDiscriminatedUnionSharedProp_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsDocNonDiscriminatedUnionSharedProp(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Entries { /** diff --git a/pkg/fourslash/tests/gen/quickInfoJsDocTags10_test.go b/pkg/fourslash/tests/gen/quickInfoJsDocTags10_test.go index e5080ab66..b06c98d5c 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsDocTags10_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsDocTags10_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsDocTags10(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noEmit: true // @allowJs: true diff --git a/pkg/fourslash/tests/gen/quickInfoJsDocTags11_test.go b/pkg/fourslash/tests/gen/quickInfoJsDocTags11_test.go index d3feccf08..3fa47f1b2 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsDocTags11_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsDocTags11_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsDocTags11(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noEmit: true // @allowJs: true diff --git a/pkg/fourslash/tests/gen/quickInfoJsDocTags12_test.go b/pkg/fourslash/tests/gen/quickInfoJsDocTags12_test.go index 6a9831316..692fc0ad0 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsDocTags12_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsDocTags12_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsDocTags12(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * @param {Object} options the args object diff --git a/pkg/fourslash/tests/gen/quickInfoJsDocTags13_test.go b/pkg/fourslash/tests/gen/quickInfoJsDocTags13_test.go index ffca0223a..78ed0adb5 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsDocTags13_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsDocTags13_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsDocTags13(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/quickInfoJsDocTags14_test.go b/pkg/fourslash/tests/gen/quickInfoJsDocTags14_test.go index f1d73c2be..aeed28a67 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsDocTags14_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsDocTags14_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsDocTags14(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * @param {Object} options the args object diff --git a/pkg/fourslash/tests/gen/quickInfoJsDocTags15_test.go b/pkg/fourslash/tests/gen/quickInfoJsDocTags15_test.go index 99fd2b501..3c1d794ac 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsDocTags15_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsDocTags15_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsDocTags15(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/quickInfoJsDocTags16_test.go b/pkg/fourslash/tests/gen/quickInfoJsDocTags16_test.go index fbe372017..7bd71b51d 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsDocTags16_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsDocTags16_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsDocTags16(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A { /** diff --git a/pkg/fourslash/tests/gen/quickInfoJsDocTags1_test.go b/pkg/fourslash/tests/gen/quickInfoJsDocTags1_test.go index 3fb89fee0..71cee2bc8 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsDocTags1_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsDocTags1_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsDocTags1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: quickInfoJsDocTags1.ts /** diff --git a/pkg/fourslash/tests/gen/quickInfoJsDocTags2_test.go b/pkg/fourslash/tests/gen/quickInfoJsDocTags2_test.go index d91e963f0..3a1a8696a 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsDocTags2_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsDocTags2_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsDocTags2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: quickInfoJsDocTags2.ts /** Doc */ diff --git a/pkg/fourslash/tests/gen/quickInfoJsDocTags3_test.go b/pkg/fourslash/tests/gen/quickInfoJsDocTags3_test.go index 069474f7c..6bb67fca8 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsDocTags3_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsDocTags3_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsDocTags3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: quickInfoJsDocTags3.ts interface Foo { diff --git a/pkg/fourslash/tests/gen/quickInfoJsDocTags4_test.go b/pkg/fourslash/tests/gen/quickInfoJsDocTags4_test.go index 7d430b39d..9007cce22 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsDocTags4_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsDocTags4_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsDocTags4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: quickInfoJsDocTags4.ts class Foo { diff --git a/pkg/fourslash/tests/gen/quickInfoJsDocTags5_test.go b/pkg/fourslash/tests/gen/quickInfoJsDocTags5_test.go index 1fd44026f..8981c2962 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsDocTags5_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsDocTags5_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsDocTags5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noEmit: true // @allowJs: true diff --git a/pkg/fourslash/tests/gen/quickInfoJsDocTags6_test.go b/pkg/fourslash/tests/gen/quickInfoJsDocTags6_test.go index 8a6f315b6..d898c4ac6 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsDocTags6_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsDocTags6_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsDocTags6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noEmit: true // @allowJs: true diff --git a/pkg/fourslash/tests/gen/quickInfoJsDocTags7_test.go b/pkg/fourslash/tests/gen/quickInfoJsDocTags7_test.go index 22d68c933..f6bf505d3 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsDocTags7_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsDocTags7_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsDocTags7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noEmit: true // @allowJs: true diff --git a/pkg/fourslash/tests/gen/quickInfoJsDocTags8_test.go b/pkg/fourslash/tests/gen/quickInfoJsDocTags8_test.go index 61a0c3b74..e2b8ccf2b 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsDocTags8_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsDocTags8_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsDocTags8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noEmit: true // @allowJs: true diff --git a/pkg/fourslash/tests/gen/quickInfoJsDocTags9_test.go b/pkg/fourslash/tests/gen/quickInfoJsDocTags9_test.go index f0195f309..512a7dfd9 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsDocTags9_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsDocTags9_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsDocTags9(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noEmit: true // @allowJs: true diff --git a/pkg/fourslash/tests/gen/quickInfoJsDocTagsCallback_test.go b/pkg/fourslash/tests/gen/quickInfoJsDocTagsCallback_test.go index b0e45450e..50d4facc2 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsDocTagsCallback_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsDocTagsCallback_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsDocTagsCallback(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noEmit: true // @allowJs: true diff --git a/pkg/fourslash/tests/gen/quickInfoJsDocTagsFunctionOverload01_test.go b/pkg/fourslash/tests/gen/quickInfoJsDocTagsFunctionOverload01_test.go index ed34965cf..7c3c00ad1 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsDocTagsFunctionOverload01_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsDocTagsFunctionOverload01_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsDocTagsFunctionOverload01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: quickInfoJsDocTagsFunctionOverload01.ts /** diff --git a/pkg/fourslash/tests/gen/quickInfoJsDocTagsFunctionOverload03_test.go b/pkg/fourslash/tests/gen/quickInfoJsDocTagsFunctionOverload03_test.go index ac6050b83..ae0afbf69 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsDocTagsFunctionOverload03_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsDocTagsFunctionOverload03_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsDocTagsFunctionOverload03(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: quickInfoJsDocTagsFunctionOverload03.ts declare function /*1*/foo(): void; diff --git a/pkg/fourslash/tests/gen/quickInfoJsDocTagsFunctionOverload05_test.go b/pkg/fourslash/tests/gen/quickInfoJsDocTagsFunctionOverload05_test.go index e012f0c44..1c9eeb2dd 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsDocTagsFunctionOverload05_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsDocTagsFunctionOverload05_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsDocTagsFunctionOverload05(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: quickInfoJsDocTagsFunctionOverload05.ts declare function /*1*/foo(): void; diff --git a/pkg/fourslash/tests/gen/quickInfoJsDocTagsTypedef_test.go b/pkg/fourslash/tests/gen/quickInfoJsDocTagsTypedef_test.go index 6d4c33902..14a5281a2 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsDocTagsTypedef_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsDocTagsTypedef_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsDocTagsTypedef(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noEmit: true // @allowJs: true diff --git a/pkg/fourslash/tests/gen/quickInfoJsDocTextFormatting1_test.go b/pkg/fourslash/tests/gen/quickInfoJsDocTextFormatting1_test.go index bbc2dd7eb..d877ec846 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsDocTextFormatting1_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsDocTextFormatting1_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsDocTextFormatting1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * @param {number} var1 **Highlighted text** diff --git a/pkg/fourslash/tests/gen/quickInfoJsDocThisTag_test.go b/pkg/fourslash/tests/gen/quickInfoJsDocThisTag_test.go index 92dfa9703..1d4e1fbd0 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsDocThisTag_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsDocThisTag_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsDocThisTag(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @filename: /a.ts diff --git a/pkg/fourslash/tests/gen/quickInfoJsDoc_test.go b/pkg/fourslash/tests/gen/quickInfoJsDoc_test.go index dd37a13b2..af251855a 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsDoc_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsDoc_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsDoc(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @target: esnext /** diff --git a/pkg/fourslash/tests/gen/quickInfoJsPropertyAssignedAfterMethodDeclaration_test.go b/pkg/fourslash/tests/gen/quickInfoJsPropertyAssignedAfterMethodDeclaration_test.go index 68c5d6b8c..bc7522238 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsPropertyAssignedAfterMethodDeclaration_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsPropertyAssignedAfterMethodDeclaration_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsPropertyAssignedAfterMethodDeclaration(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noLib: true // @allowJs: true diff --git a/pkg/fourslash/tests/gen/quickInfoJsdocEnum_test.go b/pkg/fourslash/tests/gen/quickInfoJsdocEnum_test.go index e7279435b..a8bb90436 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsdocEnum_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsdocEnum_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsdocEnum(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @noLib: true diff --git a/pkg/fourslash/tests/gen/quickInfoJsdocTypedefMissingType_test.go b/pkg/fourslash/tests/gen/quickInfoJsdocTypedefMissingType_test.go index 0477b7b95..7fc45a896 100644 --- a/pkg/fourslash/tests/gen/quickInfoJsdocTypedefMissingType_test.go +++ b/pkg/fourslash/tests/gen/quickInfoJsdocTypedefMissingType_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoJsdocTypedefMissingType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/quickInfoLink10_test.go b/pkg/fourslash/tests/gen/quickInfoLink10_test.go index 9718029ed..d0764cba6 100644 --- a/pkg/fourslash/tests/gen/quickInfoLink10_test.go +++ b/pkg/fourslash/tests/gen/quickInfoLink10_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoLink10(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * start {@link https://vscode.dev/ | end} diff --git a/pkg/fourslash/tests/gen/quickInfoLink11_test.go b/pkg/fourslash/tests/gen/quickInfoLink11_test.go index 677ccce60..962a72b0b 100644 --- a/pkg/fourslash/tests/gen/quickInfoLink11_test.go +++ b/pkg/fourslash/tests/gen/quickInfoLink11_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoLink11(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * {@link https://vscode.dev} diff --git a/pkg/fourslash/tests/gen/quickInfoLink2_test.go b/pkg/fourslash/tests/gen/quickInfoLink2_test.go index 9512a1db1..10299f3e9 100644 --- a/pkg/fourslash/tests/gen/quickInfoLink2_test.go +++ b/pkg/fourslash/tests/gen/quickInfoLink2_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoLink2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @checkJs: true // @Filename: quickInfoLink2.js diff --git a/pkg/fourslash/tests/gen/quickInfoLink3_test.go b/pkg/fourslash/tests/gen/quickInfoLink3_test.go index fe0292126..00c37259b 100644 --- a/pkg/fourslash/tests/gen/quickInfoLink3_test.go +++ b/pkg/fourslash/tests/gen/quickInfoLink3_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoLink3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { /** diff --git a/pkg/fourslash/tests/gen/quickInfoLink4_test.go b/pkg/fourslash/tests/gen/quickInfoLink4_test.go index 93d20addd..0935ba0df 100644 --- a/pkg/fourslash/tests/gen/quickInfoLink4_test.go +++ b/pkg/fourslash/tests/gen/quickInfoLink4_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoLink4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type A = 1 | 2; diff --git a/pkg/fourslash/tests/gen/quickInfoLink5_test.go b/pkg/fourslash/tests/gen/quickInfoLink5_test.go index af43e0cf0..ebce8674c 100644 --- a/pkg/fourslash/tests/gen/quickInfoLink5_test.go +++ b/pkg/fourslash/tests/gen/quickInfoLink5_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoLink5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const A = 123; /** diff --git a/pkg/fourslash/tests/gen/quickInfoLink6_test.go b/pkg/fourslash/tests/gen/quickInfoLink6_test.go index ffc814161..cce8fe2f6 100644 --- a/pkg/fourslash/tests/gen/quickInfoLink6_test.go +++ b/pkg/fourslash/tests/gen/quickInfoLink6_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoLink6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const A = 123; /** diff --git a/pkg/fourslash/tests/gen/quickInfoLink7_test.go b/pkg/fourslash/tests/gen/quickInfoLink7_test.go index 6c0454aac..f8949d0e0 100644 --- a/pkg/fourslash/tests/gen/quickInfoLink7_test.go +++ b/pkg/fourslash/tests/gen/quickInfoLink7_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoLink7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * See {@link | } instead diff --git a/pkg/fourslash/tests/gen/quickInfoLink8_test.go b/pkg/fourslash/tests/gen/quickInfoLink8_test.go index 0478367c0..e97cfef1e 100644 --- a/pkg/fourslash/tests/gen/quickInfoLink8_test.go +++ b/pkg/fourslash/tests/gen/quickInfoLink8_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoLink8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const A = 123; /** diff --git a/pkg/fourslash/tests/gen/quickInfoLink9_test.go b/pkg/fourslash/tests/gen/quickInfoLink9_test.go index 62d100709..18f5f5092 100644 --- a/pkg/fourslash/tests/gen/quickInfoLink9_test.go +++ b/pkg/fourslash/tests/gen/quickInfoLink9_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoLink9(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type Foo = { /** diff --git a/pkg/fourslash/tests/gen/quickInfoLinkCodePlain_test.go b/pkg/fourslash/tests/gen/quickInfoLinkCodePlain_test.go index 76601316b..a48ea168b 100644 --- a/pkg/fourslash/tests/gen/quickInfoLinkCodePlain_test.go +++ b/pkg/fourslash/tests/gen/quickInfoLinkCodePlain_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoLinkCodePlain(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export class C { /** diff --git a/pkg/fourslash/tests/gen/quickInfoMappedSpreadTypes_test.go b/pkg/fourslash/tests/gen/quickInfoMappedSpreadTypes_test.go index 346ca72f3..486738251 100644 --- a/pkg/fourslash/tests/gen/quickInfoMappedSpreadTypes_test.go +++ b/pkg/fourslash/tests/gen/quickInfoMappedSpreadTypes_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoMappedSpreadTypes(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { /** Doc */ diff --git a/pkg/fourslash/tests/gen/quickInfoMappedTypeMethods_test.go b/pkg/fourslash/tests/gen/quickInfoMappedTypeMethods_test.go index 577ce0881..69322a496 100644 --- a/pkg/fourslash/tests/gen/quickInfoMappedTypeMethods_test.go +++ b/pkg/fourslash/tests/gen/quickInfoMappedTypeMethods_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoMappedTypeMethods(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type M = { [K in 'one']: any }; const x: M = { diff --git a/pkg/fourslash/tests/gen/quickInfoMappedTypeRecursiveInference_test.go b/pkg/fourslash/tests/gen/quickInfoMappedTypeRecursiveInference_test.go index 0a8a23cae..d781eb55d 100644 --- a/pkg/fourslash/tests/gen/quickInfoMappedTypeRecursiveInference_test.go +++ b/pkg/fourslash/tests/gen/quickInfoMappedTypeRecursiveInference_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoMappedTypeRecursiveInference(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: test.ts interface A { a: A } diff --git a/pkg/fourslash/tests/gen/quickInfoMappedType_test.go b/pkg/fourslash/tests/gen/quickInfoMappedType_test.go index 734868425..e79a0f288 100644 --- a/pkg/fourslash/tests/gen/quickInfoMappedType_test.go +++ b/pkg/fourslash/tests/gen/quickInfoMappedType_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoMappedType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { /** m documentation */ m(): void; diff --git a/pkg/fourslash/tests/gen/quickInfoMeaning_test.go b/pkg/fourslash/tests/gen/quickInfoMeaning_test.go index 18e42bec8..0b89b3805 100644 --- a/pkg/fourslash/tests/gen/quickInfoMeaning_test.go +++ b/pkg/fourslash/tests/gen/quickInfoMeaning_test.go @@ -10,8 +10,8 @@ import ( ) func TestQuickInfoMeaning(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: foo.d.ts declare const [|/*foo_value_declaration*/foo: number|]; diff --git a/pkg/fourslash/tests/gen/quickInfoModuleVariables_test.go b/pkg/fourslash/tests/gen/quickInfoModuleVariables_test.go index 2db075ed2..82da64652 100644 --- a/pkg/fourslash/tests/gen/quickInfoModuleVariables_test.go +++ b/pkg/fourslash/tests/gen/quickInfoModuleVariables_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoModuleVariables(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = 1; module M { diff --git a/pkg/fourslash/tests/gen/quickInfoNamedTupleMembers_test.go b/pkg/fourslash/tests/gen/quickInfoNamedTupleMembers_test.go index fa589676a..fd37cbb32 100644 --- a/pkg/fourslash/tests/gen/quickInfoNamedTupleMembers_test.go +++ b/pkg/fourslash/tests/gen/quickInfoNamedTupleMembers_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoNamedTupleMembers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export type /*1*/Segment = [length: number, count: number];` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/quickInfoNarrowedTypeOfAliasSymbol_test.go b/pkg/fourslash/tests/gen/quickInfoNarrowedTypeOfAliasSymbol_test.go index 5caf52764..c13c9863c 100644 --- a/pkg/fourslash/tests/gen/quickInfoNarrowedTypeOfAliasSymbol_test.go +++ b/pkg/fourslash/tests/gen/quickInfoNarrowedTypeOfAliasSymbol_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoNarrowedTypeOfAliasSymbol(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @Filename: modules.ts diff --git a/pkg/fourslash/tests/gen/quickInfoNestedExportEqualExportDefault_test.go b/pkg/fourslash/tests/gen/quickInfoNestedExportEqualExportDefault_test.go index caa2bb9fc..c6a5d5228 100644 --- a/pkg/fourslash/tests/gen/quickInfoNestedExportEqualExportDefault_test.go +++ b/pkg/fourslash/tests/gen/quickInfoNestedExportEqualExportDefault_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoNestedExportEqualExportDefault(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export = (state, messages) => { export/*1*/ default/*2*/ { diff --git a/pkg/fourslash/tests/gen/quickInfoNestedGenericCalls_test.go b/pkg/fourslash/tests/gen/quickInfoNestedGenericCalls_test.go index 5a4703533..473be0714 100644 --- a/pkg/fourslash/tests/gen/quickInfoNestedGenericCalls_test.go +++ b/pkg/fourslash/tests/gen/quickInfoNestedGenericCalls_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoNestedGenericCalls(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true /*1*/m({ foo: /*2*/$("foo") }); diff --git a/pkg/fourslash/tests/gen/quickInfoOfGenericTypeAssertions1_test.go b/pkg/fourslash/tests/gen/quickInfoOfGenericTypeAssertions1_test.go index 2076d4097..57263ca61 100644 --- a/pkg/fourslash/tests/gen/quickInfoOfGenericTypeAssertions1_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOfGenericTypeAssertions1_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOfGenericTypeAssertions1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f(x: T): T { return null; } var /*1*/r = (x: T) => x; diff --git a/pkg/fourslash/tests/gen/quickInfoOfLablledForStatementIterator_test.go b/pkg/fourslash/tests/gen/quickInfoOfLablledForStatementIterator_test.go index 24cf7badc..e93e35146 100644 --- a/pkg/fourslash/tests/gen/quickInfoOfLablledForStatementIterator_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOfLablledForStatementIterator_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOfLablledForStatementIterator(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `label1: for(var /**/i = 0; i < 1; i++) { }` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/quickInfoOfStringPropertyNames1_test.go b/pkg/fourslash/tests/gen/quickInfoOfStringPropertyNames1_test.go index ef9ea49d3..7a40311d5 100644 --- a/pkg/fourslash/tests/gen/quickInfoOfStringPropertyNames1_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOfStringPropertyNames1_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOfStringPropertyNames1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface foo { "foo bar": string; diff --git a/pkg/fourslash/tests/gen/quickInfoOnArgumentsInsideFunction_test.go b/pkg/fourslash/tests/gen/quickInfoOnArgumentsInsideFunction_test.go index ec33a84d8..2d99b2915 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnArgumentsInsideFunction_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnArgumentsInsideFunction_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnArgumentsInsideFunction(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(x: string) { return /*1*/arguments; diff --git a/pkg/fourslash/tests/gen/quickInfoOnCatchVariable_test.go b/pkg/fourslash/tests/gen/quickInfoOnCatchVariable_test.go index 6c677a7c4..c1106c68d 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnCatchVariable_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnCatchVariable_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnCatchVariable(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f() { try { } catch (/**/e) { } diff --git a/pkg/fourslash/tests/gen/quickInfoOnCircularTypes_test.go b/pkg/fourslash/tests/gen/quickInfoOnCircularTypes_test.go index 564240d15..ab8957b48 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnCircularTypes_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnCircularTypes_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnCircularTypes(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface A { (): B; }; declare var a: A; diff --git a/pkg/fourslash/tests/gen/quickInfoOnClassMergedWithFunction_test.go b/pkg/fourslash/tests/gen/quickInfoOnClassMergedWithFunction_test.go index 3f8132b1d..a10982afe 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnClassMergedWithFunction_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnClassMergedWithFunction_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnClassMergedWithFunction(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module Test { class Mocked { diff --git a/pkg/fourslash/tests/gen/quickInfoOnClosingJsx_test.go b/pkg/fourslash/tests/gen/quickInfoOnClosingJsx_test.go index 6941f927f..88112f56a 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnClosingJsx_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnClosingJsx_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnClosingJsx(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: foo.tsx let x =

diff --git a/pkg/fourslash/tests/gen/quickInfoOnConstructorWithGenericParameter_test.go b/pkg/fourslash/tests/gen/quickInfoOnConstructorWithGenericParameter_test.go index cc6a3e652..254285fda 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnConstructorWithGenericParameter_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnConstructorWithGenericParameter_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnConstructorWithGenericParameter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { x: number; diff --git a/pkg/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation1_test.go b/pkg/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation1_test.go index 7053a8a2d..f44bf1f51 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation1_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation1_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnElementAccessInWriteLocation1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @exactOptionalPropertyTypes: true diff --git a/pkg/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation2_test.go b/pkg/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation2_test.go index 720904fa4..9a1dca3b2 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation2_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation2_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnElementAccessInWriteLocation2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @exactOptionalPropertyTypes: true diff --git a/pkg/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation3_test.go b/pkg/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation3_test.go index ae752201e..c6eadcef6 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation3_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation3_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnElementAccessInWriteLocation3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @exactOptionalPropertyTypes: true diff --git a/pkg/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation4_test.go b/pkg/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation4_test.go index cdcac3191..1ed00d942 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation4_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation4_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnElementAccessInWriteLocation4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface Serializer { diff --git a/pkg/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation5_test.go b/pkg/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation5_test.go index a8d98451f..9e2252448 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation5_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnElementAccessInWriteLocation5_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnElementAccessInWriteLocation5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface Serializer { diff --git a/pkg/fourslash/tests/gen/quickInfoOnErrorTypes1_test.go b/pkg/fourslash/tests/gen/quickInfoOnErrorTypes1_test.go index 2630cb15f..a19da3051 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnErrorTypes1_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnErrorTypes1_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnErrorTypes1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var /*A*/f: { x: number; diff --git a/pkg/fourslash/tests/gen/quickInfoOnExpandoLikePropertyWithSetterDeclarationJs1_test.go b/pkg/fourslash/tests/gen/quickInfoOnExpandoLikePropertyWithSetterDeclarationJs1_test.go index 90a4ce443..a594dc6a5 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnExpandoLikePropertyWithSetterDeclarationJs1_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnExpandoLikePropertyWithSetterDeclarationJs1_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnExpandoLikePropertyWithSetterDeclarationJs1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/quickInfoOnExpandoLikePropertyWithSetterDeclarationJs2_test.go b/pkg/fourslash/tests/gen/quickInfoOnExpandoLikePropertyWithSetterDeclarationJs2_test.go index 86a2e906a..9f710989a 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnExpandoLikePropertyWithSetterDeclarationJs2_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnExpandoLikePropertyWithSetterDeclarationJs2_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnExpandoLikePropertyWithSetterDeclarationJs2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction1_test.go b/pkg/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction1_test.go index 8d1c9c153..a93509bcd 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction1_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction1_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnFunctionPropertyReturnedFromGenericFunction1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function createProps(t: T) { function getProps() {} diff --git a/pkg/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction2_test.go b/pkg/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction2_test.go index a9eb37d3f..4cc4d0a20 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction2_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction2_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnFunctionPropertyReturnedFromGenericFunction2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function createProps(t: T) { const getProps = function() {} diff --git a/pkg/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction3_test.go b/pkg/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction3_test.go index 133289d36..122d75fa4 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction3_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnFunctionPropertyReturnedFromGenericFunction3_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnFunctionPropertyReturnedFromGenericFunction3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function createProps(t: T) { const getProps = () => {} diff --git a/pkg/fourslash/tests/gen/quickInfoOnGenericClass_test.go b/pkg/fourslash/tests/gen/quickInfoOnGenericClass_test.go index 7ea833981..32db6989e 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnGenericClass_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnGenericClass_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnGenericClass(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Contai/**/ner { x: T; diff --git a/pkg/fourslash/tests/gen/quickInfoOnGenericWithConstraints1_test.go b/pkg/fourslash/tests/gen/quickInfoOnGenericWithConstraints1_test.go index 4faa3b461..fdd7abed8 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnGenericWithConstraints1_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnGenericWithConstraints1_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnGenericWithConstraints1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Fo/*1*/o {}` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/quickInfoOnInternalAliases_test.go b/pkg/fourslash/tests/gen/quickInfoOnInternalAliases_test.go index 8d42257fe..a7da027aa 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnInternalAliases_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnInternalAliases_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnInternalAliases(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** Module comment*/ export module m1 { diff --git a/pkg/fourslash/tests/gen/quickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature_test.go b/pkg/fourslash/tests/gen/quickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature_test.go index 7c0240248..cf1e25bf7 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnJsxIntrinsicDeclaredUsingCatchCallIndexSignature(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @jsx: react // @filename: /a.tsx diff --git a/pkg/fourslash/tests/gen/quickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures_test.go b/pkg/fourslash/tests/gen/quickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures_test.go index ce6a2de5d..0aec246ed 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnJsxIntrinsicDeclaredUsingTemplateLiteralTypeSignatures(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @jsx: react // @filename: /a.tsx diff --git a/pkg/fourslash/tests/gen/quickInfoOnJsxNamespacedNameWithDoc1_test.go b/pkg/fourslash/tests/gen/quickInfoOnJsxNamespacedNameWithDoc1_test.go index d68263611..d01c317b3 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnJsxNamespacedNameWithDoc1_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnJsxNamespacedNameWithDoc1_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnJsxNamespacedNameWithDoc1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @jsx: react // @Filename: /types.d.ts diff --git a/pkg/fourslash/tests/gen/quickInfoOnJsxNamespacedName_test.go b/pkg/fourslash/tests/gen/quickInfoOnJsxNamespacedName_test.go index 7422f661c..d42ddad4e 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnJsxNamespacedName_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnJsxNamespacedName_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnJsxNamespacedName(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @jsx: react // @Filename: /types.d.ts diff --git a/pkg/fourslash/tests/gen/quickInfoOnMergedInterfacesWithIncrementalEdits_test.go b/pkg/fourslash/tests/gen/quickInfoOnMergedInterfacesWithIncrementalEdits_test.go index 3a983a73a..e8b2cdc59 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnMergedInterfacesWithIncrementalEdits_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnMergedInterfacesWithIncrementalEdits_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnMergedInterfacesWithIncrementalEdits(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module MM { interface B { diff --git a/pkg/fourslash/tests/gen/quickInfoOnMergedInterfaces_test.go b/pkg/fourslash/tests/gen/quickInfoOnMergedInterfaces_test.go index 29a734806..15915b87e 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnMergedInterfaces_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnMergedInterfaces_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnMergedInterfaces(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module M { interface A { diff --git a/pkg/fourslash/tests/gen/quickInfoOnMergedModule_test.go b/pkg/fourslash/tests/gen/quickInfoOnMergedModule_test.go index 7a21f0e9d..209607c06 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnMergedModule_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnMergedModule_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnMergedModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module M2 { export interface A { diff --git a/pkg/fourslash/tests/gen/quickInfoOnMethodOfImportEquals_test.go b/pkg/fourslash/tests/gen/quickInfoOnMethodOfImportEquals_test.go index 49e936a8e..66a4dcfdf 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnMethodOfImportEquals_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnMethodOfImportEquals_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnMethodOfImportEquals(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.d.ts declare class C { diff --git a/pkg/fourslash/tests/gen/quickInfoOnNarrowedTypeInModule_test.go b/pkg/fourslash/tests/gen/quickInfoOnNarrowedTypeInModule_test.go index be1196e5f..e0cca797d 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnNarrowedTypeInModule_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnNarrowedTypeInModule_test.go @@ -10,8 +10,8 @@ import ( ) func TestQuickInfoOnNarrowedTypeInModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var strOrNum: string | number; module m { diff --git a/pkg/fourslash/tests/gen/quickInfoOnNarrowedType_test.go b/pkg/fourslash/tests/gen/quickInfoOnNarrowedType_test.go index ed9ca98aa..c33c097cb 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnNarrowedType_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnNarrowedType_test.go @@ -10,8 +10,8 @@ import ( ) func TestQuickInfoOnNarrowedType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strictNullChecks: true function foo(strOrNum: string | number) { diff --git a/pkg/fourslash/tests/gen/quickInfoOnNewKeyword01_test.go b/pkg/fourslash/tests/gen/quickInfoOnNewKeyword01_test.go index d5e8e9cfd..e70e197c1 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnNewKeyword01_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnNewKeyword01_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnNewKeyword01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Cat { /** diff --git a/pkg/fourslash/tests/gen/quickInfoOnObjectLiteralWithAccessors_test.go b/pkg/fourslash/tests/gen/quickInfoOnObjectLiteralWithAccessors_test.go index 6872b4f21..4ec33bcdc 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnObjectLiteralWithAccessors_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnObjectLiteralWithAccessors_test.go @@ -10,8 +10,8 @@ import ( ) func TestQuickInfoOnObjectLiteralWithAccessors(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function /*1*/makePoint(x: number) { return { diff --git a/pkg/fourslash/tests/gen/quickInfoOnObjectLiteralWithOnlyGetter_test.go b/pkg/fourslash/tests/gen/quickInfoOnObjectLiteralWithOnlyGetter_test.go index 3866b9ac5..9349c0b5f 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnObjectLiteralWithOnlyGetter_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnObjectLiteralWithOnlyGetter_test.go @@ -10,8 +10,8 @@ import ( ) func TestQuickInfoOnObjectLiteralWithOnlyGetter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function /*1*/makePoint(x: number) { return { diff --git a/pkg/fourslash/tests/gen/quickInfoOnObjectLiteralWithOnlySetter_test.go b/pkg/fourslash/tests/gen/quickInfoOnObjectLiteralWithOnlySetter_test.go index 4ccfba055..df1ccf795 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnObjectLiteralWithOnlySetter_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnObjectLiteralWithOnlySetter_test.go @@ -10,8 +10,8 @@ import ( ) func TestQuickInfoOnObjectLiteralWithOnlySetter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function /*1*/makePoint(x: number) { return { diff --git a/pkg/fourslash/tests/gen/quickInfoOnParameterProperties_test.go b/pkg/fourslash/tests/gen/quickInfoOnParameterProperties_test.go index defdffc34..4cc6606e3 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnParameterProperties_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnParameterProperties_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnParameterProperties(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IFoo { /** this is the name of blabla diff --git a/pkg/fourslash/tests/gen/quickInfoOnPrivateConstructorCall_test.go b/pkg/fourslash/tests/gen/quickInfoOnPrivateConstructorCall_test.go index 28eb85648..b2a4f3434 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnPrivateConstructorCall_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnPrivateConstructorCall_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnPrivateConstructorCall(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A { private constructor() {} diff --git a/pkg/fourslash/tests/gen/quickInfoOnPropDeclaredUsingIndexSignatureOnInterfaceWithBase_test.go b/pkg/fourslash/tests/gen/quickInfoOnPropDeclaredUsingIndexSignatureOnInterfaceWithBase_test.go index f5a79d262..c9889852f 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnPropDeclaredUsingIndexSignatureOnInterfaceWithBase_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnPropDeclaredUsingIndexSignatureOnInterfaceWithBase_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnPropDeclaredUsingIndexSignatureOnInterfaceWithBase(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface P {} interface B extends P { diff --git a/pkg/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation1_test.go b/pkg/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation1_test.go index d18cc3d03..01322af1c 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation1_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation1_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnPropertyAccessInWriteLocation1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @exactOptionalPropertyTypes: true diff --git a/pkg/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation2_test.go b/pkg/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation2_test.go index 1bedd9efe..f8de08dc0 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation2_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation2_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnPropertyAccessInWriteLocation2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @exactOptionalPropertyTypes: true diff --git a/pkg/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation3_test.go b/pkg/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation3_test.go index 8ecfff986..20e3c1171 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation3_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation3_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnPropertyAccessInWriteLocation3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @exactOptionalPropertyTypes: true diff --git a/pkg/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation4_test.go b/pkg/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation4_test.go index b039c9dd8..77da26d4c 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation4_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation4_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnPropertyAccessInWriteLocation4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface Serializer { diff --git a/pkg/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation5_test.go b/pkg/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation5_test.go index b30a2f699..caf465844 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation5_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnPropertyAccessInWriteLocation5_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnPropertyAccessInWriteLocation5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface Serializer { diff --git a/pkg/fourslash/tests/gen/quickInfoOnProtectedConstructorCall_test.go b/pkg/fourslash/tests/gen/quickInfoOnProtectedConstructorCall_test.go index da98b9fd5..86306dc4c 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnProtectedConstructorCall_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnProtectedConstructorCall_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnProtectedConstructorCall(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A { protected constructor() {} diff --git a/pkg/fourslash/tests/gen/quickInfoOnThis2_test.go b/pkg/fourslash/tests/gen/quickInfoOnThis2_test.go index 8bea97ec7..b655aabd1 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnThis2_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnThis2_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnThis2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Bar { public explicitThis(this: this) { diff --git a/pkg/fourslash/tests/gen/quickInfoOnThis3_test.go b/pkg/fourslash/tests/gen/quickInfoOnThis3_test.go index d2aae5141..9e34ead4a 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnThis3_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnThis3_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnThis3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Restricted { n: number; diff --git a/pkg/fourslash/tests/gen/quickInfoOnThis4_test.go b/pkg/fourslash/tests/gen/quickInfoOnThis4_test.go index 4f2187f0c..0bc2cbb1c 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnThis4_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnThis4_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnThis4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface ContextualInterface { m: number; diff --git a/pkg/fourslash/tests/gen/quickInfoOnThis5_test.go b/pkg/fourslash/tests/gen/quickInfoOnThis5_test.go index 557e2faae..6c688aecd 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnThis5_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnThis5_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnThis5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noImplicitThis: true const foo = { diff --git a/pkg/fourslash/tests/gen/quickInfoOnThis_test.go b/pkg/fourslash/tests/gen/quickInfoOnThis_test.go index eb023530f..819f3125e 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnThis_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnThis_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnThis(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Restricted { n: number; diff --git a/pkg/fourslash/tests/gen/quickInfoOnUnResolvedBaseConstructorSignature_test.go b/pkg/fourslash/tests/gen/quickInfoOnUnResolvedBaseConstructorSignature_test.go index cb2d33a0a..0532a01b7 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnUnResolvedBaseConstructorSignature_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnUnResolvedBaseConstructorSignature_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnUnResolvedBaseConstructorSignature(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class baseClassWithConstructorParameterSpecifyingType { constructor(loading?: boolean) { diff --git a/pkg/fourslash/tests/gen/quickInfoOnUndefined_test.go b/pkg/fourslash/tests/gen/quickInfoOnUndefined_test.go index 46e3f2223..f5af0564b 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnUndefined_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnUndefined_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnUndefined(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(a: string) { } diff --git a/pkg/fourslash/tests/gen/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01_test.go b/pkg/fourslash/tests/gen/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01_test.go index f6c369ddf..1ca79de5a 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnUnionPropertiesWithIdenticalJSDocComments01_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnUnionPropertiesWithIdenticalJSDocComments01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export type DocumentFilter = { /** A language id, like ` + "`" + `typescript` + "`" + `. */ diff --git a/pkg/fourslash/tests/gen/quickInfoOnValueSymbolWithoutExportWithSameNameExportSymbol_test.go b/pkg/fourslash/tests/gen/quickInfoOnValueSymbolWithoutExportWithSameNameExportSymbol_test.go index 9baebcfb2..5ff101c02 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnValueSymbolWithoutExportWithSameNameExportSymbol_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnValueSymbolWithoutExportWithSameNameExportSymbol_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnValueSymbolWithoutExportWithSameNameExportSymbol(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true diff --git a/pkg/fourslash/tests/gen/quickInfoOnVarInArrowExpression_test.go b/pkg/fourslash/tests/gen/quickInfoOnVarInArrowExpression_test.go index 05542a28f..270ce85b6 100644 --- a/pkg/fourslash/tests/gen/quickInfoOnVarInArrowExpression_test.go +++ b/pkg/fourslash/tests/gen/quickInfoOnVarInArrowExpression_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoOnVarInArrowExpression(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IMap { [key: string]: T; diff --git a/pkg/fourslash/tests/gen/quickInfoParameter_skipThisParameter_test.go b/pkg/fourslash/tests/gen/quickInfoParameter_skipThisParameter_test.go index c093532ca..238a87d11 100644 --- a/pkg/fourslash/tests/gen/quickInfoParameter_skipThisParameter_test.go +++ b/pkg/fourslash/tests/gen/quickInfoParameter_skipThisParameter_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoParameter_skipThisParameter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f(cb: (x: number) => void) {} f(function(this: any, /**/x) {});` diff --git a/pkg/fourslash/tests/gen/quickInfoPrivateIdentifierInTypeReferenceNoCrash1_test.go b/pkg/fourslash/tests/gen/quickInfoPrivateIdentifierInTypeReferenceNoCrash1_test.go index c65bfbff3..0568624ff 100644 --- a/pkg/fourslash/tests/gen/quickInfoPrivateIdentifierInTypeReferenceNoCrash1_test.go +++ b/pkg/fourslash/tests/gen/quickInfoPrivateIdentifierInTypeReferenceNoCrash1_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoPrivateIdentifierInTypeReferenceNoCrash1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @target: esnext class Foo { diff --git a/pkg/fourslash/tests/gen/quickInfoPropertyTag_test.go b/pkg/fourslash/tests/gen/quickInfoPropertyTag_test.go index 95e437849..2639d6ba6 100644 --- a/pkg/fourslash/tests/gen/quickInfoPropertyTag_test.go +++ b/pkg/fourslash/tests/gen/quickInfoPropertyTag_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoPropertyTag(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/quickInfoRecursiveObjectLiteral_test.go b/pkg/fourslash/tests/gen/quickInfoRecursiveObjectLiteral_test.go index ed014b7ee..4b5601e76 100644 --- a/pkg/fourslash/tests/gen/quickInfoRecursiveObjectLiteral_test.go +++ b/pkg/fourslash/tests/gen/quickInfoRecursiveObjectLiteral_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoRecursiveObjectLiteral(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var a = { f: /**/a` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/quickInfoSalsaMethodsOnAssignedFunctionExpressions_test.go b/pkg/fourslash/tests/gen/quickInfoSalsaMethodsOnAssignedFunctionExpressions_test.go index 9a65f4f3a..0a4504e30 100644 --- a/pkg/fourslash/tests/gen/quickInfoSalsaMethodsOnAssignedFunctionExpressions_test.go +++ b/pkg/fourslash/tests/gen/quickInfoSalsaMethodsOnAssignedFunctionExpressions_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoSalsaMethodsOnAssignedFunctionExpressions(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: something.js diff --git a/pkg/fourslash/tests/gen/quickInfoSatisfiesTag_test.go b/pkg/fourslash/tests/gen/quickInfoSatisfiesTag_test.go index fe461841b..aa16e98a6 100644 --- a/pkg/fourslash/tests/gen/quickInfoSatisfiesTag_test.go +++ b/pkg/fourslash/tests/gen/quickInfoSatisfiesTag_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoSatisfiesTag(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noEmit: true // @allowJS: true diff --git a/pkg/fourslash/tests/gen/quickInfoShowsGenericSpecialization_test.go b/pkg/fourslash/tests/gen/quickInfoShowsGenericSpecialization_test.go index 5244da338..ef6f3079b 100644 --- a/pkg/fourslash/tests/gen/quickInfoShowsGenericSpecialization_test.go +++ b/pkg/fourslash/tests/gen/quickInfoShowsGenericSpecialization_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoShowsGenericSpecialization(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A { } var /**/foo = new A();` diff --git a/pkg/fourslash/tests/gen/quickInfoSignatureOptionalParameterFromUnion1_test.go b/pkg/fourslash/tests/gen/quickInfoSignatureOptionalParameterFromUnion1_test.go index 37a3dd0ea..5acc7f3bc 100644 --- a/pkg/fourslash/tests/gen/quickInfoSignatureOptionalParameterFromUnion1_test.go +++ b/pkg/fourslash/tests/gen/quickInfoSignatureOptionalParameterFromUnion1_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoSignatureOptionalParameterFromUnion1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const optionals: | ((a?: { a: true }) => unknown) diff --git a/pkg/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion1_test.go b/pkg/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion1_test.go index 5a15d6744..ef327dbb6 100644 --- a/pkg/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion1_test.go +++ b/pkg/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion1_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoSignatureRestParameterFromUnion1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const rest: | ((v: { a: true }, ...rest: string[]) => unknown) diff --git a/pkg/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion2_test.go b/pkg/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion2_test.go index 304443b41..0bfa4ec55 100644 --- a/pkg/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion2_test.go +++ b/pkg/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion2_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoSignatureRestParameterFromUnion2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const rest: | ((a?: { a: true }, ...rest: string[]) => unknown) diff --git a/pkg/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion3_test.go b/pkg/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion3_test.go index 3e5bdc5b3..be3b98805 100644 --- a/pkg/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion3_test.go +++ b/pkg/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion3_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoSignatureRestParameterFromUnion3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const fn: | ((a: { x: number }, b: { x: number }) => number) diff --git a/pkg/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion4_test.go b/pkg/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion4_test.go index 241a43e0c..c2df5bbb1 100644 --- a/pkg/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion4_test.go +++ b/pkg/fourslash/tests/gen/quickInfoSignatureRestParameterFromUnion4_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoSignatureRestParameterFromUnion4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const fn: | ((a?: { x: number }, b?: { x: number }) => number) diff --git a/pkg/fourslash/tests/gen/quickInfoSignatureWithTrailingComma_test.go b/pkg/fourslash/tests/gen/quickInfoSignatureWithTrailingComma_test.go index bacd35265..226c876f9 100644 --- a/pkg/fourslash/tests/gen/quickInfoSignatureWithTrailingComma_test.go +++ b/pkg/fourslash/tests/gen/quickInfoSignatureWithTrailingComma_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoSignatureWithTrailingComma(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function f(a: T): T; /**/f(2,);` diff --git a/pkg/fourslash/tests/gen/quickInfoSpecialPropertyAssignment_test.go b/pkg/fourslash/tests/gen/quickInfoSpecialPropertyAssignment_test.go index 3496cf8bb..2126e4ee5 100644 --- a/pkg/fourslash/tests/gen/quickInfoSpecialPropertyAssignment_test.go +++ b/pkg/fourslash/tests/gen/quickInfoSpecialPropertyAssignment_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoSpecialPropertyAssignment(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/quickInfoStaticPrototypePropertyOnClass_test.go b/pkg/fourslash/tests/gen/quickInfoStaticPrototypePropertyOnClass_test.go index ffe0529d5..fad69ea4c 100644 --- a/pkg/fourslash/tests/gen/quickInfoStaticPrototypePropertyOnClass_test.go +++ b/pkg/fourslash/tests/gen/quickInfoStaticPrototypePropertyOnClass_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoStaticPrototypePropertyOnClass(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class c1 { } diff --git a/pkg/fourslash/tests/gen/quickInfoTemplateTag_test.go b/pkg/fourslash/tests/gen/quickInfoTemplateTag_test.go index 81d85e852..df46e1111 100644 --- a/pkg/fourslash/tests/gen/quickInfoTemplateTag_test.go +++ b/pkg/fourslash/tests/gen/quickInfoTemplateTag_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoTemplateTag(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/quickInfoThrowsTag_test.go b/pkg/fourslash/tests/gen/quickInfoThrowsTag_test.go index 2ad343dcf..7f6a2e948 100644 --- a/pkg/fourslash/tests/gen/quickInfoThrowsTag_test.go +++ b/pkg/fourslash/tests/gen/quickInfoThrowsTag_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoThrowsTag(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class E extends Error {} diff --git a/pkg/fourslash/tests/gen/quickInfoTypeAliasDefinedInDifferentFile_test.go b/pkg/fourslash/tests/gen/quickInfoTypeAliasDefinedInDifferentFile_test.go index a732ca805..ecaba710c 100644 --- a/pkg/fourslash/tests/gen/quickInfoTypeAliasDefinedInDifferentFile_test.go +++ b/pkg/fourslash/tests/gen/quickInfoTypeAliasDefinedInDifferentFile_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoTypeAliasDefinedInDifferentFile(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export type X = { x: number }; diff --git a/pkg/fourslash/tests/gen/quickInfoTypeArgumentInferenceWithMethodWithoutBody_test.go b/pkg/fourslash/tests/gen/quickInfoTypeArgumentInferenceWithMethodWithoutBody_test.go index 68e73f76a..5b2d2bdcb 100644 --- a/pkg/fourslash/tests/gen/quickInfoTypeArgumentInferenceWithMethodWithoutBody_test.go +++ b/pkg/fourslash/tests/gen/quickInfoTypeArgumentInferenceWithMethodWithoutBody_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoTypeArgumentInferenceWithMethodWithoutBody(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface ProxyHandler { getPrototypeOf?(target: T): object | null; diff --git a/pkg/fourslash/tests/gen/quickInfoTypeError_test.go b/pkg/fourslash/tests/gen/quickInfoTypeError_test.go index b747c0bdf..e0e774e53 100644 --- a/pkg/fourslash/tests/gen/quickInfoTypeError_test.go +++ b/pkg/fourslash/tests/gen/quickInfoTypeError_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoTypeError(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `foo({ /**/f: function() {}, diff --git a/pkg/fourslash/tests/gen/quickInfoTypeOfThisInStatics_test.go b/pkg/fourslash/tests/gen/quickInfoTypeOfThisInStatics_test.go index c97ac9794..ccac5280a 100644 --- a/pkg/fourslash/tests/gen/quickInfoTypeOfThisInStatics_test.go +++ b/pkg/fourslash/tests/gen/quickInfoTypeOfThisInStatics_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoTypeOfThisInStatics(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { static foo() { diff --git a/pkg/fourslash/tests/gen/quickInfoTypeOnlyNamespaceAndClass_test.go b/pkg/fourslash/tests/gen/quickInfoTypeOnlyNamespaceAndClass_test.go index 588b3f5a6..6df0bab33 100644 --- a/pkg/fourslash/tests/gen/quickInfoTypeOnlyNamespaceAndClass_test.go +++ b/pkg/fourslash/tests/gen/quickInfoTypeOnlyNamespaceAndClass_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoTypeOnlyNamespaceAndClass(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export namespace ns { diff --git a/pkg/fourslash/tests/gen/quickInfoTypedGenericPrototypeMember_test.go b/pkg/fourslash/tests/gen/quickInfoTypedGenericPrototypeMember_test.go index a302ee2e7..923894ad6 100644 --- a/pkg/fourslash/tests/gen/quickInfoTypedGenericPrototypeMember_test.go +++ b/pkg/fourslash/tests/gen/quickInfoTypedGenericPrototypeMember_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoTypedGenericPrototypeMember(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { foo(x: T) { } diff --git a/pkg/fourslash/tests/gen/quickInfoTypedefTag_test.go b/pkg/fourslash/tests/gen/quickInfoTypedefTag_test.go index c313b874d..27d7352ae 100644 --- a/pkg/fourslash/tests/gen/quickInfoTypedefTag_test.go +++ b/pkg/fourslash/tests/gen/quickInfoTypedefTag_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoTypedefTag(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/quickInfoUnionOfNamespaces_test.go b/pkg/fourslash/tests/gen/quickInfoUnionOfNamespaces_test.go index 4b099a911..920c31ce5 100644 --- a/pkg/fourslash/tests/gen/quickInfoUnionOfNamespaces_test.go +++ b/pkg/fourslash/tests/gen/quickInfoUnionOfNamespaces_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoUnionOfNamespaces(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const x: typeof A | typeof B; x./**/f; diff --git a/pkg/fourslash/tests/gen/quickInfoUnion_discriminated_test.go b/pkg/fourslash/tests/gen/quickInfoUnion_discriminated_test.go index df9e5a9e9..156441ea7 100644 --- a/pkg/fourslash/tests/gen/quickInfoUnion_discriminated_test.go +++ b/pkg/fourslash/tests/gen/quickInfoUnion_discriminated_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoUnion_discriminated(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: quickInfoJsDocTags.ts type U = A | B; diff --git a/pkg/fourslash/tests/gen/quickInfoUniqueSymbolJsDoc_test.go b/pkg/fourslash/tests/gen/quickInfoUniqueSymbolJsDoc_test.go index b32c6875e..448d068dd 100644 --- a/pkg/fourslash/tests/gen/quickInfoUniqueSymbolJsDoc_test.go +++ b/pkg/fourslash/tests/gen/quickInfoUniqueSymbolJsDoc_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoUniqueSymbolJsDoc(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @checkJs: true // @allowJs: true diff --git a/pkg/fourslash/tests/gen/quickInfoUntypedModuleImport_test.go b/pkg/fourslash/tests/gen/quickInfoUntypedModuleImport_test.go index be1f508bf..d0203f18e 100644 --- a/pkg/fourslash/tests/gen/quickInfoUntypedModuleImport_test.go +++ b/pkg/fourslash/tests/gen/quickInfoUntypedModuleImport_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoUntypedModuleImport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: node_modules/foo/index.js /*index*/{} diff --git a/pkg/fourslash/tests/gen/quickInfoWidenedTypes_test.go b/pkg/fourslash/tests/gen/quickInfoWidenedTypes_test.go index a12ba8ef9..f3b454f70 100644 --- a/pkg/fourslash/tests/gen/quickInfoWidenedTypes_test.go +++ b/pkg/fourslash/tests/gen/quickInfoWidenedTypes_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoWidenedTypes(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var /*1*/a = null; // var a: any var /*2*/b = undefined; // var b: any diff --git a/pkg/fourslash/tests/gen/quickInfoWithNestedDestructuredParameterInLambda_test.go b/pkg/fourslash/tests/gen/quickInfoWithNestedDestructuredParameterInLambda_test.go index 3e1461601..f9b2ab840 100644 --- a/pkg/fourslash/tests/gen/quickInfoWithNestedDestructuredParameterInLambda_test.go +++ b/pkg/fourslash/tests/gen/quickInfoWithNestedDestructuredParameterInLambda_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfoWithNestedDestructuredParameterInLambda(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: a.tsx import * as React from 'react'; diff --git a/pkg/fourslash/tests/gen/quickInfo_errorSignatureFillsInTypeParameter_test.go b/pkg/fourslash/tests/gen/quickInfo_errorSignatureFillsInTypeParameter_test.go index 0da27caa2..15b6d551b 100644 --- a/pkg/fourslash/tests/gen/quickInfo_errorSignatureFillsInTypeParameter_test.go +++ b/pkg/fourslash/tests/gen/quickInfo_errorSignatureFillsInTypeParameter_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfo_errorSignatureFillsInTypeParameter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function f(x: number): T; const x/**/ = f();` diff --git a/pkg/fourslash/tests/gen/quickInfo_notInsideComment_test.go b/pkg/fourslash/tests/gen/quickInfo_notInsideComment_test.go index 34b470ec3..519ab9121 100644 --- a/pkg/fourslash/tests/gen/quickInfo_notInsideComment_test.go +++ b/pkg/fourslash/tests/gen/quickInfo_notInsideComment_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInfo_notInsideComment(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `a/* /**/ */.b` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/quickInforForSucessiveInferencesIsNotAny_test.go b/pkg/fourslash/tests/gen/quickInforForSucessiveInferencesIsNotAny_test.go index 9e69dd208..7331568ed 100644 --- a/pkg/fourslash/tests/gen/quickInforForSucessiveInferencesIsNotAny_test.go +++ b/pkg/fourslash/tests/gen/quickInforForSucessiveInferencesIsNotAny_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickInforForSucessiveInferencesIsNotAny(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function schema (value : T) : {field : T}; diff --git a/pkg/fourslash/tests/gen/quickinfo01_test.go b/pkg/fourslash/tests/gen/quickinfo01_test.go index d8565c1d9..39489ee9d 100644 --- a/pkg/fourslash/tests/gen/quickinfo01_test.go +++ b/pkg/fourslash/tests/gen/quickinfo01_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickinfo01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface One { commonProperty: number; diff --git a/pkg/fourslash/tests/gen/quickinfoExpressionTypeNotChangedViaDeletion_test.go b/pkg/fourslash/tests/gen/quickinfoExpressionTypeNotChangedViaDeletion_test.go index a92599237..d78951263 100644 --- a/pkg/fourslash/tests/gen/quickinfoExpressionTypeNotChangedViaDeletion_test.go +++ b/pkg/fourslash/tests/gen/quickinfoExpressionTypeNotChangedViaDeletion_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickinfoExpressionTypeNotChangedViaDeletion(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type TypeEq = (() => T extends A ? 1 : 2) extends (() => T extends B ? 1 : 2) ? true : false; diff --git a/pkg/fourslash/tests/gen/quickinfoForNamespaceMergeWithClassConstrainedToSelf_test.go b/pkg/fourslash/tests/gen/quickinfoForNamespaceMergeWithClassConstrainedToSelf_test.go index 1b408b4b5..7d8452ee7 100644 --- a/pkg/fourslash/tests/gen/quickinfoForNamespaceMergeWithClassConstrainedToSelf_test.go +++ b/pkg/fourslash/tests/gen/quickinfoForNamespaceMergeWithClassConstrainedToSelf_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickinfoForNamespaceMergeWithClassConstrainedToSelf(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare namespace AMap { namespace MassMarks { diff --git a/pkg/fourslash/tests/gen/quickinfoForUnionProperty_test.go b/pkg/fourslash/tests/gen/quickinfoForUnionProperty_test.go index 7a344c10b..388d0226b 100644 --- a/pkg/fourslash/tests/gen/quickinfoForUnionProperty_test.go +++ b/pkg/fourslash/tests/gen/quickinfoForUnionProperty_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickinfoForUnionProperty(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface One { commonProperty: number; diff --git a/pkg/fourslash/tests/gen/quickinfoWrongComment_test.go b/pkg/fourslash/tests/gen/quickinfoWrongComment_test.go index cef8730cb..93203c8f7 100644 --- a/pkg/fourslash/tests/gen/quickinfoWrongComment_test.go +++ b/pkg/fourslash/tests/gen/quickinfoWrongComment_test.go @@ -8,8 +8,8 @@ import ( ) func TestQuickinfoWrongComment(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { /** The colour */ diff --git a/pkg/fourslash/tests/gen/reallyLargeFile_test.go b/pkg/fourslash/tests/gen/reallyLargeFile_test.go index 2773960ad..d0bb104eb 100644 --- a/pkg/fourslash/tests/gen/reallyLargeFile_test.go +++ b/pkg/fourslash/tests/gen/reallyLargeFile_test.go @@ -8,8 +8,8 @@ import ( ) func TestReallyLargeFile(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: file.d.ts namespace /*1*/Foo { diff --git a/pkg/fourslash/tests/gen/recursiveClassReference_test.go b/pkg/fourslash/tests/gen/recursiveClassReference_test.go index 7f666bcfc..508f20e89 100644 --- a/pkg/fourslash/tests/gen/recursiveClassReference_test.go +++ b/pkg/fourslash/tests/gen/recursiveClassReference_test.go @@ -8,8 +8,8 @@ import ( ) func TestRecursiveClassReference(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare module Thing { } diff --git a/pkg/fourslash/tests/gen/recursiveGenerics2_test.go b/pkg/fourslash/tests/gen/recursiveGenerics2_test.go index c01a49fb5..5dce5cdae 100644 --- a/pkg/fourslash/tests/gen/recursiveGenerics2_test.go +++ b/pkg/fourslash/tests/gen/recursiveGenerics2_test.go @@ -8,8 +8,8 @@ import ( ) func TestRecursiveGenerics2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class S18 extends S18 { } /**/` diff --git a/pkg/fourslash/tests/gen/recursiveInternalModuleImport_test.go b/pkg/fourslash/tests/gen/recursiveInternalModuleImport_test.go index 4e2cffb84..0db765270 100644 --- a/pkg/fourslash/tests/gen/recursiveInternalModuleImport_test.go +++ b/pkg/fourslash/tests/gen/recursiveInternalModuleImport_test.go @@ -8,8 +8,8 @@ import ( ) func TestRecursiveInternalModuleImport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module M { import A = B; diff --git a/pkg/fourslash/tests/gen/recursiveWrappedTypeParameters1_test.go b/pkg/fourslash/tests/gen/recursiveWrappedTypeParameters1_test.go index 91cf7bb80..70ba15d29 100644 --- a/pkg/fourslash/tests/gen/recursiveWrappedTypeParameters1_test.go +++ b/pkg/fourslash/tests/gen/recursiveWrappedTypeParameters1_test.go @@ -8,8 +8,8 @@ import ( ) func TestRecursiveWrappedTypeParameters1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { a: T; diff --git a/pkg/fourslash/tests/gen/refactorConvertToEsModule_notAtTopLevel_test.go b/pkg/fourslash/tests/gen/refactorConvertToEsModule_notAtTopLevel_test.go index 56fc2b701..6945d6d7c 100644 --- a/pkg/fourslash/tests/gen/refactorConvertToEsModule_notAtTopLevel_test.go +++ b/pkg/fourslash/tests/gen/refactorConvertToEsModule_notAtTopLevel_test.go @@ -8,8 +8,8 @@ import ( ) func TestRefactorConvertToEsModule_notAtTopLevel(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @target: esnext diff --git a/pkg/fourslash/tests/gen/refactorConvertToEsModule_notInCommonjsProject_test.go b/pkg/fourslash/tests/gen/refactorConvertToEsModule_notInCommonjsProject_test.go index d5fb34a24..826f3862f 100644 --- a/pkg/fourslash/tests/gen/refactorConvertToEsModule_notInCommonjsProject_test.go +++ b/pkg/fourslash/tests/gen/refactorConvertToEsModule_notInCommonjsProject_test.go @@ -8,8 +8,8 @@ import ( ) func TestRefactorConvertToEsModule_notInCommonjsProject(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/referenceInParameterPropertyDeclaration_test.go b/pkg/fourslash/tests/gen/referenceInParameterPropertyDeclaration_test.go index 8afd5d70e..e7fa405d6 100644 --- a/pkg/fourslash/tests/gen/referenceInParameterPropertyDeclaration_test.go +++ b/pkg/fourslash/tests/gen/referenceInParameterPropertyDeclaration_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferenceInParameterPropertyDeclaration(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: file1.ts class Foo { diff --git a/pkg/fourslash/tests/gen/referenceToClass_test.go b/pkg/fourslash/tests/gen/referenceToClass_test.go index 537f7f656..5a74fb4dc 100644 --- a/pkg/fourslash/tests/gen/referenceToClass_test.go +++ b/pkg/fourslash/tests/gen/referenceToClass_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferenceToClass(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: referenceToClass_1.ts class /*1*/foo { diff --git a/pkg/fourslash/tests/gen/referenceToEmptyObject_test.go b/pkg/fourslash/tests/gen/referenceToEmptyObject_test.go index 47fbddb97..0d2f2547d 100644 --- a/pkg/fourslash/tests/gen/referenceToEmptyObject_test.go +++ b/pkg/fourslash/tests/gen/referenceToEmptyObject_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferenceToEmptyObject(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const obj = {}/*1*/;` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/references01_test.go b/pkg/fourslash/tests/gen/references01_test.go index 3225bff83..0c2835912 100644 --- a/pkg/fourslash/tests/gen/references01_test.go +++ b/pkg/fourslash/tests/gen/references01_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferences01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/referencesForGlobals_1.ts class /*0*/globalClass { diff --git a/pkg/fourslash/tests/gen/referencesBloomFilters2_test.go b/pkg/fourslash/tests/gen/referencesBloomFilters2_test.go index 7a46c264c..b5d1d8b4c 100644 --- a/pkg/fourslash/tests/gen/referencesBloomFilters2_test.go +++ b/pkg/fourslash/tests/gen/referencesBloomFilters2_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesBloomFilters2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: declaration.ts var container = { /*1*/42: 1 }; diff --git a/pkg/fourslash/tests/gen/referencesBloomFilters3_test.go b/pkg/fourslash/tests/gen/referencesBloomFilters3_test.go index 0ede83b32..5209f9f0c 100644 --- a/pkg/fourslash/tests/gen/referencesBloomFilters3_test.go +++ b/pkg/fourslash/tests/gen/referencesBloomFilters3_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesBloomFilters3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: declaration.ts enum Test { /*1*/"/*2*/42" = 1 }; diff --git a/pkg/fourslash/tests/gen/referencesBloomFilters_test.go b/pkg/fourslash/tests/gen/referencesBloomFilters_test.go index a80c9771f..a17030a61 100644 --- a/pkg/fourslash/tests/gen/referencesBloomFilters_test.go +++ b/pkg/fourslash/tests/gen/referencesBloomFilters_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesBloomFilters(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: declaration.ts var container = { /*1*/searchProp : 1 }; diff --git a/pkg/fourslash/tests/gen/referencesForAmbients2_test.go b/pkg/fourslash/tests/gen/referencesForAmbients2_test.go index 3b6dad2cd..b04fd1ebc 100644 --- a/pkg/fourslash/tests/gen/referencesForAmbients2_test.go +++ b/pkg/fourslash/tests/gen/referencesForAmbients2_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForAmbients2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /defA.ts declare module "a" { diff --git a/pkg/fourslash/tests/gen/referencesForAmbients_test.go b/pkg/fourslash/tests/gen/referencesForAmbients_test.go index 59c1c63fd..35dcf920d 100644 --- a/pkg/fourslash/tests/gen/referencesForAmbients_test.go +++ b/pkg/fourslash/tests/gen/referencesForAmbients_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForAmbients(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/declare module "/*2*/foo" { /*3*/var /*4*/f: number; diff --git a/pkg/fourslash/tests/gen/referencesForClassLocal_test.go b/pkg/fourslash/tests/gen/referencesForClassLocal_test.go index 7f34a6ba6..d96621094 100644 --- a/pkg/fourslash/tests/gen/referencesForClassLocal_test.go +++ b/pkg/fourslash/tests/gen/referencesForClassLocal_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForClassLocal(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var n = 14; diff --git a/pkg/fourslash/tests/gen/referencesForClassMembersExtendingAbstractClass_test.go b/pkg/fourslash/tests/gen/referencesForClassMembersExtendingAbstractClass_test.go index e5ecd117e..3260fcf72 100644 --- a/pkg/fourslash/tests/gen/referencesForClassMembersExtendingAbstractClass_test.go +++ b/pkg/fourslash/tests/gen/referencesForClassMembersExtendingAbstractClass_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForClassMembersExtendingAbstractClass(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `abstract class Base { abstract /*a1*/a: number; diff --git a/pkg/fourslash/tests/gen/referencesForClassMembersExtendingGenericClass_test.go b/pkg/fourslash/tests/gen/referencesForClassMembersExtendingGenericClass_test.go index 3e37c73fd..f1fbfc342 100644 --- a/pkg/fourslash/tests/gen/referencesForClassMembersExtendingGenericClass_test.go +++ b/pkg/fourslash/tests/gen/referencesForClassMembersExtendingGenericClass_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForClassMembersExtendingGenericClass(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Base { /*a1*/a: this; diff --git a/pkg/fourslash/tests/gen/referencesForClassMembers_test.go b/pkg/fourslash/tests/gen/referencesForClassMembers_test.go index 675d590e6..82ca5eb0d 100644 --- a/pkg/fourslash/tests/gen/referencesForClassMembers_test.go +++ b/pkg/fourslash/tests/gen/referencesForClassMembers_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForClassMembers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Base { /*a1*/a: number; diff --git a/pkg/fourslash/tests/gen/referencesForClassParameter_test.go b/pkg/fourslash/tests/gen/referencesForClassParameter_test.go index 099dacaa4..06e2592a2 100644 --- a/pkg/fourslash/tests/gen/referencesForClassParameter_test.go +++ b/pkg/fourslash/tests/gen/referencesForClassParameter_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForClassParameter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var p = 2; diff --git a/pkg/fourslash/tests/gen/referencesForContextuallyTypedObjectLiteralProperties_test.go b/pkg/fourslash/tests/gen/referencesForContextuallyTypedObjectLiteralProperties_test.go index 899d087f6..26eb14bdd 100644 --- a/pkg/fourslash/tests/gen/referencesForContextuallyTypedObjectLiteralProperties_test.go +++ b/pkg/fourslash/tests/gen/referencesForContextuallyTypedObjectLiteralProperties_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForContextuallyTypedObjectLiteralProperties(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IFoo { /*xy*/xy: number; } diff --git a/pkg/fourslash/tests/gen/referencesForContextuallyTypedUnionProperties2_test.go b/pkg/fourslash/tests/gen/referencesForContextuallyTypedUnionProperties2_test.go index 97747424f..16ea35f45 100644 --- a/pkg/fourslash/tests/gen/referencesForContextuallyTypedUnionProperties2_test.go +++ b/pkg/fourslash/tests/gen/referencesForContextuallyTypedUnionProperties2_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForContextuallyTypedUnionProperties2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface A { a: number; diff --git a/pkg/fourslash/tests/gen/referencesForContextuallyTypedUnionProperties_test.go b/pkg/fourslash/tests/gen/referencesForContextuallyTypedUnionProperties_test.go index ea10c8028..6e424ea3b 100644 --- a/pkg/fourslash/tests/gen/referencesForContextuallyTypedUnionProperties_test.go +++ b/pkg/fourslash/tests/gen/referencesForContextuallyTypedUnionProperties_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForContextuallyTypedUnionProperties(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface A { a: number; diff --git a/pkg/fourslash/tests/gen/referencesForDeclarationKeywords_test.go b/pkg/fourslash/tests/gen/referencesForDeclarationKeywords_test.go index 6f3f90aec..e33c9063a 100644 --- a/pkg/fourslash/tests/gen/referencesForDeclarationKeywords_test.go +++ b/pkg/fourslash/tests/gen/referencesForDeclarationKeywords_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForDeclarationKeywords(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Base {} interface Implemented1 {} diff --git a/pkg/fourslash/tests/gen/referencesForEnums_test.go b/pkg/fourslash/tests/gen/referencesForEnums_test.go index 4d639e17b..d5c52ea6e 100644 --- a/pkg/fourslash/tests/gen/referencesForEnums_test.go +++ b/pkg/fourslash/tests/gen/referencesForEnums_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForEnums(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum E { /*1*/value1 = 1, diff --git a/pkg/fourslash/tests/gen/referencesForExportedValues_test.go b/pkg/fourslash/tests/gen/referencesForExportedValues_test.go index 61c5d220d..193fd84d4 100644 --- a/pkg/fourslash/tests/gen/referencesForExportedValues_test.go +++ b/pkg/fourslash/tests/gen/referencesForExportedValues_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForExportedValues(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module M { /*1*/export var /*2*/variable = 0; diff --git a/pkg/fourslash/tests/gen/referencesForExpressionKeywords_test.go b/pkg/fourslash/tests/gen/referencesForExpressionKeywords_test.go index 55ef961cb..6cd39a6d9 100644 --- a/pkg/fourslash/tests/gen/referencesForExpressionKeywords_test.go +++ b/pkg/fourslash/tests/gen/referencesForExpressionKeywords_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForExpressionKeywords(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C { static x = 1; diff --git a/pkg/fourslash/tests/gen/referencesForExternalModuleNames_test.go b/pkg/fourslash/tests/gen/referencesForExternalModuleNames_test.go index b14fad4bb..5ccd9cbc7 100644 --- a/pkg/fourslash/tests/gen/referencesForExternalModuleNames_test.go +++ b/pkg/fourslash/tests/gen/referencesForExternalModuleNames_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForExternalModuleNames(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: referencesForGlobals_1.ts /*1*/declare module "/*2*/foo" { diff --git a/pkg/fourslash/tests/gen/referencesForFunctionOverloads_test.go b/pkg/fourslash/tests/gen/referencesForFunctionOverloads_test.go index 60ad726ec..c04935281 100644 --- a/pkg/fourslash/tests/gen/referencesForFunctionOverloads_test.go +++ b/pkg/fourslash/tests/gen/referencesForFunctionOverloads_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForFunctionOverloads(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/function /*2*/foo(x: string); /*3*/function /*4*/foo(x: string, y: number) { diff --git a/pkg/fourslash/tests/gen/referencesForFunctionParameter_test.go b/pkg/fourslash/tests/gen/referencesForFunctionParameter_test.go index 2b601249d..db1c807c0 100644 --- a/pkg/fourslash/tests/gen/referencesForFunctionParameter_test.go +++ b/pkg/fourslash/tests/gen/referencesForFunctionParameter_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForFunctionParameter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x; var n; diff --git a/pkg/fourslash/tests/gen/referencesForGlobals2_test.go b/pkg/fourslash/tests/gen/referencesForGlobals2_test.go index c0920d29a..c02a306fa 100644 --- a/pkg/fourslash/tests/gen/referencesForGlobals2_test.go +++ b/pkg/fourslash/tests/gen/referencesForGlobals2_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForGlobals2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: referencesForGlobals_1.ts /*1*/class /*2*/globalClass { diff --git a/pkg/fourslash/tests/gen/referencesForGlobals3_test.go b/pkg/fourslash/tests/gen/referencesForGlobals3_test.go index d867571e1..728d71635 100644 --- a/pkg/fourslash/tests/gen/referencesForGlobals3_test.go +++ b/pkg/fourslash/tests/gen/referencesForGlobals3_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForGlobals3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: referencesForGlobals_1.ts /*1*/interface /*2*/globalInterface { diff --git a/pkg/fourslash/tests/gen/referencesForGlobals4_test.go b/pkg/fourslash/tests/gen/referencesForGlobals4_test.go index c78801e60..9c1b7c04c 100644 --- a/pkg/fourslash/tests/gen/referencesForGlobals4_test.go +++ b/pkg/fourslash/tests/gen/referencesForGlobals4_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForGlobals4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: referencesForGlobals_1.ts /*1*/module /*2*/globalModule { diff --git a/pkg/fourslash/tests/gen/referencesForGlobals5_test.go b/pkg/fourslash/tests/gen/referencesForGlobals5_test.go index 914d6f1b3..0818023ce 100644 --- a/pkg/fourslash/tests/gen/referencesForGlobals5_test.go +++ b/pkg/fourslash/tests/gen/referencesForGlobals5_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForGlobals5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: referencesForGlobals_1.ts module globalModule { diff --git a/pkg/fourslash/tests/gen/referencesForGlobalsInExternalModule_test.go b/pkg/fourslash/tests/gen/referencesForGlobalsInExternalModule_test.go index 9c0bf4e4a..11a6e10b5 100644 --- a/pkg/fourslash/tests/gen/referencesForGlobalsInExternalModule_test.go +++ b/pkg/fourslash/tests/gen/referencesForGlobalsInExternalModule_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForGlobalsInExternalModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/var /*2*/topLevelVar = 2; var topLevelVar2 = /*3*/topLevelVar; diff --git a/pkg/fourslash/tests/gen/referencesForGlobals_test.go b/pkg/fourslash/tests/gen/referencesForGlobals_test.go index 96dd0a516..5ba07f987 100644 --- a/pkg/fourslash/tests/gen/referencesForGlobals_test.go +++ b/pkg/fourslash/tests/gen/referencesForGlobals_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForGlobals(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: referencesForGlobals_1.ts /*1*/var /*2*/global = 2; diff --git a/pkg/fourslash/tests/gen/referencesForIllegalAssignment_test.go b/pkg/fourslash/tests/gen/referencesForIllegalAssignment_test.go index 5c2c09113..6c93ba021 100644 --- a/pkg/fourslash/tests/gen/referencesForIllegalAssignment_test.go +++ b/pkg/fourslash/tests/gen/referencesForIllegalAssignment_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForIllegalAssignment(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `f/*1*/oo = fo/*2*/o; var /*bar*/bar = function () { }; diff --git a/pkg/fourslash/tests/gen/referencesForImports_test.go b/pkg/fourslash/tests/gen/referencesForImports_test.go index 0e82d08f1..9cc9f42dc 100644 --- a/pkg/fourslash/tests/gen/referencesForImports_test.go +++ b/pkg/fourslash/tests/gen/referencesForImports_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForImports(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare module "jquery" { function $(s: string): any; diff --git a/pkg/fourslash/tests/gen/referencesForIndexProperty2_test.go b/pkg/fourslash/tests/gen/referencesForIndexProperty2_test.go index bc04e86ed..3b501e6bd 100644 --- a/pkg/fourslash/tests/gen/referencesForIndexProperty2_test.go +++ b/pkg/fourslash/tests/gen/referencesForIndexProperty2_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForIndexProperty2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var a; a["/*1*/blah"];` diff --git a/pkg/fourslash/tests/gen/referencesForIndexProperty3_test.go b/pkg/fourslash/tests/gen/referencesForIndexProperty3_test.go index 73433e1a4..4eec23352 100644 --- a/pkg/fourslash/tests/gen/referencesForIndexProperty3_test.go +++ b/pkg/fourslash/tests/gen/referencesForIndexProperty3_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForIndexProperty3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Object { /*1*/toMyString(); diff --git a/pkg/fourslash/tests/gen/referencesForIndexProperty_test.go b/pkg/fourslash/tests/gen/referencesForIndexProperty_test.go index d5b312ade..0ae30ec3a 100644 --- a/pkg/fourslash/tests/gen/referencesForIndexProperty_test.go +++ b/pkg/fourslash/tests/gen/referencesForIndexProperty_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForIndexProperty(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { /*1*/property: number; diff --git a/pkg/fourslash/tests/gen/referencesForInheritedProperties10_test.go b/pkg/fourslash/tests/gen/referencesForInheritedProperties10_test.go index 9909fb574..a624f20bc 100644 --- a/pkg/fourslash/tests/gen/referencesForInheritedProperties10_test.go +++ b/pkg/fourslash/tests/gen/referencesForInheritedProperties10_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForInheritedProperties10(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IFeedbackHandler { /*1*/handleAccept?(): void; diff --git a/pkg/fourslash/tests/gen/referencesForInheritedProperties2_test.go b/pkg/fourslash/tests/gen/referencesForInheritedProperties2_test.go index 77ceb468b..f14d7665f 100644 --- a/pkg/fourslash/tests/gen/referencesForInheritedProperties2_test.go +++ b/pkg/fourslash/tests/gen/referencesForInheritedProperties2_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForInheritedProperties2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface interface1 { /*1*/doStuff(): void; diff --git a/pkg/fourslash/tests/gen/referencesForInheritedProperties3_test.go b/pkg/fourslash/tests/gen/referencesForInheritedProperties3_test.go index a2391f378..cf00c92ac 100644 --- a/pkg/fourslash/tests/gen/referencesForInheritedProperties3_test.go +++ b/pkg/fourslash/tests/gen/referencesForInheritedProperties3_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForInheritedProperties3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface interface1 extends interface1 { /*1*/doStuff(): void; diff --git a/pkg/fourslash/tests/gen/referencesForInheritedProperties4_test.go b/pkg/fourslash/tests/gen/referencesForInheritedProperties4_test.go index 81a61aeb7..d4c5c339d 100644 --- a/pkg/fourslash/tests/gen/referencesForInheritedProperties4_test.go +++ b/pkg/fourslash/tests/gen/referencesForInheritedProperties4_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForInheritedProperties4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class class1 extends class1 { /*1*/doStuff() { } diff --git a/pkg/fourslash/tests/gen/referencesForInheritedProperties5_test.go b/pkg/fourslash/tests/gen/referencesForInheritedProperties5_test.go index 8642a1595..f60f863ea 100644 --- a/pkg/fourslash/tests/gen/referencesForInheritedProperties5_test.go +++ b/pkg/fourslash/tests/gen/referencesForInheritedProperties5_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForInheritedProperties5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface interface1 extends interface1 { /*1*/doStuff(): void; diff --git a/pkg/fourslash/tests/gen/referencesForInheritedProperties6_test.go b/pkg/fourslash/tests/gen/referencesForInheritedProperties6_test.go index 7a0276e72..8bd2d5204 100644 --- a/pkg/fourslash/tests/gen/referencesForInheritedProperties6_test.go +++ b/pkg/fourslash/tests/gen/referencesForInheritedProperties6_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForInheritedProperties6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class class1 extends class1 { /*1*/doStuff() { } diff --git a/pkg/fourslash/tests/gen/referencesForInheritedProperties7_test.go b/pkg/fourslash/tests/gen/referencesForInheritedProperties7_test.go index 2f97064d1..77c9536bd 100644 --- a/pkg/fourslash/tests/gen/referencesForInheritedProperties7_test.go +++ b/pkg/fourslash/tests/gen/referencesForInheritedProperties7_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForInheritedProperties7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class class1 extends class1 { /*0*/doStuff() { } diff --git a/pkg/fourslash/tests/gen/referencesForInheritedProperties8_test.go b/pkg/fourslash/tests/gen/referencesForInheritedProperties8_test.go index a3580224c..11e25d039 100644 --- a/pkg/fourslash/tests/gen/referencesForInheritedProperties8_test.go +++ b/pkg/fourslash/tests/gen/referencesForInheritedProperties8_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForInheritedProperties8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface C extends D { /*d*/propD: number; diff --git a/pkg/fourslash/tests/gen/referencesForInheritedProperties9_test.go b/pkg/fourslash/tests/gen/referencesForInheritedProperties9_test.go index 41a28f3dc..68912be11 100644 --- a/pkg/fourslash/tests/gen/referencesForInheritedProperties9_test.go +++ b/pkg/fourslash/tests/gen/referencesForInheritedProperties9_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForInheritedProperties9(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class D extends C { /*1*/prop1: string; diff --git a/pkg/fourslash/tests/gen/referencesForInheritedProperties_test.go b/pkg/fourslash/tests/gen/referencesForInheritedProperties_test.go index 6a78bd541..30f13358e 100644 --- a/pkg/fourslash/tests/gen/referencesForInheritedProperties_test.go +++ b/pkg/fourslash/tests/gen/referencesForInheritedProperties_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForInheritedProperties(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface interface1 { /*1*/doStuff(): void; diff --git a/pkg/fourslash/tests/gen/referencesForLabel2_test.go b/pkg/fourslash/tests/gen/referencesForLabel2_test.go index 0a8666e9f..74a0d61b9 100644 --- a/pkg/fourslash/tests/gen/referencesForLabel2_test.go +++ b/pkg/fourslash/tests/gen/referencesForLabel2_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForLabel2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var label = "label"; while (true) { diff --git a/pkg/fourslash/tests/gen/referencesForLabel3_test.go b/pkg/fourslash/tests/gen/referencesForLabel3_test.go index 407350966..0a19627b0 100644 --- a/pkg/fourslash/tests/gen/referencesForLabel3_test.go +++ b/pkg/fourslash/tests/gen/referencesForLabel3_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForLabel3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/label: while (true) { var label = "label"; diff --git a/pkg/fourslash/tests/gen/referencesForLabel4_test.go b/pkg/fourslash/tests/gen/referencesForLabel4_test.go index 845b9038d..c5203dc47 100644 --- a/pkg/fourslash/tests/gen/referencesForLabel4_test.go +++ b/pkg/fourslash/tests/gen/referencesForLabel4_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForLabel4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/label: function foo(label) { while (true) { diff --git a/pkg/fourslash/tests/gen/referencesForLabel5_test.go b/pkg/fourslash/tests/gen/referencesForLabel5_test.go index 582dd9fff..5c8724eb9 100644 --- a/pkg/fourslash/tests/gen/referencesForLabel5_test.go +++ b/pkg/fourslash/tests/gen/referencesForLabel5_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForLabel5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/label: while (true) { if (false) /*2*/break /*3*/label; diff --git a/pkg/fourslash/tests/gen/referencesForLabel6_test.go b/pkg/fourslash/tests/gen/referencesForLabel6_test.go index a677d2ba4..9309b1faf 100644 --- a/pkg/fourslash/tests/gen/referencesForLabel6_test.go +++ b/pkg/fourslash/tests/gen/referencesForLabel6_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForLabel6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/labela: while (true) { /*2*/labelb: while (false) { /*3*/break /*4*/labelb; } diff --git a/pkg/fourslash/tests/gen/referencesForLabel_test.go b/pkg/fourslash/tests/gen/referencesForLabel_test.go index 44227fd2e..e0b0b8f23 100644 --- a/pkg/fourslash/tests/gen/referencesForLabel_test.go +++ b/pkg/fourslash/tests/gen/referencesForLabel_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForLabel(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/label: while (true) { if (false) /*2*/break /*3*/label; diff --git a/pkg/fourslash/tests/gen/referencesForMergedDeclarations2_test.go b/pkg/fourslash/tests/gen/referencesForMergedDeclarations2_test.go index b8b56621f..d95bacd8c 100644 --- a/pkg/fourslash/tests/gen/referencesForMergedDeclarations2_test.go +++ b/pkg/fourslash/tests/gen/referencesForMergedDeclarations2_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForMergedDeclarations2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module ATest { export interface Bar { } diff --git a/pkg/fourslash/tests/gen/referencesForMergedDeclarations3_test.go b/pkg/fourslash/tests/gen/referencesForMergedDeclarations3_test.go index 02b1d229b..60e85f247 100644 --- a/pkg/fourslash/tests/gen/referencesForMergedDeclarations3_test.go +++ b/pkg/fourslash/tests/gen/referencesForMergedDeclarations3_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForMergedDeclarations3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|class /*class*/[|testClass|] { static staticMethod() { } diff --git a/pkg/fourslash/tests/gen/referencesForMergedDeclarations4_test.go b/pkg/fourslash/tests/gen/referencesForMergedDeclarations4_test.go index 81946e8a1..0ebdf2bf2 100644 --- a/pkg/fourslash/tests/gen/referencesForMergedDeclarations4_test.go +++ b/pkg/fourslash/tests/gen/referencesForMergedDeclarations4_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForMergedDeclarations4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/class /*2*/testClass { static staticMethod() { } diff --git a/pkg/fourslash/tests/gen/referencesForMergedDeclarations5_test.go b/pkg/fourslash/tests/gen/referencesForMergedDeclarations5_test.go index cc96472dd..32c1b65d0 100644 --- a/pkg/fourslash/tests/gen/referencesForMergedDeclarations5_test.go +++ b/pkg/fourslash/tests/gen/referencesForMergedDeclarations5_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForMergedDeclarations5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface /*1*/Foo { } module /*2*/Foo { export interface Bar { } } diff --git a/pkg/fourslash/tests/gen/referencesForMergedDeclarations6_test.go b/pkg/fourslash/tests/gen/referencesForMergedDeclarations6_test.go index a88121317..d325566e0 100644 --- a/pkg/fourslash/tests/gen/referencesForMergedDeclarations6_test.go +++ b/pkg/fourslash/tests/gen/referencesForMergedDeclarations6_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForMergedDeclarations6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { } /*1*/module /*2*/Foo { diff --git a/pkg/fourslash/tests/gen/referencesForMergedDeclarations7_test.go b/pkg/fourslash/tests/gen/referencesForMergedDeclarations7_test.go index 63656b148..e13d8c7ef 100644 --- a/pkg/fourslash/tests/gen/referencesForMergedDeclarations7_test.go +++ b/pkg/fourslash/tests/gen/referencesForMergedDeclarations7_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForMergedDeclarations7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { } module Foo { diff --git a/pkg/fourslash/tests/gen/referencesForMergedDeclarations8_test.go b/pkg/fourslash/tests/gen/referencesForMergedDeclarations8_test.go index 6c17d5e64..65306a6db 100644 --- a/pkg/fourslash/tests/gen/referencesForMergedDeclarations8_test.go +++ b/pkg/fourslash/tests/gen/referencesForMergedDeclarations8_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForMergedDeclarations8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { } module Foo { diff --git a/pkg/fourslash/tests/gen/referencesForMergedDeclarations_test.go b/pkg/fourslash/tests/gen/referencesForMergedDeclarations_test.go index 13e173885..1ad1163ef 100644 --- a/pkg/fourslash/tests/gen/referencesForMergedDeclarations_test.go +++ b/pkg/fourslash/tests/gen/referencesForMergedDeclarations_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForMergedDeclarations(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/interface /*2*/Foo { } diff --git a/pkg/fourslash/tests/gen/referencesForModifiers_test.go b/pkg/fourslash/tests/gen/referencesForModifiers_test.go index 1cbcac277..c21d49762 100644 --- a/pkg/fourslash/tests/gen/referencesForModifiers_test.go +++ b/pkg/fourslash/tests/gen/referencesForModifiers_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForModifiers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|/*declareModifier*/declare /*abstractModifier*/abstract class C1 { [|/*staticModifier*/static a;|] diff --git a/pkg/fourslash/tests/gen/referencesForNoContext_test.go b/pkg/fourslash/tests/gen/referencesForNoContext_test.go index b5cee6fb7..d4ab1e643 100644 --- a/pkg/fourslash/tests/gen/referencesForNoContext_test.go +++ b/pkg/fourslash/tests/gen/referencesForNoContext_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForNoContext(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module modTest { //Declare diff --git a/pkg/fourslash/tests/gen/referencesForNumericLiteralPropertyNames_test.go b/pkg/fourslash/tests/gen/referencesForNumericLiteralPropertyNames_test.go index 0a8a01318..165faa1ca 100644 --- a/pkg/fourslash/tests/gen/referencesForNumericLiteralPropertyNames_test.go +++ b/pkg/fourslash/tests/gen/referencesForNumericLiteralPropertyNames_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForNumericLiteralPropertyNames(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { public /*1*/12: any; diff --git a/pkg/fourslash/tests/gen/referencesForObjectLiteralProperties_test.go b/pkg/fourslash/tests/gen/referencesForObjectLiteralProperties_test.go index 075056b20..b75d25366 100644 --- a/pkg/fourslash/tests/gen/referencesForObjectLiteralProperties_test.go +++ b/pkg/fourslash/tests/gen/referencesForObjectLiteralProperties_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForObjectLiteralProperties(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = { /*1*/add: 0, b: "string" }; x["/*2*/add"]; diff --git a/pkg/fourslash/tests/gen/referencesForOverrides_test.go b/pkg/fourslash/tests/gen/referencesForOverrides_test.go index 719128ff0..3f89ca847 100644 --- a/pkg/fourslash/tests/gen/referencesForOverrides_test.go +++ b/pkg/fourslash/tests/gen/referencesForOverrides_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForOverrides(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module FindRef3 { module SimpleClassTest { diff --git a/pkg/fourslash/tests/gen/referencesForPropertiesOfGenericType_test.go b/pkg/fourslash/tests/gen/referencesForPropertiesOfGenericType_test.go index 04a51483a..5daa14a3b 100644 --- a/pkg/fourslash/tests/gen/referencesForPropertiesOfGenericType_test.go +++ b/pkg/fourslash/tests/gen/referencesForPropertiesOfGenericType_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForPropertiesOfGenericType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IFoo { /*1*/doSomething(v: T): T; diff --git a/pkg/fourslash/tests/gen/referencesForStatementKeywords_test.go b/pkg/fourslash/tests/gen/referencesForStatementKeywords_test.go index c704596c9..4b69a81aa 100644 --- a/pkg/fourslash/tests/gen/referencesForStatementKeywords_test.go +++ b/pkg/fourslash/tests/gen/referencesForStatementKeywords_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForStatementKeywords(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: /main.ts // import ... = ... diff --git a/pkg/fourslash/tests/gen/referencesForStatic_test.go b/pkg/fourslash/tests/gen/referencesForStatic_test.go index f6def204e..8169767bf 100644 --- a/pkg/fourslash/tests/gen/referencesForStatic_test.go +++ b/pkg/fourslash/tests/gen/referencesForStatic_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForStatic(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: referencesOnStatic_1.ts var n = 43; diff --git a/pkg/fourslash/tests/gen/referencesForStaticsAndMembersWithSameNames_test.go b/pkg/fourslash/tests/gen/referencesForStaticsAndMembersWithSameNames_test.go index 561abf8f3..974a4dff0 100644 --- a/pkg/fourslash/tests/gen/referencesForStaticsAndMembersWithSameNames_test.go +++ b/pkg/fourslash/tests/gen/referencesForStaticsAndMembersWithSameNames_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForStaticsAndMembersWithSameNames(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module FindRef4 { module MixedStaticsClassTest { diff --git a/pkg/fourslash/tests/gen/referencesForStringLiteralPropertyNames2_test.go b/pkg/fourslash/tests/gen/referencesForStringLiteralPropertyNames2_test.go index 118aba5ff..c6b334285 100644 --- a/pkg/fourslash/tests/gen/referencesForStringLiteralPropertyNames2_test.go +++ b/pkg/fourslash/tests/gen/referencesForStringLiteralPropertyNames2_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForStringLiteralPropertyNames2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { /*1*/"/*2*/blah"() { return 0; } diff --git a/pkg/fourslash/tests/gen/referencesForStringLiteralPropertyNames3_test.go b/pkg/fourslash/tests/gen/referencesForStringLiteralPropertyNames3_test.go index c3e7af3ec..880aea019 100644 --- a/pkg/fourslash/tests/gen/referencesForStringLiteralPropertyNames3_test.go +++ b/pkg/fourslash/tests/gen/referencesForStringLiteralPropertyNames3_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForStringLiteralPropertyNames3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo2 { /*1*/get "/*2*/42"() { return 0; } diff --git a/pkg/fourslash/tests/gen/referencesForStringLiteralPropertyNames4_test.go b/pkg/fourslash/tests/gen/referencesForStringLiteralPropertyNames4_test.go index dad2a556d..1ab249f19 100644 --- a/pkg/fourslash/tests/gen/referencesForStringLiteralPropertyNames4_test.go +++ b/pkg/fourslash/tests/gen/referencesForStringLiteralPropertyNames4_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForStringLiteralPropertyNames4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = { "/*1*/someProperty": 0 } x[/*2*/"someProperty"] = 3; diff --git a/pkg/fourslash/tests/gen/referencesForStringLiteralPropertyNames5_test.go b/pkg/fourslash/tests/gen/referencesForStringLiteralPropertyNames5_test.go index 3e86382e2..9f07cd8df 100644 --- a/pkg/fourslash/tests/gen/referencesForStringLiteralPropertyNames5_test.go +++ b/pkg/fourslash/tests/gen/referencesForStringLiteralPropertyNames5_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForStringLiteralPropertyNames5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = { "/*1*/someProperty": 0 } x["/*2*/someProperty"] = 3; diff --git a/pkg/fourslash/tests/gen/referencesForStringLiteralPropertyNames6_test.go b/pkg/fourslash/tests/gen/referencesForStringLiteralPropertyNames6_test.go index 378fd1078..4445d5e5c 100644 --- a/pkg/fourslash/tests/gen/referencesForStringLiteralPropertyNames6_test.go +++ b/pkg/fourslash/tests/gen/referencesForStringLiteralPropertyNames6_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForStringLiteralPropertyNames6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const x = function () { return 111111; } x./*1*/someProperty = 5; diff --git a/pkg/fourslash/tests/gen/referencesForStringLiteralPropertyNames7_test.go b/pkg/fourslash/tests/gen/referencesForStringLiteralPropertyNames7_test.go index c858b25a1..6f03e2319 100644 --- a/pkg/fourslash/tests/gen/referencesForStringLiteralPropertyNames7_test.go +++ b/pkg/fourslash/tests/gen/referencesForStringLiteralPropertyNames7_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForStringLiteralPropertyNames7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: foo.js // @noEmit: true diff --git a/pkg/fourslash/tests/gen/referencesForStringLiteralPropertyNames_test.go b/pkg/fourslash/tests/gen/referencesForStringLiteralPropertyNames_test.go index 271bb98e1..b8cc4e9b1 100644 --- a/pkg/fourslash/tests/gen/referencesForStringLiteralPropertyNames_test.go +++ b/pkg/fourslash/tests/gen/referencesForStringLiteralPropertyNames_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForStringLiteralPropertyNames(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { public "/*1*/ss": any; diff --git a/pkg/fourslash/tests/gen/referencesForTypeKeywords_test.go b/pkg/fourslash/tests/gen/referencesForTypeKeywords_test.go index 84a7fa5d5..0140dc9d8 100644 --- a/pkg/fourslash/tests/gen/referencesForTypeKeywords_test.go +++ b/pkg/fourslash/tests/gen/referencesForTypeKeywords_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForTypeKeywords(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I {} function f() {} diff --git a/pkg/fourslash/tests/gen/referencesForUnionProperties_test.go b/pkg/fourslash/tests/gen/referencesForUnionProperties_test.go index 3065c8095..3b0926bbb 100644 --- a/pkg/fourslash/tests/gen/referencesForUnionProperties_test.go +++ b/pkg/fourslash/tests/gen/referencesForUnionProperties_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesForUnionProperties(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface One { common: { /*one*/a: number; }; diff --git a/pkg/fourslash/tests/gen/referencesInComment_test.go b/pkg/fourslash/tests/gen/referencesInComment_test.go index 0835b1809..d6a226273 100644 --- a/pkg/fourslash/tests/gen/referencesInComment_test.go +++ b/pkg/fourslash/tests/gen/referencesInComment_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesInComment(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// References to /*1*/foo or b/*2*/ar /* in comments should not find fo/*3*/o or bar/*4*/ */ diff --git a/pkg/fourslash/tests/gen/referencesInConfiguredProject_test.go b/pkg/fourslash/tests/gen/referencesInConfiguredProject_test.go index fd435a061..83de83efe 100644 --- a/pkg/fourslash/tests/gen/referencesInConfiguredProject_test.go +++ b/pkg/fourslash/tests/gen/referencesInConfiguredProject_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesInConfiguredProject(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/referencesForGlobals_1.ts class /*0*/globalClass { diff --git a/pkg/fourslash/tests/gen/referencesInEmptyFileWithMultipleProjects_test.go b/pkg/fourslash/tests/gen/referencesInEmptyFileWithMultipleProjects_test.go index abbfb37ce..f73929221 100644 --- a/pkg/fourslash/tests/gen/referencesInEmptyFileWithMultipleProjects_test.go +++ b/pkg/fourslash/tests/gen/referencesInEmptyFileWithMultipleProjects_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesInEmptyFileWithMultipleProjects(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/a/tsconfig.json { "files": ["a.ts"] } diff --git a/pkg/fourslash/tests/gen/referencesInEmptyFile_test.go b/pkg/fourslash/tests/gen/referencesInEmptyFile_test.go index 022f2cadd..a35dd5796 100644 --- a/pkg/fourslash/tests/gen/referencesInEmptyFile_test.go +++ b/pkg/fourslash/tests/gen/referencesInEmptyFile_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesInEmptyFile(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*1*/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/referencesInStringLiteralValueWithMultipleProjects_test.go b/pkg/fourslash/tests/gen/referencesInStringLiteralValueWithMultipleProjects_test.go index 2202a2330..3e70693b0 100644 --- a/pkg/fourslash/tests/gen/referencesInStringLiteralValueWithMultipleProjects_test.go +++ b/pkg/fourslash/tests/gen/referencesInStringLiteralValueWithMultipleProjects_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesInStringLiteralValueWithMultipleProjects(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/a/tsconfig.json { "files": ["a.ts"] } diff --git a/pkg/fourslash/tests/gen/referencesIsAvailableThroughGlobalNoCrash_test.go b/pkg/fourslash/tests/gen/referencesIsAvailableThroughGlobalNoCrash_test.go index 24a5a940f..2ed020295 100644 --- a/pkg/fourslash/tests/gen/referencesIsAvailableThroughGlobalNoCrash_test.go +++ b/pkg/fourslash/tests/gen/referencesIsAvailableThroughGlobalNoCrash_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesIsAvailableThroughGlobalNoCrash(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /packages/playwright-core/bundles/utils/node_modules/@types/debug/index.d.ts declare var debug: debug.Debug & { debug: debug.Debug; default: debug.Debug }; diff --git a/pkg/fourslash/tests/gen/referencesToNonPropertyNameStringLiteral_test.go b/pkg/fourslash/tests/gen/referencesToNonPropertyNameStringLiteral_test.go index 12e651313..a081a6c01 100644 --- a/pkg/fourslash/tests/gen/referencesToNonPropertyNameStringLiteral_test.go +++ b/pkg/fourslash/tests/gen/referencesToNonPropertyNameStringLiteral_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesToNonPropertyNameStringLiteral(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const str: string = "hello/*1*/";` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/referencesToStringLiteralValue_test.go b/pkg/fourslash/tests/gen/referencesToStringLiteralValue_test.go index 2cb0abd6c..fc8618798 100644 --- a/pkg/fourslash/tests/gen/referencesToStringLiteralValue_test.go +++ b/pkg/fourslash/tests/gen/referencesToStringLiteralValue_test.go @@ -8,8 +8,8 @@ import ( ) func TestReferencesToStringLiteralValue(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const s: string = "some /*1*/ string";` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/regexDetection_test.go b/pkg/fourslash/tests/gen/regexDetection_test.go index d8bd5fd85..045f01693 100644 --- a/pkg/fourslash/tests/gen/regexDetection_test.go +++ b/pkg/fourslash/tests/gen/regexDetection_test.go @@ -8,8 +8,8 @@ import ( ) func TestRegexDetection(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = ` /*1*/15 / /*2*/Math.min(61 / /*3*/42, 32 / 15) / /*4*/15;` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/regexErrorRecovery_test.go b/pkg/fourslash/tests/gen/regexErrorRecovery_test.go index 8aa5548a2..2059ee059 100644 --- a/pkg/fourslash/tests/gen/regexErrorRecovery_test.go +++ b/pkg/fourslash/tests/gen/regexErrorRecovery_test.go @@ -8,8 +8,8 @@ import ( ) func TestRegexErrorRecovery(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = ` // test code //var x = //**/a/;/*1*/ diff --git a/pkg/fourslash/tests/gen/regexp_test.go b/pkg/fourslash/tests/gen/regexp_test.go index 7d6af79e8..80a15b8f0 100644 --- a/pkg/fourslash/tests/gen/regexp_test.go +++ b/pkg/fourslash/tests/gen/regexp_test.go @@ -8,8 +8,8 @@ import ( ) func TestRegexp(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var /**/x = /aa/;` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/remoteGetReferences_test.go b/pkg/fourslash/tests/gen/remoteGetReferences_test.go index 137e93eab..4722fd07c 100644 --- a/pkg/fourslash/tests/gen/remoteGetReferences_test.go +++ b/pkg/fourslash/tests/gen/remoteGetReferences_test.go @@ -8,8 +8,8 @@ import ( ) func TestRemoteGetReferences(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: remoteGetReferences_1.ts // Comment Refence Test: globalVar diff --git a/pkg/fourslash/tests/gen/removeDeclareFunctionExports_test.go b/pkg/fourslash/tests/gen/removeDeclareFunctionExports_test.go index 804fe8310..e4cf3d1f9 100644 --- a/pkg/fourslash/tests/gen/removeDeclareFunctionExports_test.go +++ b/pkg/fourslash/tests/gen/removeDeclareFunctionExports_test.go @@ -8,8 +8,8 @@ import ( ) func TestRemoveDeclareFunctionExports(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare module M { function RegExp2(pattern: string): RegExp2; diff --git a/pkg/fourslash/tests/gen/removeDeclareInModule_test.go b/pkg/fourslash/tests/gen/removeDeclareInModule_test.go index 22e9e9907..f5f5a9cd5 100644 --- a/pkg/fourslash/tests/gen/removeDeclareInModule_test.go +++ b/pkg/fourslash/tests/gen/removeDeclareInModule_test.go @@ -8,8 +8,8 @@ import ( ) func TestRemoveDeclareInModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/**/export module Foo { function a(): void {} diff --git a/pkg/fourslash/tests/gen/removeDeclareKeyword_test.go b/pkg/fourslash/tests/gen/removeDeclareKeyword_test.go index 18b085df0..e494baa56 100644 --- a/pkg/fourslash/tests/gen/removeDeclareKeyword_test.go +++ b/pkg/fourslash/tests/gen/removeDeclareKeyword_test.go @@ -8,8 +8,8 @@ import ( ) func TestRemoveDeclareKeyword(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/**/declare var y; var x = new y;` diff --git a/pkg/fourslash/tests/gen/removeDeclareParamTypeAnnotation_test.go b/pkg/fourslash/tests/gen/removeDeclareParamTypeAnnotation_test.go index 6736a6d9f..e7629cd73 100644 --- a/pkg/fourslash/tests/gen/removeDeclareParamTypeAnnotation_test.go +++ b/pkg/fourslash/tests/gen/removeDeclareParamTypeAnnotation_test.go @@ -8,8 +8,8 @@ import ( ) func TestRemoveDeclareParamTypeAnnotation(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare class T { } declare function parseInt(/**/s:T):T; diff --git a/pkg/fourslash/tests/gen/removeDuplicateIdentifier_test.go b/pkg/fourslash/tests/gen/removeDuplicateIdentifier_test.go index 22932df66..19e2961f4 100644 --- a/pkg/fourslash/tests/gen/removeDuplicateIdentifier_test.go +++ b/pkg/fourslash/tests/gen/removeDuplicateIdentifier_test.go @@ -8,8 +8,8 @@ import ( ) func TestRemoveDuplicateIdentifier(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class foo{} function foo() { return null; }` diff --git a/pkg/fourslash/tests/gen/removeExportedClassFromReopenedModule_test.go b/pkg/fourslash/tests/gen/removeExportedClassFromReopenedModule_test.go index c45b2c2c1..fcdd1be8f 100644 --- a/pkg/fourslash/tests/gen/removeExportedClassFromReopenedModule_test.go +++ b/pkg/fourslash/tests/gen/removeExportedClassFromReopenedModule_test.go @@ -8,8 +8,8 @@ import ( ) func TestRemoveExportedClassFromReopenedModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module multiM { } diff --git a/pkg/fourslash/tests/gen/removeInterfaceExtendsClause_test.go b/pkg/fourslash/tests/gen/removeInterfaceExtendsClause_test.go index c628cd561..179e74325 100644 --- a/pkg/fourslash/tests/gen/removeInterfaceExtendsClause_test.go +++ b/pkg/fourslash/tests/gen/removeInterfaceExtendsClause_test.go @@ -8,8 +8,8 @@ import ( ) func TestRemoveInterfaceExtendsClause(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IFoo { } interface Array /**/extends IFoo { }` diff --git a/pkg/fourslash/tests/gen/removeInterfaceUsedAsGenericTypeArgument_test.go b/pkg/fourslash/tests/gen/removeInterfaceUsedAsGenericTypeArgument_test.go index 96789e6cb..9d8a78ce1 100644 --- a/pkg/fourslash/tests/gen/removeInterfaceUsedAsGenericTypeArgument_test.go +++ b/pkg/fourslash/tests/gen/removeInterfaceUsedAsGenericTypeArgument_test.go @@ -8,8 +8,8 @@ import ( ) func TestRemoveInterfaceUsedAsGenericTypeArgument(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/**/interface A { a: string; } interface G { } diff --git a/pkg/fourslash/tests/gen/removeParameterBetweenCommentAndParameter_test.go b/pkg/fourslash/tests/gen/removeParameterBetweenCommentAndParameter_test.go index 1073bacf1..91ea92e64 100644 --- a/pkg/fourslash/tests/gen/removeParameterBetweenCommentAndParameter_test.go +++ b/pkg/fourslash/tests/gen/removeParameterBetweenCommentAndParameter_test.go @@ -8,8 +8,8 @@ import ( ) func TestRemoveParameterBetweenCommentAndParameter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function fn(/* comment! */ /**/a: number, c) { }` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/removeVarFromModuleWithReopenedEnums_test.go b/pkg/fourslash/tests/gen/removeVarFromModuleWithReopenedEnums_test.go index 37da36c6e..9522882ec 100644 --- a/pkg/fourslash/tests/gen/removeVarFromModuleWithReopenedEnums_test.go +++ b/pkg/fourslash/tests/gen/removeVarFromModuleWithReopenedEnums_test.go @@ -8,8 +8,8 @@ import ( ) func TestRemoveVarFromModuleWithReopenedEnums(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module A { /**/var o; diff --git a/pkg/fourslash/tests/gen/rename01_test.go b/pkg/fourslash/tests/gen/rename01_test.go index 6f49fd0ac..35bb73eb6 100644 --- a/pkg/fourslash/tests/gen/rename01_test.go +++ b/pkg/fourslash/tests/gen/rename01_test.go @@ -8,8 +8,8 @@ import ( ) func TestRename01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/// [|function [|{| "contextRangeIndex": 0 |}Bar|]() { diff --git a/pkg/fourslash/tests/gen/renameAcrossMultipleProjects_test.go b/pkg/fourslash/tests/gen/renameAcrossMultipleProjects_test.go index aecd42a33..c4458a9fb 100644 --- a/pkg/fourslash/tests/gen/renameAcrossMultipleProjects_test.go +++ b/pkg/fourslash/tests/gen/renameAcrossMultipleProjects_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameAcrossMultipleProjects(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: a.ts [|var [|{| "contextRangeIndex": 0 |}x|]: number;|] diff --git a/pkg/fourslash/tests/gen/renameAlias2_test.go b/pkg/fourslash/tests/gen/renameAlias2_test.go index b098c3211..b8e2386d9 100644 --- a/pkg/fourslash/tests/gen/renameAlias2_test.go +++ b/pkg/fourslash/tests/gen/renameAlias2_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameAlias2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|module [|{| "contextRangeIndex": 0 |}SomeModule|] { export class SomeClass { } }|] import M = [|SomeModule|]; diff --git a/pkg/fourslash/tests/gen/renameAlias3_test.go b/pkg/fourslash/tests/gen/renameAlias3_test.go index c08a7fa35..1c14420cb 100644 --- a/pkg/fourslash/tests/gen/renameAlias3_test.go +++ b/pkg/fourslash/tests/gen/renameAlias3_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameAlias3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module SomeModule { [|export class [|{| "contextRangeIndex": 0 |}SomeClass|] { }|] } import M = SomeModule; diff --git a/pkg/fourslash/tests/gen/renameAliasExternalModule2_test.go b/pkg/fourslash/tests/gen/renameAliasExternalModule2_test.go index 72bb9310e..c6f59b6ad 100644 --- a/pkg/fourslash/tests/gen/renameAliasExternalModule2_test.go +++ b/pkg/fourslash/tests/gen/renameAliasExternalModule2_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameAliasExternalModule2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts [|module [|{| "contextRangeIndex": 0 |}SomeModule|] { export class SomeClass { } }|] diff --git a/pkg/fourslash/tests/gen/renameAliasExternalModule3_test.go b/pkg/fourslash/tests/gen/renameAliasExternalModule3_test.go index e82562505..e620e48d5 100644 --- a/pkg/fourslash/tests/gen/renameAliasExternalModule3_test.go +++ b/pkg/fourslash/tests/gen/renameAliasExternalModule3_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameAliasExternalModule3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts module SomeModule { [|export class [|{| "contextRangeIndex": 0 |}SomeClass|] { }|] } diff --git a/pkg/fourslash/tests/gen/renameAliasExternalModule_test.go b/pkg/fourslash/tests/gen/renameAliasExternalModule_test.go index d209af99b..d8678348f 100644 --- a/pkg/fourslash/tests/gen/renameAliasExternalModule_test.go +++ b/pkg/fourslash/tests/gen/renameAliasExternalModule_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameAliasExternalModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts module SomeModule { export class SomeClass { } } diff --git a/pkg/fourslash/tests/gen/renameAlias_test.go b/pkg/fourslash/tests/gen/renameAlias_test.go index a579a210e..4177ace7d 100644 --- a/pkg/fourslash/tests/gen/renameAlias_test.go +++ b/pkg/fourslash/tests/gen/renameAlias_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameAlias(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module SomeModule { export class SomeClass { } } [|import [|{| "contextRangeIndex": 0 |}M|] = SomeModule;|] diff --git a/pkg/fourslash/tests/gen/renameBindingElementInitializerExternal_test.go b/pkg/fourslash/tests/gen/renameBindingElementInitializerExternal_test.go index 75b43dc9e..e5d50f9eb 100644 --- a/pkg/fourslash/tests/gen/renameBindingElementInitializerExternal_test.go +++ b/pkg/fourslash/tests/gen/renameBindingElementInitializerExternal_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameBindingElementInitializerExternal(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|const [|{| "contextRangeIndex": 0 |}external|] = true;|] diff --git a/pkg/fourslash/tests/gen/renameBindingElementInitializerProperty_test.go b/pkg/fourslash/tests/gen/renameBindingElementInitializerProperty_test.go index 7eefcab43..37eb58367 100644 --- a/pkg/fourslash/tests/gen/renameBindingElementInitializerProperty_test.go +++ b/pkg/fourslash/tests/gen/renameBindingElementInitializerProperty_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameBindingElementInitializerProperty(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f([|{[|{| "contextRangeIndex": 0 |}required|], optional = [|required|]}: {[|[|{| "contextRangeIndex": 3 |}required|]: number,|] optional?: number}|]) { console.log("required", [|required|]); diff --git a/pkg/fourslash/tests/gen/renameCommentsAndStrings1_test.go b/pkg/fourslash/tests/gen/renameCommentsAndStrings1_test.go index 3c27b11fb..d5238b814 100644 --- a/pkg/fourslash/tests/gen/renameCommentsAndStrings1_test.go +++ b/pkg/fourslash/tests/gen/renameCommentsAndStrings1_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameCommentsAndStrings1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/// [|function [|{| "contextRangeIndex": 0 |}Bar|]() { diff --git a/pkg/fourslash/tests/gen/renameCommentsAndStrings2_test.go b/pkg/fourslash/tests/gen/renameCommentsAndStrings2_test.go index db6777a0a..3f95ebf2e 100644 --- a/pkg/fourslash/tests/gen/renameCommentsAndStrings2_test.go +++ b/pkg/fourslash/tests/gen/renameCommentsAndStrings2_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameCommentsAndStrings2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/// [|function [|{| "contextRangeIndex": 0 |}Bar|]() { diff --git a/pkg/fourslash/tests/gen/renameCommentsAndStrings3_test.go b/pkg/fourslash/tests/gen/renameCommentsAndStrings3_test.go index f75f09f9f..96d95645d 100644 --- a/pkg/fourslash/tests/gen/renameCommentsAndStrings3_test.go +++ b/pkg/fourslash/tests/gen/renameCommentsAndStrings3_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameCommentsAndStrings3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/// [|function [|{| "contextRangeIndex": 0 |}Bar|]() { diff --git a/pkg/fourslash/tests/gen/renameCommentsAndStrings4_test.go b/pkg/fourslash/tests/gen/renameCommentsAndStrings4_test.go index cedc3fe9f..0d2319d7d 100644 --- a/pkg/fourslash/tests/gen/renameCommentsAndStrings4_test.go +++ b/pkg/fourslash/tests/gen/renameCommentsAndStrings4_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameCommentsAndStrings4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/// [|function [|{| "contextRangeIndex": 0 |}Bar|]() { diff --git a/pkg/fourslash/tests/gen/renameContextuallyTypedProperties2_test.go b/pkg/fourslash/tests/gen/renameContextuallyTypedProperties2_test.go index 6c74035a3..db34c6296 100644 --- a/pkg/fourslash/tests/gen/renameContextuallyTypedProperties2_test.go +++ b/pkg/fourslash/tests/gen/renameContextuallyTypedProperties2_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameContextuallyTypedProperties2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { prop1: () => void; diff --git a/pkg/fourslash/tests/gen/renameContextuallyTypedProperties_test.go b/pkg/fourslash/tests/gen/renameContextuallyTypedProperties_test.go index 7333fa696..7a4629feb 100644 --- a/pkg/fourslash/tests/gen/renameContextuallyTypedProperties_test.go +++ b/pkg/fourslash/tests/gen/renameContextuallyTypedProperties_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameContextuallyTypedProperties(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { [|[|{| "contextRangeIndex": 0 |}prop1|]: () => void;|] diff --git a/pkg/fourslash/tests/gen/renameCrossJsTs01_test.go b/pkg/fourslash/tests/gen/renameCrossJsTs01_test.go index 8bfdbf8ed..a8f056f27 100644 --- a/pkg/fourslash/tests/gen/renameCrossJsTs01_test.go +++ b/pkg/fourslash/tests/gen/renameCrossJsTs01_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameCrossJsTs01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/renameDeclarationKeywords_test.go b/pkg/fourslash/tests/gen/renameDeclarationKeywords_test.go index 67b34f70b..8d07846e7 100644 --- a/pkg/fourslash/tests/gen/renameDeclarationKeywords_test.go +++ b/pkg/fourslash/tests/gen/renameDeclarationKeywords_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameDeclarationKeywords(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|{| "id": "baseDecl" |}class [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeId": "baseDecl" |}Base|] {}|] [|{| "id": "implemented1Decl" |}interface [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeId": "implemented1Decl" |}Implemented1|] {}|] diff --git a/pkg/fourslash/tests/gen/renameDefaultImportDifferentName_test.go b/pkg/fourslash/tests/gen/renameDefaultImportDifferentName_test.go index 5fce03091..c776f4ef8 100644 --- a/pkg/fourslash/tests/gen/renameDefaultImportDifferentName_test.go +++ b/pkg/fourslash/tests/gen/renameDefaultImportDifferentName_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameDefaultImportDifferentName(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: B.ts [|export default class /*1*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}C|] { diff --git a/pkg/fourslash/tests/gen/renameDefaultLibDontWork_test.go b/pkg/fourslash/tests/gen/renameDefaultLibDontWork_test.go index 2cc5da905..3c876ad0d 100644 --- a/pkg/fourslash/tests/gen/renameDefaultLibDontWork_test.go +++ b/pkg/fourslash/tests/gen/renameDefaultLibDontWork_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameDefaultLibDontWork(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: file1.ts [|var [|{| "contextRangeIndex": 0 |}test|] = "foo";|] diff --git a/pkg/fourslash/tests/gen/renameDestructuringAssignmentInForOf_test.go b/pkg/fourslash/tests/gen/renameDestructuringAssignmentInForOf_test.go index 69cd977ad..b23494907 100644 --- a/pkg/fourslash/tests/gen/renameDestructuringAssignmentInForOf_test.go +++ b/pkg/fourslash/tests/gen/renameDestructuringAssignmentInForOf_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameDestructuringAssignmentInForOf(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { [|[|{| "contextRangeIndex": 0 |}property1|]: number;|] diff --git a/pkg/fourslash/tests/gen/renameDestructuringAssignmentInFor_test.go b/pkg/fourslash/tests/gen/renameDestructuringAssignmentInFor_test.go index 06412e878..04f0eae38 100644 --- a/pkg/fourslash/tests/gen/renameDestructuringAssignmentInFor_test.go +++ b/pkg/fourslash/tests/gen/renameDestructuringAssignmentInFor_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameDestructuringAssignmentInFor(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { [|[|{| "contextRangeIndex": 0 |}property1|]: number;|] diff --git a/pkg/fourslash/tests/gen/renameDestructuringAssignmentNestedInArrayLiteral_test.go b/pkg/fourslash/tests/gen/renameDestructuringAssignmentNestedInArrayLiteral_test.go index 8d8f67719..649bb6be8 100644 --- a/pkg/fourslash/tests/gen/renameDestructuringAssignmentNestedInArrayLiteral_test.go +++ b/pkg/fourslash/tests/gen/renameDestructuringAssignmentNestedInArrayLiteral_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameDestructuringAssignmentNestedInArrayLiteral(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { [|[|{| "contextRangeIndex": 0 |}property1|]: number;|] diff --git a/pkg/fourslash/tests/gen/renameDestructuringAssignmentNestedInFor2_test.go b/pkg/fourslash/tests/gen/renameDestructuringAssignmentNestedInFor2_test.go index 38b71ece0..bf2f07fa2 100644 --- a/pkg/fourslash/tests/gen/renameDestructuringAssignmentNestedInFor2_test.go +++ b/pkg/fourslash/tests/gen/renameDestructuringAssignmentNestedInFor2_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameDestructuringAssignmentNestedInFor2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface MultiRobot { name: string; diff --git a/pkg/fourslash/tests/gen/renameDestructuringAssignmentNestedInForOf2_test.go b/pkg/fourslash/tests/gen/renameDestructuringAssignmentNestedInForOf2_test.go index 2161db0ee..df48fb0d1 100644 --- a/pkg/fourslash/tests/gen/renameDestructuringAssignmentNestedInForOf2_test.go +++ b/pkg/fourslash/tests/gen/renameDestructuringAssignmentNestedInForOf2_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameDestructuringAssignmentNestedInForOf2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface MultiRobot { name: string; diff --git a/pkg/fourslash/tests/gen/renameDestructuringAssignmentNestedInForOf_test.go b/pkg/fourslash/tests/gen/renameDestructuringAssignmentNestedInForOf_test.go index e179c713b..a007372e6 100644 --- a/pkg/fourslash/tests/gen/renameDestructuringAssignmentNestedInForOf_test.go +++ b/pkg/fourslash/tests/gen/renameDestructuringAssignmentNestedInForOf_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameDestructuringAssignmentNestedInForOf(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface MultiRobot { name: string; diff --git a/pkg/fourslash/tests/gen/renameDestructuringAssignmentNestedInFor_test.go b/pkg/fourslash/tests/gen/renameDestructuringAssignmentNestedInFor_test.go index 562085a35..dcc90e3b1 100644 --- a/pkg/fourslash/tests/gen/renameDestructuringAssignmentNestedInFor_test.go +++ b/pkg/fourslash/tests/gen/renameDestructuringAssignmentNestedInFor_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameDestructuringAssignmentNestedInFor(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface MultiRobot { name: string; diff --git a/pkg/fourslash/tests/gen/renameDestructuringAssignment_test.go b/pkg/fourslash/tests/gen/renameDestructuringAssignment_test.go index ed06a18d7..984b7fedf 100644 --- a/pkg/fourslash/tests/gen/renameDestructuringAssignment_test.go +++ b/pkg/fourslash/tests/gen/renameDestructuringAssignment_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameDestructuringAssignment(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { [|[|{| "contextRangeIndex": 0 |}x|]: number;|] diff --git a/pkg/fourslash/tests/gen/renameDestructuringClassProperty_test.go b/pkg/fourslash/tests/gen/renameDestructuringClassProperty_test.go index dbbb7fb87..26218262d 100644 --- a/pkg/fourslash/tests/gen/renameDestructuringClassProperty_test.go +++ b/pkg/fourslash/tests/gen/renameDestructuringClassProperty_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameDestructuringClassProperty(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A { [|[|{| "contextRangeIndex": 0 |}foo|]: string;|] diff --git a/pkg/fourslash/tests/gen/renameDestructuringDeclarationInForOf_test.go b/pkg/fourslash/tests/gen/renameDestructuringDeclarationInForOf_test.go index d16beabe8..95ebe4234 100644 --- a/pkg/fourslash/tests/gen/renameDestructuringDeclarationInForOf_test.go +++ b/pkg/fourslash/tests/gen/renameDestructuringDeclarationInForOf_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameDestructuringDeclarationInForOf(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { [|[|{| "contextRangeIndex": 0 |}property1|]: number;|] diff --git a/pkg/fourslash/tests/gen/renameDestructuringDeclarationInFor_test.go b/pkg/fourslash/tests/gen/renameDestructuringDeclarationInFor_test.go index 031b508e4..342a772d4 100644 --- a/pkg/fourslash/tests/gen/renameDestructuringDeclarationInFor_test.go +++ b/pkg/fourslash/tests/gen/renameDestructuringDeclarationInFor_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameDestructuringDeclarationInFor(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { [|[|{| "contextRangeIndex": 0 |}property1|]: number;|] diff --git a/pkg/fourslash/tests/gen/renameDestructuringFunctionParameter_test.go b/pkg/fourslash/tests/gen/renameDestructuringFunctionParameter_test.go index 56b8cb268..cab4130d0 100644 --- a/pkg/fourslash/tests/gen/renameDestructuringFunctionParameter_test.go +++ b/pkg/fourslash/tests/gen/renameDestructuringFunctionParameter_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameDestructuringFunctionParameter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f([|{[|{| "contextRangeIndex": 0 |}a|]}: {[|a|]}|]) { f({[|a|]}); diff --git a/pkg/fourslash/tests/gen/renameDestructuringNestedBindingElement_test.go b/pkg/fourslash/tests/gen/renameDestructuringNestedBindingElement_test.go index 09f2edf35..270212fb9 100644 --- a/pkg/fourslash/tests/gen/renameDestructuringNestedBindingElement_test.go +++ b/pkg/fourslash/tests/gen/renameDestructuringNestedBindingElement_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameDestructuringNestedBindingElement(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface MultiRobot { name: string; diff --git a/pkg/fourslash/tests/gen/renameExportCrash_test.go b/pkg/fourslash/tests/gen/renameExportCrash_test.go index 246703ae6..b7fec81e6 100644 --- a/pkg/fourslash/tests/gen/renameExportCrash_test.go +++ b/pkg/fourslash/tests/gen/renameExportCrash_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameExportCrash(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: Foo.js diff --git a/pkg/fourslash/tests/gen/renameExportSpecifier2_test.go b/pkg/fourslash/tests/gen/renameExportSpecifier2_test.go index 4eedb23df..97c3bf02d 100644 --- a/pkg/fourslash/tests/gen/renameExportSpecifier2_test.go +++ b/pkg/fourslash/tests/gen/renameExportSpecifier2_test.go @@ -10,8 +10,8 @@ import ( ) func TestRenameExportSpecifier2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts const name = {}; diff --git a/pkg/fourslash/tests/gen/renameExportSpecifier_test.go b/pkg/fourslash/tests/gen/renameExportSpecifier_test.go index c51bb3d29..3754b063b 100644 --- a/pkg/fourslash/tests/gen/renameExportSpecifier_test.go +++ b/pkg/fourslash/tests/gen/renameExportSpecifier_test.go @@ -10,8 +10,8 @@ import ( ) func TestRenameExportSpecifier(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts const name = {}; diff --git a/pkg/fourslash/tests/gen/renameForAliasingExport01_test.go b/pkg/fourslash/tests/gen/renameForAliasingExport01_test.go index c8ce8ebaf..349dceaac 100644 --- a/pkg/fourslash/tests/gen/renameForAliasingExport01_test.go +++ b/pkg/fourslash/tests/gen/renameForAliasingExport01_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameForAliasingExport01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: foo.ts let x = 1; diff --git a/pkg/fourslash/tests/gen/renameForAliasingExport02_test.go b/pkg/fourslash/tests/gen/renameForAliasingExport02_test.go index 97643124d..c311759b2 100644 --- a/pkg/fourslash/tests/gen/renameForAliasingExport02_test.go +++ b/pkg/fourslash/tests/gen/renameForAliasingExport02_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameForAliasingExport02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: foo.ts let x = 1; diff --git a/pkg/fourslash/tests/gen/renameForDefaultExport04_test.go b/pkg/fourslash/tests/gen/renameForDefaultExport04_test.go index 7b789e5f9..e1d7145d0 100644 --- a/pkg/fourslash/tests/gen/renameForDefaultExport04_test.go +++ b/pkg/fourslash/tests/gen/renameForDefaultExport04_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameForDefaultExport04(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: foo.ts export default class /**/[|DefaultExportedClass|] { diff --git a/pkg/fourslash/tests/gen/renameForDefaultExport05_test.go b/pkg/fourslash/tests/gen/renameForDefaultExport05_test.go index 4b35bc8ae..b83cd8cff 100644 --- a/pkg/fourslash/tests/gen/renameForDefaultExport05_test.go +++ b/pkg/fourslash/tests/gen/renameForDefaultExport05_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameForDefaultExport05(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: foo.ts export default class DefaultExportedClass { diff --git a/pkg/fourslash/tests/gen/renameForDefaultExport06_test.go b/pkg/fourslash/tests/gen/renameForDefaultExport06_test.go index a9a760297..56e1ba37d 100644 --- a/pkg/fourslash/tests/gen/renameForDefaultExport06_test.go +++ b/pkg/fourslash/tests/gen/renameForDefaultExport06_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameForDefaultExport06(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: foo.ts export default class DefaultExportedClass { diff --git a/pkg/fourslash/tests/gen/renameForDefaultExport07_test.go b/pkg/fourslash/tests/gen/renameForDefaultExport07_test.go index 69a5892ac..6c1194788 100644 --- a/pkg/fourslash/tests/gen/renameForDefaultExport07_test.go +++ b/pkg/fourslash/tests/gen/renameForDefaultExport07_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameForDefaultExport07(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: foo.ts export default function /**/[|DefaultExportedFunction|]() { diff --git a/pkg/fourslash/tests/gen/renameForDefaultExport08_test.go b/pkg/fourslash/tests/gen/renameForDefaultExport08_test.go index 87394dd85..0c644d097 100644 --- a/pkg/fourslash/tests/gen/renameForDefaultExport08_test.go +++ b/pkg/fourslash/tests/gen/renameForDefaultExport08_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameForDefaultExport08(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: foo.ts export default function DefaultExportedFunction() { diff --git a/pkg/fourslash/tests/gen/renameForDefaultExport09_test.go b/pkg/fourslash/tests/gen/renameForDefaultExport09_test.go index d1b4fa1ec..36308ca48 100644 --- a/pkg/fourslash/tests/gen/renameForDefaultExport09_test.go +++ b/pkg/fourslash/tests/gen/renameForDefaultExport09_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameForDefaultExport09(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: foo.ts function /**/[|f|]() { diff --git a/pkg/fourslash/tests/gen/renameForStringLiteral_test.go b/pkg/fourslash/tests/gen/renameForStringLiteral_test.go index 86d484924..700b7dcdd 100644 --- a/pkg/fourslash/tests/gen/renameForStringLiteral_test.go +++ b/pkg/fourslash/tests/gen/renameForStringLiteral_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameForStringLiteral(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: /a.ts interface Foo { diff --git a/pkg/fourslash/tests/gen/renameFromNodeModulesDep1_test.go b/pkg/fourslash/tests/gen/renameFromNodeModulesDep1_test.go index d5d744a6d..4a1dd09fc 100644 --- a/pkg/fourslash/tests/gen/renameFromNodeModulesDep1_test.go +++ b/pkg/fourslash/tests/gen/renameFromNodeModulesDep1_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameFromNodeModulesDep1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /index.ts import { /*okWithAlias*/[|Foo|] } from "foo"; diff --git a/pkg/fourslash/tests/gen/renameFromNodeModulesDep2_test.go b/pkg/fourslash/tests/gen/renameFromNodeModulesDep2_test.go index 53d4fed68..ef435b4d5 100644 --- a/pkg/fourslash/tests/gen/renameFromNodeModulesDep2_test.go +++ b/pkg/fourslash/tests/gen/renameFromNodeModulesDep2_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameFromNodeModulesDep2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /node_modules/first/index.d.ts import { /*okWithAlias*/[|Foo|] } from "foo"; diff --git a/pkg/fourslash/tests/gen/renameFromNodeModulesDep3_test.go b/pkg/fourslash/tests/gen/renameFromNodeModulesDep3_test.go index 93132f912..bc5c20c01 100644 --- a/pkg/fourslash/tests/gen/renameFromNodeModulesDep3_test.go +++ b/pkg/fourslash/tests/gen/renameFromNodeModulesDep3_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameFromNodeModulesDep3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /packages/first/index.d.ts import { /*ok*/[|Foo|] } from "foo"; diff --git a/pkg/fourslash/tests/gen/renameFromNodeModulesDep4_test.go b/pkg/fourslash/tests/gen/renameFromNodeModulesDep4_test.go index 915987e5e..5ab273a1e 100644 --- a/pkg/fourslash/tests/gen/renameFromNodeModulesDep4_test.go +++ b/pkg/fourslash/tests/gen/renameFromNodeModulesDep4_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameFromNodeModulesDep4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /index.ts import hljs from "highlight.js/lib/core" diff --git a/pkg/fourslash/tests/gen/renameFunctionParameter1_test.go b/pkg/fourslash/tests/gen/renameFunctionParameter1_test.go index 770aaa91d..0a0ba4538 100644 --- a/pkg/fourslash/tests/gen/renameFunctionParameter1_test.go +++ b/pkg/fourslash/tests/gen/renameFunctionParameter1_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameFunctionParameter1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function Foo() { /** diff --git a/pkg/fourslash/tests/gen/renameFunctionParameter2_test.go b/pkg/fourslash/tests/gen/renameFunctionParameter2_test.go index d94ca56a5..ef15b935f 100644 --- a/pkg/fourslash/tests/gen/renameFunctionParameter2_test.go +++ b/pkg/fourslash/tests/gen/renameFunctionParameter2_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameFunctionParameter2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * @param {number} p diff --git a/pkg/fourslash/tests/gen/renameImportAndExportInDiffFiles_test.go b/pkg/fourslash/tests/gen/renameImportAndExportInDiffFiles_test.go index d7ccd0d1a..e6d8a53db 100644 --- a/pkg/fourslash/tests/gen/renameImportAndExportInDiffFiles_test.go +++ b/pkg/fourslash/tests/gen/renameImportAndExportInDiffFiles_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameImportAndExportInDiffFiles(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts [|export var /*1*/[|{| "isDefinition": true, "contextRangeIndex": 0 |}a|];|] diff --git a/pkg/fourslash/tests/gen/renameImportAndExport_test.go b/pkg/fourslash/tests/gen/renameImportAndExport_test.go index 17e149112..4bc3ee2c2 100644 --- a/pkg/fourslash/tests/gen/renameImportAndExport_test.go +++ b/pkg/fourslash/tests/gen/renameImportAndExport_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameImportAndExport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|import [|{| "contextRangeIndex": 0 |}a|] from "module";|] [|export { [|{| "contextRangeIndex": 2 |}a|] };|]` diff --git a/pkg/fourslash/tests/gen/renameImportAndShorthand_test.go b/pkg/fourslash/tests/gen/renameImportAndShorthand_test.go index 70e8af5df..338cb8406 100644 --- a/pkg/fourslash/tests/gen/renameImportAndShorthand_test.go +++ b/pkg/fourslash/tests/gen/renameImportAndShorthand_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameImportAndShorthand(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|import [|{| "contextRangeIndex": 0 |}foo|] from 'bar';|] const bar = { [|foo|] };` diff --git a/pkg/fourslash/tests/gen/renameImportNamespaceAndShorthand_test.go b/pkg/fourslash/tests/gen/renameImportNamespaceAndShorthand_test.go index eee4b2da2..9b616cd74 100644 --- a/pkg/fourslash/tests/gen/renameImportNamespaceAndShorthand_test.go +++ b/pkg/fourslash/tests/gen/renameImportNamespaceAndShorthand_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameImportNamespaceAndShorthand(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|import * as [|{| "contextRangeIndex": 0 |}foo|] from 'bar';|] const bar = { [|foo|] };` diff --git a/pkg/fourslash/tests/gen/renameImportOfExportEquals2_test.go b/pkg/fourslash/tests/gen/renameImportOfExportEquals2_test.go index 4ffcae71b..dc165e262 100644 --- a/pkg/fourslash/tests/gen/renameImportOfExportEquals2_test.go +++ b/pkg/fourslash/tests/gen/renameImportOfExportEquals2_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameImportOfExportEquals2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|declare namespace /*N*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}N|] { export var x: number; diff --git a/pkg/fourslash/tests/gen/renameImportOfExportEquals_test.go b/pkg/fourslash/tests/gen/renameImportOfExportEquals_test.go index a842b7ef4..8beee2268 100644 --- a/pkg/fourslash/tests/gen/renameImportOfExportEquals_test.go +++ b/pkg/fourslash/tests/gen/renameImportOfExportEquals_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameImportOfExportEquals(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|declare namespace /*N*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}N|] { [|export var /*x*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 2 |}x|]: number;|] diff --git a/pkg/fourslash/tests/gen/renameImportOfReExport_test.go b/pkg/fourslash/tests/gen/renameImportOfReExport_test.go index 77e14ef2e..3ccffc692 100644 --- a/pkg/fourslash/tests/gen/renameImportOfReExport_test.go +++ b/pkg/fourslash/tests/gen/renameImportOfReExport_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameImportOfReExport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noLib: true declare module "a" { diff --git a/pkg/fourslash/tests/gen/renameImportRequire_test.go b/pkg/fourslash/tests/gen/renameImportRequire_test.go index 8ab152442..57664b39b 100644 --- a/pkg/fourslash/tests/gen/renameImportRequire_test.go +++ b/pkg/fourslash/tests/gen/renameImportRequire_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameImportRequire(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts [|import [|{| "contextRangeIndex": 0 |}e|] = require("mod4");|] diff --git a/pkg/fourslash/tests/gen/renameImportSpecifierPropertyName_test.go b/pkg/fourslash/tests/gen/renameImportSpecifierPropertyName_test.go index 770ec6ecc..9651a92f9 100644 --- a/pkg/fourslash/tests/gen/renameImportSpecifierPropertyName_test.go +++ b/pkg/fourslash/tests/gen/renameImportSpecifierPropertyName_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameImportSpecifierPropertyName(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: canada.ts export interface /**/Ginger {} diff --git a/pkg/fourslash/tests/gen/renameInConfiguredProject_test.go b/pkg/fourslash/tests/gen/renameInConfiguredProject_test.go index 9f1a7194b..a1e4bb276 100644 --- a/pkg/fourslash/tests/gen/renameInConfiguredProject_test.go +++ b/pkg/fourslash/tests/gen/renameInConfiguredProject_test.go @@ -9,8 +9,8 @@ import ( ) func TestRenameInConfiguredProject(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: referencesForGlobals_1.ts [|var [|{| "contextRangeIndex": 0 |}globalName|] = 0;|] diff --git a/pkg/fourslash/tests/gen/renameInfoForFunctionExpression01_test.go b/pkg/fourslash/tests/gen/renameInfoForFunctionExpression01_test.go index ee6cabb19..ec2ca4164 100644 --- a/pkg/fourslash/tests/gen/renameInfoForFunctionExpression01_test.go +++ b/pkg/fourslash/tests/gen/renameInfoForFunctionExpression01_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameInfoForFunctionExpression01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = function /**/[|f|](g: any, h: any) { f(f, g); diff --git a/pkg/fourslash/tests/gen/renameInheritedProperties1_test.go b/pkg/fourslash/tests/gen/renameInheritedProperties1_test.go index 12294fca2..505621a89 100644 --- a/pkg/fourslash/tests/gen/renameInheritedProperties1_test.go +++ b/pkg/fourslash/tests/gen/renameInheritedProperties1_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameInheritedProperties1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class class1 extends class1 { [|[|{| "contextRangeIndex": 0 |}propName|]: string;|] diff --git a/pkg/fourslash/tests/gen/renameInheritedProperties2_test.go b/pkg/fourslash/tests/gen/renameInheritedProperties2_test.go index d656b495a..0db3686df 100644 --- a/pkg/fourslash/tests/gen/renameInheritedProperties2_test.go +++ b/pkg/fourslash/tests/gen/renameInheritedProperties2_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameInheritedProperties2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class class1 extends class1 { [|[|{| "contextRangeIndex": 0 |}doStuff|]() { }|] diff --git a/pkg/fourslash/tests/gen/renameInheritedProperties3_test.go b/pkg/fourslash/tests/gen/renameInheritedProperties3_test.go index a6b1dec40..38e79c31e 100644 --- a/pkg/fourslash/tests/gen/renameInheritedProperties3_test.go +++ b/pkg/fourslash/tests/gen/renameInheritedProperties3_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameInheritedProperties3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface interface1 extends interface1 { [|[|{| "contextRangeIndex": 0 |}propName|]: string;|] diff --git a/pkg/fourslash/tests/gen/renameInheritedProperties4_test.go b/pkg/fourslash/tests/gen/renameInheritedProperties4_test.go index 49e1639bc..97585e3aa 100644 --- a/pkg/fourslash/tests/gen/renameInheritedProperties4_test.go +++ b/pkg/fourslash/tests/gen/renameInheritedProperties4_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameInheritedProperties4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface interface1 extends interface1 { [|[|{| "contextRangeIndex": 0 |}doStuff|](): string;|] diff --git a/pkg/fourslash/tests/gen/renameInheritedProperties5_test.go b/pkg/fourslash/tests/gen/renameInheritedProperties5_test.go index 6f71869f1..cf8956f99 100644 --- a/pkg/fourslash/tests/gen/renameInheritedProperties5_test.go +++ b/pkg/fourslash/tests/gen/renameInheritedProperties5_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameInheritedProperties5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface C extends D { propC: number; diff --git a/pkg/fourslash/tests/gen/renameInheritedProperties6_test.go b/pkg/fourslash/tests/gen/renameInheritedProperties6_test.go index ce026eaee..cca06ada4 100644 --- a/pkg/fourslash/tests/gen/renameInheritedProperties6_test.go +++ b/pkg/fourslash/tests/gen/renameInheritedProperties6_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameInheritedProperties6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface C extends D { propD: number; diff --git a/pkg/fourslash/tests/gen/renameInheritedProperties7_test.go b/pkg/fourslash/tests/gen/renameInheritedProperties7_test.go index 44dc0254c..16618cabd 100644 --- a/pkg/fourslash/tests/gen/renameInheritedProperties7_test.go +++ b/pkg/fourslash/tests/gen/renameInheritedProperties7_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameInheritedProperties7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C extends D { [|[|{| "contextRangeIndex": 0 |}prop1|]: string;|] diff --git a/pkg/fourslash/tests/gen/renameInheritedProperties8_test.go b/pkg/fourslash/tests/gen/renameInheritedProperties8_test.go index fd69f4aad..a6677a03a 100644 --- a/pkg/fourslash/tests/gen/renameInheritedProperties8_test.go +++ b/pkg/fourslash/tests/gen/renameInheritedProperties8_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameInheritedProperties8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C implements D { [|[|{| "contextRangeIndex": 0 |}prop1|]: string;|] diff --git a/pkg/fourslash/tests/gen/renameJSDocNamepath_test.go b/pkg/fourslash/tests/gen/renameJSDocNamepath_test.go index 5308dd391..dfb95bcd2 100644 --- a/pkg/fourslash/tests/gen/renameJSDocNamepath_test.go +++ b/pkg/fourslash/tests/gen/renameJSDocNamepath_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameJSDocNamepath(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noLib: true /** diff --git a/pkg/fourslash/tests/gen/renameJsDocImportTag_test.go b/pkg/fourslash/tests/gen/renameJsDocImportTag_test.go index 619f2f5ce..8b61436d1 100644 --- a/pkg/fourslash/tests/gen/renameJsDocImportTag_test.go +++ b/pkg/fourslash/tests/gen/renameJsDocImportTag_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameJsDocImportTag(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJS: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/renameJsDocTypeLiteral_test.go b/pkg/fourslash/tests/gen/renameJsDocTypeLiteral_test.go index 4b782ffb3..9d640c653 100644 --- a/pkg/fourslash/tests/gen/renameJsDocTypeLiteral_test.go +++ b/pkg/fourslash/tests/gen/renameJsDocTypeLiteral_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameJsDocTypeLiteral(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/renameJsExports01_test.go b/pkg/fourslash/tests/gen/renameJsExports01_test.go index 1d78553fc..7244926aa 100644 --- a/pkg/fourslash/tests/gen/renameJsExports01_test.go +++ b/pkg/fourslash/tests/gen/renameJsExports01_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameJsExports01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/renameJsExports02_test.go b/pkg/fourslash/tests/gen/renameJsExports02_test.go index 8a25722d2..710a870f3 100644 --- a/pkg/fourslash/tests/gen/renameJsExports02_test.go +++ b/pkg/fourslash/tests/gen/renameJsExports02_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameJsExports02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/renameJsExports03_test.go b/pkg/fourslash/tests/gen/renameJsExports03_test.go index c6c8dd682..133378a48 100644 --- a/pkg/fourslash/tests/gen/renameJsExports03_test.go +++ b/pkg/fourslash/tests/gen/renameJsExports03_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameJsExports03(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/renameJsOverloadedFunctionParameter_test.go b/pkg/fourslash/tests/gen/renameJsOverloadedFunctionParameter_test.go index 27c06c974..b346a3a9b 100644 --- a/pkg/fourslash/tests/gen/renameJsOverloadedFunctionParameter_test.go +++ b/pkg/fourslash/tests/gen/renameJsOverloadedFunctionParameter_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameJsOverloadedFunctionParameter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/renameJsPropertyAssignment2_test.go b/pkg/fourslash/tests/gen/renameJsPropertyAssignment2_test.go index 580a18f35..66ed212bb 100644 --- a/pkg/fourslash/tests/gen/renameJsPropertyAssignment2_test.go +++ b/pkg/fourslash/tests/gen/renameJsPropertyAssignment2_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameJsPropertyAssignment2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/renameJsPropertyAssignment3_test.go b/pkg/fourslash/tests/gen/renameJsPropertyAssignment3_test.go index d3ea2436e..c68d714e1 100644 --- a/pkg/fourslash/tests/gen/renameJsPropertyAssignment3_test.go +++ b/pkg/fourslash/tests/gen/renameJsPropertyAssignment3_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameJsPropertyAssignment3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/renameJsPropertyAssignment4_test.go b/pkg/fourslash/tests/gen/renameJsPropertyAssignment4_test.go index d30306442..7c5463a66 100644 --- a/pkg/fourslash/tests/gen/renameJsPropertyAssignment4_test.go +++ b/pkg/fourslash/tests/gen/renameJsPropertyAssignment4_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameJsPropertyAssignment4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /a.js diff --git a/pkg/fourslash/tests/gen/renameJsPropertyAssignment_test.go b/pkg/fourslash/tests/gen/renameJsPropertyAssignment_test.go index 17d5304ce..5a5f4b258 100644 --- a/pkg/fourslash/tests/gen/renameJsPropertyAssignment_test.go +++ b/pkg/fourslash/tests/gen/renameJsPropertyAssignment_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameJsPropertyAssignment(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/renameJsPrototypeProperty01_test.go b/pkg/fourslash/tests/gen/renameJsPrototypeProperty01_test.go index 9f9a1ab8c..1b3568bca 100644 --- a/pkg/fourslash/tests/gen/renameJsPrototypeProperty01_test.go +++ b/pkg/fourslash/tests/gen/renameJsPrototypeProperty01_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameJsPrototypeProperty01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/renameJsPrototypeProperty02_test.go b/pkg/fourslash/tests/gen/renameJsPrototypeProperty02_test.go index 39765fe7c..4cad2a907 100644 --- a/pkg/fourslash/tests/gen/renameJsPrototypeProperty02_test.go +++ b/pkg/fourslash/tests/gen/renameJsPrototypeProperty02_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameJsPrototypeProperty02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/renameJsSpecialAssignmentRhs1_test.go b/pkg/fourslash/tests/gen/renameJsSpecialAssignmentRhs1_test.go index 61da5bd68..781a86596 100644 --- a/pkg/fourslash/tests/gen/renameJsSpecialAssignmentRhs1_test.go +++ b/pkg/fourslash/tests/gen/renameJsSpecialAssignmentRhs1_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameJsSpecialAssignmentRhs1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/renameJsSpecialAssignmentRhs2_test.go b/pkg/fourslash/tests/gen/renameJsSpecialAssignmentRhs2_test.go index 00089947b..034391cda 100644 --- a/pkg/fourslash/tests/gen/renameJsSpecialAssignmentRhs2_test.go +++ b/pkg/fourslash/tests/gen/renameJsSpecialAssignmentRhs2_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameJsSpecialAssignmentRhs2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/renameJsThisProperty01_test.go b/pkg/fourslash/tests/gen/renameJsThisProperty01_test.go index d0a5de8eb..ac56e1214 100644 --- a/pkg/fourslash/tests/gen/renameJsThisProperty01_test.go +++ b/pkg/fourslash/tests/gen/renameJsThisProperty01_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameJsThisProperty01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/renameJsThisProperty03_test.go b/pkg/fourslash/tests/gen/renameJsThisProperty03_test.go index 32b96ab2b..586f83aa9 100644 --- a/pkg/fourslash/tests/gen/renameJsThisProperty03_test.go +++ b/pkg/fourslash/tests/gen/renameJsThisProperty03_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameJsThisProperty03(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/renameJsThisProperty05_test.go b/pkg/fourslash/tests/gen/renameJsThisProperty05_test.go index 1546f400e..34f77f955 100644 --- a/pkg/fourslash/tests/gen/renameJsThisProperty05_test.go +++ b/pkg/fourslash/tests/gen/renameJsThisProperty05_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameJsThisProperty05(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/renameJsThisProperty06_test.go b/pkg/fourslash/tests/gen/renameJsThisProperty06_test.go index b60b881bd..281f63e6a 100644 --- a/pkg/fourslash/tests/gen/renameJsThisProperty06_test.go +++ b/pkg/fourslash/tests/gen/renameJsThisProperty06_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameJsThisProperty06(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/renameLabel1_test.go b/pkg/fourslash/tests/gen/renameLabel1_test.go index cd47475b3..4320f5adc 100644 --- a/pkg/fourslash/tests/gen/renameLabel1_test.go +++ b/pkg/fourslash/tests/gen/renameLabel1_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameLabel1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `foo: { break /**/foo; diff --git a/pkg/fourslash/tests/gen/renameLabel2_test.go b/pkg/fourslash/tests/gen/renameLabel2_test.go index 255f7f2ff..83dac6395 100644 --- a/pkg/fourslash/tests/gen/renameLabel2_test.go +++ b/pkg/fourslash/tests/gen/renameLabel2_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameLabel2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/**/foo: { break foo; diff --git a/pkg/fourslash/tests/gen/renameLabel3_test.go b/pkg/fourslash/tests/gen/renameLabel3_test.go index 46c5a2f69..75d785706 100644 --- a/pkg/fourslash/tests/gen/renameLabel3_test.go +++ b/pkg/fourslash/tests/gen/renameLabel3_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameLabel3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/**/loop: for (let i = 0; i <= 10; i++) { diff --git a/pkg/fourslash/tests/gen/renameLabel4_test.go b/pkg/fourslash/tests/gen/renameLabel4_test.go index 018b5c6bd..8763edd78 100644 --- a/pkg/fourslash/tests/gen/renameLabel4_test.go +++ b/pkg/fourslash/tests/gen/renameLabel4_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameLabel4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `loop: for (let i = 0; i <= 10; i++) { diff --git a/pkg/fourslash/tests/gen/renameLabel5_test.go b/pkg/fourslash/tests/gen/renameLabel5_test.go index 83ac5cd42..cb5a043bd 100644 --- a/pkg/fourslash/tests/gen/renameLabel5_test.go +++ b/pkg/fourslash/tests/gen/renameLabel5_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameLabel5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `loop1: for (let i = 0; i <= 10; i++) { loop2: for (let j = 0; j <= 10; j++) { diff --git a/pkg/fourslash/tests/gen/renameLabel6_test.go b/pkg/fourslash/tests/gen/renameLabel6_test.go index 3c1548267..64cda6079 100644 --- a/pkg/fourslash/tests/gen/renameLabel6_test.go +++ b/pkg/fourslash/tests/gen/renameLabel6_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameLabel6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `loop1: for (let i = 0; i <= 10; i++) { loop2: for (let j = 0; j <= 10; j++) { diff --git a/pkg/fourslash/tests/gen/renameLocationsForClassExpression01_test.go b/pkg/fourslash/tests/gen/renameLocationsForClassExpression01_test.go index f5a847a8b..0efb41092 100644 --- a/pkg/fourslash/tests/gen/renameLocationsForClassExpression01_test.go +++ b/pkg/fourslash/tests/gen/renameLocationsForClassExpression01_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameLocationsForClassExpression01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { } diff --git a/pkg/fourslash/tests/gen/renameLocationsForFunctionExpression01_test.go b/pkg/fourslash/tests/gen/renameLocationsForFunctionExpression01_test.go index d9de66884..5be84aeb4 100644 --- a/pkg/fourslash/tests/gen/renameLocationsForFunctionExpression01_test.go +++ b/pkg/fourslash/tests/gen/renameLocationsForFunctionExpression01_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameLocationsForFunctionExpression01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = [|function [|{| "contextRangeIndex": 0 |}f|](g: any, h: any) { [|f|]([|f|], g); diff --git a/pkg/fourslash/tests/gen/renameLocationsForFunctionExpression02_test.go b/pkg/fourslash/tests/gen/renameLocationsForFunctionExpression02_test.go index 1bf43e07b..92cb7aace 100644 --- a/pkg/fourslash/tests/gen/renameLocationsForFunctionExpression02_test.go +++ b/pkg/fourslash/tests/gen/renameLocationsForFunctionExpression02_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameLocationsForFunctionExpression02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f() { diff --git a/pkg/fourslash/tests/gen/renameModifiers_test.go b/pkg/fourslash/tests/gen/renameModifiers_test.go index 4292d86b8..922b36ca1 100644 --- a/pkg/fourslash/tests/gen/renameModifiers_test.go +++ b/pkg/fourslash/tests/gen/renameModifiers_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameModifiers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|[|declare|] [|abstract|] class [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeDelta": -3 |}C1|] { [|[|static|] [|{| "isWriteAccess": true, "isDefinition": true, "contextRangeDelta": -2 |}a|];|] diff --git a/pkg/fourslash/tests/gen/renameModuleExportsProperties1_test.go b/pkg/fourslash/tests/gen/renameModuleExportsProperties1_test.go index 486db442b..3c42a08a9 100644 --- a/pkg/fourslash/tests/gen/renameModuleExportsProperties1_test.go +++ b/pkg/fourslash/tests/gen/renameModuleExportsProperties1_test.go @@ -10,8 +10,8 @@ import ( ) func TestRenameModuleExportsProperties1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|class [|{| "contextRangeIndex": 0 |}A|] {}|] module.exports = { [|A|] }` diff --git a/pkg/fourslash/tests/gen/renameModuleExportsProperties2_test.go b/pkg/fourslash/tests/gen/renameModuleExportsProperties2_test.go index c14f5efd6..4b2713823 100644 --- a/pkg/fourslash/tests/gen/renameModuleExportsProperties2_test.go +++ b/pkg/fourslash/tests/gen/renameModuleExportsProperties2_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameModuleExportsProperties2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[|class [|{| "contextRangeIndex": 0 |}A|] {}|] module.exports = { B: [|A|] }` diff --git a/pkg/fourslash/tests/gen/renameModuleExportsProperties3_test.go b/pkg/fourslash/tests/gen/renameModuleExportsProperties3_test.go index c35e97ab3..f8ce7703b 100644 --- a/pkg/fourslash/tests/gen/renameModuleExportsProperties3_test.go +++ b/pkg/fourslash/tests/gen/renameModuleExportsProperties3_test.go @@ -10,8 +10,8 @@ import ( ) func TestRenameModuleExportsProperties3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/renameModuleToVar_test.go b/pkg/fourslash/tests/gen/renameModuleToVar_test.go index 03a117402..2f7009208 100644 --- a/pkg/fourslash/tests/gen/renameModuleToVar_test.go +++ b/pkg/fourslash/tests/gen/renameModuleToVar_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameModuleToVar(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IMod { y: number; diff --git a/pkg/fourslash/tests/gen/renameNameOnEnumMember_test.go b/pkg/fourslash/tests/gen/renameNameOnEnumMember_test.go index bb02c06e4..0c756ace7 100644 --- a/pkg/fourslash/tests/gen/renameNameOnEnumMember_test.go +++ b/pkg/fourslash/tests/gen/renameNameOnEnumMember_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameNameOnEnumMember(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum e { firstMember, diff --git a/pkg/fourslash/tests/gen/renameNamedImport_test.go b/pkg/fourslash/tests/gen/renameNamedImport_test.go index fc2d4f1f1..b92f994c5 100644 --- a/pkg/fourslash/tests/gen/renameNamedImport_test.go +++ b/pkg/fourslash/tests/gen/renameNamedImport_test.go @@ -10,8 +10,8 @@ import ( ) func TestRenameNamedImport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/lib/tsconfig.json {} diff --git a/pkg/fourslash/tests/gen/renameNamespaceImport_test.go b/pkg/fourslash/tests/gen/renameNamespaceImport_test.go index 81ae70696..d565e83be 100644 --- a/pkg/fourslash/tests/gen/renameNamespaceImport_test.go +++ b/pkg/fourslash/tests/gen/renameNamespaceImport_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameNamespaceImport(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /home/src/workspaces/project/lib/tsconfig.json {} diff --git a/pkg/fourslash/tests/gen/renameNamespace_test.go b/pkg/fourslash/tests/gen/renameNamespace_test.go index 4343127db..7865e0f49 100644 --- a/pkg/fourslash/tests/gen/renameNamespace_test.go +++ b/pkg/fourslash/tests/gen/renameNamespace_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameNamespace(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `namespace /**/NS { export const enum E { diff --git a/pkg/fourslash/tests/gen/renameNoDefaultLib_test.go b/pkg/fourslash/tests/gen/renameNoDefaultLib_test.go index 036ac6c24..a66d7fd16 100644 --- a/pkg/fourslash/tests/gen/renameNoDefaultLib_test.go +++ b/pkg/fourslash/tests/gen/renameNoDefaultLib_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameNoDefaultLib(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @checkJs: true // @allowJs: true diff --git a/pkg/fourslash/tests/gen/renameNumericalIndexSingleQuoted_test.go b/pkg/fourslash/tests/gen/renameNumericalIndexSingleQuoted_test.go index e0a689bf8..9ad80fe1b 100644 --- a/pkg/fourslash/tests/gen/renameNumericalIndexSingleQuoted_test.go +++ b/pkg/fourslash/tests/gen/renameNumericalIndexSingleQuoted_test.go @@ -9,8 +9,8 @@ import ( ) func TestRenameNumericalIndexSingleQuoted(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const foo = { [|0|]: true }; foo[[|0|]];` diff --git a/pkg/fourslash/tests/gen/renameNumericalIndex_test.go b/pkg/fourslash/tests/gen/renameNumericalIndex_test.go index bbd9f73ce..b90b6753a 100644 --- a/pkg/fourslash/tests/gen/renameNumericalIndex_test.go +++ b/pkg/fourslash/tests/gen/renameNumericalIndex_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameNumericalIndex(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const foo = { [|0|]: true }; foo[[|0|]];` diff --git a/pkg/fourslash/tests/gen/renameObjectBindingElementPropertyName01_test.go b/pkg/fourslash/tests/gen/renameObjectBindingElementPropertyName01_test.go index b067523aa..51eed7ace 100644 --- a/pkg/fourslash/tests/gen/renameObjectBindingElementPropertyName01_test.go +++ b/pkg/fourslash/tests/gen/renameObjectBindingElementPropertyName01_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameObjectBindingElementPropertyName01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { [|[|{| "contextRangeIndex": 0 |}property1|]: number;|] diff --git a/pkg/fourslash/tests/gen/renameObjectSpreadAssignment_test.go b/pkg/fourslash/tests/gen/renameObjectSpreadAssignment_test.go index 9495a0aff..24dee975b 100644 --- a/pkg/fourslash/tests/gen/renameObjectSpreadAssignment_test.go +++ b/pkg/fourslash/tests/gen/renameObjectSpreadAssignment_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameObjectSpreadAssignment(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface A1 { a: number }; interface A2 { a?: number }; diff --git a/pkg/fourslash/tests/gen/renameObjectSpread_test.go b/pkg/fourslash/tests/gen/renameObjectSpread_test.go index c11f9a8cd..2dbe29e6f 100644 --- a/pkg/fourslash/tests/gen/renameObjectSpread_test.go +++ b/pkg/fourslash/tests/gen/renameObjectSpread_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameObjectSpread(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface A1 { [|[|{| "contextRangeIndex": 0 |}a|]: number|] }; interface A2 { [|[|{| "contextRangeIndex": 2 |}a|]?: number|] }; diff --git a/pkg/fourslash/tests/gen/renameParameterPropertyDeclaration1_test.go b/pkg/fourslash/tests/gen/renameParameterPropertyDeclaration1_test.go index 5cc73ab1b..50d4687d9 100644 --- a/pkg/fourslash/tests/gen/renameParameterPropertyDeclaration1_test.go +++ b/pkg/fourslash/tests/gen/renameParameterPropertyDeclaration1_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameParameterPropertyDeclaration1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { constructor([|private [|{| "contextRangeIndex": 0 |}privateParam|]: number|]) { diff --git a/pkg/fourslash/tests/gen/renameParameterPropertyDeclaration2_test.go b/pkg/fourslash/tests/gen/renameParameterPropertyDeclaration2_test.go index 00837b44e..c535a0e63 100644 --- a/pkg/fourslash/tests/gen/renameParameterPropertyDeclaration2_test.go +++ b/pkg/fourslash/tests/gen/renameParameterPropertyDeclaration2_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameParameterPropertyDeclaration2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { constructor([|public [|{| "contextRangeIndex": 0 |}publicParam|]: number|]) { diff --git a/pkg/fourslash/tests/gen/renameParameterPropertyDeclaration3_test.go b/pkg/fourslash/tests/gen/renameParameterPropertyDeclaration3_test.go index 55251a474..821f1adab 100644 --- a/pkg/fourslash/tests/gen/renameParameterPropertyDeclaration3_test.go +++ b/pkg/fourslash/tests/gen/renameParameterPropertyDeclaration3_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameParameterPropertyDeclaration3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { constructor([|protected [|{| "contextRangeIndex": 0 |}protectedParam|]: number|]) { diff --git a/pkg/fourslash/tests/gen/renameParameterPropertyDeclaration4_test.go b/pkg/fourslash/tests/gen/renameParameterPropertyDeclaration4_test.go index 8a32c1b46..ba9fe0f39 100644 --- a/pkg/fourslash/tests/gen/renameParameterPropertyDeclaration4_test.go +++ b/pkg/fourslash/tests/gen/renameParameterPropertyDeclaration4_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameParameterPropertyDeclaration4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { constructor([|protected { [|{| "contextRangeIndex": 0 |}protectedParam|] }|]) { diff --git a/pkg/fourslash/tests/gen/renameParameterPropertyDeclaration5_test.go b/pkg/fourslash/tests/gen/renameParameterPropertyDeclaration5_test.go index 212c127aa..4696cba53 100644 --- a/pkg/fourslash/tests/gen/renameParameterPropertyDeclaration5_test.go +++ b/pkg/fourslash/tests/gen/renameParameterPropertyDeclaration5_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameParameterPropertyDeclaration5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { constructor([|protected [ [|{| "contextRangeIndex": 0 |}protectedParam|] ]|]) { diff --git a/pkg/fourslash/tests/gen/renamePrivateAccessor_test.go b/pkg/fourslash/tests/gen/renamePrivateAccessor_test.go index 86aa1b29d..a90762d0e 100644 --- a/pkg/fourslash/tests/gen/renamePrivateAccessor_test.go +++ b/pkg/fourslash/tests/gen/renamePrivateAccessor_test.go @@ -9,8 +9,8 @@ import ( ) func TestRenamePrivateAccessor(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { [|get [|{| "contextRangeIndex": 0 |}#foo|]() { return 1 }|] diff --git a/pkg/fourslash/tests/gen/renamePrivateFields1_test.go b/pkg/fourslash/tests/gen/renamePrivateFields1_test.go index db42d68d6..9a6e5510e 100644 --- a/pkg/fourslash/tests/gen/renamePrivateFields1_test.go +++ b/pkg/fourslash/tests/gen/renamePrivateFields1_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenamePrivateFields1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { [|[|{| "contextRangeIndex": 0 |}#foo|] = 1;|] diff --git a/pkg/fourslash/tests/gen/renamePrivateFields_test.go b/pkg/fourslash/tests/gen/renamePrivateFields_test.go index deb2eef3c..e1d758a85 100644 --- a/pkg/fourslash/tests/gen/renamePrivateFields_test.go +++ b/pkg/fourslash/tests/gen/renamePrivateFields_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenamePrivateFields(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { [|/**/#foo|] = 1; diff --git a/pkg/fourslash/tests/gen/renamePrivateMethod_test.go b/pkg/fourslash/tests/gen/renamePrivateMethod_test.go index dde31cd00..51a6bcc06 100644 --- a/pkg/fourslash/tests/gen/renamePrivateMethod_test.go +++ b/pkg/fourslash/tests/gen/renamePrivateMethod_test.go @@ -9,8 +9,8 @@ import ( ) func TestRenamePrivateMethod(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { [|[|{| "contextRangeIndex": 0 |}#foo|]() { }|] diff --git a/pkg/fourslash/tests/gen/renamePropertyAccessExpressionHeritageClause_test.go b/pkg/fourslash/tests/gen/renamePropertyAccessExpressionHeritageClause_test.go index c12964f46..745784f14 100644 --- a/pkg/fourslash/tests/gen/renamePropertyAccessExpressionHeritageClause_test.go +++ b/pkg/fourslash/tests/gen/renamePropertyAccessExpressionHeritageClause_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenamePropertyAccessExpressionHeritageClause(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class B {} function foo() { diff --git a/pkg/fourslash/tests/gen/renameReExportDefault_test.go b/pkg/fourslash/tests/gen/renameReExportDefault_test.go index b42b04d9a..f5c42d687 100644 --- a/pkg/fourslash/tests/gen/renameReExportDefault_test.go +++ b/pkg/fourslash/tests/gen/renameReExportDefault_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameReExportDefault(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts export { default } from "./b"; diff --git a/pkg/fourslash/tests/gen/renameReferenceFromLinkTag1_test.go b/pkg/fourslash/tests/gen/renameReferenceFromLinkTag1_test.go index 3c661dc70..299a4cd99 100644 --- a/pkg/fourslash/tests/gen/renameReferenceFromLinkTag1_test.go +++ b/pkg/fourslash/tests/gen/renameReferenceFromLinkTag1_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameReferenceFromLinkTag1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum E { /** {@link /**/A} */ diff --git a/pkg/fourslash/tests/gen/renameReferenceFromLinkTag2_test.go b/pkg/fourslash/tests/gen/renameReferenceFromLinkTag2_test.go index e3fa490fe..b18e344db 100644 --- a/pkg/fourslash/tests/gen/renameReferenceFromLinkTag2_test.go +++ b/pkg/fourslash/tests/gen/renameReferenceFromLinkTag2_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameReferenceFromLinkTag2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /a.ts enum E { diff --git a/pkg/fourslash/tests/gen/renameReferenceFromLinkTag3_test.go b/pkg/fourslash/tests/gen/renameReferenceFromLinkTag3_test.go index ccd05aa92..b4ee24b09 100644 --- a/pkg/fourslash/tests/gen/renameReferenceFromLinkTag3_test.go +++ b/pkg/fourslash/tests/gen/renameReferenceFromLinkTag3_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameReferenceFromLinkTag3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @filename: a.ts interface Foo { diff --git a/pkg/fourslash/tests/gen/renameReferenceFromLinkTag4_test.go b/pkg/fourslash/tests/gen/renameReferenceFromLinkTag4_test.go index 13785b946..bad70f603 100644 --- a/pkg/fourslash/tests/gen/renameReferenceFromLinkTag4_test.go +++ b/pkg/fourslash/tests/gen/renameReferenceFromLinkTag4_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameReferenceFromLinkTag4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum E { /** {@link /**/B} */ diff --git a/pkg/fourslash/tests/gen/renameReferenceFromLinkTag5_test.go b/pkg/fourslash/tests/gen/renameReferenceFromLinkTag5_test.go index 633bef186..8daab04ce 100644 --- a/pkg/fourslash/tests/gen/renameReferenceFromLinkTag5_test.go +++ b/pkg/fourslash/tests/gen/renameReferenceFromLinkTag5_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameReferenceFromLinkTag5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum E { /** {@link E./**/A} */ diff --git a/pkg/fourslash/tests/gen/renameRestBindingElement_test.go b/pkg/fourslash/tests/gen/renameRestBindingElement_test.go index 872fa7d33..219d4d2ca 100644 --- a/pkg/fourslash/tests/gen/renameRestBindingElement_test.go +++ b/pkg/fourslash/tests/gen/renameRestBindingElement_test.go @@ -10,8 +10,8 @@ import ( ) func TestRenameRestBindingElement(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { a: number; diff --git a/pkg/fourslash/tests/gen/renameRest_test.go b/pkg/fourslash/tests/gen/renameRest_test.go index d4bfcd6ef..cb8cc0263 100644 --- a/pkg/fourslash/tests/gen/renameRest_test.go +++ b/pkg/fourslash/tests/gen/renameRest_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameRest(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Gen { x: number; diff --git a/pkg/fourslash/tests/gen/renameStringLiteralOk1_test.go b/pkg/fourslash/tests/gen/renameStringLiteralOk1_test.go index d59156b4d..d9c8f36b2 100644 --- a/pkg/fourslash/tests/gen/renameStringLiteralOk1_test.go +++ b/pkg/fourslash/tests/gen/renameStringLiteralOk1_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameStringLiteralOk1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function f(): '[|foo|]' | 'bar' class Foo { diff --git a/pkg/fourslash/tests/gen/renameStringLiteralOk_test.go b/pkg/fourslash/tests/gen/renameStringLiteralOk_test.go index 33222f5e8..3177245ee 100644 --- a/pkg/fourslash/tests/gen/renameStringLiteralOk_test.go +++ b/pkg/fourslash/tests/gen/renameStringLiteralOk_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameStringLiteralOk(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo { f: '[|foo|]' | 'bar' diff --git a/pkg/fourslash/tests/gen/renameStringLiteralTypes1_test.go b/pkg/fourslash/tests/gen/renameStringLiteralTypes1_test.go index 01b83edef..3f6fdef36 100644 --- a/pkg/fourslash/tests/gen/renameStringLiteralTypes1_test.go +++ b/pkg/fourslash/tests/gen/renameStringLiteralTypes1_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameStringLiteralTypes1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface AnimationOptions { deltaX: number; diff --git a/pkg/fourslash/tests/gen/renameStringLiteralTypes2_test.go b/pkg/fourslash/tests/gen/renameStringLiteralTypes2_test.go index 470c61243..d9e677255 100644 --- a/pkg/fourslash/tests/gen/renameStringLiteralTypes2_test.go +++ b/pkg/fourslash/tests/gen/renameStringLiteralTypes2_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameStringLiteralTypes2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type Foo = "[|a|]" | "b"; diff --git a/pkg/fourslash/tests/gen/renameStringLiteralTypes3_test.go b/pkg/fourslash/tests/gen/renameStringLiteralTypes3_test.go index 6afcffd53..499946d97 100644 --- a/pkg/fourslash/tests/gen/renameStringLiteralTypes3_test.go +++ b/pkg/fourslash/tests/gen/renameStringLiteralTypes3_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameStringLiteralTypes3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type Foo = "[|a|]" | "b"; diff --git a/pkg/fourslash/tests/gen/renameStringLiteralTypes4_test.go b/pkg/fourslash/tests/gen/renameStringLiteralTypes4_test.go index f0d6898ca..513187eab 100644 --- a/pkg/fourslash/tests/gen/renameStringLiteralTypes4_test.go +++ b/pkg/fourslash/tests/gen/renameStringLiteralTypes4_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameStringLiteralTypes4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { "Prop 1": string; diff --git a/pkg/fourslash/tests/gen/renameStringLiteralTypes5_test.go b/pkg/fourslash/tests/gen/renameStringLiteralTypes5_test.go index d356030c8..426f7b5cc 100644 --- a/pkg/fourslash/tests/gen/renameStringLiteralTypes5_test.go +++ b/pkg/fourslash/tests/gen/renameStringLiteralTypes5_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameStringLiteralTypes5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type T = { "Prop 1": string; diff --git a/pkg/fourslash/tests/gen/renameStringPropertyNames2_test.go b/pkg/fourslash/tests/gen/renameStringPropertyNames2_test.go index 231360c53..eddbe9285 100644 --- a/pkg/fourslash/tests/gen/renameStringPropertyNames2_test.go +++ b/pkg/fourslash/tests/gen/renameStringPropertyNames2_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameStringPropertyNames2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type Props = { foo: boolean; diff --git a/pkg/fourslash/tests/gen/renameStringPropertyNames_test.go b/pkg/fourslash/tests/gen/renameStringPropertyNames_test.go index bcbcebd96..257b29ec6 100644 --- a/pkg/fourslash/tests/gen/renameStringPropertyNames_test.go +++ b/pkg/fourslash/tests/gen/renameStringPropertyNames_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameStringPropertyNames(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var o = { [|[|{| "contextRangeIndex": 0 |}prop|]: 0|] diff --git a/pkg/fourslash/tests/gen/renameTemplateLiteralsComputedProperties_test.go b/pkg/fourslash/tests/gen/renameTemplateLiteralsComputedProperties_test.go index 1f1dea911..29e3bd399 100644 --- a/pkg/fourslash/tests/gen/renameTemplateLiteralsComputedProperties_test.go +++ b/pkg/fourslash/tests/gen/renameTemplateLiteralsComputedProperties_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameTemplateLiteralsComputedProperties(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts interface Obj { diff --git a/pkg/fourslash/tests/gen/renameTemplateLiteralsDefinePropertyJs_test.go b/pkg/fourslash/tests/gen/renameTemplateLiteralsDefinePropertyJs_test.go index 6875a1009..477096bbb 100644 --- a/pkg/fourslash/tests/gen/renameTemplateLiteralsDefinePropertyJs_test.go +++ b/pkg/fourslash/tests/gen/renameTemplateLiteralsDefinePropertyJs_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameTemplateLiteralsDefinePropertyJs(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: a.js diff --git a/pkg/fourslash/tests/gen/renameThis_test.go b/pkg/fourslash/tests/gen/renameThis_test.go index fd2c4d2bf..2190a8927 100644 --- a/pkg/fourslash/tests/gen/renameThis_test.go +++ b/pkg/fourslash/tests/gen/renameThis_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameThis(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f([|this|]) { return [|this|]; diff --git a/pkg/fourslash/tests/gen/renameUMDModuleAlias1_test.go b/pkg/fourslash/tests/gen/renameUMDModuleAlias1_test.go index 08cf47beb..10c0bf37a 100644 --- a/pkg/fourslash/tests/gen/renameUMDModuleAlias1_test.go +++ b/pkg/fourslash/tests/gen/renameUMDModuleAlias1_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameUMDModuleAlias1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: 0.d.ts export function doThing(): string; diff --git a/pkg/fourslash/tests/gen/renameUMDModuleAlias2_test.go b/pkg/fourslash/tests/gen/renameUMDModuleAlias2_test.go index dcbfe35dd..7acb035a8 100644 --- a/pkg/fourslash/tests/gen/renameUMDModuleAlias2_test.go +++ b/pkg/fourslash/tests/gen/renameUMDModuleAlias2_test.go @@ -8,8 +8,8 @@ import ( ) func TestRenameUMDModuleAlias2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: 0.d.ts export function doThing(): string; diff --git a/pkg/fourslash/tests/gen/restArgSignatureHelp_test.go b/pkg/fourslash/tests/gen/restArgSignatureHelp_test.go index a4648276c..1cd431920 100644 --- a/pkg/fourslash/tests/gen/restArgSignatureHelp_test.go +++ b/pkg/fourslash/tests/gen/restArgSignatureHelp_test.go @@ -8,8 +8,8 @@ import ( ) func TestRestArgSignatureHelp(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f(...x: any[]) { } f(/**/);` diff --git a/pkg/fourslash/tests/gen/restArgType_test.go b/pkg/fourslash/tests/gen/restArgType_test.go index 5bea81ec7..562a39cd0 100644 --- a/pkg/fourslash/tests/gen/restArgType_test.go +++ b/pkg/fourslash/tests/gen/restArgType_test.go @@ -8,8 +8,8 @@ import ( ) func TestRestArgType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Test { private _priv(.../*1*/restArgs) { diff --git a/pkg/fourslash/tests/gen/restParamsContextuallyTyped_test.go b/pkg/fourslash/tests/gen/restParamsContextuallyTyped_test.go index 87e94820f..85191dac9 100644 --- a/pkg/fourslash/tests/gen/restParamsContextuallyTyped_test.go +++ b/pkg/fourslash/tests/gen/restParamsContextuallyTyped_test.go @@ -8,8 +8,8 @@ import ( ) func TestRestParamsContextuallyTyped(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var foo: Function = function (/*1*/a, /*2*/b, /*3*/c) { };` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/returnRecursiveType_test.go b/pkg/fourslash/tests/gen/returnRecursiveType_test.go index becf166c5..f0d49bd7f 100644 --- a/pkg/fourslash/tests/gen/returnRecursiveType_test.go +++ b/pkg/fourslash/tests/gen/returnRecursiveType_test.go @@ -8,8 +8,8 @@ import ( ) func TestReturnRecursiveType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface MyInt { (): void; diff --git a/pkg/fourslash/tests/gen/returnTypeOfGenericFunction1_test.go b/pkg/fourslash/tests/gen/returnTypeOfGenericFunction1_test.go index ca9ba2a5c..c956da0e3 100644 --- a/pkg/fourslash/tests/gen/returnTypeOfGenericFunction1_test.go +++ b/pkg/fourslash/tests/gen/returnTypeOfGenericFunction1_test.go @@ -8,8 +8,8 @@ import ( ) func TestReturnTypeOfGenericFunction1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface WrappedArray { map(iterator: (value: T) => U, context?: any): U[]; diff --git a/pkg/fourslash/tests/gen/reverseMappedTypeQuickInfo_test.go b/pkg/fourslash/tests/gen/reverseMappedTypeQuickInfo_test.go index 4158cabf5..746c5b7b6 100644 --- a/pkg/fourslash/tests/gen/reverseMappedTypeQuickInfo_test.go +++ b/pkg/fourslash/tests/gen/reverseMappedTypeQuickInfo_test.go @@ -8,8 +8,8 @@ import ( ) func TestReverseMappedTypeQuickInfo(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface IAction { type: string; diff --git a/pkg/fourslash/tests/gen/rewriteRelativeImportExtensionsProjectReferences1_test.go b/pkg/fourslash/tests/gen/rewriteRelativeImportExtensionsProjectReferences1_test.go index 4dae62381..40edc28f8 100644 --- a/pkg/fourslash/tests/gen/rewriteRelativeImportExtensionsProjectReferences1_test.go +++ b/pkg/fourslash/tests/gen/rewriteRelativeImportExtensionsProjectReferences1_test.go @@ -8,8 +8,8 @@ import ( ) func TestRewriteRelativeImportExtensionsProjectReferences1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: packages/common/tsconfig.json { diff --git a/pkg/fourslash/tests/gen/rewriteRelativeImportExtensionsProjectReferences2_test.go b/pkg/fourslash/tests/gen/rewriteRelativeImportExtensionsProjectReferences2_test.go index 03e37bd75..6b841eebf 100644 --- a/pkg/fourslash/tests/gen/rewriteRelativeImportExtensionsProjectReferences2_test.go +++ b/pkg/fourslash/tests/gen/rewriteRelativeImportExtensionsProjectReferences2_test.go @@ -8,8 +8,8 @@ import ( ) func TestRewriteRelativeImportExtensionsProjectReferences2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: src/tsconfig-base.json { diff --git a/pkg/fourslash/tests/gen/rewriteRelativeImportExtensionsProjectReferences3_test.go b/pkg/fourslash/tests/gen/rewriteRelativeImportExtensionsProjectReferences3_test.go index a2cb3f590..8c8331e96 100644 --- a/pkg/fourslash/tests/gen/rewriteRelativeImportExtensionsProjectReferences3_test.go +++ b/pkg/fourslash/tests/gen/rewriteRelativeImportExtensionsProjectReferences3_test.go @@ -8,8 +8,8 @@ import ( ) func TestRewriteRelativeImportExtensionsProjectReferences3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: src/tsconfig-base.json { diff --git a/pkg/fourslash/tests/gen/satisfiesOperatorCompletion_test.go b/pkg/fourslash/tests/gen/satisfiesOperatorCompletion_test.go index 0555a088c..0b24b21bf 100644 --- a/pkg/fourslash/tests/gen/satisfiesOperatorCompletion_test.go +++ b/pkg/fourslash/tests/gen/satisfiesOperatorCompletion_test.go @@ -9,8 +9,8 @@ import ( ) func TestSatisfiesOperatorCompletion(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type T = number; var x; diff --git a/pkg/fourslash/tests/gen/scopeOfUnionProperties_test.go b/pkg/fourslash/tests/gen/scopeOfUnionProperties_test.go index cbe88bcef..f404af76d 100644 --- a/pkg/fourslash/tests/gen/scopeOfUnionProperties_test.go +++ b/pkg/fourslash/tests/gen/scopeOfUnionProperties_test.go @@ -8,8 +8,8 @@ import ( ) func TestScopeOfUnionProperties(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f(s: string | number) { s.constr/*1*/uctor diff --git a/pkg/fourslash/tests/gen/selfReferencedExternalModule2_test.go b/pkg/fourslash/tests/gen/selfReferencedExternalModule2_test.go index 3dc893711..eef229764 100644 --- a/pkg/fourslash/tests/gen/selfReferencedExternalModule2_test.go +++ b/pkg/fourslash/tests/gen/selfReferencedExternalModule2_test.go @@ -8,8 +8,8 @@ import ( ) func TestSelfReferencedExternalModule2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: app.ts export import A = require('./app2'); diff --git a/pkg/fourslash/tests/gen/selfReferencedExternalModule_test.go b/pkg/fourslash/tests/gen/selfReferencedExternalModule_test.go index 98f2f1349..a7c6ed83d 100644 --- a/pkg/fourslash/tests/gen/selfReferencedExternalModule_test.go +++ b/pkg/fourslash/tests/gen/selfReferencedExternalModule_test.go @@ -10,8 +10,8 @@ import ( ) func TestSelfReferencedExternalModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: app.ts export import A = require('./app'); diff --git a/pkg/fourslash/tests/gen/semicolonFormattingAfterArrayLiteral_test.go b/pkg/fourslash/tests/gen/semicolonFormattingAfterArrayLiteral_test.go index 93bb0ce28..ab8e1db72 100644 --- a/pkg/fourslash/tests/gen/semicolonFormattingAfterArrayLiteral_test.go +++ b/pkg/fourslash/tests/gen/semicolonFormattingAfterArrayLiteral_test.go @@ -8,8 +8,8 @@ import ( ) func TestSemicolonFormattingAfterArrayLiteral(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `[1,2]/**/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/semicolonFormattingInsideAComment_test.go b/pkg/fourslash/tests/gen/semicolonFormattingInsideAComment_test.go index 9be3d5961..0a16ed937 100644 --- a/pkg/fourslash/tests/gen/semicolonFormattingInsideAComment_test.go +++ b/pkg/fourslash/tests/gen/semicolonFormattingInsideAComment_test.go @@ -8,8 +8,8 @@ import ( ) func TestSemicolonFormattingInsideAComment(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = ` ///**/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/semicolonFormattingInsideAStringLiteral_test.go b/pkg/fourslash/tests/gen/semicolonFormattingInsideAStringLiteral_test.go index 681e61506..772f3fc80 100644 --- a/pkg/fourslash/tests/gen/semicolonFormattingInsideAStringLiteral_test.go +++ b/pkg/fourslash/tests/gen/semicolonFormattingInsideAStringLiteral_test.go @@ -8,8 +8,8 @@ import ( ) func TestSemicolonFormattingInsideAStringLiteral(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = ` var x = "string/**/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/semicolonFormattingNestedStatements_test.go b/pkg/fourslash/tests/gen/semicolonFormattingNestedStatements_test.go index f85a9f0c8..ce5e57046 100644 --- a/pkg/fourslash/tests/gen/semicolonFormattingNestedStatements_test.go +++ b/pkg/fourslash/tests/gen/semicolonFormattingNestedStatements_test.go @@ -8,8 +8,8 @@ import ( ) func TestSemicolonFormattingNestedStatements(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `if (true) if (true)/*parentOutsideBlock*/ diff --git a/pkg/fourslash/tests/gen/semicolonFormatting_test.go b/pkg/fourslash/tests/gen/semicolonFormatting_test.go index f451184c5..b1013a0ef 100644 --- a/pkg/fourslash/tests/gen/semicolonFormatting_test.go +++ b/pkg/fourslash/tests/gen/semicolonFormatting_test.go @@ -8,8 +8,8 @@ import ( ) func TestSemicolonFormatting(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/**/function of1 (b:{r:{c:number` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/sideEffectImportsSuggestion1_test.go b/pkg/fourslash/tests/gen/sideEffectImportsSuggestion1_test.go index 421eb051a..62ad677b3 100644 --- a/pkg/fourslash/tests/gen/sideEffectImportsSuggestion1_test.go +++ b/pkg/fourslash/tests/gen/sideEffectImportsSuggestion1_test.go @@ -8,8 +8,8 @@ import ( ) func TestSideEffectImportsSuggestion1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @noEmit: true diff --git a/pkg/fourslash/tests/gen/signatureHelp01_test.go b/pkg/fourslash/tests/gen/signatureHelp01_test.go index 193cada75..709efb525 100644 --- a/pkg/fourslash/tests/gen/signatureHelp01_test.go +++ b/pkg/fourslash/tests/gen/signatureHelp01_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelp01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(data: number) { } diff --git a/pkg/fourslash/tests/gen/signatureHelpAfterParameter_test.go b/pkg/fourslash/tests/gen/signatureHelpAfterParameter_test.go index 4486b08ef..cca608468 100644 --- a/pkg/fourslash/tests/gen/signatureHelpAfterParameter_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpAfterParameter_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpAfterParameter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type Type = (a, b, c) => void const a: Type = (a/*1*/, b/*2*/) => {} diff --git a/pkg/fourslash/tests/gen/signatureHelpAnonymousFunction_test.go b/pkg/fourslash/tests/gen/signatureHelpAnonymousFunction_test.go index 802f96416..6e419eff7 100644 --- a/pkg/fourslash/tests/gen/signatureHelpAnonymousFunction_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpAnonymousFunction_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpAnonymousFunction(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var anonymousFunctionTest = function(n: number, s: string): (a: number, b: string) => string { return null; diff --git a/pkg/fourslash/tests/gen/signatureHelpAtEOF2_test.go b/pkg/fourslash/tests/gen/signatureHelpAtEOF2_test.go index cec77d717..5ee84a36e 100644 --- a/pkg/fourslash/tests/gen/signatureHelpAtEOF2_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpAtEOF2_test.go @@ -9,8 +9,8 @@ import ( ) func TestSignatureHelpAtEOF2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `console.log() /**/` diff --git a/pkg/fourslash/tests/gen/signatureHelpAtEOF_test.go b/pkg/fourslash/tests/gen/signatureHelpAtEOF_test.go index fd6da6cb7..c110d7846 100644 --- a/pkg/fourslash/tests/gen/signatureHelpAtEOF_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpAtEOF_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpAtEOF(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function Foo(arg1: string, arg2: string) { } diff --git a/pkg/fourslash/tests/gen/signatureHelpBeforeSemicolon1_test.go b/pkg/fourslash/tests/gen/signatureHelpBeforeSemicolon1_test.go index b75cf9663..253b2c3ab 100644 --- a/pkg/fourslash/tests/gen/signatureHelpBeforeSemicolon1_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpBeforeSemicolon1_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpBeforeSemicolon1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function Foo(arg1: string, arg2: string) { } diff --git a/pkg/fourslash/tests/gen/signatureHelpCallExpressionJs_test.go b/pkg/fourslash/tests/gen/signatureHelpCallExpressionJs_test.go index 97e7cb3fb..5885574d8 100644 --- a/pkg/fourslash/tests/gen/signatureHelpCallExpressionJs_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpCallExpressionJs_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpCallExpressionJs(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @checkJs: true // @allowJs: true diff --git a/pkg/fourslash/tests/gen/signatureHelpCallExpressionTuples_test.go b/pkg/fourslash/tests/gen/signatureHelpCallExpressionTuples_test.go index c98f96e4a..f8d89ec19 100644 --- a/pkg/fourslash/tests/gen/signatureHelpCallExpressionTuples_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpCallExpressionTuples_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpCallExpressionTuples(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function fnTest(str: string, num: number) { } declare function wrap(fn: (...a: A) => R) : (...a: A) => R; diff --git a/pkg/fourslash/tests/gen/signatureHelpCallExpression_test.go b/pkg/fourslash/tests/gen/signatureHelpCallExpression_test.go index 3a382150f..73ebe52b1 100644 --- a/pkg/fourslash/tests/gen/signatureHelpCallExpression_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpCallExpression_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpCallExpression(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function fnTest(str: string, num: number) { } fnTest(/*1*/'', /*2*/5);` diff --git a/pkg/fourslash/tests/gen/signatureHelpCommentsClassMembers_test.go b/pkg/fourslash/tests/gen/signatureHelpCommentsClassMembers_test.go index b5479093c..e9b587b04 100644 --- a/pkg/fourslash/tests/gen/signatureHelpCommentsClassMembers_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpCommentsClassMembers_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpCommentsClassMembers(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** This is comment for c1*/ class c1 { diff --git a/pkg/fourslash/tests/gen/signatureHelpCommentsClass_test.go b/pkg/fourslash/tests/gen/signatureHelpCommentsClass_test.go index 000ea85e9..587a86545 100644 --- a/pkg/fourslash/tests/gen/signatureHelpCommentsClass_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpCommentsClass_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpCommentsClass(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** This is class c2 without constructor*/ class c2 { diff --git a/pkg/fourslash/tests/gen/signatureHelpCommentsCommentParsing_test.go b/pkg/fourslash/tests/gen/signatureHelpCommentsCommentParsing_test.go index bb38f4ecd..c2fa39a04 100644 --- a/pkg/fourslash/tests/gen/signatureHelpCommentsCommentParsing_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpCommentsCommentParsing_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpCommentsCommentParsing(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/// This is simple /// comments function simple() { diff --git a/pkg/fourslash/tests/gen/signatureHelpCommentsFunctionDeclaration_test.go b/pkg/fourslash/tests/gen/signatureHelpCommentsFunctionDeclaration_test.go index b5104fe29..b7796deef 100644 --- a/pkg/fourslash/tests/gen/signatureHelpCommentsFunctionDeclaration_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpCommentsFunctionDeclaration_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpCommentsFunctionDeclaration(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** This comment should appear for foo*/ function foo() { diff --git a/pkg/fourslash/tests/gen/signatureHelpCommentsFunctionExpression_test.go b/pkg/fourslash/tests/gen/signatureHelpCommentsFunctionExpression_test.go index 7fda77d0a..f2c965837 100644 --- a/pkg/fourslash/tests/gen/signatureHelpCommentsFunctionExpression_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpCommentsFunctionExpression_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpCommentsFunctionExpression(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** lambdaFoo var comment*/ var lambdaFoo = /** this is lambda comment*/ (/**param a*/a: number, /**param b*/b: number) => a + b; diff --git a/pkg/fourslash/tests/gen/signatureHelpConstructExpression_test.go b/pkg/fourslash/tests/gen/signatureHelpConstructExpression_test.go index 40744a748..ecabea672 100644 --- a/pkg/fourslash/tests/gen/signatureHelpConstructExpression_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpConstructExpression_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpConstructExpression(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class sampleCls { constructor(str: string, num: number) { } } var x = new sampleCls(/*1*/"", /*2*/5);` diff --git a/pkg/fourslash/tests/gen/signatureHelpConstructorCallParamProperties_test.go b/pkg/fourslash/tests/gen/signatureHelpConstructorCallParamProperties_test.go index 6ef72cda2..2e1593f7a 100644 --- a/pkg/fourslash/tests/gen/signatureHelpConstructorCallParamProperties_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpConstructorCallParamProperties_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpConstructorCallParamProperties(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Circle { /** diff --git a/pkg/fourslash/tests/gen/signatureHelpConstructorInheritance_test.go b/pkg/fourslash/tests/gen/signatureHelpConstructorInheritance_test.go index dee5c5c73..eeac7eb36 100644 --- a/pkg/fourslash/tests/gen/signatureHelpConstructorInheritance_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpConstructorInheritance_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpConstructorInheritance(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class base { constructor(s: string); diff --git a/pkg/fourslash/tests/gen/signatureHelpConstructorOverload_test.go b/pkg/fourslash/tests/gen/signatureHelpConstructorOverload_test.go index 97156c32b..fa08d2eff 100644 --- a/pkg/fourslash/tests/gen/signatureHelpConstructorOverload_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpConstructorOverload_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpConstructorOverload(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class clsOverload { constructor(); constructor(test: string); constructor(test?: string) { } } var x = new clsOverload(/*1*/); diff --git a/pkg/fourslash/tests/gen/signatureHelpEmptyList_test.go b/pkg/fourslash/tests/gen/signatureHelpEmptyList_test.go index 607a1d610..3dbc1c759 100644 --- a/pkg/fourslash/tests/gen/signatureHelpEmptyList_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpEmptyList_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpEmptyList(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function Foo(arg1: string, arg2: string) { } diff --git a/pkg/fourslash/tests/gen/signatureHelpExpandedRestTuplesLocalLabels1_test.go b/pkg/fourslash/tests/gen/signatureHelpExpandedRestTuplesLocalLabels1_test.go index 6b058fcdd..8f313ce9f 100644 --- a/pkg/fourslash/tests/gen/signatureHelpExpandedRestTuplesLocalLabels1_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpExpandedRestTuplesLocalLabels1_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpExpandedRestTuplesLocalLabels1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface AppleInfo { color: "green" | "red"; diff --git a/pkg/fourslash/tests/gen/signatureHelpExpandedRestTuples_test.go b/pkg/fourslash/tests/gen/signatureHelpExpandedRestTuples_test.go index 0ac2cefbe..442b19fd7 100644 --- a/pkg/fourslash/tests/gen/signatureHelpExpandedRestTuples_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpExpandedRestTuples_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpExpandedRestTuples(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export function complex(item: string, another: string, ...rest: [] | [settings: object, errorHandler: (err: Error) => void] | [errorHandler: (err: Error) => void, ...mixins: object[]]) { diff --git a/pkg/fourslash/tests/gen/signatureHelpExpandedRestUnlabeledTuples_test.go b/pkg/fourslash/tests/gen/signatureHelpExpandedRestUnlabeledTuples_test.go index 890b96faa..8e4c935f4 100644 --- a/pkg/fourslash/tests/gen/signatureHelpExpandedRestUnlabeledTuples_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpExpandedRestUnlabeledTuples_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpExpandedRestUnlabeledTuples(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export function complex(item: string, another: string, ...rest: [] | [object, (err: Error) => void] | [(err: Error) => void, ...object[]]) { diff --git a/pkg/fourslash/tests/gen/signatureHelpExpandedTuplesArgumentIndex_test.go b/pkg/fourslash/tests/gen/signatureHelpExpandedTuplesArgumentIndex_test.go index 10f7f42d1..065ee1359 100644 --- a/pkg/fourslash/tests/gen/signatureHelpExpandedTuplesArgumentIndex_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpExpandedTuplesArgumentIndex_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpExpandedTuplesArgumentIndex(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(...args: [string, string] | [number, string, string] ) { diff --git a/pkg/fourslash/tests/gen/signatureHelpExplicitTypeArguments_test.go b/pkg/fourslash/tests/gen/signatureHelpExplicitTypeArguments_test.go index d918af0e6..c7605906b 100644 --- a/pkg/fourslash/tests/gen/signatureHelpExplicitTypeArguments_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpExplicitTypeArguments_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpExplicitTypeArguments(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function f(x: T, y: U): T; f(/*1*/); diff --git a/pkg/fourslash/tests/gen/signatureHelpFilteredTriggers03_test.go b/pkg/fourslash/tests/gen/signatureHelpFilteredTriggers03_test.go index 9c5f82a4f..37ad35652 100644 --- a/pkg/fourslash/tests/gen/signatureHelpFilteredTriggers03_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpFilteredTriggers03_test.go @@ -10,8 +10,8 @@ import ( ) func TestSignatureHelpFilteredTriggers03(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare class ViewJayEss { constructor(obj: object); diff --git a/pkg/fourslash/tests/gen/signatureHelpForNonlocalTypeDoesNotUseImportType_test.go b/pkg/fourslash/tests/gen/signatureHelpForNonlocalTypeDoesNotUseImportType_test.go index 0be6c68de..73d171c3e 100644 --- a/pkg/fourslash/tests/gen/signatureHelpForNonlocalTypeDoesNotUseImportType_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpForNonlocalTypeDoesNotUseImportType_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpForNonlocalTypeDoesNotUseImportType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: exporter.ts export interface Thing {} diff --git a/pkg/fourslash/tests/gen/signatureHelpForOptionalMethods_test.go b/pkg/fourslash/tests/gen/signatureHelpForOptionalMethods_test.go index 536b3ece7..f2cf681ab 100644 --- a/pkg/fourslash/tests/gen/signatureHelpForOptionalMethods_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpForOptionalMethods_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpForOptionalMethods(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface Obj { diff --git a/pkg/fourslash/tests/gen/signatureHelpForSignatureWithUnreachableType_test.go b/pkg/fourslash/tests/gen/signatureHelpForSignatureWithUnreachableType_test.go index 64ecc6443..b31da1e46 100644 --- a/pkg/fourslash/tests/gen/signatureHelpForSignatureWithUnreachableType_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpForSignatureWithUnreachableType_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpForSignatureWithUnreachableType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: /node_modules/foo/node_modules/bar/index.d.ts export interface SomeType { diff --git a/pkg/fourslash/tests/gen/signatureHelpForSuperCalls1_test.go b/pkg/fourslash/tests/gen/signatureHelpForSuperCalls1_test.go index 55d00154b..7b64d125c 100644 --- a/pkg/fourslash/tests/gen/signatureHelpForSuperCalls1_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpForSuperCalls1_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpForSuperCalls1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A { } class B extends A { } diff --git a/pkg/fourslash/tests/gen/signatureHelpFunctionOverload_test.go b/pkg/fourslash/tests/gen/signatureHelpFunctionOverload_test.go index 5b5420abd..c0eb61017 100644 --- a/pkg/fourslash/tests/gen/signatureHelpFunctionOverload_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpFunctionOverload_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpFunctionOverload(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function functionOverload(); function functionOverload(test: string); diff --git a/pkg/fourslash/tests/gen/signatureHelpFunctionParameter_test.go b/pkg/fourslash/tests/gen/signatureHelpFunctionParameter_test.go index 63ae22100..afa8ed5e8 100644 --- a/pkg/fourslash/tests/gen/signatureHelpFunctionParameter_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpFunctionParameter_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpFunctionParameter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function parameterFunction(callback: (a: number, b: string) => void) { callback(/*parameterFunction1*/5, /*parameterFunction2*/""); diff --git a/pkg/fourslash/tests/gen/signatureHelpImplicitConstructor_test.go b/pkg/fourslash/tests/gen/signatureHelpImplicitConstructor_test.go index 1b2c7abc9..06534bc44 100644 --- a/pkg/fourslash/tests/gen/signatureHelpImplicitConstructor_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpImplicitConstructor_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpImplicitConstructor(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class ImplicitConstructor { } diff --git a/pkg/fourslash/tests/gen/signatureHelpImportStarFromExportEquals_test.go b/pkg/fourslash/tests/gen/signatureHelpImportStarFromExportEquals_test.go index fb0879b4b..23b885cad 100644 --- a/pkg/fourslash/tests/gen/signatureHelpImportStarFromExportEquals_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpImportStarFromExportEquals_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpImportStarFromExportEquals(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @Filename: /node_modules/@types/abs/index.d.ts diff --git a/pkg/fourslash/tests/gen/signatureHelpInAdjacentBlockBody_test.go b/pkg/fourslash/tests/gen/signatureHelpInAdjacentBlockBody_test.go index 974f57641..010307600 100644 --- a/pkg/fourslash/tests/gen/signatureHelpInAdjacentBlockBody_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpInAdjacentBlockBody_test.go @@ -9,8 +9,8 @@ import ( ) func TestSignatureHelpInAdjacentBlockBody(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function foo(...args); diff --git a/pkg/fourslash/tests/gen/signatureHelpInCallback_test.go b/pkg/fourslash/tests/gen/signatureHelpInCallback_test.go index 9a788c70e..0046038e2 100644 --- a/pkg/fourslash/tests/gen/signatureHelpInCallback_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpInCallback_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpInCallback(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function forEach(f: () => void); forEach(/*1*/() => { diff --git a/pkg/fourslash/tests/gen/signatureHelpInCompleteGenericsCall_test.go b/pkg/fourslash/tests/gen/signatureHelpInCompleteGenericsCall_test.go index 9ee6c7e67..207997482 100644 --- a/pkg/fourslash/tests/gen/signatureHelpInCompleteGenericsCall_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpInCompleteGenericsCall_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpInCompleteGenericsCall(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(x: number, callback: (x: T) => number) { } diff --git a/pkg/fourslash/tests/gen/signatureHelpInFunctionCallOnFunctionDeclarationInMultipleFiles_test.go b/pkg/fourslash/tests/gen/signatureHelpInFunctionCallOnFunctionDeclarationInMultipleFiles_test.go index 61638d647..8e9358bb4 100644 --- a/pkg/fourslash/tests/gen/signatureHelpInFunctionCallOnFunctionDeclarationInMultipleFiles_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpInFunctionCallOnFunctionDeclarationInMultipleFiles_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpInFunctionCallOnFunctionDeclarationInMultipleFiles(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: signatureHelpInFunctionCallOnFunctionDeclarationInMultipleFiles_file0.ts declare function fn(x: string, y: number); diff --git a/pkg/fourslash/tests/gen/signatureHelpInFunctionCall_test.go b/pkg/fourslash/tests/gen/signatureHelpInFunctionCall_test.go index 543c897fa..c10f6ffe9 100644 --- a/pkg/fourslash/tests/gen/signatureHelpInFunctionCall_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpInFunctionCall_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpInFunctionCall(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var items = []; items.forEach(item => { diff --git a/pkg/fourslash/tests/gen/signatureHelpInParenthetical_test.go b/pkg/fourslash/tests/gen/signatureHelpInParenthetical_test.go index 3b1ea5d38..649792822 100644 --- a/pkg/fourslash/tests/gen/signatureHelpInParenthetical_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpInParenthetical_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpInParenthetical(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class base { constructor (public n: number, public y: string) { } } (new base(/**/` diff --git a/pkg/fourslash/tests/gen/signatureHelpInRecursiveType_test.go b/pkg/fourslash/tests/gen/signatureHelpInRecursiveType_test.go index 1eed2d077..9e342289c 100644 --- a/pkg/fourslash/tests/gen/signatureHelpInRecursiveType_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpInRecursiveType_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpInRecursiveType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type Tail = ((...args: T) => any) extends ((head: any, ...tail: infer R) => any) ? R : never; diff --git a/pkg/fourslash/tests/gen/signatureHelpIncompleteCalls_test.go b/pkg/fourslash/tests/gen/signatureHelpIncompleteCalls_test.go index c0d34d5a9..e93f66221 100644 --- a/pkg/fourslash/tests/gen/signatureHelpIncompleteCalls_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpIncompleteCalls_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpIncompleteCalls(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module IncompleteCalls { class Foo { diff --git a/pkg/fourslash/tests/gen/signatureHelpInferenceJsDocImportTag_test.go b/pkg/fourslash/tests/gen/signatureHelpInferenceJsDocImportTag_test.go index 0690b941f..6e77fa23e 100644 --- a/pkg/fourslash/tests/gen/signatureHelpInferenceJsDocImportTag_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpInferenceJsDocImportTag_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpInferenceJsDocImportTag(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJS: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/signatureHelpInference_test.go b/pkg/fourslash/tests/gen/signatureHelpInference_test.go index 301999584..cdf8026b1 100644 --- a/pkg/fourslash/tests/gen/signatureHelpInference_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpInference_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpInference(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function f(a: T, b: T, c: T): void; f("x", /**/);` diff --git a/pkg/fourslash/tests/gen/signatureHelpIteratorNext_test.go b/pkg/fourslash/tests/gen/signatureHelpIteratorNext_test.go index a48a5c91a..d1859d40f 100644 --- a/pkg/fourslash/tests/gen/signatureHelpIteratorNext_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpIteratorNext_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpIteratorNext(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @lib: esnext declare const iterator: Iterator; diff --git a/pkg/fourslash/tests/gen/signatureHelpJSDocCallbackTag_test.go b/pkg/fourslash/tests/gen/signatureHelpJSDocCallbackTag_test.go index 39e8e9c62..fd859df22 100644 --- a/pkg/fourslash/tests/gen/signatureHelpJSDocCallbackTag_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpJSDocCallbackTag_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpJSDocCallbackTag(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowNonTsExtensions: true // @Filename: jsdocCallbackTag.js diff --git a/pkg/fourslash/tests/gen/signatureHelpJSDocTags_test.go b/pkg/fourslash/tests/gen/signatureHelpJSDocTags_test.go index 40205a6ba..90c210119 100644 --- a/pkg/fourslash/tests/gen/signatureHelpJSDocTags_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpJSDocTags_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpJSDocTags(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * This is class Foo. diff --git a/pkg/fourslash/tests/gen/signatureHelpJSMissingIdentifier_test.go b/pkg/fourslash/tests/gen/signatureHelpJSMissingIdentifier_test.go index 160849db3..7b89da997 100644 --- a/pkg/fourslash/tests/gen/signatureHelpJSMissingIdentifier_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpJSMissingIdentifier_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpJSMissingIdentifier(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/signatureHelpJSMissingPropertyAccess_test.go b/pkg/fourslash/tests/gen/signatureHelpJSMissingPropertyAccess_test.go index d9b7f5e3e..6474629bb 100644 --- a/pkg/fourslash/tests/gen/signatureHelpJSMissingPropertyAccess_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpJSMissingPropertyAccess_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpJSMissingPropertyAccess(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @checkJs: true diff --git a/pkg/fourslash/tests/gen/signatureHelpJSX_test.go b/pkg/fourslash/tests/gen/signatureHelpJSX_test.go index 437d722d9..7e966a1dc 100644 --- a/pkg/fourslash/tests/gen/signatureHelpJSX_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpJSX_test.go @@ -10,8 +10,8 @@ import ( ) func TestSignatureHelpJSX(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: test.tsx //@jsx: react diff --git a/pkg/fourslash/tests/gen/signatureHelpLeadingRestTuple_test.go b/pkg/fourslash/tests/gen/signatureHelpLeadingRestTuple_test.go index 58ca37688..23231dcdb 100644 --- a/pkg/fourslash/tests/gen/signatureHelpLeadingRestTuple_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpLeadingRestTuple_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpLeadingRestTuple(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export function leading(...args: [...names: string[], allCaps: boolean]): void { } diff --git a/pkg/fourslash/tests/gen/signatureHelpNegativeTests2_test.go b/pkg/fourslash/tests/gen/signatureHelpNegativeTests2_test.go index b932bb17a..7fc13e2e4 100644 --- a/pkg/fourslash/tests/gen/signatureHelpNegativeTests2_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpNegativeTests2_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpNegativeTests2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class clsOverload { constructor(); constructor(test: string); constructor(test?: string) { } } var x = new clsOverload/*beforeOpenParen*/()/*afterCloseParen*/;` diff --git a/pkg/fourslash/tests/gen/signatureHelpNegativeTests_test.go b/pkg/fourslash/tests/gen/signatureHelpNegativeTests_test.go index 3c85923a5..a456af1ff 100644 --- a/pkg/fourslash/tests/gen/signatureHelpNegativeTests_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpNegativeTests_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpNegativeTests(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//inside a comment foo(/*insideComment*/ cl/*invalidContext*/ass InvalidSignatureHelpLocation { } diff --git a/pkg/fourslash/tests/gen/signatureHelpNoArguments_test.go b/pkg/fourslash/tests/gen/signatureHelpNoArguments_test.go index dc818fc69..d3ebbbc3e 100644 --- a/pkg/fourslash/tests/gen/signatureHelpNoArguments_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpNoArguments_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpNoArguments(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(n: number): string { } diff --git a/pkg/fourslash/tests/gen/signatureHelpObjectCreationExpressionNoArgs_NotAvailable_test.go b/pkg/fourslash/tests/gen/signatureHelpObjectCreationExpressionNoArgs_NotAvailable_test.go index 95bd7e613..19123335c 100644 --- a/pkg/fourslash/tests/gen/signatureHelpObjectCreationExpressionNoArgs_NotAvailable_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpObjectCreationExpressionNoArgs_NotAvailable_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpObjectCreationExpressionNoArgs_NotAvailable(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class sampleCls { constructor(str: string, num: number) { } } var x = new sampleCls/**/;` diff --git a/pkg/fourslash/tests/gen/signatureHelpObjectLiteral_test.go b/pkg/fourslash/tests/gen/signatureHelpObjectLiteral_test.go index 6fd63a952..28d536a70 100644 --- a/pkg/fourslash/tests/gen/signatureHelpObjectLiteral_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpObjectLiteral_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpObjectLiteral(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var objectLiteral = { n: 5, s: "", f: (a: number, b: string) => "" }; objectLiteral.f(/*objectLiteral1*/4, /*objectLiteral2*/"");` diff --git a/pkg/fourslash/tests/gen/signatureHelpOnDeclaration_test.go b/pkg/fourslash/tests/gen/signatureHelpOnDeclaration_test.go index 3b29c5410..8d2cdf705 100644 --- a/pkg/fourslash/tests/gen/signatureHelpOnDeclaration_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpOnDeclaration_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpOnDeclaration(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f(a: any): a is T {} diff --git a/pkg/fourslash/tests/gen/signatureHelpOptionalCall2_test.go b/pkg/fourslash/tests/gen/signatureHelpOptionalCall2_test.go index 6a6a372a5..083a879e7 100644 --- a/pkg/fourslash/tests/gen/signatureHelpOptionalCall2_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpOptionalCall2_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpOptionalCall2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const fnTest: undefined | ((str: string, num: number) => void); fnTest?.(/*1*/);` diff --git a/pkg/fourslash/tests/gen/signatureHelpOptionalCall_test.go b/pkg/fourslash/tests/gen/signatureHelpOptionalCall_test.go index f4d65564b..4cd5ed0f6 100644 --- a/pkg/fourslash/tests/gen/signatureHelpOptionalCall_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpOptionalCall_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpOptionalCall(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function fnTest(str: string, num: number) { } fnTest?.(/*1*/);` diff --git a/pkg/fourslash/tests/gen/signatureHelpRestArgs1_test.go b/pkg/fourslash/tests/gen/signatureHelpRestArgs1_test.go index 27b9dea35..fa0289b67 100644 --- a/pkg/fourslash/tests/gen/signatureHelpRestArgs1_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpRestArgs1_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpRestArgs1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function fn(a: number, b: number, c: number) {} const a = [1, 2] as const; diff --git a/pkg/fourslash/tests/gen/signatureHelpRestArgs2_test.go b/pkg/fourslash/tests/gen/signatureHelpRestArgs2_test.go index b0d327369..90a9433f3 100644 --- a/pkg/fourslash/tests/gen/signatureHelpRestArgs2_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpRestArgs2_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpRestArgs2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // @allowJs: true diff --git a/pkg/fourslash/tests/gen/signatureHelpRestArgs3_test.go b/pkg/fourslash/tests/gen/signatureHelpRestArgs3_test.go index 9ce3ae4ca..3b0afa2e2 100644 --- a/pkg/fourslash/tests/gen/signatureHelpRestArgs3_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpRestArgs3_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpRestArgs3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @target: esnext // @lib: esnext diff --git a/pkg/fourslash/tests/gen/signatureHelpSimpleConstructorCall_test.go b/pkg/fourslash/tests/gen/signatureHelpSimpleConstructorCall_test.go index c14e24af4..6013a20eb 100644 --- a/pkg/fourslash/tests/gen/signatureHelpSimpleConstructorCall_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpSimpleConstructorCall_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpSimpleConstructorCall(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class ConstructorCall { constructor(str: string, num: number) { diff --git a/pkg/fourslash/tests/gen/signatureHelpSimpleFunctionCall_test.go b/pkg/fourslash/tests/gen/signatureHelpSimpleFunctionCall_test.go index c9813098e..113b97ed2 100644 --- a/pkg/fourslash/tests/gen/signatureHelpSimpleFunctionCall_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpSimpleFunctionCall_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpSimpleFunctionCall(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// Simple function test function functionCall(str: string, num: number) { diff --git a/pkg/fourslash/tests/gen/signatureHelpSimpleSuperCall_test.go b/pkg/fourslash/tests/gen/signatureHelpSimpleSuperCall_test.go index f0a5dc1f3..cd451d2b9 100644 --- a/pkg/fourslash/tests/gen/signatureHelpSimpleSuperCall_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpSimpleSuperCall_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpSimpleSuperCall(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class SuperCallBase { constructor(b: boolean) { diff --git a/pkg/fourslash/tests/gen/signatureHelpSkippedArgs1_test.go b/pkg/fourslash/tests/gen/signatureHelpSkippedArgs1_test.go index df9d57ec5..55f4557b1 100644 --- a/pkg/fourslash/tests/gen/signatureHelpSkippedArgs1_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpSkippedArgs1_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpSkippedArgs1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function fn(a: number, b: number, c: number) {} fn(/*1*/, /*2*/, /*3*/, /*4*/, /*5*/);` diff --git a/pkg/fourslash/tests/gen/signatureHelpSuperConstructorOverload_test.go b/pkg/fourslash/tests/gen/signatureHelpSuperConstructorOverload_test.go index 15fc4b71b..b8def9685 100644 --- a/pkg/fourslash/tests/gen/signatureHelpSuperConstructorOverload_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpSuperConstructorOverload_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpSuperConstructorOverload(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class SuperOverloadBase { constructor(); diff --git a/pkg/fourslash/tests/gen/signatureHelpTaggedTemplatesNegatives1_test.go b/pkg/fourslash/tests/gen/signatureHelpTaggedTemplatesNegatives1_test.go index 2e8af47f9..074ce2ab3 100644 --- a/pkg/fourslash/tests/gen/signatureHelpTaggedTemplatesNegatives1_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpTaggedTemplatesNegatives1_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpTaggedTemplatesNegatives1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f(templateStrings, x, y, z) { return 10; } function g(templateStrings, x, y, z) { return ""; } diff --git a/pkg/fourslash/tests/gen/signatureHelpTaggedTemplatesNegatives2_test.go b/pkg/fourslash/tests/gen/signatureHelpTaggedTemplatesNegatives2_test.go index 2fb961732..106c3406c 100644 --- a/pkg/fourslash/tests/gen/signatureHelpTaggedTemplatesNegatives2_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpTaggedTemplatesNegatives2_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpTaggedTemplatesNegatives2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(strs, ...rest) { } diff --git a/pkg/fourslash/tests/gen/signatureHelpTaggedTemplatesNegatives3_test.go b/pkg/fourslash/tests/gen/signatureHelpTaggedTemplatesNegatives3_test.go index 4982e17de..fb8f7eb69 100644 --- a/pkg/fourslash/tests/gen/signatureHelpTaggedTemplatesNegatives3_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpTaggedTemplatesNegatives3_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpTaggedTemplatesNegatives3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(strs, ...rest) { } diff --git a/pkg/fourslash/tests/gen/signatureHelpTaggedTemplatesNegatives4_test.go b/pkg/fourslash/tests/gen/signatureHelpTaggedTemplatesNegatives4_test.go index 222ebc708..ba433f6ac 100644 --- a/pkg/fourslash/tests/gen/signatureHelpTaggedTemplatesNegatives4_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpTaggedTemplatesNegatives4_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpTaggedTemplatesNegatives4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(strs, ...rest) { } diff --git a/pkg/fourslash/tests/gen/signatureHelpTaggedTemplatesNegatives5_test.go b/pkg/fourslash/tests/gen/signatureHelpTaggedTemplatesNegatives5_test.go index 42df42dec..ae249fac3 100644 --- a/pkg/fourslash/tests/gen/signatureHelpTaggedTemplatesNegatives5_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpTaggedTemplatesNegatives5_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpTaggedTemplatesNegatives5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(strs, ...rest) { } diff --git a/pkg/fourslash/tests/gen/signatureHelpThis_test.go b/pkg/fourslash/tests/gen/signatureHelpThis_test.go index 1a93317d4..3728e457a 100644 --- a/pkg/fourslash/tests/gen/signatureHelpThis_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpThis_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpThis(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { public implicitAny(n: number) { diff --git a/pkg/fourslash/tests/gen/signatureHelpTrailingRestTuple_test.go b/pkg/fourslash/tests/gen/signatureHelpTrailingRestTuple_test.go index 88f87ee06..a1c038c0d 100644 --- a/pkg/fourslash/tests/gen/signatureHelpTrailingRestTuple_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpTrailingRestTuple_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpTrailingRestTuple(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export function leading(allCaps: boolean, ...names: string[]): void { } diff --git a/pkg/fourslash/tests/gen/signatureHelpTypeArguments2_test.go b/pkg/fourslash/tests/gen/signatureHelpTypeArguments2_test.go index 899a73da3..d7f844270 100644 --- a/pkg/fourslash/tests/gen/signatureHelpTypeArguments2_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpTypeArguments2_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpTypeArguments2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** some documentation * @template T some documentation 2 diff --git a/pkg/fourslash/tests/gen/signatureHelpTypeArguments_test.go b/pkg/fourslash/tests/gen/signatureHelpTypeArguments_test.go index d36b8dd76..512298b62 100644 --- a/pkg/fourslash/tests/gen/signatureHelpTypeArguments_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpTypeArguments_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpTypeArguments(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function f(a: number, b: string, c: boolean): void; // ignored, not generic declare function f(): void; diff --git a/pkg/fourslash/tests/gen/signatureHelpTypeParametersNotVariadic_test.go b/pkg/fourslash/tests/gen/signatureHelpTypeParametersNotVariadic_test.go index 44aa14596..ee46e45dd 100644 --- a/pkg/fourslash/tests/gen/signatureHelpTypeParametersNotVariadic_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpTypeParametersNotVariadic_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpTypeParametersNotVariadic(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function f(a: any, ...b: any[]): any; f(1, 2);` diff --git a/pkg/fourslash/tests/gen/signatureHelpWithInterfaceAsIdentifier_test.go b/pkg/fourslash/tests/gen/signatureHelpWithInterfaceAsIdentifier_test.go index 39d88c9e0..0b04565ad 100644 --- a/pkg/fourslash/tests/gen/signatureHelpWithInterfaceAsIdentifier_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpWithInterfaceAsIdentifier_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpWithInterfaceAsIdentifier(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface C { (): void; diff --git a/pkg/fourslash/tests/gen/signatureHelpWithInvalidArgumentList1_test.go b/pkg/fourslash/tests/gen/signatureHelpWithInvalidArgumentList1_test.go index 58568009c..bec12cca8 100644 --- a/pkg/fourslash/tests/gen/signatureHelpWithInvalidArgumentList1_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpWithInvalidArgumentList1_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpWithInvalidArgumentList1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo(a) { } foo(hello my name /**/is` diff --git a/pkg/fourslash/tests/gen/signatureHelpWithTriggers02_test.go b/pkg/fourslash/tests/gen/signatureHelpWithTriggers02_test.go index 3a01cc360..a86008a87 100644 --- a/pkg/fourslash/tests/gen/signatureHelpWithTriggers02_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpWithTriggers02_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpWithTriggers02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function foo(x: T, y: T): T; declare function bar(x: U, y: U): U; diff --git a/pkg/fourslash/tests/gen/signatureHelpWithUnknown_test.go b/pkg/fourslash/tests/gen/signatureHelpWithUnknown_test.go index f74a26d06..a5fca4881 100644 --- a/pkg/fourslash/tests/gen/signatureHelpWithUnknown_test.go +++ b/pkg/fourslash/tests/gen/signatureHelpWithUnknown_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelpWithUnknown(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `eval(\/*1*/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/signatureHelp_contextual_test.go b/pkg/fourslash/tests/gen/signatureHelp_contextual_test.go index 17c95689a..f68f2d056 100644 --- a/pkg/fourslash/tests/gen/signatureHelp_contextual_test.go +++ b/pkg/fourslash/tests/gen/signatureHelp_contextual_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelp_contextual(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface I { m(n: number, s: string): void; diff --git a/pkg/fourslash/tests/gen/signatureHelp_unionType_test.go b/pkg/fourslash/tests/gen/signatureHelp_unionType_test.go index 9e0343d54..8b288e3c0 100644 --- a/pkg/fourslash/tests/gen/signatureHelp_unionType_test.go +++ b/pkg/fourslash/tests/gen/signatureHelp_unionType_test.go @@ -8,8 +8,8 @@ import ( ) func TestSignatureHelp_unionType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const a: (fn?: ((x: string) => string) | ((y: number) => number)) => void; declare const b: (x: string | number) => void; diff --git a/pkg/fourslash/tests/gen/singleLineTypeLiteralFormatting_test.go b/pkg/fourslash/tests/gen/singleLineTypeLiteralFormatting_test.go index b3ae1182b..cf8b0e826 100644 --- a/pkg/fourslash/tests/gen/singleLineTypeLiteralFormatting_test.go +++ b/pkg/fourslash/tests/gen/singleLineTypeLiteralFormatting_test.go @@ -8,8 +8,8 @@ import ( ) func TestSingleLineTypeLiteralFormatting(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function of1(b: { r: { c: number/**/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/smartSelection_JSDocTags10_test.go b/pkg/fourslash/tests/gen/smartSelection_JSDocTags10_test.go index bda3c628e..e035c659e 100644 --- a/pkg/fourslash/tests/gen/smartSelection_JSDocTags10_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_JSDocTags10_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_JSDocTags10(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * @template T diff --git a/pkg/fourslash/tests/gen/smartSelection_JSDocTags11_test.go b/pkg/fourslash/tests/gen/smartSelection_JSDocTags11_test.go index 0acbcbaca..44f8d1710 100644 --- a/pkg/fourslash/tests/gen/smartSelection_JSDocTags11_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_JSDocTags11_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_JSDocTags11(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const x = 1; type Foo = { diff --git a/pkg/fourslash/tests/gen/smartSelection_JSDocTags12_test.go b/pkg/fourslash/tests/gen/smartSelection_JSDocTags12_test.go index 2385df725..d0fae6bb9 100644 --- a/pkg/fourslash/tests/gen/smartSelection_JSDocTags12_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_JSDocTags12_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_JSDocTags12(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type B = {}; type A = { diff --git a/pkg/fourslash/tests/gen/smartSelection_JSDocTags13_test.go b/pkg/fourslash/tests/gen/smartSelection_JSDocTags13_test.go index 287980b08..b4ff60279 100644 --- a/pkg/fourslash/tests/gen/smartSelection_JSDocTags13_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_JSDocTags13_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_JSDocTags13(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let a; let b: { diff --git a/pkg/fourslash/tests/gen/smartSelection_JSDocTags1_test.go b/pkg/fourslash/tests/gen/smartSelection_JSDocTags1_test.go index 4360f5d0a..a3963c8cf 100644 --- a/pkg/fourslash/tests/gen/smartSelection_JSDocTags1_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_JSDocTags1_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_JSDocTags1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * @returns {Array<{ value: /**/string }>} diff --git a/pkg/fourslash/tests/gen/smartSelection_JSDocTags2_test.go b/pkg/fourslash/tests/gen/smartSelection_JSDocTags2_test.go index a7e1ff774..75c184df2 100644 --- a/pkg/fourslash/tests/gen/smartSelection_JSDocTags2_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_JSDocTags2_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_JSDocTags2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * @type {/**/string} diff --git a/pkg/fourslash/tests/gen/smartSelection_JSDocTags3_test.go b/pkg/fourslash/tests/gen/smartSelection_JSDocTags3_test.go index 4b70d7754..b2c4a4077 100644 --- a/pkg/fourslash/tests/gen/smartSelection_JSDocTags3_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_JSDocTags3_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_JSDocTags3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * @param {/**/string} x diff --git a/pkg/fourslash/tests/gen/smartSelection_JSDocTags4_test.go b/pkg/fourslash/tests/gen/smartSelection_JSDocTags4_test.go index 56f6a7faf..90b19148e 100644 --- a/pkg/fourslash/tests/gen/smartSelection_JSDocTags4_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_JSDocTags4_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_JSDocTags4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * @typedef {object} Foo diff --git a/pkg/fourslash/tests/gen/smartSelection_JSDocTags5_test.go b/pkg/fourslash/tests/gen/smartSelection_JSDocTags5_test.go index b6363833a..28fca2af2 100644 --- a/pkg/fourslash/tests/gen/smartSelection_JSDocTags5_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_JSDocTags5_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_JSDocTags5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * @callback Foo diff --git a/pkg/fourslash/tests/gen/smartSelection_JSDocTags6_test.go b/pkg/fourslash/tests/gen/smartSelection_JSDocTags6_test.go index fa9693647..d81ee54e1 100644 --- a/pkg/fourslash/tests/gen/smartSelection_JSDocTags6_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_JSDocTags6_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_JSDocTags6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * @template T diff --git a/pkg/fourslash/tests/gen/smartSelection_JSDocTags7_test.go b/pkg/fourslash/tests/gen/smartSelection_JSDocTags7_test.go index e4ba9e72f..4bcfe769c 100644 --- a/pkg/fourslash/tests/gen/smartSelection_JSDocTags7_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_JSDocTags7_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_JSDocTags7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * @constructor diff --git a/pkg/fourslash/tests/gen/smartSelection_JSDocTags8_test.go b/pkg/fourslash/tests/gen/smartSelection_JSDocTags8_test.go index 6432daa08..fcc2e3068 100644 --- a/pkg/fourslash/tests/gen/smartSelection_JSDocTags8_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_JSDocTags8_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_JSDocTags8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * @this {/*1*/Foo} diff --git a/pkg/fourslash/tests/gen/smartSelection_JSDocTags9_test.go b/pkg/fourslash/tests/gen/smartSelection_JSDocTags9_test.go index 3667b2686..dee18abca 100644 --- a/pkg/fourslash/tests/gen/smartSelection_JSDocTags9_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_JSDocTags9_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_JSDocTags9(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** @enum {/**/number} */ const Foo = { diff --git a/pkg/fourslash/tests/gen/smartSelection_JSDoc_test.go b/pkg/fourslash/tests/gen/smartSelection_JSDoc_test.go index 5bbe3f9fa..cdc653d95 100644 --- a/pkg/fourslash/tests/gen/smartSelection_JSDoc_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_JSDoc_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_JSDoc(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// Not a JSDoc comment /** diff --git a/pkg/fourslash/tests/gen/smartSelection_behindCaret_test.go b/pkg/fourslash/tests/gen/smartSelection_behindCaret_test.go index fc32d3f36..d8e2f14fb 100644 --- a/pkg/fourslash/tests/gen/smartSelection_behindCaret_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_behindCaret_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_behindCaret(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let/**/ x: string` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/smartSelection_bindingPatterns_test.go b/pkg/fourslash/tests/gen/smartSelection_bindingPatterns_test.go index 85f84a85f..b86919a2f 100644 --- a/pkg/fourslash/tests/gen/smartSelection_bindingPatterns_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_bindingPatterns_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_bindingPatterns(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const { /*1*/x, y: /*2*/a, .../*3*/zs = {} } = {};` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/smartSelection_comment1_test.go b/pkg/fourslash/tests/gen/smartSelection_comment1_test.go index a230966e3..1e6be7fb7 100644 --- a/pkg/fourslash/tests/gen/smartSelection_comment1_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_comment1_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_comment1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const a = 1; ///**/comment content` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/smartSelection_comment2_test.go b/pkg/fourslash/tests/gen/smartSelection_comment2_test.go index d82b23aca..b4072c3fd 100644 --- a/pkg/fourslash/tests/gen/smartSelection_comment2_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_comment2_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_comment2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const a = 1; //a b/**/c d` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/smartSelection_complex_test.go b/pkg/fourslash/tests/gen/smartSelection_complex_test.go index bd2ed92a4..238a710b1 100644 --- a/pkg/fourslash/tests/gen/smartSelection_complex_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_complex_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_complex(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type X = IsExactlyAny

extends true ? T : ({ [K in keyof P]: IsExactlyAny extends true ? K extends keyof T ? T[K] : P[/**/K] : P[K]; } & Pick>)` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/smartSelection_emptyRanges_test.go b/pkg/fourslash/tests/gen/smartSelection_emptyRanges_test.go index e80d6dbbe..9ac3557ff 100644 --- a/pkg/fourslash/tests/gen/smartSelection_emptyRanges_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_emptyRanges_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_emptyRanges(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class HomePage { componentDidMount(/*1*/) { diff --git a/pkg/fourslash/tests/gen/smartSelection_function1_test.go b/pkg/fourslash/tests/gen/smartSelection_function1_test.go index fd0917ac7..89150057f 100644 --- a/pkg/fourslash/tests/gen/smartSelection_function1_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_function1_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_function1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const f1 = () => { /**/ diff --git a/pkg/fourslash/tests/gen/smartSelection_function2_test.go b/pkg/fourslash/tests/gen/smartSelection_function2_test.go index 654dc2095..b54c899fd 100644 --- a/pkg/fourslash/tests/gen/smartSelection_function2_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_function2_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_function2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f2() { /**/ diff --git a/pkg/fourslash/tests/gen/smartSelection_function3_test.go b/pkg/fourslash/tests/gen/smartSelection_function3_test.go index 561911d3b..b31bfd18d 100644 --- a/pkg/fourslash/tests/gen/smartSelection_function3_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_function3_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_function3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const f3 = function () { /**/ diff --git a/pkg/fourslash/tests/gen/smartSelection_functionParams1_test.go b/pkg/fourslash/tests/gen/smartSelection_functionParams1_test.go index dad58be1c..f41fea276 100644 --- a/pkg/fourslash/tests/gen/smartSelection_functionParams1_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_functionParams1_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_functionParams1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f(/*1*/p, /*2*/q?, /*3*/...r: any[] = []) {}` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/smartSelection_functionParams2_test.go b/pkg/fourslash/tests/gen/smartSelection_functionParams2_test.go index b58c5a0bc..7789e3643 100644 --- a/pkg/fourslash/tests/gen/smartSelection_functionParams2_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_functionParams2_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_functionParams2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f( a, diff --git a/pkg/fourslash/tests/gen/smartSelection_imports_test.go b/pkg/fourslash/tests/gen/smartSelection_imports_test.go index 37bb6ffb3..4894e9421 100644 --- a/pkg/fourslash/tests/gen/smartSelection_imports_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_imports_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_imports(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `import { /**/x as y, z } from './z'; import { b } from './'; diff --git a/pkg/fourslash/tests/gen/smartSelection_lastBlankLine_test.go b/pkg/fourslash/tests/gen/smartSelection_lastBlankLine_test.go index 86139f515..0adc9923d 100644 --- a/pkg/fourslash/tests/gen/smartSelection_lastBlankLine_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_lastBlankLine_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_lastBlankLine(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class C {} /**/` diff --git a/pkg/fourslash/tests/gen/smartSelection_loneVariableDeclaration_test.go b/pkg/fourslash/tests/gen/smartSelection_loneVariableDeclaration_test.go index 36accf9bd..d6906478e 100644 --- a/pkg/fourslash/tests/gen/smartSelection_loneVariableDeclaration_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_loneVariableDeclaration_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_loneVariableDeclaration(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const /**/x = 3;` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/smartSelection_mappedTypes_test.go b/pkg/fourslash/tests/gen/smartSelection_mappedTypes_test.go index 58328a734..7f16a2f28 100644 --- a/pkg/fourslash/tests/gen/smartSelection_mappedTypes_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_mappedTypes_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_mappedTypes(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type M = { /*1*/-re/*2*/adonly /*3*/[K in ke/*4*/yof any]/*5*/-/*6*/?: any };` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/smartSelection_objectTypes_test.go b/pkg/fourslash/tests/gen/smartSelection_objectTypes_test.go index d0b2fb6a2..c89e14d74 100644 --- a/pkg/fourslash/tests/gen/smartSelection_objectTypes_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_objectTypes_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_objectTypes(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type X = { /*1*/foo?: string; diff --git a/pkg/fourslash/tests/gen/smartSelection_punctuationPriority_test.go b/pkg/fourslash/tests/gen/smartSelection_punctuationPriority_test.go index d14455bd4..85856bc09 100644 --- a/pkg/fourslash/tests/gen/smartSelection_punctuationPriority_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_punctuationPriority_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_punctuationPriority(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `console/**/.log();` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/smartSelection_simple1_test.go b/pkg/fourslash/tests/gen/smartSelection_simple1_test.go index 5011e55ff..1604b0833 100644 --- a/pkg/fourslash/tests/gen/smartSelection_simple1_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_simple1_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_simple1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { bar(a, b) { diff --git a/pkg/fourslash/tests/gen/smartSelection_simple2_test.go b/pkg/fourslash/tests/gen/smartSelection_simple2_test.go index 526be6661..0d6997c47 100644 --- a/pkg/fourslash/tests/gen/smartSelection_simple2_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_simple2_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_simple2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export interface IService { _serviceBrand: any; diff --git a/pkg/fourslash/tests/gen/smartSelection_stringLiteral_test.go b/pkg/fourslash/tests/gen/smartSelection_stringLiteral_test.go index 814afe236..57a621e43 100644 --- a/pkg/fourslash/tests/gen/smartSelection_stringLiteral_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_stringLiteral_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_stringLiteral(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const a = 'a'; const b = /**/'b';` diff --git a/pkg/fourslash/tests/gen/smartSelection_templateStrings2_test.go b/pkg/fourslash/tests/gen/smartSelection_templateStrings2_test.go index cbd5feabe..5a84e776b 100644 --- a/pkg/fourslash/tests/gen/smartSelection_templateStrings2_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_templateStrings2_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_templateStrings2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `` + "`" + `a ${b} /**/c` + "`" + `` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/smartSelection_templateStrings_test.go b/pkg/fourslash/tests/gen/smartSelection_templateStrings_test.go index ffc67dfbd..90db5c94e 100644 --- a/pkg/fourslash/tests/gen/smartSelection_templateStrings_test.go +++ b/pkg/fourslash/tests/gen/smartSelection_templateStrings_test.go @@ -8,8 +8,8 @@ import ( ) func TestSmartSelection_templateStrings(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `` + "`" + `a /*1*/b ${ '/*2*/c' diff --git a/pkg/fourslash/tests/gen/spaceAfterConstructor_test.go b/pkg/fourslash/tests/gen/spaceAfterConstructor_test.go index 60eeb0460..52d5f7027 100644 --- a/pkg/fourslash/tests/gen/spaceAfterConstructor_test.go +++ b/pkg/fourslash/tests/gen/spaceAfterConstructor_test.go @@ -8,8 +8,8 @@ import ( ) func TestSpaceAfterConstructor(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export class myController { private _processId; diff --git a/pkg/fourslash/tests/gen/specialIntersectionsOrderIndependent_test.go b/pkg/fourslash/tests/gen/specialIntersectionsOrderIndependent_test.go index 12a6de55b..fab43665d 100644 --- a/pkg/fourslash/tests/gen/specialIntersectionsOrderIndependent_test.go +++ b/pkg/fourslash/tests/gen/specialIntersectionsOrderIndependent_test.go @@ -9,8 +9,8 @@ import ( ) func TestSpecialIntersectionsOrderIndependent(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function a(arg: 'test' | (string & {})): void a('/*1*/') diff --git a/pkg/fourslash/tests/gen/squiggleIllegalClassExtension_test.go b/pkg/fourslash/tests/gen/squiggleIllegalClassExtension_test.go index 8c0207f93..614111b47 100644 --- a/pkg/fourslash/tests/gen/squiggleIllegalClassExtension_test.go +++ b/pkg/fourslash/tests/gen/squiggleIllegalClassExtension_test.go @@ -8,8 +8,8 @@ import ( ) func TestSquiggleIllegalClassExtension(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo extends /*1*/Bar/*2*/ { }` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/squiggleIllegalSubclassOverride_test.go b/pkg/fourslash/tests/gen/squiggleIllegalSubclassOverride_test.go index bdb855eed..4837d48a4 100644 --- a/pkg/fourslash/tests/gen/squiggleIllegalSubclassOverride_test.go +++ b/pkg/fourslash/tests/gen/squiggleIllegalSubclassOverride_test.go @@ -8,8 +8,8 @@ import ( ) func TestSquiggleIllegalSubclassOverride(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { public x: number; diff --git a/pkg/fourslash/tests/gen/staticGenericOverloads1_test.go b/pkg/fourslash/tests/gen/staticGenericOverloads1_test.go index 7c3c1c0c1..8a208f0f5 100644 --- a/pkg/fourslash/tests/gen/staticGenericOverloads1_test.go +++ b/pkg/fourslash/tests/gen/staticGenericOverloads1_test.go @@ -8,8 +8,8 @@ import ( ) func TestStaticGenericOverloads1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class A { static B(v: A): A; diff --git a/pkg/fourslash/tests/gen/stringCompletionsFromGenericConditionalTypesUsingTemplateLiteralTypes_test.go b/pkg/fourslash/tests/gen/stringCompletionsFromGenericConditionalTypesUsingTemplateLiteralTypes_test.go index 0790cf585..089d402e1 100644 --- a/pkg/fourslash/tests/gen/stringCompletionsFromGenericConditionalTypesUsingTemplateLiteralTypes_test.go +++ b/pkg/fourslash/tests/gen/stringCompletionsFromGenericConditionalTypesUsingTemplateLiteralTypes_test.go @@ -9,8 +9,8 @@ import ( ) func TestStringCompletionsFromGenericConditionalTypesUsingTemplateLiteralTypes(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true type keyword = "foo" | "bar" | "baz" diff --git a/pkg/fourslash/tests/gen/stringCompletionsImportOrExportSpecifier_test.go b/pkg/fourslash/tests/gen/stringCompletionsImportOrExportSpecifier_test.go index 1046acee7..a3f6a2fa3 100644 --- a/pkg/fourslash/tests/gen/stringCompletionsImportOrExportSpecifier_test.go +++ b/pkg/fourslash/tests/gen/stringCompletionsImportOrExportSpecifier_test.go @@ -9,8 +9,8 @@ import ( ) func TestStringCompletionsImportOrExportSpecifier(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: exports.ts export let foo = 1; diff --git a/pkg/fourslash/tests/gen/stringCompletionsVsEscaping_test.go b/pkg/fourslash/tests/gen/stringCompletionsVsEscaping_test.go index 9c531b39a..528f7e2bf 100644 --- a/pkg/fourslash/tests/gen/stringCompletionsVsEscaping_test.go +++ b/pkg/fourslash/tests/gen/stringCompletionsVsEscaping_test.go @@ -9,8 +9,8 @@ import ( ) func TestStringCompletionsVsEscaping(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type Value

= ` + "`" + `var(--\\\\, ${P})` + "`" + ` export const value: Value<'one' | 'two'> = "/*1*/" diff --git a/pkg/fourslash/tests/gen/stringLiteralCompletionsForGenericConditionalTypesUsingTemplateLiteralTypes_test.go b/pkg/fourslash/tests/gen/stringLiteralCompletionsForGenericConditionalTypesUsingTemplateLiteralTypes_test.go index 4394c8c95..1e9bada26 100644 --- a/pkg/fourslash/tests/gen/stringLiteralCompletionsForGenericConditionalTypesUsingTemplateLiteralTypes_test.go +++ b/pkg/fourslash/tests/gen/stringLiteralCompletionsForGenericConditionalTypesUsingTemplateLiteralTypes_test.go @@ -9,8 +9,8 @@ import ( ) func TestStringLiteralCompletionsForGenericConditionalTypesUsingTemplateLiteralTypes(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type PathOf = K extends ` + "`" + `${infer U}.${infer V}` + "`" + ` diff --git a/pkg/fourslash/tests/gen/stringLiteralCompletionsForOpenEndedTemplateLiteralType_test.go b/pkg/fourslash/tests/gen/stringLiteralCompletionsForOpenEndedTemplateLiteralType_test.go index 4a6f53912..a48f67baf 100644 --- a/pkg/fourslash/tests/gen/stringLiteralCompletionsForOpenEndedTemplateLiteralType_test.go +++ b/pkg/fourslash/tests/gen/stringLiteralCompletionsForOpenEndedTemplateLiteralType_test.go @@ -9,8 +9,8 @@ import ( ) func TestStringLiteralCompletionsForOpenEndedTemplateLiteralType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function conversionTest(groupName: | "downcast" | "dataDowncast" | "editingDowncast" | ` + "`" + `${string}Downcast` + "`" + ` & {}) {} conversionTest("/**/");` diff --git a/pkg/fourslash/tests/gen/stringLiteralCompletionsForStringEnumContextualType_test.go b/pkg/fourslash/tests/gen/stringLiteralCompletionsForStringEnumContextualType_test.go index 6b702e9b2..87e6432bb 100644 --- a/pkg/fourslash/tests/gen/stringLiteralCompletionsForStringEnumContextualType_test.go +++ b/pkg/fourslash/tests/gen/stringLiteralCompletionsForStringEnumContextualType_test.go @@ -9,8 +9,8 @@ import ( ) func TestStringLiteralCompletionsForStringEnumContextualType(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `const enum E { A = "A", diff --git a/pkg/fourslash/tests/gen/stringLiteralCompletionsForTypeIndexedAccess_test.go b/pkg/fourslash/tests/gen/stringLiteralCompletionsForTypeIndexedAccess_test.go index 094fedc8b..77a939d3a 100644 --- a/pkg/fourslash/tests/gen/stringLiteralCompletionsForTypeIndexedAccess_test.go +++ b/pkg/fourslash/tests/gen/stringLiteralCompletionsForTypeIndexedAccess_test.go @@ -9,8 +9,8 @@ import ( ) func TestStringLiteralCompletionsForTypeIndexedAccess(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `type Foo = { a: string; b: number; c: boolean; }; type A = Foo["/*1*/"]; diff --git a/pkg/fourslash/tests/gen/stringLiteralCompletionsInArgUsingInferenceResultFromPreviousArg_test.go b/pkg/fourslash/tests/gen/stringLiteralCompletionsInArgUsingInferenceResultFromPreviousArg_test.go index fd584def6..c03664504 100644 --- a/pkg/fourslash/tests/gen/stringLiteralCompletionsInArgUsingInferenceResultFromPreviousArg_test.go +++ b/pkg/fourslash/tests/gen/stringLiteralCompletionsInArgUsingInferenceResultFromPreviousArg_test.go @@ -9,8 +9,8 @@ import ( ) func TestStringLiteralCompletionsInArgUsingInferenceResultFromPreviousArg(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true // https://github.com/microsoft/TypeScript/issues/55545 diff --git a/pkg/fourslash/tests/gen/stringLiteralCompletionsInJsxAttributeInitializer_test.go b/pkg/fourslash/tests/gen/stringLiteralCompletionsInJsxAttributeInitializer_test.go index 56ed4aac4..bf6943dc4 100644 --- a/pkg/fourslash/tests/gen/stringLiteralCompletionsInJsxAttributeInitializer_test.go +++ b/pkg/fourslash/tests/gen/stringLiteralCompletionsInJsxAttributeInitializer_test.go @@ -9,8 +9,8 @@ import ( ) func TestStringLiteralCompletionsInJsxAttributeInitializer(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @jsx: preserve // @filename: /a.tsx diff --git a/pkg/fourslash/tests/gen/stringLiteralCompletionsInPositionTypedUsingRest_test.go b/pkg/fourslash/tests/gen/stringLiteralCompletionsInPositionTypedUsingRest_test.go index fcb775240..4ed5d5011 100644 --- a/pkg/fourslash/tests/gen/stringLiteralCompletionsInPositionTypedUsingRest_test.go +++ b/pkg/fourslash/tests/gen/stringLiteralCompletionsInPositionTypedUsingRest_test.go @@ -9,8 +9,8 @@ import ( ) func TestStringLiteralCompletionsInPositionTypedUsingRest(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function pick(obj: T, ...keys: K[]): Pick; declare function pick2(obj: T, ...keys: K): Pick; diff --git a/pkg/fourslash/tests/gen/stringLiteralTypeCompletionsInTypeArgForNonGeneric1_test.go b/pkg/fourslash/tests/gen/stringLiteralTypeCompletionsInTypeArgForNonGeneric1_test.go index 3e193123c..127bba6df 100644 --- a/pkg/fourslash/tests/gen/stringLiteralTypeCompletionsInTypeArgForNonGeneric1_test.go +++ b/pkg/fourslash/tests/gen/stringLiteralTypeCompletionsInTypeArgForNonGeneric1_test.go @@ -9,8 +9,8 @@ import ( ) func TestStringLiteralTypeCompletionsInTypeArgForNonGeneric1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Foo {} type Bar = {}; diff --git a/pkg/fourslash/tests/gen/stringPropertyNames1_test.go b/pkg/fourslash/tests/gen/stringPropertyNames1_test.go index 7d147f5d9..f27d32ccb 100644 --- a/pkg/fourslash/tests/gen/stringPropertyNames1_test.go +++ b/pkg/fourslash/tests/gen/stringPropertyNames1_test.go @@ -8,8 +8,8 @@ import ( ) func TestStringPropertyNames1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export interface Album { "artist": number; diff --git a/pkg/fourslash/tests/gen/stringPropertyNames2_test.go b/pkg/fourslash/tests/gen/stringPropertyNames2_test.go index 4d4bdd149..a55efbcf2 100644 --- a/pkg/fourslash/tests/gen/stringPropertyNames2_test.go +++ b/pkg/fourslash/tests/gen/stringPropertyNames2_test.go @@ -8,8 +8,8 @@ import ( ) func TestStringPropertyNames2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export interface Album { "artist": T; diff --git a/pkg/fourslash/tests/gen/suggestionNoDuplicates_test.go b/pkg/fourslash/tests/gen/suggestionNoDuplicates_test.go index d0d9e5a26..c89ee2b12 100644 --- a/pkg/fourslash/tests/gen/suggestionNoDuplicates_test.go +++ b/pkg/fourslash/tests/gen/suggestionNoDuplicates_test.go @@ -10,8 +10,8 @@ import ( ) func TestSuggestionNoDuplicates(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: false // @Filename: foo.ts diff --git a/pkg/fourslash/tests/gen/suggestionOfUnusedVariableWithExternalModule_test.go b/pkg/fourslash/tests/gen/suggestionOfUnusedVariableWithExternalModule_test.go index c1a9a6d88..59c9288a2 100644 --- a/pkg/fourslash/tests/gen/suggestionOfUnusedVariableWithExternalModule_test.go +++ b/pkg/fourslash/tests/gen/suggestionOfUnusedVariableWithExternalModule_test.go @@ -10,8 +10,8 @@ import ( ) func TestSuggestionOfUnusedVariableWithExternalModule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@allowJs: true // @Filename: /mymodule.js diff --git a/pkg/fourslash/tests/gen/superCallError0_test.go b/pkg/fourslash/tests/gen/superCallError0_test.go index 397e89fb1..adbf7033f 100644 --- a/pkg/fourslash/tests/gen/superCallError0_test.go +++ b/pkg/fourslash/tests/gen/superCallError0_test.go @@ -8,8 +8,8 @@ import ( ) func TestSuperCallError0(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class T5{ constructor(public bar: T) { } diff --git a/pkg/fourslash/tests/gen/superInDerivedTypeOfGenericWithStatics_test.go b/pkg/fourslash/tests/gen/superInDerivedTypeOfGenericWithStatics_test.go index 034fe0e62..1845204cf 100644 --- a/pkg/fourslash/tests/gen/superInDerivedTypeOfGenericWithStatics_test.go +++ b/pkg/fourslash/tests/gen/superInDerivedTypeOfGenericWithStatics_test.go @@ -8,8 +8,8 @@ import ( ) func TestSuperInDerivedTypeOfGenericWithStatics(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module M { export class C { diff --git a/pkg/fourslash/tests/gen/superInsideInnerClass_test.go b/pkg/fourslash/tests/gen/superInsideInnerClass_test.go index af1b76fde..305efeadd 100644 --- a/pkg/fourslash/tests/gen/superInsideInnerClass_test.go +++ b/pkg/fourslash/tests/gen/superInsideInnerClass_test.go @@ -8,8 +8,8 @@ import ( ) func TestSuperInsideInnerClass(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Base { constructor(n: number) { diff --git a/pkg/fourslash/tests/gen/switchCompletions_test.go b/pkg/fourslash/tests/gen/switchCompletions_test.go index 5edf3b665..f52c56009 100644 --- a/pkg/fourslash/tests/gen/switchCompletions_test.go +++ b/pkg/fourslash/tests/gen/switchCompletions_test.go @@ -9,8 +9,8 @@ import ( ) func TestSwitchCompletions(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `enum E { A, B } declare const e: E; diff --git a/pkg/fourslash/tests/gen/symbolCompletionLowerPriority_test.go b/pkg/fourslash/tests/gen/symbolCompletionLowerPriority_test.go index 447157e11..6afca4334 100644 --- a/pkg/fourslash/tests/gen/symbolCompletionLowerPriority_test.go +++ b/pkg/fourslash/tests/gen/symbolCompletionLowerPriority_test.go @@ -11,8 +11,8 @@ import ( ) func TestSymbolCompletionLowerPriority(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare const Symbol: (s: string) => symbol; const mySymbol = Symbol("test"); diff --git a/pkg/fourslash/tests/gen/symbolNameAtUnparseableFunctionOverload_test.go b/pkg/fourslash/tests/gen/symbolNameAtUnparseableFunctionOverload_test.go index c33d4d5f4..92df48dac 100644 --- a/pkg/fourslash/tests/gen/symbolNameAtUnparseableFunctionOverload_test.go +++ b/pkg/fourslash/tests/gen/symbolNameAtUnparseableFunctionOverload_test.go @@ -8,8 +8,8 @@ import ( ) func TestSymbolNameAtUnparseableFunctionOverload(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class TestClass { public function foo(x: string): void; diff --git a/pkg/fourslash/tests/gen/syntaxErrorAfterImport1_test.go b/pkg/fourslash/tests/gen/syntaxErrorAfterImport1_test.go index 5788b3645..ada40b717 100644 --- a/pkg/fourslash/tests/gen/syntaxErrorAfterImport1_test.go +++ b/pkg/fourslash/tests/gen/syntaxErrorAfterImport1_test.go @@ -8,8 +8,8 @@ import ( ) func TestSyntaxErrorAfterImport1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare module "extmod" { module IntMod { diff --git a/pkg/fourslash/tests/gen/syntheticImportFromBabelGeneratedFile1_test.go b/pkg/fourslash/tests/gen/syntheticImportFromBabelGeneratedFile1_test.go index 3dce02845..b03ce281e 100644 --- a/pkg/fourslash/tests/gen/syntheticImportFromBabelGeneratedFile1_test.go +++ b/pkg/fourslash/tests/gen/syntheticImportFromBabelGeneratedFile1_test.go @@ -8,8 +8,8 @@ import ( ) func TestSyntheticImportFromBabelGeneratedFile1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @allowSyntheticDefaultImports: true diff --git a/pkg/fourslash/tests/gen/syntheticImportFromBabelGeneratedFile2_test.go b/pkg/fourslash/tests/gen/syntheticImportFromBabelGeneratedFile2_test.go index 8b9a0bdaf..6195d977a 100644 --- a/pkg/fourslash/tests/gen/syntheticImportFromBabelGeneratedFile2_test.go +++ b/pkg/fourslash/tests/gen/syntheticImportFromBabelGeneratedFile2_test.go @@ -8,8 +8,8 @@ import ( ) func TestSyntheticImportFromBabelGeneratedFile2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @allowJs: true // @allowSyntheticDefaultImports: true diff --git a/pkg/fourslash/tests/gen/tabbingAfterNewlineInsertedBeforeWhile_test.go b/pkg/fourslash/tests/gen/tabbingAfterNewlineInsertedBeforeWhile_test.go index 78fbce24f..7b7db3018 100644 --- a/pkg/fourslash/tests/gen/tabbingAfterNewlineInsertedBeforeWhile_test.go +++ b/pkg/fourslash/tests/gen/tabbingAfterNewlineInsertedBeforeWhile_test.go @@ -8,8 +8,8 @@ import ( ) func TestTabbingAfterNewlineInsertedBeforeWhile(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function foo() { /**/while (true) { } diff --git a/pkg/fourslash/tests/gen/thisBindingInLambda_test.go b/pkg/fourslash/tests/gen/thisBindingInLambda_test.go index b43c394de..e6565c2bb 100644 --- a/pkg/fourslash/tests/gen/thisBindingInLambda_test.go +++ b/pkg/fourslash/tests/gen/thisBindingInLambda_test.go @@ -8,8 +8,8 @@ import ( ) func TestThisBindingInLambda(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Greeter { constructor() { diff --git a/pkg/fourslash/tests/gen/thisPredicateFunctionCompletions02_test.go b/pkg/fourslash/tests/gen/thisPredicateFunctionCompletions02_test.go index 3a285e046..ef9dfdc77 100644 --- a/pkg/fourslash/tests/gen/thisPredicateFunctionCompletions02_test.go +++ b/pkg/fourslash/tests/gen/thisPredicateFunctionCompletions02_test.go @@ -9,8 +9,8 @@ import ( ) func TestThisPredicateFunctionCompletions02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Sundries { broken: boolean; diff --git a/pkg/fourslash/tests/gen/thisPredicateFunctionCompletions03_test.go b/pkg/fourslash/tests/gen/thisPredicateFunctionCompletions03_test.go index ef7fed52f..550085772 100644 --- a/pkg/fourslash/tests/gen/thisPredicateFunctionCompletions03_test.go +++ b/pkg/fourslash/tests/gen/thisPredicateFunctionCompletions03_test.go @@ -9,8 +9,8 @@ import ( ) func TestThisPredicateFunctionCompletions03(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class RoyalGuard { isLeader(): this is LeadGuard { diff --git a/pkg/fourslash/tests/gen/thisPredicateFunctionQuickInfo01_test.go b/pkg/fourslash/tests/gen/thisPredicateFunctionQuickInfo01_test.go index 2ab9e82ed..f1a0c70d6 100644 --- a/pkg/fourslash/tests/gen/thisPredicateFunctionQuickInfo01_test.go +++ b/pkg/fourslash/tests/gen/thisPredicateFunctionQuickInfo01_test.go @@ -8,8 +8,8 @@ import ( ) func TestThisPredicateFunctionQuickInfo01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class FileSystemObject { /*1*/isFile(): this is Item { diff --git a/pkg/fourslash/tests/gen/thisPredicateFunctionQuickInfo02_test.go b/pkg/fourslash/tests/gen/thisPredicateFunctionQuickInfo02_test.go index c81420232..2b000a452 100644 --- a/pkg/fourslash/tests/gen/thisPredicateFunctionQuickInfo02_test.go +++ b/pkg/fourslash/tests/gen/thisPredicateFunctionQuickInfo02_test.go @@ -8,8 +8,8 @@ import ( ) func TestThisPredicateFunctionQuickInfo02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Sundries { broken: boolean; diff --git a/pkg/fourslash/tests/gen/thisPredicateFunctionQuickInfo_test.go b/pkg/fourslash/tests/gen/thisPredicateFunctionQuickInfo_test.go index 9924a92a4..d08fe3f8b 100644 --- a/pkg/fourslash/tests/gen/thisPredicateFunctionQuickInfo_test.go +++ b/pkg/fourslash/tests/gen/thisPredicateFunctionQuickInfo_test.go @@ -8,8 +8,8 @@ import ( ) func TestThisPredicateFunctionQuickInfo(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class RoyalGuard { isLeader(): this is LeadGuard { diff --git a/pkg/fourslash/tests/gen/toggleDuplicateFunctionDeclaration_test.go b/pkg/fourslash/tests/gen/toggleDuplicateFunctionDeclaration_test.go index 964acd658..cf6341b5e 100644 --- a/pkg/fourslash/tests/gen/toggleDuplicateFunctionDeclaration_test.go +++ b/pkg/fourslash/tests/gen/toggleDuplicateFunctionDeclaration_test.go @@ -8,8 +8,8 @@ import ( ) func TestToggleDuplicateFunctionDeclaration(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class D { } D();` diff --git a/pkg/fourslash/tests/gen/trailingCommaSignatureHelp_test.go b/pkg/fourslash/tests/gen/trailingCommaSignatureHelp_test.go index 77d08d92c..6caae42fe 100644 --- a/pkg/fourslash/tests/gen/trailingCommaSignatureHelp_test.go +++ b/pkg/fourslash/tests/gen/trailingCommaSignatureHelp_test.go @@ -8,8 +8,8 @@ import ( ) func TestTrailingCommaSignatureHelp(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function str(n: number): string; /** diff --git a/pkg/fourslash/tests/gen/transitiveExportImports2_test.go b/pkg/fourslash/tests/gen/transitiveExportImports2_test.go index 5eba2b7e4..237076ad4 100644 --- a/pkg/fourslash/tests/gen/transitiveExportImports2_test.go +++ b/pkg/fourslash/tests/gen/transitiveExportImports2_test.go @@ -8,8 +8,8 @@ import ( ) func TestTransitiveExportImports2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts [|namespace /*A*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}A|] { diff --git a/pkg/fourslash/tests/gen/transitiveExportImports3_test.go b/pkg/fourslash/tests/gen/transitiveExportImports3_test.go index 1ace53a1b..257171450 100644 --- a/pkg/fourslash/tests/gen/transitiveExportImports3_test.go +++ b/pkg/fourslash/tests/gen/transitiveExportImports3_test.go @@ -8,8 +8,8 @@ import ( ) func TestTransitiveExportImports3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts [|export function /*f*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}f|]() {}|] diff --git a/pkg/fourslash/tests/gen/transitiveExportImports_test.go b/pkg/fourslash/tests/gen/transitiveExportImports_test.go index 641edb8cf..c4a3fdc95 100644 --- a/pkg/fourslash/tests/gen/transitiveExportImports_test.go +++ b/pkg/fourslash/tests/gen/transitiveExportImports_test.go @@ -8,8 +8,8 @@ import ( ) func TestTransitiveExportImports(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: a.ts [|class /*1*/[|{| "isWriteAccess": true, "isDefinition": true, "contextRangeIndex": 0 |}A|] { diff --git a/pkg/fourslash/tests/gen/tripleSlashRefPathCompletionAbsolutePaths_test.go b/pkg/fourslash/tests/gen/tripleSlashRefPathCompletionAbsolutePaths_test.go index eb6b8da83..12bc16e9a 100644 --- a/pkg/fourslash/tests/gen/tripleSlashRefPathCompletionAbsolutePaths_test.go +++ b/pkg/fourslash/tests/gen/tripleSlashRefPathCompletionAbsolutePaths_test.go @@ -9,8 +9,8 @@ import ( ) func TestTripleSlashRefPathCompletionAbsolutePaths(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: tests/test0.ts /// diff --git a/pkg/fourslash/tests/gen/tsxCompletionsGenericComponent_test.go b/pkg/fourslash/tests/gen/tsxCompletionsGenericComponent_test.go index 1083bb3ea..0347e056e 100644 --- a/pkg/fourslash/tests/gen/tsxCompletionsGenericComponent_test.go +++ b/pkg/fourslash/tests/gen/tsxCompletionsGenericComponent_test.go @@ -9,8 +9,8 @@ import ( ) func TestTsxCompletionsGenericComponent(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @jsx: preserve // @skipLibCheck: true diff --git a/pkg/fourslash/tests/gen/tsxFindAllReferences10_test.go b/pkg/fourslash/tests/gen/tsxFindAllReferences10_test.go index cf2f4a9fd..c30133c91 100644 --- a/pkg/fourslash/tests/gen/tsxFindAllReferences10_test.go +++ b/pkg/fourslash/tests/gen/tsxFindAllReferences10_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxFindAllReferences10(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx // @jsx: preserve diff --git a/pkg/fourslash/tests/gen/tsxFindAllReferences11_test.go b/pkg/fourslash/tests/gen/tsxFindAllReferences11_test.go index 6a2afb193..352956fec 100644 --- a/pkg/fourslash/tests/gen/tsxFindAllReferences11_test.go +++ b/pkg/fourslash/tests/gen/tsxFindAllReferences11_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxFindAllReferences11(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx // @jsx: preserve diff --git a/pkg/fourslash/tests/gen/tsxFindAllReferences1_test.go b/pkg/fourslash/tests/gen/tsxFindAllReferences1_test.go index 5c518b235..d7597ab0d 100644 --- a/pkg/fourslash/tests/gen/tsxFindAllReferences1_test.go +++ b/pkg/fourslash/tests/gen/tsxFindAllReferences1_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxFindAllReferences1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx declare module JSX { diff --git a/pkg/fourslash/tests/gen/tsxFindAllReferences2_test.go b/pkg/fourslash/tests/gen/tsxFindAllReferences2_test.go index 2cf2b774f..abdd3d00c 100644 --- a/pkg/fourslash/tests/gen/tsxFindAllReferences2_test.go +++ b/pkg/fourslash/tests/gen/tsxFindAllReferences2_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxFindAllReferences2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx declare module JSX { diff --git a/pkg/fourslash/tests/gen/tsxFindAllReferences3_test.go b/pkg/fourslash/tests/gen/tsxFindAllReferences3_test.go index 98d6a812c..e79d39356 100644 --- a/pkg/fourslash/tests/gen/tsxFindAllReferences3_test.go +++ b/pkg/fourslash/tests/gen/tsxFindAllReferences3_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxFindAllReferences3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx declare module JSX { diff --git a/pkg/fourslash/tests/gen/tsxFindAllReferences4_test.go b/pkg/fourslash/tests/gen/tsxFindAllReferences4_test.go index 210c9932e..f39aab9d5 100644 --- a/pkg/fourslash/tests/gen/tsxFindAllReferences4_test.go +++ b/pkg/fourslash/tests/gen/tsxFindAllReferences4_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxFindAllReferences4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx declare module JSX { diff --git a/pkg/fourslash/tests/gen/tsxFindAllReferences5_test.go b/pkg/fourslash/tests/gen/tsxFindAllReferences5_test.go index 6f35abb9b..39b6cddec 100644 --- a/pkg/fourslash/tests/gen/tsxFindAllReferences5_test.go +++ b/pkg/fourslash/tests/gen/tsxFindAllReferences5_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxFindAllReferences5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx // @jsx: preserve diff --git a/pkg/fourslash/tests/gen/tsxFindAllReferences6_test.go b/pkg/fourslash/tests/gen/tsxFindAllReferences6_test.go index 1836e0d20..ffea74101 100644 --- a/pkg/fourslash/tests/gen/tsxFindAllReferences6_test.go +++ b/pkg/fourslash/tests/gen/tsxFindAllReferences6_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxFindAllReferences6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx // @jsx: preserve diff --git a/pkg/fourslash/tests/gen/tsxFindAllReferences7_test.go b/pkg/fourslash/tests/gen/tsxFindAllReferences7_test.go index 8f007de41..ec2d70859 100644 --- a/pkg/fourslash/tests/gen/tsxFindAllReferences7_test.go +++ b/pkg/fourslash/tests/gen/tsxFindAllReferences7_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxFindAllReferences7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx // @jsx: preserve diff --git a/pkg/fourslash/tests/gen/tsxFindAllReferences8_test.go b/pkg/fourslash/tests/gen/tsxFindAllReferences8_test.go index 9000b33f7..8a2823f71 100644 --- a/pkg/fourslash/tests/gen/tsxFindAllReferences8_test.go +++ b/pkg/fourslash/tests/gen/tsxFindAllReferences8_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxFindAllReferences8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx // @jsx: preserve diff --git a/pkg/fourslash/tests/gen/tsxFindAllReferences9_test.go b/pkg/fourslash/tests/gen/tsxFindAllReferences9_test.go index 4d4e3c9c3..b95c737d1 100644 --- a/pkg/fourslash/tests/gen/tsxFindAllReferences9_test.go +++ b/pkg/fourslash/tests/gen/tsxFindAllReferences9_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxFindAllReferences9(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx // @jsx: preserve diff --git a/pkg/fourslash/tests/gen/tsxFindAllReferencesUnionElementType1_test.go b/pkg/fourslash/tests/gen/tsxFindAllReferencesUnionElementType1_test.go index 0c6cf9014..f9f8a3584 100644 --- a/pkg/fourslash/tests/gen/tsxFindAllReferencesUnionElementType1_test.go +++ b/pkg/fourslash/tests/gen/tsxFindAllReferencesUnionElementType1_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxFindAllReferencesUnionElementType1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx // @jsx: preserve diff --git a/pkg/fourslash/tests/gen/tsxFindAllReferencesUnionElementType2_test.go b/pkg/fourslash/tests/gen/tsxFindAllReferencesUnionElementType2_test.go index c54c07802..af1f5322c 100644 --- a/pkg/fourslash/tests/gen/tsxFindAllReferencesUnionElementType2_test.go +++ b/pkg/fourslash/tests/gen/tsxFindAllReferencesUnionElementType2_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxFindAllReferencesUnionElementType2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx // @jsx: preserve diff --git a/pkg/fourslash/tests/gen/tsxGoToDefinitionClassInDifferentFile_test.go b/pkg/fourslash/tests/gen/tsxGoToDefinitionClassInDifferentFile_test.go index e6c2695e8..056eb4713 100644 --- a/pkg/fourslash/tests/gen/tsxGoToDefinitionClassInDifferentFile_test.go +++ b/pkg/fourslash/tests/gen/tsxGoToDefinitionClassInDifferentFile_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxGoToDefinitionClassInDifferentFile(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @jsx: preserve // @Filename: C.tsx diff --git a/pkg/fourslash/tests/gen/tsxGoToDefinitionClasses_test.go b/pkg/fourslash/tests/gen/tsxGoToDefinitionClasses_test.go index b4bf3debb..211a59df4 100644 --- a/pkg/fourslash/tests/gen/tsxGoToDefinitionClasses_test.go +++ b/pkg/fourslash/tests/gen/tsxGoToDefinitionClasses_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxGoToDefinitionClasses(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx declare module JSX { diff --git a/pkg/fourslash/tests/gen/tsxGoToDefinitionIntrinsics_test.go b/pkg/fourslash/tests/gen/tsxGoToDefinitionIntrinsics_test.go index 5fdb38b35..1a02b04df 100644 --- a/pkg/fourslash/tests/gen/tsxGoToDefinitionIntrinsics_test.go +++ b/pkg/fourslash/tests/gen/tsxGoToDefinitionIntrinsics_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxGoToDefinitionIntrinsics(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx declare module JSX { diff --git a/pkg/fourslash/tests/gen/tsxGoToDefinitionStatelessFunction1_test.go b/pkg/fourslash/tests/gen/tsxGoToDefinitionStatelessFunction1_test.go index f77d55738..113bf4942 100644 --- a/pkg/fourslash/tests/gen/tsxGoToDefinitionStatelessFunction1_test.go +++ b/pkg/fourslash/tests/gen/tsxGoToDefinitionStatelessFunction1_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxGoToDefinitionStatelessFunction1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx // @jsx: preserve diff --git a/pkg/fourslash/tests/gen/tsxGoToDefinitionStatelessFunction2_test.go b/pkg/fourslash/tests/gen/tsxGoToDefinitionStatelessFunction2_test.go index 6045d1222..0e353ceb0 100644 --- a/pkg/fourslash/tests/gen/tsxGoToDefinitionStatelessFunction2_test.go +++ b/pkg/fourslash/tests/gen/tsxGoToDefinitionStatelessFunction2_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxGoToDefinitionStatelessFunction2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx // @jsx: preserve diff --git a/pkg/fourslash/tests/gen/tsxGoToDefinitionUnionElementType1_test.go b/pkg/fourslash/tests/gen/tsxGoToDefinitionUnionElementType1_test.go index a54271184..a06de4799 100644 --- a/pkg/fourslash/tests/gen/tsxGoToDefinitionUnionElementType1_test.go +++ b/pkg/fourslash/tests/gen/tsxGoToDefinitionUnionElementType1_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxGoToDefinitionUnionElementType1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx // @jsx: preserve diff --git a/pkg/fourslash/tests/gen/tsxGoToDefinitionUnionElementType2_test.go b/pkg/fourslash/tests/gen/tsxGoToDefinitionUnionElementType2_test.go index 2f8cc8229..e7d863342 100644 --- a/pkg/fourslash/tests/gen/tsxGoToDefinitionUnionElementType2_test.go +++ b/pkg/fourslash/tests/gen/tsxGoToDefinitionUnionElementType2_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxGoToDefinitionUnionElementType2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx // @jsx: preserve diff --git a/pkg/fourslash/tests/gen/tsxIncrementalServer_test.go b/pkg/fourslash/tests/gen/tsxIncrementalServer_test.go index 90d779517..c479b2b25 100644 --- a/pkg/fourslash/tests/gen/tsxIncrementalServer_test.go +++ b/pkg/fourslash/tests/gen/tsxIncrementalServer_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxIncrementalServer(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/**/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/tsxIncremental_test.go b/pkg/fourslash/tests/gen/tsxIncremental_test.go index 7bdc8545e..799913108 100644 --- a/pkg/fourslash/tests/gen/tsxIncremental_test.go +++ b/pkg/fourslash/tests/gen/tsxIncremental_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxIncremental(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/**/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/tsxParsing_test.go b/pkg/fourslash/tests/gen/tsxParsing_test.go index 5692086ca..49472cf39 100644 --- a/pkg/fourslash/tests/gen/tsxParsing_test.go +++ b/pkg/fourslash/tests/gen/tsxParsing_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxParsing(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x =

; var y = /**/x;` diff --git a/pkg/fourslash/tests/gen/tsxQuickInfo1_test.go b/pkg/fourslash/tests/gen/tsxQuickInfo1_test.go index 31fb77638..151de9b86 100644 --- a/pkg/fourslash/tests/gen/tsxQuickInfo1_test.go +++ b/pkg/fourslash/tests/gen/tsxQuickInfo1_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxQuickInfo1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx var x1 = diff --git a/pkg/fourslash/tests/gen/tsxQuickInfo2_test.go b/pkg/fourslash/tests/gen/tsxQuickInfo2_test.go index 53d440a04..83b50a1da 100644 --- a/pkg/fourslash/tests/gen/tsxQuickInfo2_test.go +++ b/pkg/fourslash/tests/gen/tsxQuickInfo2_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxQuickInfo2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx declare module JSX { diff --git a/pkg/fourslash/tests/gen/tsxQuickInfo3_test.go b/pkg/fourslash/tests/gen/tsxQuickInfo3_test.go index 4a35ffdd0..04301e9ff 100644 --- a/pkg/fourslash/tests/gen/tsxQuickInfo3_test.go +++ b/pkg/fourslash/tests/gen/tsxQuickInfo3_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxQuickInfo3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx // @jsx: preserve diff --git a/pkg/fourslash/tests/gen/tsxQuickInfo4_test.go b/pkg/fourslash/tests/gen/tsxQuickInfo4_test.go index 2f66ada55..e0587ec78 100644 --- a/pkg/fourslash/tests/gen/tsxQuickInfo4_test.go +++ b/pkg/fourslash/tests/gen/tsxQuickInfo4_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxQuickInfo4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx // @jsx: preserve diff --git a/pkg/fourslash/tests/gen/tsxQuickInfo5_test.go b/pkg/fourslash/tests/gen/tsxQuickInfo5_test.go index 7d9b9f76a..781751143 100644 --- a/pkg/fourslash/tests/gen/tsxQuickInfo5_test.go +++ b/pkg/fourslash/tests/gen/tsxQuickInfo5_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxQuickInfo5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx // @jsx: preserve diff --git a/pkg/fourslash/tests/gen/tsxQuickInfo6_test.go b/pkg/fourslash/tests/gen/tsxQuickInfo6_test.go index 9a04257ad..0f0c4f021 100644 --- a/pkg/fourslash/tests/gen/tsxQuickInfo6_test.go +++ b/pkg/fourslash/tests/gen/tsxQuickInfo6_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxQuickInfo6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx // @jsx: preserve diff --git a/pkg/fourslash/tests/gen/tsxQuickInfo7_test.go b/pkg/fourslash/tests/gen/tsxQuickInfo7_test.go index eedf499e6..3ff33f67d 100644 --- a/pkg/fourslash/tests/gen/tsxQuickInfo7_test.go +++ b/pkg/fourslash/tests/gen/tsxQuickInfo7_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxQuickInfo7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx // @jsx: preserve diff --git a/pkg/fourslash/tests/gen/tsxRename1_test.go b/pkg/fourslash/tests/gen/tsxRename1_test.go index bb3c2916e..cd636ed3b 100644 --- a/pkg/fourslash/tests/gen/tsxRename1_test.go +++ b/pkg/fourslash/tests/gen/tsxRename1_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxRename1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx declare module JSX { diff --git a/pkg/fourslash/tests/gen/tsxRename2_test.go b/pkg/fourslash/tests/gen/tsxRename2_test.go index 60d19dca0..f9a8e67dd 100644 --- a/pkg/fourslash/tests/gen/tsxRename2_test.go +++ b/pkg/fourslash/tests/gen/tsxRename2_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxRename2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx declare module JSX { diff --git a/pkg/fourslash/tests/gen/tsxRename3_test.go b/pkg/fourslash/tests/gen/tsxRename3_test.go index 4bcfbae0e..21f3e2ae8 100644 --- a/pkg/fourslash/tests/gen/tsxRename3_test.go +++ b/pkg/fourslash/tests/gen/tsxRename3_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxRename3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx declare module JSX { diff --git a/pkg/fourslash/tests/gen/tsxRename4_test.go b/pkg/fourslash/tests/gen/tsxRename4_test.go index 3dae9966b..310d99d56 100644 --- a/pkg/fourslash/tests/gen/tsxRename4_test.go +++ b/pkg/fourslash/tests/gen/tsxRename4_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxRename4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @jsx: preserve //@Filename: file.tsx diff --git a/pkg/fourslash/tests/gen/tsxRename5_test.go b/pkg/fourslash/tests/gen/tsxRename5_test.go index 99da1af21..047e9667a 100644 --- a/pkg/fourslash/tests/gen/tsxRename5_test.go +++ b/pkg/fourslash/tests/gen/tsxRename5_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxRename5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx declare module JSX { diff --git a/pkg/fourslash/tests/gen/tsxRename6_test.go b/pkg/fourslash/tests/gen/tsxRename6_test.go index 2c1126e28..2760c3e0d 100644 --- a/pkg/fourslash/tests/gen/tsxRename6_test.go +++ b/pkg/fourslash/tests/gen/tsxRename6_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxRename6(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx // @jsx: preserve diff --git a/pkg/fourslash/tests/gen/tsxRename7_test.go b/pkg/fourslash/tests/gen/tsxRename7_test.go index d632450dd..9916398c5 100644 --- a/pkg/fourslash/tests/gen/tsxRename7_test.go +++ b/pkg/fourslash/tests/gen/tsxRename7_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxRename7(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx // @jsx: preserve diff --git a/pkg/fourslash/tests/gen/tsxRename8_test.go b/pkg/fourslash/tests/gen/tsxRename8_test.go index 5cc289d16..419be64f7 100644 --- a/pkg/fourslash/tests/gen/tsxRename8_test.go +++ b/pkg/fourslash/tests/gen/tsxRename8_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxRename8(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx // @jsx: preserve diff --git a/pkg/fourslash/tests/gen/tsxRename9_test.go b/pkg/fourslash/tests/gen/tsxRename9_test.go index 3f9bfd9f0..9f308768d 100644 --- a/pkg/fourslash/tests/gen/tsxRename9_test.go +++ b/pkg/fourslash/tests/gen/tsxRename9_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxRename9(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx // @jsx: preserve diff --git a/pkg/fourslash/tests/gen/tsxSignatureHelp1_test.go b/pkg/fourslash/tests/gen/tsxSignatureHelp1_test.go index 84e4281ff..a276a99b1 100644 --- a/pkg/fourslash/tests/gen/tsxSignatureHelp1_test.go +++ b/pkg/fourslash/tests/gen/tsxSignatureHelp1_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxSignatureHelp1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx // @jsx: preserve diff --git a/pkg/fourslash/tests/gen/tsxSignatureHelp2_test.go b/pkg/fourslash/tests/gen/tsxSignatureHelp2_test.go index 98a4a67ad..a80923cf0 100644 --- a/pkg/fourslash/tests/gen/tsxSignatureHelp2_test.go +++ b/pkg/fourslash/tests/gen/tsxSignatureHelp2_test.go @@ -8,8 +8,8 @@ import ( ) func TestTsxSignatureHelp2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `//@Filename: file.tsx // @jsx: preserve diff --git a/pkg/fourslash/tests/gen/typeAboveNumberLiteralExpressionStatement_test.go b/pkg/fourslash/tests/gen/typeAboveNumberLiteralExpressionStatement_test.go index 5291c59fd..57cc31932 100644 --- a/pkg/fourslash/tests/gen/typeAboveNumberLiteralExpressionStatement_test.go +++ b/pkg/fourslash/tests/gen/typeAboveNumberLiteralExpressionStatement_test.go @@ -8,8 +8,8 @@ import ( ) func TestTypeAboveNumberLiteralExpressionStatement(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = ` // foo diff --git a/pkg/fourslash/tests/gen/typeArgCompletion_test.go b/pkg/fourslash/tests/gen/typeArgCompletion_test.go index 509d52341..78b3babf2 100644 --- a/pkg/fourslash/tests/gen/typeArgCompletion_test.go +++ b/pkg/fourslash/tests/gen/typeArgCompletion_test.go @@ -9,8 +9,8 @@ import ( ) func TestTypeArgCompletion(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Base { } diff --git a/pkg/fourslash/tests/gen/typeCheckAfterAddingGenericParameter_test.go b/pkg/fourslash/tests/gen/typeCheckAfterAddingGenericParameter_test.go index 99f9a36a0..2ae99ae04 100644 --- a/pkg/fourslash/tests/gen/typeCheckAfterAddingGenericParameter_test.go +++ b/pkg/fourslash/tests/gen/typeCheckAfterAddingGenericParameter_test.go @@ -8,8 +8,8 @@ import ( ) func TestTypeCheckAfterAddingGenericParameter(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function f() { } function f2(b: X): X { return null; } diff --git a/pkg/fourslash/tests/gen/typeCheckAfterResolve_test.go b/pkg/fourslash/tests/gen/typeCheckAfterResolve_test.go index 3c85840dd..f9bf79386 100644 --- a/pkg/fourslash/tests/gen/typeCheckAfterResolve_test.go +++ b/pkg/fourslash/tests/gen/typeCheckAfterResolve_test.go @@ -8,8 +8,8 @@ import ( ) func TestTypeCheckAfterResolve(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/*start*/class Point implements /*IPointRef*/IPoint { getDist() { diff --git a/pkg/fourslash/tests/gen/typeCheckObjectInArrayLiteral_test.go b/pkg/fourslash/tests/gen/typeCheckObjectInArrayLiteral_test.go index 0c8ff22e9..cd633a848 100644 --- a/pkg/fourslash/tests/gen/typeCheckObjectInArrayLiteral_test.go +++ b/pkg/fourslash/tests/gen/typeCheckObjectInArrayLiteral_test.go @@ -8,8 +8,8 @@ import ( ) func TestTypeCheckObjectInArrayLiteral(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `declare function create(initialValues); create([{}]);` diff --git a/pkg/fourslash/tests/gen/typeErrorAfterStringCompletionsInNestedCall2_test.go b/pkg/fourslash/tests/gen/typeErrorAfterStringCompletionsInNestedCall2_test.go index bccf31913..ffc460f8a 100644 --- a/pkg/fourslash/tests/gen/typeErrorAfterStringCompletionsInNestedCall2_test.go +++ b/pkg/fourslash/tests/gen/typeErrorAfterStringCompletionsInNestedCall2_test.go @@ -9,8 +9,8 @@ import ( ) func TestTypeErrorAfterStringCompletionsInNestedCall2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true diff --git a/pkg/fourslash/tests/gen/typeErrorAfterStringCompletionsInNestedCall_test.go b/pkg/fourslash/tests/gen/typeErrorAfterStringCompletionsInNestedCall_test.go index d2c245a13..1a22c7f06 100644 --- a/pkg/fourslash/tests/gen/typeErrorAfterStringCompletionsInNestedCall_test.go +++ b/pkg/fourslash/tests/gen/typeErrorAfterStringCompletionsInNestedCall_test.go @@ -10,8 +10,8 @@ import ( ) func TestTypeErrorAfterStringCompletionsInNestedCall(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true diff --git a/pkg/fourslash/tests/gen/typeKeywordInFunction_test.go b/pkg/fourslash/tests/gen/typeKeywordInFunction_test.go index 52ccc7d98..fdce84a0c 100644 --- a/pkg/fourslash/tests/gen/typeKeywordInFunction_test.go +++ b/pkg/fourslash/tests/gen/typeKeywordInFunction_test.go @@ -11,8 +11,8 @@ import ( ) func TestTypeKeywordInFunction(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function a() { ty/**/ diff --git a/pkg/fourslash/tests/gen/typeOfAFundule_test.go b/pkg/fourslash/tests/gen/typeOfAFundule_test.go index 176175811..af1eba6df 100644 --- a/pkg/fourslash/tests/gen/typeOfAFundule_test.go +++ b/pkg/fourslash/tests/gen/typeOfAFundule_test.go @@ -8,8 +8,8 @@ import ( ) func TestTypeOfAFundule(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function m1() { return 1; } module m1 { export var y = 2; } diff --git a/pkg/fourslash/tests/gen/typeOfKeywordCompletion_test.go b/pkg/fourslash/tests/gen/typeOfKeywordCompletion_test.go index bb4aa979f..9b8103b5e 100644 --- a/pkg/fourslash/tests/gen/typeOfKeywordCompletion_test.go +++ b/pkg/fourslash/tests/gen/typeOfKeywordCompletion_test.go @@ -11,8 +11,8 @@ import ( ) func TestTypeOfKeywordCompletion(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `export type A = typ/**/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/typeOperatorNodeBuilding_test.go b/pkg/fourslash/tests/gen/typeOperatorNodeBuilding_test.go index a274a855a..d29874758 100644 --- a/pkg/fourslash/tests/gen/typeOperatorNodeBuilding_test.go +++ b/pkg/fourslash/tests/gen/typeOperatorNodeBuilding_test.go @@ -8,8 +8,8 @@ import ( ) func TestTypeOperatorNodeBuilding(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: keyof.ts function doSomethingWithKeys(...keys: (keyof T)[]) { } diff --git a/pkg/fourslash/tests/gen/typeReferenceOnServer_test.go b/pkg/fourslash/tests/gen/typeReferenceOnServer_test.go index 7ac5cf21b..a8fc64740 100644 --- a/pkg/fourslash/tests/gen/typeReferenceOnServer_test.go +++ b/pkg/fourslash/tests/gen/typeReferenceOnServer_test.go @@ -9,8 +9,8 @@ import ( ) func TestTypeReferenceOnServer(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/// var x: number; diff --git a/pkg/fourslash/tests/gen/typedefinition01_test.go b/pkg/fourslash/tests/gen/typedefinition01_test.go index ae2e0b020..52a6745c6 100644 --- a/pkg/fourslash/tests/gen/typedefinition01_test.go +++ b/pkg/fourslash/tests/gen/typedefinition01_test.go @@ -8,8 +8,8 @@ import ( ) func TestTypedefinition01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: b.ts import n = require('./a'); diff --git a/pkg/fourslash/tests/gen/unclosedCommentsInConstructor_test.go b/pkg/fourslash/tests/gen/unclosedCommentsInConstructor_test.go index fcd1651c6..a500d6c36 100644 --- a/pkg/fourslash/tests/gen/unclosedCommentsInConstructor_test.go +++ b/pkg/fourslash/tests/gen/unclosedCommentsInConstructor_test.go @@ -8,8 +8,8 @@ import ( ) func TestUnclosedCommentsInConstructor(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `class Foo { constructor(/* /**/) { } diff --git a/pkg/fourslash/tests/gen/unclosedStringLiteralAutoformating_test.go b/pkg/fourslash/tests/gen/unclosedStringLiteralAutoformating_test.go index 134fc72c8..44e603a0d 100644 --- a/pkg/fourslash/tests/gen/unclosedStringLiteralAutoformating_test.go +++ b/pkg/fourslash/tests/gen/unclosedStringLiteralAutoformating_test.go @@ -8,8 +8,8 @@ import ( ) func TestUnclosedStringLiteralAutoformating(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x = /*1*/"asd/*2*/ class Foo { diff --git a/pkg/fourslash/tests/gen/unclosedStringLiteralErrorRecovery_test.go b/pkg/fourslash/tests/gen/unclosedStringLiteralErrorRecovery_test.go index b12fc4f1f..caf95c1cd 100644 --- a/pkg/fourslash/tests/gen/unclosedStringLiteralErrorRecovery_test.go +++ b/pkg/fourslash/tests/gen/unclosedStringLiteralErrorRecovery_test.go @@ -9,8 +9,8 @@ import ( ) func TestUnclosedStringLiteralErrorRecovery(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `"an unclosed string is a terrible thing! diff --git a/pkg/fourslash/tests/gen/underscoreTypings01_test.go b/pkg/fourslash/tests/gen/underscoreTypings01_test.go index 1645f4201..7588e90c2 100644 --- a/pkg/fourslash/tests/gen/underscoreTypings01_test.go +++ b/pkg/fourslash/tests/gen/underscoreTypings01_test.go @@ -9,8 +9,8 @@ import ( ) func TestUnderscoreTypings01(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `interface Iterator_ { (value: T, index: any, list: any): U; diff --git a/pkg/fourslash/tests/gen/underscoreTypings02_test.go b/pkg/fourslash/tests/gen/underscoreTypings02_test.go index c381f1e0f..fe63a1d53 100644 --- a/pkg/fourslash/tests/gen/underscoreTypings02_test.go +++ b/pkg/fourslash/tests/gen/underscoreTypings02_test.go @@ -8,8 +8,8 @@ import ( ) func TestUnderscoreTypings02(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @module: CommonJS interface Dictionary { diff --git a/pkg/fourslash/tests/gen/unreachableStatementNodeReuse_test.go b/pkg/fourslash/tests/gen/unreachableStatementNodeReuse_test.go index 457c40dfd..3fdd4d714 100644 --- a/pkg/fourslash/tests/gen/unreachableStatementNodeReuse_test.go +++ b/pkg/fourslash/tests/gen/unreachableStatementNodeReuse_test.go @@ -8,8 +8,8 @@ import ( ) func TestUnreachableStatementNodeReuse(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `function test() { return/*a*/abc(); diff --git a/pkg/fourslash/tests/gen/unusedVariableInClass5_test.go b/pkg/fourslash/tests/gen/unusedVariableInClass5_test.go index 780c41896..292ff51e7 100644 --- a/pkg/fourslash/tests/gen/unusedVariableInClass5_test.go +++ b/pkg/fourslash/tests/gen/unusedVariableInClass5_test.go @@ -8,8 +8,8 @@ import ( ) func TestUnusedVariableInClass5(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @noUnusedLocals: true // @target: esnext diff --git a/pkg/fourslash/tests/gen/updateSourceFile_jsdocSignature_test.go b/pkg/fourslash/tests/gen/updateSourceFile_jsdocSignature_test.go index c2e260087..91bafe3af 100644 --- a/pkg/fourslash/tests/gen/updateSourceFile_jsdocSignature_test.go +++ b/pkg/fourslash/tests/gen/updateSourceFile_jsdocSignature_test.go @@ -8,8 +8,8 @@ import ( ) func TestUpdateSourceFile_jsdocSignature(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `/** * @callback Cb diff --git a/pkg/fourslash/tests/gen/updateToClassStatics_test.go b/pkg/fourslash/tests/gen/updateToClassStatics_test.go index 392e4e736..29daa0c1a 100644 --- a/pkg/fourslash/tests/gen/updateToClassStatics_test.go +++ b/pkg/fourslash/tests/gen/updateToClassStatics_test.go @@ -8,8 +8,8 @@ import ( ) func TestUpdateToClassStatics(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `module TypeScript { export class PullSymbol {} diff --git a/pkg/fourslash/tests/gen/verifySingleFileEmitOutput1_test.go b/pkg/fourslash/tests/gen/verifySingleFileEmitOutput1_test.go index 7407f8417..575ad5ef4 100644 --- a/pkg/fourslash/tests/gen/verifySingleFileEmitOutput1_test.go +++ b/pkg/fourslash/tests/gen/verifySingleFileEmitOutput1_test.go @@ -8,8 +8,8 @@ import ( ) func TestVerifySingleFileEmitOutput1(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @Filename: verifySingleFileEmitOutput1_file0.ts export class A { diff --git a/pkg/fourslash/tests/gen/whiteSpaceBeforeReturnTypeFormatting_test.go b/pkg/fourslash/tests/gen/whiteSpaceBeforeReturnTypeFormatting_test.go index 42df3fdad..5de7053a7 100644 --- a/pkg/fourslash/tests/gen/whiteSpaceBeforeReturnTypeFormatting_test.go +++ b/pkg/fourslash/tests/gen/whiteSpaceBeforeReturnTypeFormatting_test.go @@ -8,8 +8,8 @@ import ( ) func TestWhiteSpaceBeforeReturnTypeFormatting(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var x: () => string/**/` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/whiteSpaceTrimming2_test.go b/pkg/fourslash/tests/gen/whiteSpaceTrimming2_test.go index 650cacb78..5148095fc 100644 --- a/pkg/fourslash/tests/gen/whiteSpaceTrimming2_test.go +++ b/pkg/fourslash/tests/gen/whiteSpaceTrimming2_test.go @@ -8,8 +8,8 @@ import ( ) func TestWhiteSpaceTrimming2(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let noSubTemplate = ` + "`" + `/* /*1*/` + "`" + `; let templateHead = ` + "`" + `/* /*2*/${1 + 2}` + "`" + `; diff --git a/pkg/fourslash/tests/gen/whiteSpaceTrimming3_test.go b/pkg/fourslash/tests/gen/whiteSpaceTrimming3_test.go index 0fa11c3de..0e2c4ec3c 100644 --- a/pkg/fourslash/tests/gen/whiteSpaceTrimming3_test.go +++ b/pkg/fourslash/tests/gen/whiteSpaceTrimming3_test.go @@ -8,8 +8,8 @@ import ( ) func TestWhiteSpaceTrimming3(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `let t = "foo \ bar \ diff --git a/pkg/fourslash/tests/gen/whiteSpaceTrimming4_test.go b/pkg/fourslash/tests/gen/whiteSpaceTrimming4_test.go index cdb9e3d65..32422302e 100644 --- a/pkg/fourslash/tests/gen/whiteSpaceTrimming4_test.go +++ b/pkg/fourslash/tests/gen/whiteSpaceTrimming4_test.go @@ -8,8 +8,8 @@ import ( ) func TestWhiteSpaceTrimming4(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `var re = /\w+ /*1*//;` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) diff --git a/pkg/fourslash/tests/gen/whiteSpaceTrimming_test.go b/pkg/fourslash/tests/gen/whiteSpaceTrimming_test.go index a5bb4d316..2f63894d8 100644 --- a/pkg/fourslash/tests/gen/whiteSpaceTrimming_test.go +++ b/pkg/fourslash/tests/gen/whiteSpaceTrimming_test.go @@ -8,8 +8,8 @@ import ( ) func TestWhiteSpaceTrimming(t *testing.T) { + fourslash.SkipIfFailing(t) t.Parallel() - t.Skip() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `if (true) { // diff --git a/pkg/ls/completions.go b/pkg/ls/completions.go index 1eaf593cf..38402ed35 100644 --- a/pkg/ls/completions.go +++ b/pkg/ls/completions.go @@ -3582,7 +3582,7 @@ func (l *LanguageService) getJSCompletionEntries( uniqueNames *collections.Set[string], sortedEntries []*lsproto.CompletionItem, ) []*lsproto.CompletionItem { - nameTable := getNameTable(file) + nameTable := file.GetNameTable() for name, pos := range nameTable { // Skip identifiers produced only from the current location if pos == position { diff --git a/pkg/ls/findallreferences.go b/pkg/ls/findallreferences.go index b4f7149b8..b5b0876df 100644 --- a/pkg/ls/findallreferences.go +++ b/pkg/ls/findallreferences.go @@ -2391,7 +2391,7 @@ func (state *refState) forEachRelatedSymbol( // Search for all occurrences of an identifier in a source file (and filter out the ones that match). func (state *refState) searchForName(sourceFile *ast.SourceFile, search *refSearch) { - if _, ok := getNameTable(sourceFile)[search.escapedText]; ok { + if _, ok := sourceFile.GetNameTable()[search.escapedText]; ok { state.getReferencesInSourceFile(sourceFile, search, true /*addReferencesHere*/) } } diff --git a/pkg/ls/hover.go b/pkg/ls/hover.go index dc9381da8..057f3dc35 100644 --- a/pkg/ls/hover.go +++ b/pkg/ls/hover.go @@ -99,8 +99,6 @@ func (l *LanguageService) getDocumentationFromDeclaration(c *checker.Checker, de writeOptionalEntityName(&b, tag.Name()) case ast.KindJSDocAugmentsTag: writeOptionalEntityName(&b, tag.ClassName()) - case ast.KindJSDocSeeTag: - writeOptionalEntityName(&b, tag.AsJSDocSeeTag().NameExpression) case ast.KindJSDocTemplateTag: for i, tp := range tag.TypeParameters() { if i != 0 { @@ -119,6 +117,13 @@ func (l *LanguageService) getDocumentationFromDeclaration(c *checker.Checker, de } else { writeCode(&b, "tsx", commentText) } + } else if tag.Kind == ast.KindJSDocSeeTag && tag.AsJSDocSeeTag().NameExpression != nil { + b.WriteString(" — ") + l.writeNameLink(&b, c, tag.AsJSDocSeeTag().NameExpression.Name(), "", false /*quote*/, isMarkdown) + if len(comments) != 0 { + b.WriteString(" ") + l.writeComments(&b, c, comments, isMarkdown) + } } else if len(comments) != 0 { b.WriteString(" ") if !commentHasPrefix(comments, "-") { @@ -550,6 +555,10 @@ func (l *LanguageService) writeJSDocLink(b *strings.Builder, c *checker.Checker, } return } + l.writeNameLink(b, c, name, text, quote, isMarkdown) +} + +func (l *LanguageService) writeNameLink(b *strings.Builder, c *checker.Checker, name *ast.Node, text string, quote bool, isMarkdown bool) { declarations := getDeclarationsFromLocation(c, name) if len(declarations) != 0 { declaration := declarations[0] @@ -569,7 +578,7 @@ func (l *LanguageService) writeJSDocLink(b *strings.Builder, c *checker.Checker, } return } - writeQuotedString(b, getEntityNameString(name)+" "+text, quote && isMarkdown) + writeQuotedString(b, getEntityNameString(name)+core.IfElse(len(text) != 0, " ", "")+text, quote && isMarkdown) } func trimCommentPrefix(text string) string { diff --git a/pkg/ls/utilities.go b/pkg/ls/utilities.go index 005968fcd..1e292cbe0 100644 --- a/pkg/ls/utilities.go +++ b/pkg/ls/utilities.go @@ -452,47 +452,6 @@ func isSeparator(node *ast.Node, candidate *ast.Node) bool { return candidate != nil && node.Parent != nil && (candidate.Kind == ast.KindCommaToken || (candidate.Kind == ast.KindSemicolonToken && node.Parent.Kind == ast.KindObjectLiteralExpression)) } -// Returns a map of all names in the file to their positions. -// !!! cache this -func getNameTable(file *ast.SourceFile) map[string]int { - nameTable := make(map[string]int) - var walk func(node *ast.Node) bool - - walk = func(node *ast.Node) bool { - if ast.IsIdentifier(node) && !isTagName(node) && node.Text() != "" || - ast.IsStringOrNumericLiteralLike(node) && literalIsName(node) || - ast.IsPrivateIdentifier(node) { - text := node.Text() - if _, ok := nameTable[text]; ok { - nameTable[text] = -1 - } else { - nameTable[text] = node.Pos() - } - } - - node.ForEachChild(walk) - jsdocNodes := node.JSDoc(file) - for _, jsdoc := range jsdocNodes { - jsdoc.ForEachChild(walk) - } - return false - } - - file.ForEachChild(walk) - return nameTable -} - -// We want to store any numbers/strings if they were a name that could be -// related to a declaration. So, if we have 'import x = require("something")' -// then we want 'something' to be in the name table. Similarly, if we have -// "a['propname']" then we want to store "propname" in the name table. -func literalIsName(node *ast.NumericOrStringLikeLiteral) bool { - return ast.IsDeclarationName(node) || - node.Parent.Kind == ast.KindExternalModuleReference || - isArgumentOfElementAccessExpression(node) || - ast.IsLiteralComputedPropertyDeclarationName(node) -} - func isLiteralNameOfPropertyDeclarationOrIndexAccess(node *ast.Node) bool { // utilities switch node.Parent.Kind { @@ -524,12 +483,6 @@ func isObjectBindingElementWithoutPropertyName(bindingElement *ast.Node) bool { bindingElement.PropertyName() == nil } -func isArgumentOfElementAccessExpression(node *ast.Node) bool { - return node != nil && node.Parent != nil && - node.Parent.Kind == ast.KindElementAccessExpression && - node.Parent.AsElementAccessExpression().ArgumentExpression == node -} - func isRightSideOfPropertyAccess(node *ast.Node) bool { return node.Parent.Kind == ast.KindPropertyAccessExpression && node.Parent.Name() == node } @@ -582,10 +535,6 @@ func findReferenceInPosition(refs []*ast.FileReference, pos int) *ast.FileRefere return core.Find(refs, func(ref *ast.FileReference) bool { return ref.TextRange.ContainsInclusive(pos) }) } -func isTagName(node *ast.Node) bool { - return node.Parent != nil && ast.IsJSDocTag(node.Parent) && node.Parent.TagName() == node -} - // Assumes `candidate.pos <= position` holds. func positionBelongsToNode(candidate *ast.Node, position int, file *ast.SourceFile) bool { if candidate.Pos() > position { diff --git a/pkg/parser/jsdoc.go b/pkg/parser/jsdoc.go index 9dd38d4f4..9df04ca23 100644 --- a/pkg/parser/jsdoc.go +++ b/pkg/parser/jsdoc.go @@ -89,17 +89,12 @@ func (p *Parser) parseJSDocTypeExpression(mayOmitBraces bool) *ast.Node { func (p *Parser) parseJSDocNameReference() *ast.Node { pos := p.nodePos() hasBrace := p.parseOptional(ast.KindOpenBraceToken) - p2 := p.nodePos() - entityName := p.parseEntityName(false, nil) - for p.token == ast.KindPrivateIdentifier { - p.scanner.ReScanHashToken() // rescan #id as # id - p.nextTokenJSDoc() // then skip the # - entityName = p.finishNode(p.factory.NewQualifiedName(entityName, p.parseIdentifier()), p2) - } + entityName := p.parseJSDocLinkName() if hasBrace { p.parseExpectedJSDoc(ast.KindCloseBraceToken) } - + p.scanner.ResetPos(p.scanner.TokenFullStart()) + p.nextTokenJSDoc() return p.finishNode(p.factory.NewJSDocNameReference(entityName), pos) } @@ -627,7 +622,6 @@ func (p *Parser) parseJSDocLink(start int) *ast.Node { func (p *Parser) parseJSDocLinkName() *ast.Node { if tokenIsIdentifierOrKeyword(p.token) { pos := p.nodePos() - name := p.parseIdentifierName() for p.parseOptional(ast.KindDotToken) { var right *ast.IdentifierNode @@ -638,7 +632,6 @@ func (p *Parser) parseJSDocLinkName() *ast.Node { } name = p.finishNode(p.factory.NewQualifiedName(name, right), pos) } - for p.token == ast.KindPrivateIdentifier { p.scanner.ReScanHashToken() p.nextTokenJSDoc() @@ -794,11 +787,10 @@ func (p *Parser) parseTypeTag(previousTags []*ast.Node, start int, tagName *ast. } func (p *Parser) parseSeeTag(start int, tagName *ast.IdentifierNode, indent int, indentText string) *ast.Node { - isMarkdownOrJSDocLink := p.token == ast.KindOpenBracketToken || p.lookAhead(func(p *Parser) bool { - return p.nextTokenJSDoc() == ast.KindAtToken && tokenIsIdentifierOrKeyword(p.nextTokenJSDoc()) && isJSDocLinkTag(p.scanner.TokenValue()) - }) + hasNameReference := p.isIdentifier() && !strings.HasPrefix(p.sourceText[p.scanner.TokenEnd():], "://") || + p.token == ast.KindOpenBraceToken && p.lookAhead((*Parser).nextTokenIsIdentifierOrKeyword) var nameExpression *ast.Node - if !isMarkdownOrJSDocLink { + if hasNameReference { nameExpression = p.parseJSDocNameReference() } comments := p.parseTrailingTagComments(start, p.nodePos(), indent, indentText) diff --git a/pkg/printer/emitcontext.go b/pkg/printer/emitcontext.go index 614e6a1e2..7896558f1 100644 --- a/pkg/printer/emitcontext.go +++ b/pkg/printer/emitcontext.go @@ -446,6 +446,10 @@ func (c *EmitContext) SetOriginal(node *ast.Node, original *ast.Node) { c.SetOriginalEx(node, original, false) } +func (c *EmitContext) UnsetOriginal(node *ast.Node) { + delete(c.original, node) +} + func (c *EmitContext) SetOriginalEx(node *ast.Node, original *ast.Node, allowOverwrite bool) { if original == nil { panic("Original cannot be nil.") diff --git a/pkg/printer/emitresolver.go b/pkg/printer/emitresolver.go index 3eee2ce6f..4eb193e99 100644 --- a/pkg/printer/emitresolver.go +++ b/pkg/printer/emitresolver.go @@ -25,6 +25,55 @@ type SymbolAccessibilityResult struct { ErrorModuleName string // Optional - If the symbol is not visible from module, module's name } +/** + * Indicates how to serialize the name for a TypeReferenceNode when emitting decorator metadata + * + * @internal + */ +type TypeReferenceSerializationKind int32 + +const ( + // The TypeReferenceNode could not be resolved. + // The type name should be emitted using a safe fallback. + TypeReferenceSerializationKindUnknown = iota + + // The TypeReferenceNode resolves to a type with a constructor + // function that can be reached at runtime (e.g. a `class` + // declaration or a `var` declaration for the static side + // of a type, such as the global `Promise` type in lib.d.ts). + TypeReferenceSerializationKindTypeWithConstructSignatureAndValue + + // The TypeReferenceNode resolves to a Void-like, Nullable, or Never type. + TypeReferenceSerializationKindVoidNullableOrNeverType + + // The TypeReferenceNode resolves to a Number-like type. + TypeReferenceSerializationKindNumberLikeType + + // The TypeReferenceNode resolves to a BigInt-like type. + TypeReferenceSerializationKindBigIntLikeType + + // The TypeReferenceNode resolves to a String-like type. + TypeReferenceSerializationKindStringLikeType + + // The TypeReferenceNode resolves to a Boolean-like type. + TypeReferenceSerializationKindBooleanType + + // The TypeReferenceNode resolves to an Array-like type. + TypeReferenceSerializationKindArrayLikeType + + // The TypeReferenceNode resolves to the ESSymbol type. + TypeReferenceSerializationKindESSymbolType + + // The TypeReferenceNode resolved to the global Promise constructor symbol. + TypeReferenceSerializationKindPromise + + // The TypeReferenceNode resolves to a Function type or a type with call signatures. + TypeReferenceSerializationKindTypeWithCallSignature + + // The TypeReferenceNode resolves to any other type. + TypeReferenceSerializationKindObjectType +) + type EmitResolver interface { binder.ReferenceResolver IsReferencedAliasDeclaration(node *ast.Node) bool @@ -35,6 +84,9 @@ type EmitResolver interface { GetEffectiveDeclarationFlags(node *ast.Node, flags ast.ModifierFlags) ast.ModifierFlags GetResolutionModeOverride(node *ast.Node) core.ResolutionMode + // decorator metadata + GetTypeReferenceSerializationKind(name *ast.EntityName, serialScope *ast.Node) TypeReferenceSerializationKind + // const enum inlining GetConstantValue(node *ast.Node) any diff --git a/pkg/printer/factory.go b/pkg/printer/factory.go index ce828c861..c6e3aaf10 100644 --- a/pkg/printer/factory.go +++ b/pkg/printer/factory.go @@ -217,6 +217,10 @@ func (f *NodeFactory) NewLogicalORExpression(left *ast.Expression, right *ast.Ex return f.NewBinaryExpression(nil /*modifiers*/, left, nil /*typeNode*/, f.NewToken(ast.KindBarBarToken), right) } +func (f *NodeFactory) NewLogicalANDExpression(left *ast.Expression, right *ast.Expression) *ast.Expression { + return f.NewBinaryExpression(nil /*modifiers*/, left, nil /*typeNode*/, f.NewToken(ast.KindAmpersandAmpersandToken), right) +} + // func (f *NodeFactory) NewLogicalANDExpression(left *ast.Expression, right *ast.Expression) *ast.Expression // func (f *NodeFactory) NewBitwiseORExpression(left *ast.Expression, right *ast.Expression) *ast.Expression // func (f *NodeFactory) NewBitwiseXORExpression(left *ast.Expression, right *ast.Expression) *ast.Expression @@ -518,7 +522,57 @@ func (f *NodeFactory) NewUnscopedHelperName(name string) *ast.IdentifierNode { return node } -// !!! TypeScript Helpers +// TypeScript Helpers + +func (f *NodeFactory) NewDecorateHelper(decoratorExpressions []*ast.Node, target *ast.Node, memberName *ast.Node, descriptor *ast.Node) *ast.Expression { + f.emitContext.RequestEmitHelper(decorateHelper) + + var argumentsArray []*ast.Node + argumentsArray = append(argumentsArray, f.NewArrayLiteralExpression(f.NewNodeList(decoratorExpressions), true)) + argumentsArray = append(argumentsArray, target) + if memberName != nil { + argumentsArray = append(argumentsArray, memberName) + if descriptor != nil { + argumentsArray = append(argumentsArray, descriptor) + } + } + + return f.NewCallExpression( + f.NewUnscopedHelperName("__decorate"), + nil, /*questionDotToken*/ + nil, /*typeArguments*/ + f.NewNodeList(argumentsArray), + ast.NodeFlagsNone, + ) +} + +func (f *NodeFactory) NewMetadataHelper(metadataKey string, metadataValue *ast.Node) *ast.Node { + f.emitContext.RequestEmitHelper(metadataHelper) + + return f.NewCallExpression( + f.NewUnscopedHelperName("__metadata"), + nil, /*questionDotToken*/ + nil, /*typeArguments*/ + f.NewNodeList([]*ast.Node{ + f.NewStringLiteral(metadataKey, ast.TokenFlagsNone), + metadataValue, + }), + ast.NodeFlagsNone, + ) +} + +func (f *NodeFactory) NewParamHelper(expression *ast.Node, parameterOffset int, location core.TextRange) *ast.Expression { + f.emitContext.RequestEmitHelper(paramHelper) + helper := f.NewCallExpression( + f.NewUnscopedHelperName("__param"), + nil, /*questionDotToken*/ + nil, /*typeArguments*/ + f.NewNodeList([]*ast.Expression{f.NewNumericLiteral(strconv.Itoa(parameterOffset), ast.TokenFlagsNone), expression}), + ast.NodeFlagsNone, + ) + helper.Loc = location + return helper +} // ESNext Helpers diff --git a/pkg/printer/helpers.go b/pkg/printer/helpers.go index a2d134891..77daedb39 100644 --- a/pkg/printer/helpers.go +++ b/pkg/printer/helpers.go @@ -30,7 +30,40 @@ func compareEmitHelpers(x *EmitHelper, y *EmitHelper) int { return x.Priority.Value - y.Priority.Value } -// !!! TypeScript Helpers +// TypeScript Helpers + +var decorateHelper = &EmitHelper{ + Name: "typescript:decorate", + ImportName: "__decorate", + Scoped: false, + Priority: &Priority{2}, + Text: `var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +};`, +} + +var metadataHelper = &EmitHelper{ + Name: "typescript:metadata", + ImportName: "__metadata", + Scoped: false, + Priority: &Priority{3}, + Text: `var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +};`, +} + +var paramHelper = &EmitHelper{ + Name: "typescript:param", + ImportName: "__param", + Scoped: false, + Priority: &Priority{4}, + Text: `var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +};`, +} // ESNext Helpers diff --git a/pkg/printer/printer.go b/pkg/printer/printer.go index cd9977647..0609fbc59 100644 --- a/pkg/printer/printer.go +++ b/pkg/printer/printer.go @@ -37,7 +37,7 @@ type PrinterOptions struct { NoEmitHelpers bool // Module core.ModuleKind // ModuleResolution core.ModuleResolutionKind - // Target core.ScriptTarget + Target core.ScriptTarget SourceMap bool InlineSourceMap bool InlineSources bool @@ -206,12 +206,13 @@ func (p *Printer) getLiteralTextOfNode(node *ast.LiteralLikeNode, sourceFile *as } } } - // !!! Printer option to control whether to terminate unterminated literals - // !!! If necessary, printer option to control whether to preserve numeric separators if p.emitContext.EmitFlags(node)&EFNoAsciiEscaping != 0 { flags |= getLiteralTextFlagsNeverAsciiEscape } + if p.Options.Target >= core.ScriptTargetES2021 { + flags |= getLiteralTextFlagsAllowNumericSeparator + } return getLiteralText(node, core.Coalesce(sourceFile, p.currentSourceFile), flags) } @@ -999,7 +1000,7 @@ func (p *Printer) emitLiteral(node *ast.LiteralLikeNode, flags getLiteralTextFla func (p *Printer) emitNumericLiteral(node *ast.NumericLiteral) { state := p.enterNode(node.AsNode()) - p.emitLiteral(node.AsNode(), getLiteralTextFlagsAllowNumericSeparator) + p.emitLiteral(node.AsNode(), getLiteralTextFlagsNone) p.exitNode(node.AsNode(), state) } @@ -2919,7 +2920,7 @@ func (p *Printer) emitMetaProperty(node *ast.MetaProperty) { p.exitNode(node.AsNode(), state) } -func (p *Printer) emitPartiallyEmittedExpression(node *ast.PartiallyEmittedExpression, precedence ast.OperatorPrecedence) { +func (p *Printer) emitPartiallyEmittedExpression(node *ast.PartiallyEmittedExpression) { // avoid reprinting parens for nested partially emitted expressions type entry struct { node *ast.PartiallyEmittedExpression @@ -2935,7 +2936,7 @@ func (p *Printer) emitPartiallyEmittedExpression(node *ast.PartiallyEmittedExpre node = node.Expression.AsPartiallyEmittedExpression() } - p.emitExpression(node.Expression, precedence) + p.emitExpression(node.Expression, ast.OperatorPrecedenceLowest) // unwind stack for stack.Len() > 0 { @@ -3081,7 +3082,7 @@ func (p *Printer) emitExpression(node *ast.Expression, precedence ast.OperatorPr case ast.KindNotEmittedStatement: return case ast.KindPartiallyEmittedExpression: - p.emitPartiallyEmittedExpression(node.AsPartiallyEmittedExpression(), precedence) + p.emitPartiallyEmittedExpression(node.AsPartiallyEmittedExpression()) case ast.KindSyntheticReferenceExpression: panic("SyntheticReferenceExpression should not be printed") diff --git a/pkg/printer/printer_test.go b/pkg/printer/printer_test.go index 712345a5a..826fb7798 100644 --- a/pkg/printer/printer_test.go +++ b/pkg/printer/printer_test.go @@ -23,7 +23,7 @@ func TestEmit(t *testing.T) { {title: "StringLiteral#1", input: `;"test"`, output: ";\n\"test\";"}, {title: "StringLiteral#2", input: `;'test'`, output: ";\n'test';"}, {title: "NumericLiteral#1", input: `0`, output: `0;`}, - {title: "NumericLiteral#2", input: `10_000`, output: `10_000;`}, + {title: "NumericLiteral#2", input: `10_000`, output: `10000;`}, {title: "BigIntLiteral#1", input: `0n`, output: `0n;`}, {title: "BigIntLiteral#2", input: `10_000n`, output: `10000n;`}, // TODO: Preserve numeric literal separators after Strada migration {title: "BooleanLiteral#1", input: `true`, output: `true;`}, diff --git a/pkg/project/overlayfs.go b/pkg/project/overlayfs.go index 6bca7e8d0..859669279 100644 --- a/pkg/project/overlayfs.go +++ b/pkg/project/overlayfs.go @@ -78,7 +78,7 @@ func newDiskFile(fileName string, content string) *diskFile { fileBase: fileBase{ fileName: fileName, content: content, - hash: xxh3.Hash128([]byte(content)), + hash: xxh3.HashString128(content), }, } } @@ -125,7 +125,7 @@ func newOverlay(fileName string, content string, version int32, kind core.Script fileBase: fileBase{ fileName: fileName, content: content, - hash: xxh3.Hash128([]byte(content)), + hash: xxh3.HashString128(content), }, version: version, kind: kind, @@ -154,7 +154,7 @@ func (o *Overlay) computeMatchesDiskText(fs vfs.FS) bool { if !ok { return false } - return xxh3.Hash128([]byte(diskContent)) == o.hash + return xxh3.HashString128(diskContent) == o.hash } func (o *Overlay) IsOverlay() bool { @@ -348,7 +348,7 @@ func (fs *overlayFS) processChanges(changes []FileChange) (FileChangeSummary, ma } if len(change.Changes) > 0 { o.version = change.Version - o.hash = xxh3.Hash128([]byte(o.content)) + o.hash = xxh3.HashString128(o.content) o.matchesDiskText = false newOverlays[path] = o } diff --git a/pkg/project/snapshotfs.go b/pkg/project/snapshotfs.go index 816ac88a6..b10bde694 100644 --- a/pkg/project/snapshotfs.go +++ b/pkg/project/snapshotfs.go @@ -119,7 +119,7 @@ func (s *snapshotFSBuilder) GetFileByPath(fileName string, path tspath.Path) Fil if content, ok := s.fs.ReadFile(fileName); ok { entry.Change(func(file *diskFile) { file.content = content - file.hash = xxh3.Hash128([]byte(content)) + file.hash = xxh3.HashString128(content) file.needsReload = false }) } else { diff --git a/pkg/transformers/tstransforms/legacydecorators.go b/pkg/transformers/tstransforms/legacydecorators.go new file mode 100644 index 000000000..d396fa6a5 --- /dev/null +++ b/pkg/transformers/tstransforms/legacydecorators.go @@ -0,0 +1,1036 @@ +package tstransforms + +import ( + "github.com/buke/typescript-go-internal/pkg/ast" + "github.com/buke/typescript-go-internal/pkg/binder" + "github.com/buke/typescript-go-internal/pkg/collections" + "github.com/buke/typescript-go-internal/pkg/core" + "github.com/buke/typescript-go-internal/pkg/printer" + "github.com/buke/typescript-go-internal/pkg/transformers" +) + +type LegacyDecoratorsTransformer struct { + transformers.Transformer + languageVersion core.ScriptTarget + referenceResolver binder.ReferenceResolver + + /** + * A map that keeps track of aliases created for classes with decorators to avoid issues + * with the double-binding behavior of classes. + */ + classAliases map[*ast.Node]*ast.Node + enclosingClasses []*ast.ClassDeclaration +} + +func NewLegacyDecoratorsTransformer(opt *transformers.TransformOptions) *transformers.Transformer { + tx := &LegacyDecoratorsTransformer{languageVersion: opt.CompilerOptions.GetEmitScriptTarget(), referenceResolver: opt.Resolver} + return tx.NewTransformer(tx.visit, opt.Context) +} + +func (tx *LegacyDecoratorsTransformer) visit(node *ast.Node) *ast.Node { + // we have to visit all identifiers in classes, just in case they require substitution + if (node.SubtreeFacts()&ast.SubtreeContainsDecorators) == 0 && len(tx.enclosingClasses) == 0 { + return node + } + + switch node.Kind { + case ast.KindIdentifier: + return tx.visitIdentifier(node.AsIdentifier()) + case ast.KindDecorator: + // Decorators are elided. They will be emitted as part of `visitClassDeclaration`. + return nil + case ast.KindClassDeclaration: + return tx.visitClassDeclaration(node.AsClassDeclaration()) + case ast.KindClassExpression: + return tx.visitClassExpression(node.AsClassExpression()) + case ast.KindConstructor: + return tx.visitConstructorDeclaration(node.AsConstructorDeclaration()) + case ast.KindMethodDeclaration: + return tx.visitMethodDeclaration(node.AsMethodDeclaration()) + case ast.KindSetAccessor: + return tx.visitSetAccessorDeclaration(node.AsSetAccessorDeclaration()) + case ast.KindGetAccessor: + return tx.visitGetAccessorDeclaration(node.AsGetAccessorDeclaration()) + case ast.KindPropertyDeclaration: + return tx.visitPropertyDeclaration(node.AsPropertyDeclaration()) + case ast.KindParameter: + return tx.visitParamerDeclaration(node.AsParameterDeclaration()) + case ast.KindSourceFile: + tx.classAliases = make(map[*ast.Node]*ast.Node) + tx.enclosingClasses = nil + result := tx.Visitor().VisitEachChild(node) + tx.EmitContext().AddEmitHelper(result, tx.EmitContext().ReadEmitHelpers()...) + tx.classAliases = nil + tx.enclosingClasses = nil + return result + default: + return tx.Visitor().VisitEachChild(node) + } +} + +func (tx *LegacyDecoratorsTransformer) visitIdentifier(node *ast.Identifier) *ast.Node { + // takes the place of `substituteIdentifier` in the strada transform + for _, d := range tx.enclosingClasses { + if _, ok := tx.classAliases[d.AsNode()]; ok && tx.referenceResolver.GetReferencedValueDeclaration(tx.EmitContext().MostOriginal(node.AsNode())) == d.AsNode() { + return tx.classAliases[d.AsNode()] + } + } + return node.AsNode() +} + +func elideNodes(f *printer.NodeFactory, nodes *ast.NodeList) *ast.NodeList { + if nodes == nil { + return nil + } + if len(nodes.Nodes) == 0 { + return nodes + } + replacement := f.NewNodeList([]*ast.Node{}) + replacement.Loc = nodes.Loc + return replacement +} + +func elideModifiers(f *printer.NodeFactory, nodes *ast.ModifierList) *ast.ModifierList { + if nodes == nil { + return nil + } + if len(nodes.Nodes) == 0 { + return nodes + } + replacement := f.NewModifierList([]*ast.Node{}) + replacement.Loc = nodes.Loc + return replacement +} + +func moveRangePastModifiers(node *ast.Node) core.TextRange { + if ast.IsPropertyDeclaration(node) || ast.IsMethodDeclaration(node) { + return core.NewTextRange(node.Name().Pos(), node.End()) + } + + var lastModifier *ast.Node + if ast.CanHaveModifiers(node) { + nodes := node.ModifierNodes() + if nodes != nil { + lastModifier = nodes[0] + } + } + + if lastModifier != nil && !ast.PositionIsSynthesized(lastModifier.End()) { + return core.NewTextRange(lastModifier.End(), node.End()) + } + return moveRangePastDecorators(node) +} + +func moveRangePastDecorators(node *ast.Node) core.TextRange { + var lastDecorator *ast.Node + if ast.CanHaveModifiers(node) { + nodes := node.ModifierNodes() + if nodes != nil { + lastDecorator = core.FindLast(nodes, ast.IsDecorator) + } + } + + if lastDecorator != nil && !ast.PositionIsSynthesized(lastDecorator.End()) { + return core.NewTextRange(lastDecorator.End(), node.End()) + } + return node.Loc +} + +func (tx *LegacyDecoratorsTransformer) finishClassElement(updated *ast.Node, original *ast.Node) *ast.Node { + if updated != original { + // While we emit the source map for the node after skipping decorators and modifiers, + // we need to emit the comments for the original range. + tx.EmitContext().SetCommentRange(updated, original.Loc) + tx.EmitContext().SetSourceMapRange(updated, moveRangePastModifiers(original)) + } + return updated +} + +func (tx *LegacyDecoratorsTransformer) visitParamerDeclaration(node *ast.ParameterDeclaration) *ast.Node { + updated := tx.Factory().UpdateParameterDeclaration( + node, + elideModifiers(tx.Factory(), node.Modifiers()), + node.DotDotDotToken, + tx.Visitor().VisitNode(node.Name()), + nil, + nil, + tx.Visitor().VisitNode(node.Initializer), + ) + if updated != node.AsNode() { + // While we emit the source map for the node after skipping decorators and modifiers, + // we need to emit the comments for the original range. + tx.EmitContext().SetCommentRange(updated, node.Loc) + newLoc := moveRangePastModifiers(node.AsNode()) + updated.Loc = newLoc + tx.EmitContext().SetSourceMapRange(updated, newLoc) + tx.EmitContext().SetEmitFlags(updated.Name(), printer.EFNoTrailingSourceMap) + } + return updated +} + +func (tx *LegacyDecoratorsTransformer) visitPropertyDeclaration(node *ast.PropertyDeclaration) *ast.Node { + if (node.Flags & ast.NodeFlagsAmbient) != 0 { + return nil + } + if ast.HasSyntacticModifier(node.AsNode(), ast.ModifierFlagsAmbient|ast.ModifierFlagsAbstract) { + return nil + } + + return tx.finishClassElement( + tx.Factory().UpdatePropertyDeclaration( + node, + tx.Visitor().VisitModifiers(node.Modifiers()), + tx.Visitor().VisitNode(node.Name()), + nil, + nil, + tx.Visitor().VisitNode(node.Initializer), + ), + node.AsNode(), + ) +} + +func (tx *LegacyDecoratorsTransformer) visitGetAccessorDeclaration(node *ast.GetAccessorDeclaration) *ast.Node { + return tx.finishClassElement( + tx.Factory().UpdateGetAccessorDeclaration( + node, + tx.Visitor().VisitModifiers(node.Modifiers()), + tx.Visitor().VisitNode(node.Name()), + nil, + tx.Visitor().VisitNodes(node.Parameters), + nil, + nil, + tx.Visitor().VisitNode(node.Body), + ), + node.AsNode(), + ) +} + +func (tx *LegacyDecoratorsTransformer) visitSetAccessorDeclaration(node *ast.SetAccessorDeclaration) *ast.Node { + return tx.finishClassElement( + tx.Factory().UpdateSetAccessorDeclaration( + node, + tx.Visitor().VisitModifiers(node.Modifiers()), + tx.Visitor().VisitNode(node.Name()), + nil, + tx.Visitor().VisitNodes(node.Parameters), + nil, + nil, + tx.Visitor().VisitNode(node.Body), + ), + node.AsNode(), + ) +} + +func (tx *LegacyDecoratorsTransformer) visitMethodDeclaration(node *ast.MethodDeclaration) *ast.Node { + return tx.finishClassElement( + tx.Factory().UpdateMethodDeclaration( + node, + tx.Visitor().VisitModifiers(node.Modifiers()), + node.AsteriskToken, + tx.Visitor().VisitNode(node.Name()), + nil, + nil, + tx.Visitor().VisitNodes(node.Parameters), + nil, + nil, + tx.Visitor().VisitNode(node.Body), + ), + node.AsNode(), + ) +} + +func (tx *LegacyDecoratorsTransformer) visitConstructorDeclaration(node *ast.ConstructorDeclaration) *ast.Node { + return tx.Factory().UpdateConstructorDeclaration( + node, + tx.Visitor().VisitModifiers(node.Modifiers()), + nil, + tx.Visitor().VisitNodes(node.Parameters), + nil, + nil, + tx.Visitor().VisitNode(node.Body), + ) +} + +func (tx *LegacyDecoratorsTransformer) visitClassExpression(node *ast.ClassExpression) *ast.Node { + // Legacy decorators were not supported on class expressions + return tx.Factory().UpdateClassExpression( + node, + tx.Visitor().VisitModifiers(node.Modifiers()), + node.Name(), + nil, + tx.Visitor().VisitNodes(node.HeritageClauses), + tx.Visitor().VisitNodes(node.Members), + ) +} + +func (tx *LegacyDecoratorsTransformer) visitClassDeclaration(node *ast.ClassDeclaration) *ast.Node { + decorated := ast.ClassOrConstructorParameterIsDecorated(true, node.AsNode()) + if !(decorated || ast.ChildIsDecorated(true, node.AsNode(), nil)) { + return tx.Visitor().VisitEachChild(node.AsNode()) + } + + if decorated { + return tx.transformClassDeclarationWithClassDecorators(node, node.Name()) + } + return tx.transformClassDeclarationWithoutClassDecorators(node, node.Name()) +} + +/** +* Transforms a non-decorated class declaration. +* +* @param node A ClassDeclaration node. +* @param name The name of the class. + */ +func (tx *LegacyDecoratorsTransformer) transformClassDeclarationWithoutClassDecorators(node *ast.ClassDeclaration, name *ast.DeclarationName) *ast.Node { + // ${modifiers} class ${name} ${heritageClauses} { + // ${members} + // } + modifiers := tx.Visitor().VisitModifiers(node.Modifiers()) + heritageClauses := tx.Visitor().VisitNodes(node.HeritageClauses) + initialMembers := tx.Visitor().VisitNodes(node.Members) + members, decorationStatements := tx.transformDecoratorsOfClassElements(node, initialMembers) + + if name == nil && len(decorationStatements) > 0 { + name = tx.Factory().NewGeneratedNameForNode(node.AsNode()) + } + + updated := tx.Factory().UpdateClassDeclaration( + node, + modifiers, + name, + nil, + heritageClauses, + members, + ) + + if len(decorationStatements) == 0 { + return updated + } + return tx.Factory().NewSyntaxList(append([]*ast.Node{updated}, decorationStatements...)) +} + +func (tx *LegacyDecoratorsTransformer) popEnclosingClass() { + tx.enclosingClasses = tx.enclosingClasses[:len(tx.enclosingClasses)-1] +} + +func (tx *LegacyDecoratorsTransformer) pushEnclosingClass(cls *ast.ClassDeclaration) { + tx.enclosingClasses = append(tx.enclosingClasses, cls) +} + +/** +* Transforms a decorated class declaration and appends the resulting statements. If +* the class requires an alias to avoid issues with double-binding, the alias is returned. + */ +func (tx *LegacyDecoratorsTransformer) transformClassDeclarationWithClassDecorators(node *ast.ClassDeclaration, name *ast.DeclarationName) *ast.Node { + // When we emit an ES6 class that has a class decorator, we must tailor the + // emit to certain specific cases. + // + // In the simplest case, we emit the class declaration as a let declaration, and + // evaluate decorators after the close of the class body: + // + // [Example 1] + // --------------------------------------------------------------------- + // TypeScript | Javascript + // --------------------------------------------------------------------- + // @dec | let C = class C { + // class C { | } + // } | C = __decorate([dec], C); + // --------------------------------------------------------------------- + // @dec | let C = class C { + // export class C { | } + // } | C = __decorate([dec], C); + // | export { C }; + // --------------------------------------------------------------------- + // + // If a class declaration contains a reference to itself *inside* of the class body, + // this introduces two bindings to the class: One outside of the class body, and one + // inside of the class body. If we apply decorators as in [Example 1] above, there + // is the possibility that the decorator `dec` will return a new value for the + // constructor, which would result in the binding inside of the class no longer + // pointing to the same reference as the binding outside of the class. + // + // As a result, we must instead rewrite all references to the class *inside* of the + // class body to instead point to a local temporary alias for the class: + // + // [Example 2] + // --------------------------------------------------------------------- + // TypeScript | Javascript + // --------------------------------------------------------------------- + // @dec | let C = C_1 = class C { + // class C { | static x() { return C_1.y; } + // static x() { return C.y; } | } + // static y = 1; | C.y = 1; + // } | C = C_1 = __decorate([dec], C); + // | var C_1; + // --------------------------------------------------------------------- + // @dec | let C = class C { + // export class C { | static x() { return C_1.y; } + // static x() { return C.y; } | } + // static y = 1; | C.y = 1; + // } | C = C_1 = __decorate([dec], C); + // | export { C }; + // | var C_1; + // --------------------------------------------------------------------- + // + // If a class declaration is the default export of a module, we instead emit + // the export after the decorated declaration: + // + // [Example 3] + // --------------------------------------------------------------------- + // TypeScript | Javascript + // --------------------------------------------------------------------- + // @dec | let default_1 = class { + // export default class { | } + // } | default_1 = __decorate([dec], default_1); + // | export default default_1; + // --------------------------------------------------------------------- + // @dec | let C = class C { + // export default class C { | } + // } | C = __decorate([dec], C); + // | export default C; + // --------------------------------------------------------------------- + // + // If the class declaration is the default export and a reference to itself + // inside of the class body, we must emit both an alias for the class *and* + // move the export after the declaration: + // + // [Example 4] + // --------------------------------------------------------------------- + // TypeScript | Javascript + // --------------------------------------------------------------------- + // @dec | let C = class C { + // export default class C { | static x() { return C_1.y; } + // static x() { return C.y; } | } + // static y = 1; | C.y = 1; + // } | C = C_1 = __decorate([dec], C); + // | export default C; + // | var C_1; + // --------------------------------------------------------------------- + // + + isExport := ast.HasSyntacticModifier(node.AsNode(), ast.ModifierFlagsExport) + isDefault := ast.HasSyntacticModifier(node.AsNode(), ast.ModifierFlagsDefault) + var modifiers *ast.ModifierList + if node.Modifiers() != nil && len(node.Modifiers().Nodes) > 0 { + modifierNodes := core.Filter(node.Modifiers().Nodes, isNotExportOrDefaultOrDecorator) + if len(modifierNodes) != len(node.Modifiers().Nodes) { + modifiers = tx.Factory().NewModifierList(modifierNodes) + modifiers.Loc = node.Modifiers().Loc + } else { + modifiers = node.Modifiers() + } + } + + location := moveRangePastModifiers(node.AsNode()) + classAlias := tx.getClassAliasIfNeeded(node) + if classAlias != nil { + tx.pushEnclosingClass(node) + defer tx.popEnclosingClass() + } + + // When we used to transform to ES5/3 this would be moved inside an IIFE and should reference the name + // without any block-scoped variable collision handling - but we don't support that anymore, so we always + // use the local name for the class + declName := tx.Factory().GetLocalNameEx(node.AsNode(), printer.AssignedNameOptions{AllowComments: false, AllowSourceMaps: true}) + + // ... = class ${name} ${heritageClauses} { + // ${members} + // } + heritageClauses := tx.Visitor().VisitNodes(node.HeritageClauses) + members := tx.Visitor().VisitNodes(node.Members) + + members, decorationStatements := tx.transformDecoratorsOfClassElements(node, members) + + // If we're emitting to ES2022 or later then we need to reassign the class alias before + // static initializers are evaluated. + assignClassAliasInStaticBlock := tx.languageVersion >= core.ScriptTargetES2022 && classAlias != nil && members != nil && len(members.Nodes) > 0 && core.Some(members.Nodes, isClassStaticBlockDeclarationOrStaticProperty) + if assignClassAliasInStaticBlock { + memberList := []*ast.Node{} + memberList = append(memberList, tx.Factory().NewClassStaticBlockDeclaration(nil, tx.Factory().NewBlock( + tx.Factory().NewNodeList([]*ast.Node{tx.Factory().NewExpressionStatement( + tx.Factory().NewAssignmentExpression(classAlias, tx.Factory().NewKeywordExpression(ast.KindThisKeyword)), + )}), + false, + ))) + memberList = append(memberList, members.Nodes...) + newList := tx.Factory().NewNodeList(memberList) + newList.Loc = members.Loc + members = newList + } + + exprName := name + if name != nil && transformers.IsGeneratedIdentifier(tx.EmitContext(), name) { + exprName = nil + } + classExpression := tx.Factory().NewClassExpression( + modifiers, + exprName, + nil, + heritageClauses, + members, + ) + + tx.EmitContext().SetOriginal(classExpression, node.AsNode()) + classExpression.Loc = location + + // let ${name} = ${classExpression} where name is either declaredName if the class doesn't contain self-reference + // or decoratedClassAlias if the class contain self-reference. + varInitializer := classExpression + if classAlias != nil && !assignClassAliasInStaticBlock { + varInitializer = tx.Factory().NewAssignmentExpression(classAlias, classExpression) + } + varDecl := tx.Factory().NewVariableDeclaration( + declName, + nil, + nil, + varInitializer, + ) + tx.EmitContext().SetOriginal(varDecl, node.AsNode()) + + varDeclList := tx.Factory().NewVariableDeclarationList(ast.NodeFlagsLet, tx.Factory().NewNodeList([]*ast.Node{varDecl})) + varStatement := tx.Factory().NewVariableStatement(nil, varDeclList) + tx.EmitContext().SetOriginal(varStatement, node.AsNode()) + varStatement.Loc = location + tx.EmitContext().SetCommentRange(varStatement, node.Loc) + + statements := []*ast.Node{varStatement} + statements = append(statements, decorationStatements...) + statements = append(statements, tx.getConstructorDecorationStatement(node)) + + if isExport { + var exportStatement *ast.Node + if isDefault { + exportStatement = tx.Factory().NewExportAssignment(nil, false, nil, declName) + } else { + exportStatement = tx.Factory().NewExportDeclaration( + nil, + false, + tx.Factory().NewNamedExports( + tx.Factory().NewNodeList([]*ast.Node{tx.Factory().NewExportSpecifier( + false, + nil, + tx.Factory().GetDeclarationName(node.AsNode()), + )}), + ), + nil, + nil, + ) + } + statements = append(statements, exportStatement) + } + + if len(statements) == 1 { + return statements[0] + } + return tx.Factory().NewSyntaxList(statements) +} + +func (tx *LegacyDecoratorsTransformer) hasInternalStaticReference(node *ast.ClassDeclaration) bool { + var isOrContainsStaticSelfReference func(n *ast.Node) bool + isOrContainsStaticSelfReference = func(n *ast.Node) bool { + if ast.IsIdentifier(n) && tx.referenceResolver.GetReferencedValueDeclaration(tx.EmitContext().MostOriginal(n)) == node.AsNode() { + return true + } + return n.ForEachChild(isOrContainsStaticSelfReference) + } + for _, node := range node.Members.Nodes { + if node.ForEachChild(isOrContainsStaticSelfReference) { + return true + } + } + return false +} + +/** +* Gets a local alias for a class declaration if it is a decorated class with an internal +* reference to the static side of the class. This is necessary to avoid issues with +* double-binding semantics for the class name. + */ +func (tx *LegacyDecoratorsTransformer) getClassAliasIfNeeded(node *ast.ClassDeclaration) *ast.Node { + if !tx.hasInternalStaticReference(node) { + return nil + } + nameText := "default" + if node.Name() != nil && !transformers.IsGeneratedIdentifier(tx.EmitContext(), node.Name()) { + nameText = node.Name().Text() + } + + classAlias := tx.Factory().NewUniqueName(nameText) + tx.EmitContext().AddVariableDeclaration(classAlias) + tx.classAliases[node.AsNode()] = classAlias + + return classAlias +} + +/** +* Generates a __decorate helper call for a class constructor. +* +* @param node The class node. + */ +func (tx *LegacyDecoratorsTransformer) getConstructorDecorationStatement(node *ast.ClassDeclaration) *ast.Node { + expression := tx.generateConstructorDecorationExpression(node) + if expression != nil { + result := tx.Factory().NewExpressionStatement(expression) + tx.EmitContext().SetOriginal(result, node.AsNode()) + return result + } + return nil +} + +/** +* Generates a __decorate helper call for a class constructor. +* +* @param node The class node. + */ +func (tx *LegacyDecoratorsTransformer) generateConstructorDecorationExpression(node *ast.ClassDeclaration) *ast.Node { + allDecorators := getAllDecoratorsOfClass(node, true) + decoratorExpressions := tx.transformAllDecoratorsOfDeclaration(allDecorators) + if len(decoratorExpressions) == 0 { + return nil + } + + var classAlias *ast.Node + if tx.classAliases != nil { + classAlias, _ = tx.classAliases[tx.EmitContext().MostOriginal(node.AsNode())] + } + + // When we used to transform to ES5/3 this would be moved inside an IIFE and should reference the name + // without any block-scoped variable collision handling - but we don't support that anymore, so we always + // use the local name for the class + localName := tx.Factory().GetDeclarationNameEx(node.AsNode(), printer.NameOptions{AllowComments: false, AllowSourceMaps: true}) + decorate := tx.Factory().NewDecorateHelper(decoratorExpressions, localName, nil, nil) + assignmentTarget := decorate + if classAlias != nil { + assignmentTarget = tx.Factory().NewAssignmentExpression(classAlias, decorate) + } + expression := tx.Factory().NewAssignmentExpression(localName, assignmentTarget) + tx.EmitContext().SetEmitFlags(expression, printer.EFNoComments) + tx.EmitContext().SetSourceMapRange(expression, moveRangePastModifiers(node.AsNode())) + return expression +} + +func isClassStaticBlockDeclarationOrStaticProperty(node *ast.Node) bool { + return ast.IsClassStaticBlockDeclaration(node) || (ast.IsPropertyDeclaration(node) && ast.HasStaticModifier(node)) +} + +func isNotExportOrDefaultOrDecorator(node *ast.Node) bool { + return !(ast.IsDecorator(node) || node.Kind == ast.KindExportKeyword || node.Kind == ast.KindDefaultKeyword) +} + +func decoratorContainsPrivateIdentifierInExpression(decorator *ast.Node) bool { + return (decorator.SubtreeFacts() & ast.SubtreeContainsPrivateIdentifierInExpression) != 0 +} + +func parameterDecoratorsContainPrivateIdentifierInExpression(parameterDecorators []*ast.Node) bool { + return core.Some(parameterDecorators, decoratorContainsPrivateIdentifierInExpression) +} + +func hasClassElementWithDecoratorContainingPrivateIdentifierInExpression(node *ast.ClassDeclaration) bool { + if node.Members == nil || len(node.Members.Nodes) == 0 { + return false + } + for _, member := range node.Members.Nodes { + if !ast.CanHaveDecorators(member) { + continue + } + allDecorators := getAllDecoratorsOfClassElement(member, node, true) + if allDecorators == nil { + continue + } + if core.Some(allDecorators.decorators, decoratorContainsPrivateIdentifierInExpression) { + return true + } + if core.Some(allDecorators.parameters, parameterDecoratorsContainPrivateIdentifierInExpression) { + return true + } + } + return false +} + +type allDecorators struct { + decorators []*ast.Node + parameters [][]*ast.Node +} + +/** + * Gets an allDecorators object containing the decorators for the class and the decorators for the + * parameters of the constructor of the class. + * + * @param node The class node. + * + * @internal + */ +func getAllDecoratorsOfClass(node *ast.ClassDeclaration, useLegacyDecorators bool) *allDecorators { + decorators := node.Decorators() + var parameters [][]*ast.Node + if useLegacyDecorators { + parameters = getDecoratorsOfParameters(ast.GetFirstConstructorWithBody(node.AsNode())) + } + if len(decorators) == 0 && len(parameters) == 0 { + return nil + } + return &allDecorators{decorators: decorators, parameters: parameters} +} + +/** + * Gets an allDecorators object containing the decorators for the member and its parameters. + * + * @param parent The class node that contains the member. + * @param member The class member. + * + * @internal + */ +func getAllDecoratorsOfClassElement(member *ast.Node, parent *ast.ClassDeclaration, useLegacyDecorators bool) *allDecorators { + switch member.Kind { + case ast.KindGetAccessor, ast.KindSetAccessor: + if !useLegacyDecorators { + return getAllDecoratorsOfMethod(member, false) + } + return getAllDecoratorsOfAccessors(member, parent, true) + case ast.KindMethodDeclaration: + return getAllDecoratorsOfMethod(member, useLegacyDecorators) + case ast.KindPropertyDeclaration: + return getAllDecoratorsOfProperty(member) + default: + return nil + } +} + +/** + * Gets an allDecorators object containing the decorators for the accessor and its parameters. + * + * @param parent The class node that contains the accessor. + * @param accessor The class accessor member. + */ +func getAllDecoratorsOfAccessors(accessor *ast.Node, parent *ast.ClassDeclaration, useLegacyDecorators bool) *allDecorators { + if accessor.Body() == nil { + return nil + } + decls := ast.GetAllAccessorDeclarations(parent.Members.Nodes, accessor) + var firstAccessorWithDecorators *ast.Node + if ast.HasDecorators(decls.FirstAccessor) { + firstAccessorWithDecorators = decls.FirstAccessor + } else if ast.HasDecorators(decls.SecondAccessor) { + firstAccessorWithDecorators = decls.SecondAccessor + } + + if firstAccessorWithDecorators == nil || accessor != firstAccessorWithDecorators { + return nil + } + + decorators := firstAccessorWithDecorators.Decorators() + var parameters [][]*ast.Node + if useLegacyDecorators && decls.SetAccessor != nil { + parameters = getDecoratorsOfParameters(decls.SetAccessor.AsNode()) + } + + if len(decorators) == 0 && len(parameters) == 0 { + return nil + } + + return &allDecorators{ + decorators: decorators, + parameters: parameters, + } +} + +func getAllDecoratorsOfProperty(property *ast.Node) *allDecorators { + decorators := property.Decorators() + if len(decorators) == 0 { + return nil + } + return &allDecorators{decorators: decorators} +} + +func getAllDecoratorsOfMethod(method *ast.Node, useLegacyDecorators bool) *allDecorators { + if method.Body() == nil { + return nil + } + decorators := method.Decorators() + var parameters [][]*ast.Node + if useLegacyDecorators { + parameters = getDecoratorsOfParameters(method) + } + if len(decorators) == 0 && len(parameters) == 0 { + return nil + } + return &allDecorators{decorators: decorators, parameters: parameters} +} + +/** + * Gets an array of arrays of decorators for the parameters of a function-like node. + * The offset into the result array should correspond to the offset of the parameter. + * + * @param node The function-like node. + */ +func getDecoratorsOfParameters(node *ast.Node) [][]*ast.Node { + var decorators [][]*ast.Node + if node != nil { + parameters := node.Parameters() + firstParameterIsThis := len(parameters) > 0 && ast.IsThisParameter(parameters[0]) + firstParameterOffset := 0 + numParameters := len(parameters) + if firstParameterIsThis { + firstParameterOffset = 1 + numParameters = numParameters - 1 + } + for i := range numParameters { + p := parameters[i+firstParameterOffset] + if len(decorators) > 0 || ast.HasDecorators(p) { + if len(decorators) == 0 { + decorators = make([][]*ast.Node, numParameters) + } + decorators[i] = p.Decorators() + } + } + + } + return decorators +} + +func (tx *LegacyDecoratorsTransformer) transformDecoratorsOfClassElements(node *ast.ClassDeclaration, members *ast.NodeList) (*ast.NodeList, []*ast.Node) { + var decorationStatements []*ast.Node + decorationStatements = append(decorationStatements, tx.getClassElementDecorationStatements(node, false)...) + decorationStatements = append(decorationStatements, tx.getClassElementDecorationStatements(node, true)...) + if hasClassElementWithDecoratorContainingPrivateIdentifierInExpression(node) { + var memberNodes []*ast.Node + if members != nil && len(members.Nodes) > 0 { + memberNodes = members.Nodes + } + members = tx.Factory().NewNodeList( + append( + append([]*ast.Node{}, memberNodes...), + tx.Factory().NewClassStaticBlockDeclaration(nil, tx.Factory().NewBlock(tx.Factory().NewNodeList(decorationStatements), true)), + ), + ) + decorationStatements = nil + } + + return members, decorationStatements +} + +/** +* Generates statements used to apply decorators to either the static or instance members +* of a class. +* +* @param node The class node. +* @param isStatic A value indicating whether to generate statements for static or +* instance members. + */ +func (tx *LegacyDecoratorsTransformer) getClassElementDecorationStatements(node *ast.ClassDeclaration, isStatic bool) []*ast.Node { + exprs := tx.generateClassElementDecorationExpressions(node, isStatic) + var statements []*ast.Node + for _, e := range exprs { + statements = append(statements, tx.Factory().NewExpressionStatement(e)) + } + return statements +} + +/** +* Determines whether a class member is either a static or an instance member of a class +* that is decorated, or has parameters that are decorated. +* +* @param member The class member. + */ +func isDecoratedClassElement(member *ast.Node, isStaticElement bool, parent *ast.ClassDeclaration) bool { + return isStaticElement == ast.IsStatic(member) && ast.NodeOrChildIsDecorated(true, member, parent.AsNode(), nil) +} + +/** +* Gets either the static or instance members of a class that are decorated, or have +* parameters that are decorated. +* +* @param node The class containing the member. +* @param isStatic A value indicating whether to retrieve static or instance members of +* the class. + */ +func getDecoratedClassElements(node *ast.ClassDeclaration, isStatic bool) []*ast.Node { + if node.Members == nil || len(node.Members.Nodes) == 0 { + return nil + } + var members []*ast.Node + for _, member := range node.Members.Nodes { + if isDecoratedClassElement(member, isStatic, node) { + members = append(members, member) + } + } + return members +} + +/** +* Generates expressions used to apply decorators to either the static or instance members +* of a class. +* +* @param node The class node. +* @param isStatic A value indicating whether to generate expressions for static or +* instance members. + */ +func (tx *LegacyDecoratorsTransformer) generateClassElementDecorationExpressions(node *ast.ClassDeclaration, isStatic bool) []*ast.Node { + members := getDecoratedClassElements(node, isStatic) + var expressions []*ast.Node + for _, member := range members { + expr := tx.generateClassElementDecorationExpression(node, member) + if expr != nil { + expressions = append(expressions, expr) + } + } + return expressions +} + +/** +* Generates an expression used to evaluate class element decorators at runtime. +* +* @param node The class node that contains the member. +* @param member The class member. + */ +func (tx *LegacyDecoratorsTransformer) generateClassElementDecorationExpression(node *ast.ClassDeclaration, member *ast.Node) *ast.Node { + allDecorators := getAllDecoratorsOfClassElement(member, node, true) + decoratorExpressions := tx.transformAllDecoratorsOfDeclaration(allDecorators) + if len(decoratorExpressions) == 0 { + return nil + } + + // Emit the call to __decorate. Given the following: + // + // class C { + // @dec method(@dec2 x) {} + // @dec get accessor() {} + // @dec prop; + // } + // + // The emit for a method is: + // + // __decorate([ + // dec, + // __param(0, dec2), + // __metadata("design:type", Function), + // __metadata("design:paramtypes", [Object]), + // __metadata("design:returntype", void 0) + // ], C.prototype, "method", null); + // + // The emit for an accessor is: + // + // __decorate([ + // dec + // ], C.prototype, "accessor", null); + // + // The emit for a property is: + // + // __decorate([ + // dec + // ], C.prototype, "prop"); + // + + prefix := tx.getClassMemberPrefix(node, member) + memberName := tx.getExpressionForPropertyName(member, !ast.HasAmbientModifier(member)) + var descriptor *ast.Node + if ast.IsPropertyDeclaration(member) && !ast.HasAccessorModifier(member) { + // We emit `void 0` here to indicate to `__decorate` that it can invoke `Object.defineProperty` directly, but that it + // should not invoke `Object.getOwnPropertyDescriptor`. + descriptor = tx.Factory().NewVoidZeroExpression() + } else { + // We emit `null` here to indicate to `__decorate` that it can invoke `Object.getOwnPropertyDescriptor` directly. + // We have this extra argument here so that we can inject an explicit property descriptor at a later date. + descriptor = tx.Factory().NewKeywordExpression(ast.KindNullKeyword) + } + + helper := tx.Factory().NewDecorateHelper( + decoratorExpressions, + prefix, + memberName, + descriptor, + ) + + tx.EmitContext().SetEmitFlags(helper, printer.EFNoComments) + tx.EmitContext().SetSourceMapRange(helper, moveRangePastModifiers(member)) + return helper +} + +func (tx *LegacyDecoratorsTransformer) isSyntheticMetadataDecorator(node *ast.Node) bool { + return tx.EmitContext().IsCallToHelper(node.Expression(), "__metadata") +} + +/** +* Transforms all of the decorators for a declaration into an array of expressions. +* +* @param allDecorators An object containing all of the decorators for the declaration. + */ +func (tx *LegacyDecoratorsTransformer) transformAllDecoratorsOfDeclaration(allDecorators *allDecorators) []*ast.Node { + if allDecorators == nil { + return nil + } + + // ensure that metadata decorators are last + mm := collections.GroupBy(allDecorators.decorators, tx.isSyntheticMetadataDecorator) + metadata := mm.Get(true) + decorators := mm.Get(false) + + var decoratorExpressions []*ast.Node + decoratorExpressions = append(decoratorExpressions, tx.transformDecorators(decorators)...) + decoratorExpressions = append(decoratorExpressions, tx.transformDecoratorsOfParameters(allDecorators.parameters)...) + decoratorExpressions = append(decoratorExpressions, tx.transformDecorators(metadata)...) + return decoratorExpressions +} + +func (tx *LegacyDecoratorsTransformer) transformDecoratorsOfParameters(parameters [][]*ast.Node) []*ast.Node { + var results []*ast.Node + for i, decorators := range parameters { + if len(decorators) > 0 { + for _, decorator := range decorators { + helper := tx.Factory().NewParamHelper( + tx.Visitor().VisitNode(decorator.Expression()), + i, + decorator.Expression().Loc, + ) + tx.EmitContext().SetEmitFlags(helper, printer.EFNoComments) + results = append(results, helper) + } + } + } + return results +} + +/** +* Transforms a list of decorators into an expression. +* +* @param decorator The decorator node. + */ +func (tx *LegacyDecoratorsTransformer) transformDecorators(decorators []*ast.Node) []*ast.Node { + var results []*ast.Node + for _, d := range decorators { + results = append(results, tx.Visitor().VisitNode(d.Expression())) + } + return results +} + +func (tx *LegacyDecoratorsTransformer) getClassMemberPrefix(node *ast.ClassDeclaration, member *ast.Node) *ast.Node { + if ast.IsStatic(member) { + return tx.Factory().GetDeclarationName(node.AsNode()) + } + return tx.getClassPrototype(node) +} + +func (tx *LegacyDecoratorsTransformer) getClassPrototype(node *ast.ClassDeclaration) *ast.Node { + return tx.Factory().NewPropertyAccessExpression( + tx.Factory().GetDeclarationName(node.AsNode()), + nil, + tx.Factory().NewIdentifier("prototype"), + ast.NodeFlagsNone, + ) +} + +func (tx *LegacyDecoratorsTransformer) getExpressionForPropertyName(member *ast.Node, generateNameForComputedPropertyName bool) *ast.Node { + name := member.Name() + if ast.IsPrivateIdentifier(name) { + return tx.Factory().NewIdentifier("") + } else if ast.IsComputedPropertyName(name) { + if generateNameForComputedPropertyName && !transformers.IsSimpleInlineableExpression(name.AsComputedPropertyName().Expression) { + return tx.Factory().NewGeneratedNameForNode(name) + } + return name.AsComputedPropertyName().Expression + } else if ast.IsIdentifier(name) { + return tx.Factory().NewStringLiteral(name.Text(), ast.TokenFlagsNone) + } else { + return tx.Factory().DeepCloneNode(name) + } +} diff --git a/pkg/transformers/tstransforms/metadata.go b/pkg/transformers/tstransforms/metadata.go new file mode 100644 index 000000000..552c579d4 --- /dev/null +++ b/pkg/transformers/tstransforms/metadata.go @@ -0,0 +1,386 @@ +package tstransforms + +import ( + "github.com/buke/typescript-go-internal/pkg/ast" + "github.com/buke/typescript-go-internal/pkg/core" + "github.com/buke/typescript-go-internal/pkg/printer" + "github.com/buke/typescript-go-internal/pkg/transformers" +) + +const USE_NEW_TYPE_METADATA_FORMAT = false + +type MetadataTransformer struct { + transformers.Transformer + legacyDecorators bool + resolver printer.EmitResolver + + serializer *metadataSerializer + strictNullChecks bool + parent *ast.Node + currentLexicalScope *ast.Node +} + +func NewMetadataTransformer(opt *transformers.TransformOptions) *transformers.Transformer { + tx := &MetadataTransformer{ + legacyDecorators: opt.CompilerOptions.ExperimentalDecorators.IsTrue(), + resolver: opt.EmitResolver, + strictNullChecks: opt.CompilerOptions.GetStrictOptionValue(opt.CompilerOptions.StrictNullChecks), + } + return tx.NewTransformer(tx.visit, opt.Context) +} + +func (tx *MetadataTransformer) visit(node *ast.Node) *ast.Node { + if (node.SubtreeFacts() & ast.SubtreeContainsDecorators) == 0 { + return node + } + + switch node.Kind { + case ast.KindClassDeclaration: + return tx.visitClassDeclaration(node.AsClassDeclaration()) + case ast.KindClassExpression: + return tx.visitClassExpression(node.AsClassExpression()) + case ast.KindPropertyDeclaration: + return tx.visitPropertyDeclaration(node.AsPropertyDeclaration()) + case ast.KindMethodDeclaration: + return tx.visitMethodDeclaration(node.AsMethodDeclaration()) + case ast.KindSetAccessor: + return tx.visitSetAccessor(node.AsSetAccessorDeclaration()) + case ast.KindGetAccessor: + return tx.visitGetAccessor(node.AsGetAccessorDeclaration()) + case ast.KindSourceFile: + tx.parent = nil + defer tx.setParent(nil) + tx.currentLexicalScope = node + defer tx.setCurrentLexicalScope(nil) + tx.serializer = newMetadataSerializer(tx.resolver, tx.Factory(), tx.EmitContext(), tx.strictNullChecks) + updated := tx.Visitor().VisitEachChild(node) + tx.EmitContext().AddEmitHelper(updated, tx.EmitContext().ReadEmitHelpers()...) + return updated + case ast.KindModuleBlock, ast.KindBlock, ast.KindCaseBlock: + oldScope := tx.currentLexicalScope + tx.currentLexicalScope = node + defer tx.setCurrentLexicalScope(oldScope) + return tx.Visitor().VisitEachChild(node) + default: + return tx.Visitor().VisitEachChild(node) + } +} + +func (tx *MetadataTransformer) setParent(node *ast.Node) { + tx.parent = node +} + +func (tx *MetadataTransformer) setCurrentLexicalScope(node *ast.Node) { + tx.currentLexicalScope = node +} + +func (tx *MetadataTransformer) visitClassExpression(node *ast.ClassExpression) *ast.Node { + oldParent := tx.parent + tx.parent = node.AsNode() + defer tx.setParent(oldParent) + + if !ast.ClassOrConstructorParameterIsDecorated(tx.legacyDecorators, node.AsNode()) { + return tx.Visitor().VisitEachChild(node.AsNode()) + } + modifiers := tx.injectClassTypeMetadata(tx.Visitor().VisitModifiers(node.Modifiers()), node.AsNode()) + return tx.Factory().UpdateClassExpression( + node, + modifiers, + tx.Visitor().VisitNode(node.Name()), + tx.Visitor().VisitNodes(node.TypeParameters), + tx.Visitor().VisitNodes(node.HeritageClauses), + tx.Visitor().VisitNodes(node.Members), + ) +} + +func (tx *MetadataTransformer) visitClassDeclaration(node *ast.ClassDeclaration) *ast.Node { + oldParent := tx.parent + tx.parent = node.AsNode() + defer tx.setParent(oldParent) + + if !ast.ClassOrConstructorParameterIsDecorated(tx.legacyDecorators, node.AsNode()) { + return tx.Visitor().VisitEachChild(node.AsNode()) + } + modifiers := tx.injectClassTypeMetadata(tx.Visitor().VisitModifiers(node.Modifiers()), node.AsNode()) + return tx.Factory().UpdateClassDeclaration( + node, + modifiers, + tx.Visitor().VisitNode(node.Name()), + tx.Visitor().VisitNodes(node.TypeParameters), + tx.Visitor().VisitNodes(node.HeritageClauses), + tx.Visitor().VisitNodes(node.Members), + ) +} + +func (tx *MetadataTransformer) visitPropertyDeclaration(node *ast.PropertyDeclaration) *ast.Node { + if !ast.HasDecorators(node.AsNode()) { + return tx.Visitor().VisitEachChild(node.AsNode()) + } + + modifiers := tx.injectClassElementTypeMetadata(tx.Visitor().VisitModifiers(node.Modifiers()), node.AsNode(), tx.parent) + return tx.Factory().UpdatePropertyDeclaration( + node, + modifiers, + tx.Visitor().VisitNode(node.Name()), + tx.Visitor().VisitNode(node.PostfixToken), + tx.Visitor().VisitNode(node.Type), + tx.Visitor().VisitNode(node.Initializer), + ) +} + +func (tx *MetadataTransformer) visitMethodDeclaration(node *ast.MethodDeclaration) *ast.Node { + if !ast.HasDecorators(node.AsNode()) && len(getDecoratorsOfParameters(node.AsNode())) == 0 { + return tx.Visitor().VisitEachChild(node.AsNode()) + } + + modifiers := tx.injectClassElementTypeMetadata(tx.Visitor().VisitModifiers(node.Modifiers()), node.AsNode(), tx.parent) + return tx.Factory().UpdateMethodDeclaration( + node, + modifiers, + tx.Visitor().VisitNode(node.AsteriskToken), + tx.Visitor().VisitNode(node.Name()), + tx.Visitor().VisitNode(node.PostfixToken), + tx.Visitor().VisitNodes(node.TypeParameters), + tx.Visitor().VisitNodes(node.Parameters), + tx.Visitor().VisitNode(node.Type), + tx.Visitor().VisitNode(node.FullSignature), + tx.Visitor().VisitNode(node.Body), + ) +} + +func (tx *MetadataTransformer) visitSetAccessor(node *ast.SetAccessorDeclaration) *ast.Node { + if !ast.HasDecorators(node.AsNode()) && len(getDecoratorsOfParameters(node.AsNode())) == 0 { + return tx.Visitor().VisitEachChild(node.AsNode()) + } + + modifiers := tx.injectClassElementTypeMetadata(tx.Visitor().VisitModifiers(node.Modifiers()), node.AsNode(), tx.parent) + return tx.Factory().UpdateSetAccessorDeclaration( + node, + modifiers, + tx.Visitor().VisitNode(node.Name()), + tx.Visitor().VisitNodes(node.TypeParameters), + tx.Visitor().VisitNodes(node.Parameters), + tx.Visitor().VisitNode(node.Type), + tx.Visitor().VisitNode(node.FullSignature), + tx.Visitor().VisitNode(node.Body), + ) +} + +func (tx *MetadataTransformer) visitGetAccessor(node *ast.GetAccessorDeclaration) *ast.Node { + if !ast.HasDecorators(node.AsNode()) { + return tx.Visitor().VisitEachChild(node.AsNode()) + } + + modifiers := tx.injectClassElementTypeMetadata(tx.Visitor().VisitModifiers(node.Modifiers()), node.AsNode(), tx.parent) + return tx.Factory().UpdateGetAccessorDeclaration( + node, + modifiers, + tx.Visitor().VisitNode(node.Name()), + tx.Visitor().VisitNodes(node.TypeParameters), + tx.Visitor().VisitNodes(node.Parameters), + tx.Visitor().VisitNode(node.Type), + tx.Visitor().VisitNode(node.FullSignature), + tx.Visitor().VisitNode(node.Body), + ) +} + +func (tx *MetadataTransformer) injectClassTypeMetadata(list *ast.ModifierList, node *ast.Node) *ast.ModifierList { + metadata := tx.getTypeMetadata(node, node) + if len(metadata) > 0 { + var originalNodes []*ast.Node + if list != nil { + originalNodes = list.Nodes + } + if len(originalNodes) == 0 { + res := tx.Factory().NewModifierList(metadata) + res.Loc = list.Loc + return res + } + var modifiersArray []*ast.Node + if ast.IsModifier(originalNodes[0]) && (originalNodes[0].Kind == ast.KindDefaultKeyword || originalNodes[0].Kind == ast.KindExportKeyword) { + modifiersArray = append(modifiersArray, originalNodes[0]) + if len(originalNodes) > 1 && (originalNodes[1].Kind == ast.KindDefaultKeyword || originalNodes[1].Kind == ast.KindExportKeyword) { + modifiersArray = append(modifiersArray, originalNodes[1]) + } + } + restStart := len(modifiersArray) + decos := core.Filter(originalNodes, ast.IsDecorator) + modifiersArray = append(modifiersArray, decos...) + modifiersArray = append(modifiersArray, metadata...) + otherModifiers := core.Filter(originalNodes[restStart:], ast.IsModifier) + modifiersArray = append(modifiersArray, otherModifiers...) + res := tx.Factory().NewModifierList(modifiersArray) + res.Loc = list.Loc + return res + } + return list +} + +func (tx *MetadataTransformer) injectClassElementTypeMetadata(list *ast.ModifierList, node *ast.Node, container *ast.Node) *ast.ModifierList { + if !ast.IsClassLike(container) { + return list + } + if !ast.ClassElementOrClassElementParameterIsDecorated(tx.legacyDecorators, node, container) { + return list + } + metadata := tx.getTypeMetadata(node, container) + if len(metadata) > 0 { + var originalNodes []*ast.Node + if list != nil { + originalNodes = list.Nodes + } + if len(originalNodes) == 0 { + res := tx.Factory().NewModifierList(metadata) + if list != nil { + res.Loc = list.Loc + } + return res + } + var modifiersArray []*ast.Node + decos := core.Filter(originalNodes, ast.IsDecorator) + modifiersArray = append(modifiersArray, decos...) + modifiersArray = append(modifiersArray, metadata...) + modifiers := core.Filter(originalNodes, ast.IsModifier) + modifiersArray = append(modifiersArray, modifiers...) + res := tx.Factory().NewModifierList(modifiersArray) + res.Loc = list.Loc + return res + } + return list +} + +/** + * Gets optional type metadata for a declaration. + * + * @param node The declaration node. + */ +func (tx *MetadataTransformer) getTypeMetadata(node *ast.Node, container *ast.Node) []*ast.Node { + // Decorator metadata is not yet supported for ES decorators. + if !tx.legacyDecorators { + return nil + } + if USE_NEW_TYPE_METADATA_FORMAT { + return tx.getNewTypeMetadata(node, container) + } + return tx.getOldTypeMetadata(node, container) +} + +func (tx *MetadataTransformer) getOldTypeMetadata(node *ast.Node, container *ast.Node) []*ast.Node { + var decorators []*ast.Node + if tx.shouldAddTypeMetadata(node) { + typeMetadata := tx.Factory().NewMetadataHelper("design:type", tx.serializer.SerializeTypeOfNode(metadataSerializerContext{currentLexicalScope: tx.currentLexicalScope, currentNameScope: container}, node, container)) + decorators = append(decorators, tx.Factory().NewDecorator(typeMetadata)) + } + if tx.shouldAddParamTypesMetadata(node) { + paramTypesMetadata := tx.Factory().NewMetadataHelper("design:paramtypes", tx.serializer.SerializeParameterTypesOfNode(metadataSerializerContext{currentLexicalScope: tx.currentLexicalScope, currentNameScope: container}, node, container)) + decorators = append(decorators, tx.Factory().NewDecorator(paramTypesMetadata)) + } + if tx.shouldAddReturnTypeMetadata(node) { + returnTypeMetadata := tx.Factory().NewMetadataHelper("design:returntype", tx.serializer.SerializeReturnTypeOfNode(metadataSerializerContext{currentLexicalScope: tx.currentLexicalScope, currentNameScope: container}, node)) + decorators = append(decorators, tx.Factory().NewDecorator(returnTypeMetadata)) + } + return decorators +} + +func (tx *MetadataTransformer) getNewTypeMetadata(node *ast.Node, container *ast.Node) []*ast.Node { + var properties []*ast.Node + if tx.shouldAddTypeMetadata(node) { + properties = append(properties, tx.Factory().NewPropertyAssignment( + nil, + tx.Factory().NewIdentifier("type"), + nil, + nil, + tx.Factory().NewArrowFunction( + nil, + nil, + tx.Factory().NewNodeList([]*ast.Node{}), + nil, + nil, + tx.Factory().NewToken(ast.KindEqualsGreaterThanToken), + tx.serializer.SerializeTypeOfNode(metadataSerializerContext{currentLexicalScope: tx.currentLexicalScope, currentNameScope: container}, node, container), + ), + )) + } + if tx.shouldAddParamTypesMetadata(node) { + properties = append(properties, tx.Factory().NewPropertyAssignment( + nil, + tx.Factory().NewIdentifier("paramTypes"), + nil, + nil, + tx.Factory().NewArrowFunction( + nil, + nil, + tx.Factory().NewNodeList([]*ast.Node{}), + nil, + nil, + tx.Factory().NewToken(ast.KindEqualsGreaterThanToken), + tx.serializer.SerializeParameterTypesOfNode(metadataSerializerContext{currentLexicalScope: tx.currentLexicalScope, currentNameScope: container}, node, container), + ), + )) + } + if tx.shouldAddReturnTypeMetadata(node) { + properties = append(properties, tx.Factory().NewPropertyAssignment( + nil, + tx.Factory().NewIdentifier("returnType"), + nil, + nil, + tx.Factory().NewArrowFunction( + nil, + nil, + tx.Factory().NewNodeList([]*ast.Node{}), + nil, + nil, + tx.Factory().NewToken(ast.KindEqualsGreaterThanToken), + tx.serializer.SerializeReturnTypeOfNode(metadataSerializerContext{currentLexicalScope: tx.currentLexicalScope, currentNameScope: container}, node), + ), + )) + } + if len(properties) > 0 { + typeInfoMetadata := tx.Factory().NewMetadataHelper("design:typeinfo", tx.Factory().NewObjectLiteralExpression(tx.Factory().NewNodeList(properties), true)) + return []*ast.Node{tx.Factory().NewDecorator(typeInfoMetadata)} + } + return nil +} + +/** +* Determines whether to emit the "design:type" metadata based on the node's kind. +* The caller should have already tested whether the node has decorators and whether the +* emitDecoratorMetadata compiler option is set. +* +* @param node The node to test. + */ +func (tx *MetadataTransformer) shouldAddTypeMetadata(node *ast.Node) bool { + switch node.Kind { + case ast.KindMethodDeclaration, ast.KindGetAccessor, ast.KindSetAccessor, ast.KindPropertyDeclaration: + return true + } + return false +} + +/** +* Determines whether to emit the "design:returntype" metadata based on the node's kind. +* The caller should have already tested whether the node has decorators and whether the +* emitDecoratorMetadata compiler option is set. +* +* @param node The node to test. + */ +func (tx *MetadataTransformer) shouldAddReturnTypeMetadata(node *ast.Node) bool { + return node.Kind == ast.KindMethodDeclaration +} + +/** +* Determines whether to emit the "design:paramtypes" metadata based on the node's kind. +* The caller should have already tested whether the node has decorators and whether the +* emitDecoratorMetadata compiler option is set. +* +* @param node The node to test. + */ +func (tx *MetadataTransformer) shouldAddParamTypesMetadata(node *ast.Node) bool { + switch node.Kind { + case ast.KindClassDeclaration, ast.KindClassExpression: + return ast.GetFirstConstructorWithBody(node) != nil + case ast.KindMethodDeclaration, ast.KindGetAccessor, ast.KindSetAccessor: + return true + } + return false +} diff --git a/pkg/transformers/tstransforms/typeeraser.go b/pkg/transformers/tstransforms/typeeraser.go index de210409b..f7cc62028 100644 --- a/pkg/transformers/tstransforms/typeeraser.go +++ b/pkg/transformers/tstransforms/typeeraser.go @@ -1,6 +1,8 @@ package tstransforms import ( + "slices" + "github.com/buke/typescript-go-internal/pkg/ast" "github.com/buke/typescript-go-internal/pkg/core" "github.com/buke/typescript-go-internal/pkg/transformers" @@ -121,6 +123,11 @@ func (tx *TypeEraserTransformer) visit(node *ast.Node) *ast.Node { return tx.Factory().UpdateExpressionWithTypeArguments(n, tx.Visitor().VisitNode(n.Expression), nil) case ast.KindPropertyDeclaration: + if tx.compilerOptions.ExperimentalDecorators.IsTrue() && ast.HasSyntacticModifier(node, ast.ModifierFlagsAmbient|ast.ModifierFlagsAbstract) && ast.HasDecorators(node) { + // declare/abstract props with decorators must be preserved until the decorator transform can process them and remove them + n := node.AsPropertyDeclaration() + return tx.Factory().UpdatePropertyDeclaration(n, tx.Visitor().VisitModifiers(n.Modifiers()), tx.Visitor().VisitNode(n.Name()), nil, nil, tx.Visitor().VisitNode(n.Initializer)) + } if ast.HasSyntacticModifier(node, ast.ModifierFlagsAmbient|ast.ModifierFlagsAbstract) { // TypeScript `declare` fields are elided return nil @@ -207,6 +214,16 @@ func (tx *TypeEraserTransformer) visit(node *ast.Node) *ast.Node { if ast.IsParameterPropertyDeclaration(node, tx.parentNode) { modifiers = transformers.ExtractModifiers(tx.EmitContext(), n.Modifiers(), ast.ModifierFlagsParameterPropertyModifier) } + // preserve decorators for the decorator transforms + if ast.HasDecorators(node) { + decorators := node.Decorators() + visited, _ := tx.Visitor().VisitSlice(decorators) + if modifiers == nil { + modifiers = tx.Factory().NewModifierList(visited) + } else { + modifiers = tx.Factory().NewModifierList(slices.Concat(modifiers.Nodes, visited)) + } + } return tx.Factory().UpdateParameterDeclaration(n, modifiers, n.DotDotDotToken, tx.Visitor().VisitNode(n.Name()), nil, nil, tx.Visitor().VisitNode(n.Initializer)) case ast.KindCallExpression: diff --git a/pkg/transformers/tstransforms/typeserializer.go b/pkg/transformers/tstransforms/typeserializer.go new file mode 100644 index 000000000..c99b70a0e --- /dev/null +++ b/pkg/transformers/tstransforms/typeserializer.go @@ -0,0 +1,496 @@ +package tstransforms + +import ( + "github.com/buke/typescript-go-internal/pkg/ast" + "github.com/buke/typescript-go-internal/pkg/debug" + "github.com/buke/typescript-go-internal/pkg/printer" + "github.com/buke/typescript-go-internal/pkg/transformers" +) + +type metadataSerializer struct { + resolver printer.EmitResolver + strictNullChecks bool + f *printer.NodeFactory + ec *printer.EmitContext + c metadataSerializerContext +} + +type metadataSerializerContext struct { + currentLexicalScope *ast.Node + currentNameScope *ast.Node +} + +func newMetadataSerializer(resolver printer.EmitResolver, f *printer.NodeFactory, ec *printer.EmitContext, strictNullChecks bool) *metadataSerializer { + return &metadataSerializer{resolver: resolver, f: f, ec: ec, strictNullChecks: strictNullChecks} +} + +func (s *metadataSerializer) setContext(ctx metadataSerializerContext) { + s.c = ctx +} + +func (s *metadataSerializer) SerializeTypeOfNode(ctx metadataSerializerContext, node *ast.Node, container *ast.Node) *ast.Node { + oldCtx := s.c + s.c = ctx + defer s.setContext(oldCtx) + return s.serializeTypeOfNode(node, container) +} + +func (s *metadataSerializer) SerializeParameterTypesOfNode(ctx metadataSerializerContext, node *ast.Node, container *ast.Node) *ast.Node { + oldCtx := s.c + s.c = ctx + defer s.setContext(oldCtx) + return s.serializeParameterTypesOfNode(node, container) +} + +func (s *metadataSerializer) SerializeReturnTypeOfNode(ctx metadataSerializerContext, node *ast.Node) *ast.Node { + oldCtx := s.c + s.c = ctx + defer s.setContext(oldCtx) + return s.serializeReturnTypeOfNode(node) +} + +func getSetAccessorValueParameter(node *ast.SetAccessorDeclaration) *ast.Node { + if node != nil && len(node.Parameters.Nodes) > 0 { + if len(node.Parameters.Nodes) >= 2 && ast.IsThisParameter(node.Parameters.Nodes[0]) { + return node.Parameters.Nodes[1] + } + return node.Parameters.Nodes[0] + } + return nil +} + +/** + * Get the type annotation for the value parameter. + * + * @internal + */ +func getSetAccessorTypeAnnotationNode(node *ast.SetAccessorDeclaration) *ast.Node { + p := getSetAccessorValueParameter(node) + if p != nil && p.Type() != nil { + return p.Type() + } + return nil +} + +func getAccessorTypeNode(node *ast.Node, container *ast.Node) *ast.Node { + accessors := ast.GetAllAccessorDeclarations(container.Members(), node) + if accessors.SetAccessor != nil { + return getSetAccessorTypeAnnotationNode(accessors.SetAccessor) + } + if accessors.GetAccessor != nil { + return accessors.GetAccessor.Type + } + return nil +} + +/** +* Serializes the type of a node for use with decorator type metadata. +* @param node The node that should have its type serialized. + */ +func (s *metadataSerializer) serializeTypeOfNode(node *ast.Node, container *ast.Node) *ast.Node { + switch node.Kind { + case ast.KindPropertyDeclaration, ast.KindParameter: + return s.serializeTypeNode(node.Type()) + case ast.KindGetAccessor, ast.KindSetAccessor: + return s.serializeTypeNode(getAccessorTypeNode(node, container)) + case ast.KindClassDeclaration, ast.KindClassExpression, ast.KindMethodDeclaration: + return s.f.NewIdentifier("Function") + default: + return s.f.NewVoidZeroExpression() + } +} + +/** +* Serializes the type of a node for use with decorator type metadata. +* @param node The node that should have its type serialized. + */ +func (s *metadataSerializer) serializeParameterTypesOfNode(node *ast.Node, container *ast.Node) *ast.Node { + var valueDeclaration *ast.Node + if ast.IsClassLike(node) { + valueDeclaration = ast.GetFirstConstructorWithBody(node) + } else if ast.IsFunctionLike(node) && ast.NodeIsPresent(node.Body()) { + valueDeclaration = node + } + + if valueDeclaration == nil { + return s.f.NewArrayLiteralExpression(s.f.NewNodeList([]*ast.Node{}), false) + } + + var expressions []*ast.Node + parameters := getParametersOfDecoratedDeclaration(valueDeclaration, container) + for i, parameter := range parameters.Nodes { + if i == 0 && ast.IsIdentifier(parameter.Name()) && parameter.Name().Text() == "this" { + continue + } + if parameter.AsParameterDeclaration().DotDotDotToken != nil { + expressions = append(expressions, s.serializeTypeNode(ast.GetRestParameterElementType(parameter.Type()))) + } else { + expressions = append(expressions, s.serializeTypeOfNode(parameter, container)) + } + } + return s.f.NewArrayLiteralExpression(s.f.NewNodeList(expressions), false) +} + +func getParametersOfDecoratedDeclaration(node *ast.Node, container *ast.Node) *ast.NodeList { + if container != nil && node.Kind == ast.KindGetAccessor { + acc := ast.GetAllAccessorDeclarations(container.Members(), node) + if acc.SetAccessor != nil { + return acc.SetAccessor.Parameters + } + } + return node.ParameterList() +} + +/** +* Serializes the return type of a node for use with decorator type metadata. +* @param node The node that should have its return type serialized. + */ +func (s *metadataSerializer) serializeReturnTypeOfNode(node *ast.Node) *ast.Node { + if ast.IsFunctionLike(node) && node.Type() != nil { + return s.serializeTypeNode(node.Type()) + } else if ast.IsAsyncFunction(node) { + return s.f.NewIdentifier("Promise") + } + return s.f.NewVoidZeroExpression() +} + +/** +* Serializes a type node for use with decorator type metadata. +* +* Types are serialized in the following fashion: +* - Void types point to "undefined" (e.g. "void 0") +* - Function and Constructor types point to the global "Function" constructor. +* - Interface types with a call or construct signature types point to the global +* "Function" constructor. +* - Array and Tuple types point to the global "Array" constructor. +* - Type predicates and booleans point to the global "Boolean" constructor. +* - String literal types and strings point to the global "String" constructor. +* - Enum and number types point to the global "Number" constructor. +* - Symbol types point to the global "Symbol" constructor. +* - Type references to classes (or class-like variables) point to the constructor for the class. +* - Anything else points to the global "Object" constructor. +* +* @param node The type node to serialize. + */ +func (s *metadataSerializer) serializeTypeNode(node *ast.Node) *ast.Node { + if node == nil { + return s.f.NewIdentifier("Object") + } + + node = ast.SkipTypeParentheses(node) + + switch node.Kind { + case ast.KindVoidKeyword, ast.KindUndefinedKeyword, ast.KindNeverKeyword: + return s.f.NewVoidZeroExpression() + case ast.KindFunctionType, ast.KindConstructorType: + return s.f.NewIdentifier("Function") + case ast.KindArrayType, ast.KindTupleType: + return s.f.NewIdentifier("Array") + case ast.KindTypePredicate: + if node.AsTypePredicateNode().AssertsModifier != nil { + return s.f.NewVoidZeroExpression() + } + return s.f.NewIdentifier("Boolean") + case ast.KindBooleanKeyword: + return s.f.NewIdentifier("Boolean") + case ast.KindTemplateLiteralType, ast.KindStringKeyword: + return s.f.NewIdentifier("String") + case ast.KindObjectKeyword: + return s.f.NewIdentifier("Object") + case ast.KindLiteralType: + return s.serializeLiteralOfLiteralTypeNode(node.AsLiteralTypeNode().Literal) + case ast.KindNumberKeyword: + return s.f.NewIdentifier("Number") + case ast.KindBigIntKeyword: + return s.f.NewIdentifier("BigInt") // !!! todo: fallback for targets < es2020 + case ast.KindSymbolKeyword: + return s.f.NewIdentifier("Symbol") + case ast.KindTypeReference: + return s.serializeTypeReferenceNode(node.AsTypeReferenceNode()) + case ast.KindIntersectionType: + return s.serializeUnionOrIntersectionConstituents(node.AsIntersectionTypeNode().Types.Nodes, true) + case ast.KindUnionType: + return s.serializeUnionOrIntersectionConstituents(node.AsUnionTypeNode().Types.Nodes, false) + case ast.KindConditionalType: + return s.serializeUnionOrIntersectionConstituents([]*ast.Node{node.AsConditionalTypeNode().TrueType, node.AsConditionalTypeNode().FalseType}, false) + case ast.KindTypeOperator: + if node.AsTypeOperatorNode().Operator == ast.KindReadonlyKeyword { + return s.serializeTypeNode(node.Type()) + } + // TODO: why is `unique symbol` not handled as `Symbol`? This falls back to `Object` + case ast.KindTypeQuery, ast.KindIndexedAccessType, ast.KindMappedType, ast.KindTypeLiteral, ast.KindAnyKeyword, ast.KindUnknownKeyword, ast.KindThisType, ast.KindImportType: + break + + // handle JSDoc types from an invalid parse + case ast.KindJSDocAllType, ast.KindJSDocVariadicType: + break + case ast.KindJSDocNullableType, ast.KindJSDocNonNullableType, ast.KindJSDocOptionalType: + return s.serializeTypeNode(node.Type()) + default: + debug.FailBadSyntaxKind(node) + return nil + } + return s.f.NewIdentifier("Object") +} + +func (s *metadataSerializer) serializeUnionOrIntersectionConstituents(types []*ast.Node, isIntersection bool) *ast.Node { + // Note when updating logic here also update `getEntityNameForDecoratorMetadata` in checker.ts so that aliases can be marked as referenced + var serializedType *ast.Node + for _, typeNode := range types { + typeNode = ast.SkipTypeParentheses(typeNode) + if typeNode.Kind == ast.KindNeverKeyword { + if isIntersection { + return s.f.NewVoidZeroExpression() // Reduce to `never` in an intersection + } + continue // Elide `never` in a union + } + + if typeNode.Kind == ast.KindUnknownKeyword { + if !isIntersection { + return s.f.NewIdentifier("Object") // Reduce to `unknown` in a union + } + continue // Elide `unknown` in an intersection + } + + if typeNode.Kind == ast.KindAnyKeyword { + return s.f.NewIdentifier("Object") // Reduce to `any` in a union or intersection + } + + if !s.strictNullChecks && (ast.IsLiteralTypeNode(typeNode) && typeNode.AsLiteralTypeNode().Literal.Kind == ast.KindNullKeyword) || typeNode.Kind == ast.KindUndefinedKeyword { + continue // Elide null and undefined from unions for metadata, just like what we did prior to the implementation of strict null checks + } + + serializedConstituent := s.serializeTypeNode(typeNode) + if ast.IsIdentifier(serializedConstituent) && serializedConstituent.AsIdentifier().Text == "Object" { + // One of the individual is global object, return immediately + return serializedConstituent + } + + // If there exists union that is not `void 0` expression, check if the the common type is identifier. + // anything more complex and we will just default to Object + if serializedType != nil { + // Different types + if !s.equateSerializedTypeNodes(serializedType, serializedConstituent) { + return s.f.NewIdentifier("Object") + } + } else { + // Initialize the union type + serializedType = serializedConstituent + } + } + + // If we were able to find common type, use it + if serializedType != nil { + return serializedType + } + return s.f.NewVoidZeroExpression() // Fallback is only hit if all union constituents are null/undefined/never +} + +func (s *metadataSerializer) serializeLiteralOfLiteralTypeNode(node *ast.Node) *ast.Node { + switch node.Kind { + case ast.KindStringLiteral, ast.KindNoSubstitutionTemplateLiteral: + return s.f.NewIdentifier("String") + case ast.KindPrefixUnaryExpression: + operand := node.AsPrefixUnaryExpression().Operand + switch operand.Kind { + case ast.KindNumericLiteral, ast.KindBigIntLiteral: + return s.serializeLiteralOfLiteralTypeNode(operand) + default: + debug.FailBadSyntaxKind(operand) + } + case ast.KindNumericLiteral: + return s.f.NewIdentifier("Number") + case ast.KindBigIntLiteral: + return s.f.NewIdentifier("BigInt") // !!! todo: fallback for targets < es2020 + case ast.KindTrueKeyword, ast.KindFalseKeyword: + return s.f.NewIdentifier("Boolean") + case ast.KindNullKeyword: + return s.f.NewVoidZeroExpression() + default: + debug.FailBadSyntaxKind(node) + return nil + } + return nil +} + +func isConditionalTypeBranch(n *ast.Node) bool { + return n.Parent != nil && ast.IsConditionalTypeNode(n.Parent) && (n.Parent.AsConditionalTypeNode().TrueType == n || n.Parent.AsConditionalTypeNode().FalseType == n) +} + +/** +* Serializes a TypeReferenceNode to an appropriate JS constructor value for use with decorator type metadata. +* @param node The type reference node. + */ +func (s *metadataSerializer) serializeTypeReferenceNode(node *ast.TypeReferenceNode) *ast.Node { + serialScope := s.c.currentNameScope + if serialScope == nil { + serialScope = s.c.currentLexicalScope + } + kind := s.resolver.GetTypeReferenceSerializationKind(s.ec.ParseNode(node.TypeName), s.ec.ParseNode(serialScope)) + switch kind { + case printer.TypeReferenceSerializationKindUnknown: + // From conditional type type reference that cannot be resolved is Similar to any or unknown + if ast.FindAncestor(node.AsNode(), isConditionalTypeBranch) != nil { + return s.f.NewIdentifier("Object") + } + + serialized := s.serializeEntityNameAsExpressionFallback(node.TypeName) + temp := s.f.NewTempVariable() + s.ec.AddVariableDeclaration(temp) + return s.f.NewConditionalExpression( + s.f.NewTypeCheck(s.f.NewAssignmentExpression(temp, serialized), "function"), + s.f.NewToken(ast.KindQuestionToken), + temp, + s.f.NewToken(ast.KindColonToken), + s.f.NewIdentifier("Object"), + ) + + case printer.TypeReferenceSerializationKindTypeWithConstructSignatureAndValue: + return s.serializeEntityNameAsExpression(node.TypeName) + + case printer.TypeReferenceSerializationKindVoidNullableOrNeverType: + return s.f.NewVoidZeroExpression() + + case printer.TypeReferenceSerializationKindBigIntLikeType: + return s.f.NewIdentifier("BigInt") + + case printer.TypeReferenceSerializationKindBooleanType: + return s.f.NewIdentifier("Boolean") + + case printer.TypeReferenceSerializationKindNumberLikeType: + return s.f.NewIdentifier("Number") + + case printer.TypeReferenceSerializationKindStringLikeType: + return s.f.NewIdentifier("String") + + case printer.TypeReferenceSerializationKindArrayLikeType: + return s.f.NewIdentifier("Array") + + case printer.TypeReferenceSerializationKindESSymbolType: + return s.f.NewIdentifier("Symbol") + + case printer.TypeReferenceSerializationKindTypeWithCallSignature: + return s.f.NewIdentifier("Function") + + case printer.TypeReferenceSerializationKindPromise: + return s.f.NewIdentifier("Promise") + + case printer.TypeReferenceSerializationKindObjectType: + return s.f.NewIdentifier("Object") + default: + debug.AssertNever(kind, "unknown type reference serialization kind") + return nil + } +} + +/** +* Serializes an entity name as an expression for decorator type metadata. +* @param node The entity name to serialize. + */ +func (s *metadataSerializer) serializeEntityNameAsExpression(node *ast.EntityName) *ast.Node { + switch node.Kind { + case ast.KindIdentifier: + // Create a clone of the name with a new parent, and treat it as if it were + // a source tree node for the purposes of the checker. + name := node.Clone(s.f) + name.Loc = node.Loc + s.ec.UnsetOriginal(name) // make this identifier emulate a parse node, making it behave correctly when inspected by the module transforms + name.Parent = s.ec.ParseNode(s.c.currentLexicalScope) // ensure the parent is set to a parse tree node. + return name + case ast.KindQualifiedName: + return s.serializeQualifiedNameAsExpression(node.AsQualifiedName()) + } + return nil +} + +/** +* Serializes an qualified name as an expression for decorator type metadata. +* @param node The qualified name to serialize. + */ +func (s *metadataSerializer) serializeQualifiedNameAsExpression(node *ast.QualifiedName) *ast.Node { + return s.f.NewPropertyAccessExpression(s.serializeEntityNameAsExpression(node.Left), nil, node.Right, ast.NodeFlagsNone) +} + +/** +* Serializes an entity name which may not exist at runtime, but whose access shouldn't throw +* @param node The entity name to serialize. + */ +func (s *metadataSerializer) serializeEntityNameAsExpressionFallback(node *ast.EntityName) *ast.Node { + if node.Kind == ast.KindIdentifier { + // A -> typeof A !== "undefined" && A + copied := s.serializeEntityNameAsExpression(node) + return s.createCheckedValue(copied, copied) + } + if node.AsQualifiedName().Left.Kind == ast.KindIdentifier { + // A.B -> typeof A !== "undefined" && A.B + return s.createCheckedValue(s.serializeEntityNameAsExpression(node.AsQualifiedName().Left), s.serializeEntityNameAsExpression(node)) + } + // A.B.C -> typeof A !== "undefined" && (_a = A.B) !== void 0 && _a.C + left := s.serializeEntityNameAsExpressionFallback(node.AsQualifiedName().Left) + temp := s.f.NewTempVariable() + s.ec.AddVariableDeclaration(temp) + return s.f.NewLogicalANDExpression( + s.f.NewLogicalANDExpression( + left.AsBinaryExpression().Left, + s.f.NewStrictInequalityExpression(s.f.NewAssignmentExpression(temp, left.AsBinaryExpression().Right), s.f.NewVoidZeroExpression()), + ), + s.f.NewPropertyAccessExpression(temp, nil, node.AsQualifiedName().Right, ast.NodeFlagsNone), + ) +} + +/** +* Produces an expression that results in `right` if `left` is not undefined at runtime: +* +* ``` +* typeof left !== "undefined" && right +* ``` +* +* We use `typeof L !== "undefined"` (rather than `L !== undefined`) since `L` may not be declared. +* It's acceptable for this expression to result in `false` at runtime, as the result is intended to be +* further checked by any containing expression. + */ +func (s *metadataSerializer) createCheckedValue(left *ast.Node, right *ast.Node) *ast.Node { + return s.f.NewLogicalANDExpression( + s.f.NewStrictInequalityExpression(s.f.NewTypeOfExpression(left), s.f.NewStringLiteral("undefined", ast.TokenFlagsNone)), + right, + ) +} + +func (s *metadataSerializer) equateSerializedTypeNodes(left *ast.Node, right *ast.Node) bool { + // temp vars used in fallback + if transformers.IsGeneratedIdentifier(s.ec, left) { + return transformers.IsGeneratedIdentifier(s.ec, right) + } + // entity names + if ast.IsIdentifier(left) { + return ast.IsIdentifier(right) && left.Text() == right.Text() + } + if ast.IsPropertyAccessExpression(left) { + return ast.IsPropertyAccessExpression(right) && s.equateSerializedTypeNodes(left.Expression(), right.Expression()) && s.equateSerializedTypeNodes(left.Name(), right.Name()) + } + // `void 0` + if ast.IsVoidExpression(left) { + return ast.IsVoidExpression(right) && ast.IsNumericLiteral(left.Expression()) && ast.IsNumericLiteral(right.Expression()) && left.Expression().Text() == "0" && right.Expression().Text() == "0" + } + // `"undefined"` or `"function"` in `typeof` checks + if ast.IsStringLiteral(left) { + return ast.IsStringLiteral(right) && left.Text() == right.Text() + } + // used in `typeof` checks for fallback + if ast.IsTypeOfExpression(left) { + return ast.IsTypeOfExpression(right) && s.equateSerializedTypeNodes(left.Expression(), right.Expression()) + } + // parens in `typeof` checks with temps + if ast.IsParenthesizedExpression(left) { + return ast.IsParenthesizedExpression(right) && s.equateSerializedTypeNodes(left.Expression(), right.Expression()) + } + // conditionals used in fallback + if ast.IsConditionalExpression(left) { + return ast.IsConditionalExpression(right) && s.equateSerializedTypeNodes(left.AsConditionalExpression().Condition, right.AsConditionalExpression().Condition) && s.equateSerializedTypeNodes(left.AsConditionalExpression().WhenTrue, right.AsConditionalExpression().WhenTrue) && s.equateSerializedTypeNodes(left.AsConditionalExpression().WhenFalse, right.AsConditionalExpression().WhenFalse) + } + // logical binary and assignments used in fallback + if ast.IsBinaryExpression(left) { + return ast.IsBinaryExpression(right) && left.AsBinaryExpression().OperatorToken.Kind == right.AsBinaryExpression().OperatorToken.Kind && s.equateSerializedTypeNodes(left.AsBinaryExpression().Left, right.AsBinaryExpression().Left) && s.equateSerializedTypeNodes(left.AsBinaryExpression().Right, right.AsBinaryExpression().Right) + } + return false +} diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocWithHttpLinks.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocWithHttpLinks.baseline index fbb8265ce..99a04506f 100644 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocWithHttpLinks.baseline +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoForJSDocWithHttpLinks.baseline @@ -40,7 +40,7 @@ // | ``` // | // | -// | *@see* `https` — ://hvad +// | *@see* — https://hvad // | ---------------------------------------------------------------------- // // /** @see {@link https://hva} */ @@ -159,7 +159,7 @@ "item": { "contents": { "kind": "markdown", - "value": "```tsx\nvar see1: boolean\n```\n\n\n*@see* `https` — ://hvad " + "value": "```tsx\nvar see1: boolean\n```\n\n\n*@see* — https://hvad " }, "range": { "start": { diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags4.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags4.baseline index 64e87ec6b..16142fc34 100644 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags4.baseline +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags4.baseline @@ -26,7 +26,7 @@ // | *@author* — Me // | // | -// | *@see* `x` — (the parameter) +// | *@see* — x (the parameter) // | // | // | *@param* `x` - x comment @@ -56,7 +56,7 @@ "item": { "contents": { "kind": "markdown", - "value": "```tsx\n(method) Bar.method(x: number, y: number): number\n```\ncomment\n\n*@author* — Me \n\n\n*@see* `x` — (the parameter)\n\n\n*@param* `x` - x comment\n\n\n*@param* `y` - y comment\n\n\n*@returns* — The result\n" + "value": "```tsx\n(method) Bar.method(x: number, y: number): number\n```\ncomment\n\n*@author* — Me \n\n\n*@see* — x (the parameter)\n\n\n*@param* `x` - x comment\n\n\n*@param* `y` - y comment\n\n\n*@returns* — The result\n" }, "range": { "start": { diff --git a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags5.baseline b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags5.baseline index 383e41d30..48908dc30 100644 --- a/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags5.baseline +++ b/testdata/baselines/reference/fourslash/quickInfo/quickInfoJsDocTags5.baseline @@ -26,7 +26,7 @@ // | *@author* — Me // | // | -// | *@see* `x` — (the parameter) +// | *@see* — x (the parameter) // | // | // | *@param* `x` - x comment @@ -56,7 +56,7 @@ "item": { "contents": { "kind": "markdown", - "value": "```tsx\n(method) Bar.method(x: any, y: any): number\n```\ncomment\n\n*@author* — Me \n\n\n*@see* `x` — (the parameter)\n\n\n*@param* `x` - x comment\n\n\n*@param* `y` - y comment\n\n\n*@returns* — The result\n" + "value": "```tsx\n(method) Bar.method(x: any, y: any): number\n```\ncomment\n\n*@author* — Me \n\n\n*@see* — x (the parameter)\n\n\n*@param* `x` - x comment\n\n\n*@param* `y` - y comment\n\n\n*@returns* — The result\n" }, "range": { "start": { diff --git a/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody1.js b/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody1.js index cbfa2718c..3e769e193 100644 --- a/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody1.js +++ b/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody1.js @@ -4,4 +4,4 @@ var v = a => {} //// [arrowFunctionWithObjectLiteralBody1.js] -var v = a => (({})); +var v = a => ({}); diff --git a/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody1.js.diff b/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody1.js.diff deleted file mode 100644 index 675e5b698..000000000 --- a/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody1.js.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- old.arrowFunctionWithObjectLiteralBody1.js -+++ new.arrowFunctionWithObjectLiteralBody1.js -@@= skipped -3, +3 lines =@@ - var v = a => {} - - //// [arrowFunctionWithObjectLiteralBody1.js] --var v = a => ({}); -+var v = a => (({})); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody2.js b/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody2.js index 7c78f376b..b56295a67 100644 --- a/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody2.js +++ b/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody2.js @@ -4,4 +4,4 @@ var v = a => {} //// [arrowFunctionWithObjectLiteralBody2.js] -var v = a => (({})); +var v = a => ({}); diff --git a/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody2.js.diff b/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody2.js.diff deleted file mode 100644 index b77814c34..000000000 --- a/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody2.js.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- old.arrowFunctionWithObjectLiteralBody2.js -+++ new.arrowFunctionWithObjectLiteralBody2.js -@@= skipped -3, +3 lines =@@ - var v = a => {} - - //// [arrowFunctionWithObjectLiteralBody2.js] --var v = a => ({}); -+var v = a => (({})); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody3.js b/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody3.js index 521b4aab4..77cbeeb15 100644 --- a/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody3.js +++ b/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody3.js @@ -4,4 +4,4 @@ var v = a => {} //// [arrowFunctionWithObjectLiteralBody3.js] -var v = a => (({})); +var v = a => ({}); diff --git a/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody3.js.diff b/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody3.js.diff deleted file mode 100644 index c98300c5e..000000000 --- a/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody3.js.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- old.arrowFunctionWithObjectLiteralBody3.js -+++ new.arrowFunctionWithObjectLiteralBody3.js -@@= skipped -3, +3 lines =@@ - var v = a => {} - - //// [arrowFunctionWithObjectLiteralBody3.js] --var v = a => ({}); -+var v = a => (({})); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody4.js b/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody4.js index f8ae57cf5..40b2842f3 100644 --- a/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody4.js +++ b/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody4.js @@ -4,4 +4,4 @@ var v = a => {} //// [arrowFunctionWithObjectLiteralBody4.js] -var v = a => (({})); +var v = a => ({}); diff --git a/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody4.js.diff b/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody4.js.diff deleted file mode 100644 index 1a5541719..000000000 --- a/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody4.js.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- old.arrowFunctionWithObjectLiteralBody4.js -+++ new.arrowFunctionWithObjectLiteralBody4.js -@@= skipped -3, +3 lines =@@ - var v = a => {} - - //// [arrowFunctionWithObjectLiteralBody4.js] --var v = a => ({}); -+var v = a => (({})); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody5.js b/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody5.js index 89d159f0d..f42a8a3de 100644 --- a/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody5.js +++ b/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody5.js @@ -10,7 +10,7 @@ var c = () => ({ name: "foo", message: "bar" }); var d = () => ((({ name: "foo", message: "bar" }))); //// [arrowFunctionWithObjectLiteralBody5.js] -var a = () => (({ name: "foo", message: "bar" })); -var b = () => (({ name: "foo", message: "bar" })); +var a = () => ({ name: "foo", message: "bar" }); +var b = () => ({ name: "foo", message: "bar" }); var c = () => ({ name: "foo", message: "bar" }); var d = () => ({ name: "foo", message: "bar" }); diff --git a/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody5.js.diff b/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody5.js.diff deleted file mode 100644 index d40714569..000000000 --- a/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody5.js.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.arrowFunctionWithObjectLiteralBody5.js -+++ new.arrowFunctionWithObjectLiteralBody5.js -@@= skipped -9, +9 lines =@@ - var d = () => ((({ name: "foo", message: "bar" }))); - - //// [arrowFunctionWithObjectLiteralBody5.js] --var a = () => ({ name: "foo", message: "bar" }); --var b = () => ({ name: "foo", message: "bar" }); -+var a = () => (({ name: "foo", message: "bar" })); -+var b = () => (({ name: "foo", message: "bar" })); - var c = () => ({ name: "foo", message: "bar" }); - var d = () => ({ name: "foo", message: "bar" }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody6.js b/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody6.js index a86bfcaa4..8602d38b4 100644 --- a/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody6.js +++ b/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody6.js @@ -10,7 +10,7 @@ var c = () => ({ name: "foo", message: "bar" }); var d = () => ((({ name: "foo", message: "bar" }))); //// [arrowFunctionWithObjectLiteralBody6.js] -var a = () => (({ name: "foo", message: "bar" })); -var b = () => (({ name: "foo", message: "bar" })); +var a = () => ({ name: "foo", message: "bar" }); +var b = () => ({ name: "foo", message: "bar" }); var c = () => ({ name: "foo", message: "bar" }); var d = () => ({ name: "foo", message: "bar" }); diff --git a/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody6.js.diff b/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody6.js.diff deleted file mode 100644 index fc6ae497a..000000000 --- a/testdata/baselines/reference/submodule/compiler/arrowFunctionWithObjectLiteralBody6.js.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- old.arrowFunctionWithObjectLiteralBody6.js -+++ new.arrowFunctionWithObjectLiteralBody6.js -@@= skipped -9, +9 lines =@@ - var d = () => ((({ name: "foo", message: "bar" }))); - - //// [arrowFunctionWithObjectLiteralBody6.js] --var a = () => ({ name: "foo", message: "bar" }); --var b = () => ({ name: "foo", message: "bar" }); -+var a = () => (({ name: "foo", message: "bar" })); -+var b = () => (({ name: "foo", message: "bar" })); - var c = () => ({ name: "foo", message: "bar" }); - var d = () => ({ name: "foo", message: "bar" }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/castExpressionParentheses.js b/testdata/baselines/reference/submodule/compiler/castExpressionParentheses.js index 94d978255..ccefb75fc 100644 --- a/testdata/baselines/reference/submodule/compiler/castExpressionParentheses.js +++ b/testdata/baselines/reference/submodule/compiler/castExpressionParentheses.js @@ -55,7 +55,7 @@ new (A()); //// [castExpressionParentheses.js] // parentheses should be omitted // literals -(({ a: 0 })); +({ a: 0 }); [1, 3,]; "string"; 23.0; @@ -83,14 +83,14 @@ a().x; 0xff.foo; // should keep the parentheses in emit (1.0); -((new A)).foo; -((typeof A)).x; -((-A)).x; -new ((A())); +(new A).foo; +(typeof A).x; +(-A).x; +new (A()); (() => { })(); (function foo() { }()); -((-A)).x; +(-A).x; // nested cast, should keep one pair of parenthese -((-A)).x; +(-A).x; // nested parenthesized expression, should keep one pair of parenthese (A); diff --git a/testdata/baselines/reference/submodule/compiler/castExpressionParentheses.js.diff b/testdata/baselines/reference/submodule/compiler/castExpressionParentheses.js.diff index 778d8657c..08c37c791 100644 --- a/testdata/baselines/reference/submodule/compiler/castExpressionParentheses.js.diff +++ b/testdata/baselines/reference/submodule/compiler/castExpressionParentheses.js.diff @@ -1,33 +1,11 @@ --- old.castExpressionParentheses.js +++ new.castExpressionParentheses.js -@@= skipped -54, +54 lines =@@ - //// [castExpressionParentheses.js] - // parentheses should be omitted - // literals --({ a: 0 }); -+(({ a: 0 })); - [1, 3,]; - "string"; - 23.0; -@@= skipped -28, +28 lines =@@ - 0xff.foo; - // should keep the parentheses in emit - (1.0); --(new A).foo; --(typeof A).x; --(-A).x; --new (A()); -+((new A)).foo; -+((typeof A)).x; -+((-A)).x; -+new ((A())); +@@= skipped -87, +87 lines =@@ + (-A).x; + new (A()); (() => { })(); -(function foo() { })(); --(-A).x; +(function foo() { }()); -+((-A)).x; + (-A).x; // nested cast, should keep one pair of parenthese --(-A).x; -+((-A)).x; - // nested parenthesized expression, should keep one pair of parenthese - (A); \ No newline at end of file + (-A).x; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/castParentheses.js b/testdata/baselines/reference/submodule/compiler/castParentheses.js index ca96da449..9f34b6a89 100644 --- a/testdata/baselines/reference/submodule/compiler/castParentheses.js +++ b/testdata/baselines/reference/submodule/compiler/castParentheses.js @@ -23,4 +23,4 @@ var b = a.b.c; var b = a.b().c; var b = new a; var b = new a.b; -var b = ((new a)).b; +var b = (new a).b; diff --git a/testdata/baselines/reference/submodule/compiler/castParentheses.js.diff b/testdata/baselines/reference/submodule/compiler/castParentheses.js.diff index 541f0a6c2..c1ae7536b 100644 --- a/testdata/baselines/reference/submodule/compiler/castParentheses.js.diff +++ b/testdata/baselines/reference/submodule/compiler/castParentheses.js.diff @@ -7,10 +7,4 @@ + static b; } var b = a; - var b = a.b; -@@= skipped -7, +8 lines =@@ - var b = a.b().c; - var b = new a; - var b = new a.b; --var b = (new a).b; -+var b = ((new a)).b; \ No newline at end of file + var b = a.b; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/classExpressionWithDecorator1.js b/testdata/baselines/reference/submodule/compiler/classExpressionWithDecorator1.js index df75553ed..9fd9abb40 100644 --- a/testdata/baselines/reference/submodule/compiler/classExpressionWithDecorator1.js +++ b/testdata/baselines/reference/submodule/compiler/classExpressionWithDecorator1.js @@ -4,8 +4,6 @@ var v = @decorate class C { static p = 1 }; //// [classExpressionWithDecorator1.js] -var v = -@decorate -class C { +var v = class C { static p = 1; }; diff --git a/testdata/baselines/reference/submodule/compiler/classExpressionWithDecorator1.js.diff b/testdata/baselines/reference/submodule/compiler/classExpressionWithDecorator1.js.diff index 8e58ccdb8..4a1b3f881 100644 --- a/testdata/baselines/reference/submodule/compiler/classExpressionWithDecorator1.js.diff +++ b/testdata/baselines/reference/submodule/compiler/classExpressionWithDecorator1.js.diff @@ -9,8 +9,6 @@ - }, - _a.p = 1, - _a); -+var v = -+@decorate -+class C { ++var v = class C { + static p = 1; +}; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/commentOnDecoratedClassDeclaration.js b/testdata/baselines/reference/submodule/compiler/commentOnDecoratedClassDeclaration.js index 0bc5cfd62..0aacd2807 100644 --- a/testdata/baselines/reference/submodule/compiler/commentOnDecoratedClassDeclaration.js +++ b/testdata/baselines/reference/submodule/compiler/commentOnDecoratedClassDeclaration.js @@ -19,16 +19,26 @@ class AnotherRomote { } //// [commentOnDecoratedClassDeclaration.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; /** * Leading trivia */ -@decorator("hello") -class Remote { -} +let Remote = class Remote { +}; +Remote = __decorate([ + decorator("hello") +], Remote); /** * Floating Comment */ -@decorator("hi") -class AnotherRomote { +let AnotherRomote = class AnotherRomote { constructor() { } -} +}; +AnotherRomote = __decorate([ + decorator("hi") +], AnotherRomote); diff --git a/testdata/baselines/reference/submodule/compiler/commentOnDecoratedClassDeclaration.js.diff b/testdata/baselines/reference/submodule/compiler/commentOnDecoratedClassDeclaration.js.diff deleted file mode 100644 index ac7bbf963..000000000 --- a/testdata/baselines/reference/submodule/compiler/commentOnDecoratedClassDeclaration.js.diff +++ /dev/null @@ -1,35 +0,0 @@ ---- old.commentOnDecoratedClassDeclaration.js -+++ new.commentOnDecoratedClassDeclaration.js -@@= skipped -18, +18 lines =@@ - } - - //// [commentOnDecoratedClassDeclaration.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - /** - * Leading trivia - */ --let Remote = class Remote { --}; --Remote = __decorate([ -- decorator("hello") --], Remote); -+@decorator("hello") -+class Remote { -+} - /** - * Floating Comment - */ --let AnotherRomote = class AnotherRomote { -+@decorator("hi") -+class AnotherRomote { - constructor() { } --}; --AnotherRomote = __decorate([ -- decorator("hi") --], AnotherRomote); -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitArrowFunctionNoRenaming.js b/testdata/baselines/reference/submodule/compiler/declarationEmitArrowFunctionNoRenaming.js index 9302949d6..e0c11fa06 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitArrowFunctionNoRenaming.js +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitArrowFunctionNoRenaming.js @@ -30,7 +30,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.toBoundedInteger = void 0; const toBoundedInteger = (bounds) => (n) => ( // Implementation doesn't matter here -({})); +{}); exports.toBoundedInteger = toBoundedInteger; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitArrowFunctionNoRenaming.js.diff b/testdata/baselines/reference/submodule/compiler/declarationEmitArrowFunctionNoRenaming.js.diff index f93a15d7d..9614066bb 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitArrowFunctionNoRenaming.js.diff +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitArrowFunctionNoRenaming.js.diff @@ -8,6 +8,6 @@ +const toBoundedInteger = (bounds) => (n) => ( // Implementation doesn't matter here -({}); -+({})); ++{}); exports.toBoundedInteger = toBoundedInteger; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePreservesTypeParameterConstraint.js b/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePreservesTypeParameterConstraint.js index 3d0bd7dd7..86321d6aa 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePreservesTypeParameterConstraint.js +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePreservesTypeParameterConstraint.js @@ -65,7 +65,7 @@ export const entriesOf = (o: o) => // repro from https://github.com/microsoft/TypeScript/issues/54560 Object.defineProperty(exports, "__esModule", { value: true }); exports.entriesOf = exports.buildSchema = void 0; -const buildSchema = (version) => (({})); +const buildSchema = (version) => ({}); exports.buildSchema = buildSchema; const entriesOf = (o) => Object.entries(o); exports.entriesOf = entriesOf; diff --git a/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePreservesTypeParameterConstraint.js.diff b/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePreservesTypeParameterConstraint.js.diff index 6e0f495e0..168fd9b81 100644 --- a/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePreservesTypeParameterConstraint.js.diff +++ b/testdata/baselines/reference/submodule/compiler/declarationEmitMappedTypePreservesTypeParameterConstraint.js.diff @@ -1,15 +1,6 @@ --- old.declarationEmitMappedTypePreservesTypeParameterConstraint.js +++ new.declarationEmitMappedTypePreservesTypeParameterConstraint.js -@@= skipped -64, +64 lines =@@ - // repro from https://github.com/microsoft/TypeScript/issues/54560 - Object.defineProperty(exports, "__esModule", { value: true }); - exports.entriesOf = exports.buildSchema = void 0; --const buildSchema = (version) => ({}); -+const buildSchema = (version) => (({})); - exports.buildSchema = buildSchema; - const entriesOf = (o) => Object.entries(o); - exports.entriesOf = entriesOf; -@@= skipped -28, +28 lines =@@ +@@= skipped -92, +92 lines =@@ export declare type ZodRawShape = { [k: string]: ZodTypeAny; }; diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataConditionalType.js b/testdata/baselines/reference/submodule/compiler/decoratorMetadataConditionalType.js index dcf970749..cc63ffebb 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataConditionalType.js +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataConditionalType.js @@ -12,11 +12,26 @@ class C { } //// [decoratorMetadataConditionalType.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; class BaseEntity { - @d() attributes; } +__decorate([ + d(), + __metadata("design:type", Object) +], BaseEntity.prototype, "attributes", void 0); class C { - @d() x; } +__decorate([ + d(), + __metadata("design:type", Boolean) +], C.prototype, "x", void 0); diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataConditionalType.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorMetadataConditionalType.js.diff index 6295e21a3..7adab2978 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataConditionalType.js.diff +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataConditionalType.js.diff @@ -1,31 +1,17 @@ --- old.decoratorMetadataConditionalType.js +++ new.decoratorMetadataConditionalType.js -@@= skipped -11, +11 lines =@@ - } - - //// [decoratorMetadataConditionalType.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; +@@= skipped -21, +21 lines =@@ + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); + }; class BaseEntity { -+ @d() + attributes; } --__decorate([ -- d(), -- __metadata("design:type", Object) --], BaseEntity.prototype, "attributes", void 0); + __decorate([ + d(), + __metadata("design:type", Object) + ], BaseEntity.prototype, "attributes", void 0); class C { -+ @d() + x; } --__decorate([ -- d(), -- __metadata("design:type", Boolean) --], C.prototype, "x", void 0); \ No newline at end of file + __decorate([ + d(), \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataElidedImport(module=commonjs).js b/testdata/baselines/reference/submodule/compiler/decoratorMetadataElidedImport(module=commonjs).js index a22bfe99e..d9654b9ed 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataElidedImport(module=commonjs).js +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataElidedImport(module=commonjs).js @@ -20,10 +20,30 @@ class Test { //// [index.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; Object.defineProperty(exports, "__esModule", { value: true }); +const observable_1 = require("./observable"); function whatever(a, b, c) { } class Test { foo(arg1, arg2) { return null; } } +__decorate([ + __param(0, whatever), + __param(1, whatever), + __metadata("design:type", Function), + __metadata("design:paramtypes", [String, Number]), + __metadata("design:returntype", observable_1.Observable) +], Test.prototype, "foo", null); diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataElidedImport(module=commonjs).js.diff b/testdata/baselines/reference/submodule/compiler/decoratorMetadataElidedImport(module=commonjs).js.diff deleted file mode 100644 index 8c6f35cbe..000000000 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataElidedImport(module=commonjs).js.diff +++ /dev/null @@ -1,33 +0,0 @@ ---- old.decoratorMetadataElidedImport(module=commonjs).js -+++ new.decoratorMetadataElidedImport(module=commonjs).js -@@= skipped -19, +19 lines =@@ - - //// [index.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; --var __param = (this && this.__param) || function (paramIndex, decorator) { -- return function (target, key) { decorator(target, key, paramIndex); } --}; - Object.defineProperty(exports, "__esModule", { value: true }); --const observable_1 = require("./observable"); - function whatever(a, b, c) { } - class Test { - foo(arg1, arg2) { - return null; - } - } --__decorate([ -- __param(0, whatever), -- __param(1, whatever), -- __metadata("design:type", Function), -- __metadata("design:paramtypes", [String, Number]), -- __metadata("design:returntype", observable_1.Observable) --], Test.prototype, "foo", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataElidedImport(module=esnext).js b/testdata/baselines/reference/submodule/compiler/decoratorMetadataElidedImport(module=esnext).js index a63870924..0c62a4a01 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataElidedImport(module=esnext).js +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataElidedImport(module=esnext).js @@ -19,10 +19,29 @@ class Test { //// [index.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; +import { Observable } from './observable'; function whatever(a, b, c) { } class Test { foo(arg1, arg2) { return null; } } -export {}; +__decorate([ + __param(0, whatever), + __param(1, whatever), + __metadata("design:type", Function), + __metadata("design:paramtypes", [String, Number]), + __metadata("design:returntype", Observable) +], Test.prototype, "foo", null); diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataElidedImport(module=esnext).js.diff b/testdata/baselines/reference/submodule/compiler/decoratorMetadataElidedImport(module=esnext).js.diff deleted file mode 100644 index 5c8fddfe4..000000000 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataElidedImport(module=esnext).js.diff +++ /dev/null @@ -1,33 +0,0 @@ ---- old.decoratorMetadataElidedImport(module=esnext).js -+++ new.decoratorMetadataElidedImport(module=esnext).js -@@= skipped -18, +18 lines =@@ - - - //// [index.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; --var __param = (this && this.__param) || function (paramIndex, decorator) { -- return function (target, key) { decorator(target, key, paramIndex); } --}; --import { Observable } from './observable'; - function whatever(a, b, c) { } - class Test { - foo(arg1, arg2) { - return null; - } - } --__decorate([ -- __param(0, whatever), -- __param(1, whatever), -- __metadata("design:type", Function), -- __metadata("design:paramtypes", [String, Number]), -- __metadata("design:returntype", Observable) --], Test.prototype, "foo", null); -+export {}; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataElidedImportOnDeclare(module=commonjs).js b/testdata/baselines/reference/submodule/compiler/decoratorMetadataElidedImportOnDeclare(module=commonjs).js index ad8349e28..efef8bf91 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataElidedImportOnDeclare(module=commonjs).js +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataElidedImportOnDeclare(module=commonjs).js @@ -16,7 +16,21 @@ class Test { //// [index.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; Object.defineProperty(exports, "__esModule", { value: true }); +const observable_1 = require("./observable"); function whatever(a, b) { } class Test { } +__decorate([ + whatever, + __metadata("design:type", observable_1.Observable) +], Test.prototype, "prop", void 0); diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataElidedImportOnDeclare(module=commonjs).js.diff b/testdata/baselines/reference/submodule/compiler/decoratorMetadataElidedImportOnDeclare(module=commonjs).js.diff deleted file mode 100644 index f14945222..000000000 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataElidedImportOnDeclare(module=commonjs).js.diff +++ /dev/null @@ -1,24 +0,0 @@ ---- old.decoratorMetadataElidedImportOnDeclare(module=commonjs).js -+++ new.decoratorMetadataElidedImportOnDeclare(module=commonjs).js -@@= skipped -15, +15 lines =@@ - - //// [index.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; - Object.defineProperty(exports, "__esModule", { value: true }); --const observable_1 = require("./observable"); - function whatever(a, b) { } - class Test { - } --__decorate([ -- whatever, -- __metadata("design:type", observable_1.Observable) --], Test.prototype, "prop", void 0); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataElidedImportOnDeclare(module=esnext).js b/testdata/baselines/reference/submodule/compiler/decoratorMetadataElidedImportOnDeclare(module=esnext).js index ada78e061..b0cbf8a1c 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataElidedImportOnDeclare(module=esnext).js +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataElidedImportOnDeclare(module=esnext).js @@ -15,7 +15,20 @@ class Test { //// [index.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +import { Observable } from './observable'; function whatever(a, b) { } class Test { } -export {}; +__decorate([ + whatever, + __metadata("design:type", Observable) +], Test.prototype, "prop", void 0); diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataElidedImportOnDeclare(module=esnext).js.diff b/testdata/baselines/reference/submodule/compiler/decoratorMetadataElidedImportOnDeclare(module=esnext).js.diff deleted file mode 100644 index 7a18693da..000000000 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataElidedImportOnDeclare(module=esnext).js.diff +++ /dev/null @@ -1,24 +0,0 @@ ---- old.decoratorMetadataElidedImportOnDeclare(module=esnext).js -+++ new.decoratorMetadataElidedImportOnDeclare(module=esnext).js -@@= skipped -14, +14 lines =@@ - - - //// [index.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; --import { Observable } from './observable'; - function whatever(a, b) { } - class Test { - } --__decorate([ -- whatever, -- __metadata("design:type", Observable) --], Test.prototype, "prop", void 0); -+export {}; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.js b/testdata/baselines/reference/submodule/compiler/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.js index 1a22766ef..c84c4c97d 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.js +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.js @@ -19,7 +19,12 @@ class MyClass { class MyClass { constructor(test, test2) { } - @decorator doSomething() { } } +__decorate([ + decorator, + __metadata("design:type", Function), + __metadata("design:paramtypes", []), + __metadata("design:returntype", void 0) +], MyClass.prototype, "doSomething", null); diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.js.diff deleted file mode 100644 index a8d759279..000000000 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataForMethodWithNoReturnTypeAnnotation01.js.diff +++ /dev/null @@ -1,16 +0,0 @@ ---- old.decoratorMetadataForMethodWithNoReturnTypeAnnotation01.js -+++ new.decoratorMetadataForMethodWithNoReturnTypeAnnotation01.js -@@= skipped -18, +18 lines =@@ - class MyClass { - constructor(test, test2) { - } -+ @decorator - doSomething() { - } - } --__decorate([ -- decorator, -- __metadata("design:type", Function), -- __metadata("design:paramtypes", []), -- __metadata("design:returntype", void 0) --], MyClass.prototype, "doSomething", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataGenericTypeVariable.js b/testdata/baselines/reference/submodule/compiler/decoratorMetadataGenericTypeVariable.js index d7ab2fc3a..d9d04a07b 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataGenericTypeVariable.js +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataGenericTypeVariable.js @@ -9,10 +9,22 @@ export class C { //// [decoratorMetadataGenericTypeVariable.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.C = void 0; class C { - @Decorate member; } exports.C = C; +__decorate([ + Decorate, + __metadata("design:type", Object) +], C.prototype, "member", void 0); diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataGenericTypeVariable.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorMetadataGenericTypeVariable.js.diff index 539bf51b7..5e2971d15 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataGenericTypeVariable.js.diff +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataGenericTypeVariable.js.diff @@ -1,26 +1,10 @@ --- old.decoratorMetadataGenericTypeVariable.js +++ new.decoratorMetadataGenericTypeVariable.js -@@= skipped -8, +8 lines =@@ - - //// [decoratorMetadataGenericTypeVariable.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; +@@= skipped -20, +20 lines =@@ Object.defineProperty(exports, "__esModule", { value: true }); exports.C = void 0; class C { -+ @Decorate + member; } exports.C = C; --__decorate([ -- Decorate, -- __metadata("design:type", Object) --], C.prototype, "member", void 0); \ No newline at end of file + __decorate([ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataGenericTypeVariableDefault.js b/testdata/baselines/reference/submodule/compiler/decoratorMetadataGenericTypeVariableDefault.js index b095cfeac..07d56a3a8 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataGenericTypeVariableDefault.js +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataGenericTypeVariableDefault.js @@ -9,10 +9,22 @@ export class C { //// [decoratorMetadataGenericTypeVariableDefault.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.C = void 0; class C { - @Decorate member; } exports.C = C; +__decorate([ + Decorate, + __metadata("design:type", Object) +], C.prototype, "member", void 0); diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataGenericTypeVariableDefault.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorMetadataGenericTypeVariableDefault.js.diff index c2166ee64..819a1063c 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataGenericTypeVariableDefault.js.diff +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataGenericTypeVariableDefault.js.diff @@ -1,26 +1,10 @@ --- old.decoratorMetadataGenericTypeVariableDefault.js +++ new.decoratorMetadataGenericTypeVariableDefault.js -@@= skipped -8, +8 lines =@@ - - //// [decoratorMetadataGenericTypeVariableDefault.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; +@@= skipped -20, +20 lines =@@ Object.defineProperty(exports, "__esModule", { value: true }); exports.C = void 0; class C { -+ @Decorate + member; } exports.C = C; --__decorate([ -- Decorate, -- __metadata("design:type", Object) --], C.prototype, "member", void 0); \ No newline at end of file + __decorate([ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataGenericTypeVariableInScope.js b/testdata/baselines/reference/submodule/compiler/decoratorMetadataGenericTypeVariableInScope.js index 99c260db2..a43a0356a 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataGenericTypeVariableInScope.js +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataGenericTypeVariableInScope.js @@ -12,13 +12,25 @@ export class C { //// [decoratorMetadataGenericTypeVariableInScope.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.C = void 0; // Unused, but could collide with the named type argument below. class TypeVariable { } class C { - @Decorate member; } exports.C = C; +__decorate([ + Decorate, + __metadata("design:type", Object) +], C.prototype, "member", void 0); diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataGenericTypeVariableInScope.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorMetadataGenericTypeVariableInScope.js.diff index f0a4f7418..ba30b81f8 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataGenericTypeVariableInScope.js.diff +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataGenericTypeVariableInScope.js.diff @@ -1,29 +1,10 @@ --- old.decoratorMetadataGenericTypeVariableInScope.js +++ new.decoratorMetadataGenericTypeVariableInScope.js -@@= skipped -11, +11 lines =@@ - - //// [decoratorMetadataGenericTypeVariableInScope.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.C = void 0; - // Unused, but could collide with the named type argument below. +@@= skipped -26, +26 lines =@@ class TypeVariable { } class C { -+ @Decorate + member; } exports.C = C; --__decorate([ -- Decorate, -- __metadata("design:type", Object) --], C.prototype, "member", void 0); \ No newline at end of file + __decorate([ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataNoLibIsolatedModulesTypes.js b/testdata/baselines/reference/submodule/compiler/decoratorMetadataNoLibIsolatedModulesTypes.js index eae4c8830..fdfe13387 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataNoLibIsolatedModulesTypes.js +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataNoLibIsolatedModulesTypes.js @@ -9,10 +9,23 @@ export class B { //// [decoratorMetadataNoLibIsolatedModulesTypes.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.B = void 0; class B { - @Decorate member; } exports.B = B; +__decorate([ + Decorate, + __metadata("design:type", typeof (_a = typeof Map !== "undefined" && Map) === "function" ? _a : Object) +], B.prototype, "member", void 0); diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataNoLibIsolatedModulesTypes.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorMetadataNoLibIsolatedModulesTypes.js.diff index 6945d65ec..4394742df 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataNoLibIsolatedModulesTypes.js.diff +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataNoLibIsolatedModulesTypes.js.diff @@ -1,27 +1,10 @@ --- old.decoratorMetadataNoLibIsolatedModulesTypes.js +++ new.decoratorMetadataNoLibIsolatedModulesTypes.js -@@= skipped -8, +8 lines =@@ - - //// [decoratorMetadataNoLibIsolatedModulesTypes.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; --var _a; +@@= skipped -21, +21 lines =@@ Object.defineProperty(exports, "__esModule", { value: true }); exports.B = void 0; class B { -+ @Decorate + member; } exports.B = B; --__decorate([ -- Decorate, -- __metadata("design:type", typeof (_a = typeof Map !== "undefined" && Map) === "function" ? _a : Object) --], B.prototype, "member", void 0); \ No newline at end of file + __decorate([ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataNoStrictNull.js b/testdata/baselines/reference/submodule/compiler/decoratorMetadataNoStrictNull.js index e88edb6f7..93308b14c 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataNoStrictNull.js +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataNoStrictNull.js @@ -9,10 +9,25 @@ class Foo { } //// [decoratorMetadataNoStrictNull.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; const dec = (obj, prop) => undefined; class Foo { - @dec foo; - @dec bar; } +__decorate([ + dec, + __metadata("design:type", String) +], Foo.prototype, "foo", void 0); +__decorate([ + dec, + __metadata("design:type", String) +], Foo.prototype, "bar", void 0); diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataNoStrictNull.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorMetadataNoStrictNull.js.diff index e434c0db4..9fc229f8c 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataNoStrictNull.js.diff +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataNoStrictNull.js.diff @@ -1,30 +1,11 @@ --- old.decoratorMetadataNoStrictNull.js +++ new.decoratorMetadataNoStrictNull.js -@@= skipped -8, +8 lines =@@ - } - - //// [decoratorMetadataNoStrictNull.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; +@@= skipped -19, +19 lines =@@ + }; const dec = (obj, prop) => undefined; class Foo { -+ @dec + foo; -+ @dec + bar; } --__decorate([ -- dec, -- __metadata("design:type", String) --], Foo.prototype, "foo", void 0); --__decorate([ -- dec, -- __metadata("design:type", String) --], Foo.prototype, "bar", void 0); \ No newline at end of file + __decorate([ + dec, \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataOnInferredType.js b/testdata/baselines/reference/submodule/compiler/decoratorMetadataOnInferredType.js index ef6e8b6f4..4358c814c 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataOnInferredType.js +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataOnInferredType.js @@ -28,7 +28,10 @@ class A { function decorator(target, propertyKey) { } class B { - @decorator x = new A(); } exports.B = B; +__decorate([ + decorator, + __metadata("design:type", Object) +], B.prototype, "x", void 0); diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataOnInferredType.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorMetadataOnInferredType.js.diff index 62a64235f..660845243 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataOnInferredType.js.diff +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataOnInferredType.js.diff @@ -7,11 +7,7 @@ - constructor() { - this.x = new A(); - } -+ @decorator + x = new A(); } exports.B = B; --__decorate([ -- decorator, -- __metadata("design:type", Object) --], B.prototype, "x", void 0); \ No newline at end of file + __decorate([ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataPromise.js b/testdata/baselines/reference/submodule/compiler/decoratorMetadataPromise.js index ccac53369..50a4808aa 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataPromise.js +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataPromise.js @@ -14,11 +14,35 @@ class A { //// [decoratorMetadataPromise.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; class A { - @decorator async foo() { } - @decorator async bar() { return 0; } - @decorator baz(n) { return n; } } +__decorate([ + decorator, + __metadata("design:type", Function), + __metadata("design:paramtypes", []), + __metadata("design:returntype", Promise) +], A.prototype, "foo", null); +__decorate([ + decorator, + __metadata("design:type", Function), + __metadata("design:paramtypes", []), + __metadata("design:returntype", Promise) +], A.prototype, "bar", null); +__decorate([ + decorator, + __metadata("design:type", Function), + __metadata("design:paramtypes", [Promise]), + __metadata("design:returntype", Promise) +], A.prototype, "baz", null); diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataPromise.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorMetadataPromise.js.diff index 0c2d47cce..35e63b223 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataPromise.js.diff +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataPromise.js.diff @@ -1,18 +1,9 @@ --- old.decoratorMetadataPromise.js +++ new.decoratorMetadataPromise.js -@@= skipped -13, +13 lines =@@ - - - //// [decoratorMetadataPromise.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; +@@= skipped -22, +22 lines =@@ + var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); + }; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { @@ -29,28 +20,8 @@ - bar() { - return __awaiter(this, void 0, void 0, function* () { return 0; }); - } -+ @decorator + async foo() { } -+ @decorator + async bar() { return 0; } -+ @decorator baz(n) { return n; } } --__decorate([ -- decorator, -- __metadata("design:type", Function), -- __metadata("design:paramtypes", []), -- __metadata("design:returntype", Promise) --], A.prototype, "foo", null); --__decorate([ -- decorator, -- __metadata("design:type", Function), -- __metadata("design:paramtypes", []), -- __metadata("design:returntype", Promise) --], A.prototype, "bar", null); --__decorate([ -- decorator, -- __metadata("design:type", Function), -- __metadata("design:paramtypes", [Promise]), -- __metadata("design:returntype", Promise) --], A.prototype, "baz", null); \ No newline at end of file + __decorate([ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataRestParameterWithImportedType.js b/testdata/baselines/reference/submodule/compiler/decoratorMetadataRestParameterWithImportedType.js index cab3f533c..aa289d928 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataRestParameterWithImportedType.js +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataRestParameterWithImportedType.js @@ -65,22 +65,41 @@ class SomeClass2 { exports.SomeClass2 = SomeClass2; //// [main.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.ClassA = void 0; +const aux_1 = require("./aux"); +const aux1_1 = require("./aux1"); function annotation() { return (target) => { }; } function annotation1() { return (target) => { }; } -@annotation() -class ClassA { +let ClassA = class ClassA { array; constructor(...init) { this.array = init; } - @annotation1() foo(...args) { } -} +}; exports.ClassA = ClassA; +__decorate([ + annotation1(), + __metadata("design:type", Function), + __metadata("design:paramtypes", [aux1_1.SomeClass1]), + __metadata("design:returntype", void 0) +], ClassA.prototype, "foo", null); +exports.ClassA = ClassA = __decorate([ + annotation(), + __metadata("design:paramtypes", [aux_1.SomeClass]) +], ClassA); diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataRestParameterWithImportedType.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorMetadataRestParameterWithImportedType.js.diff index 6fecd8f7c..7ae4591b5 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataRestParameterWithImportedType.js.diff +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataRestParameterWithImportedType.js.diff @@ -24,46 +24,11 @@ } exports.SomeClass2 = SomeClass2; //// [main.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.ClassA = void 0; --const aux_1 = require("./aux"); --const aux1_1 = require("./aux1"); - function annotation() { - return (target) => { }; - } - function annotation1() { +@@= skipped -24, +25 lines =@@ return (target) => { }; } --let ClassA = class ClassA { -+@annotation() -+class ClassA { + let ClassA = class ClassA { + array; constructor(...init) { this.array = init; - } -+ @annotation1() - foo(...args) { - } --}; -+} - exports.ClassA = ClassA; --__decorate([ -- annotation1(), -- __metadata("design:type", Function), -- __metadata("design:paramtypes", [aux1_1.SomeClass1]), -- __metadata("design:returntype", void 0) --], ClassA.prototype, "foo", null); --exports.ClassA = ClassA = __decorate([ -- annotation(), -- __metadata("design:paramtypes", [aux_1.SomeClass]) --], ClassA); \ No newline at end of file + } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataTypeOnlyExport.js b/testdata/baselines/reference/submodule/compiler/decoratorMetadataTypeOnlyExport.js index 5db594a3c..9adaf09f5 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataTypeOnlyExport.js +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataTypeOnlyExport.js @@ -22,9 +22,21 @@ class Foo { } //// [b.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; Object.defineProperty(exports, "__esModule", { value: true }); const Decorator = () => undefined; -@Decorator -class Bar { +let Bar = class Bar { constructor(par) { } -} +}; +Bar = __decorate([ + Decorator, + __metadata("design:paramtypes", [Function]) +], Bar); diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataTypeOnlyExport.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorMetadataTypeOnlyExport.js.diff deleted file mode 100644 index 6810d758b..000000000 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataTypeOnlyExport.js.diff +++ /dev/null @@ -1,27 +0,0 @@ ---- old.decoratorMetadataTypeOnlyExport.js -+++ new.decoratorMetadataTypeOnlyExport.js -@@= skipped -21, +21 lines =@@ - } - //// [b.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; - Object.defineProperty(exports, "__esModule", { value: true }); - const Decorator = () => undefined; --let Bar = class Bar { -+@Decorator -+class Bar { - constructor(par) { } --}; --Bar = __decorate([ -- Decorator, -- __metadata("design:paramtypes", [Function]) --], Bar); -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataTypeOnlyImport.js b/testdata/baselines/reference/submodule/compiler/decoratorMetadataTypeOnlyImport.js index 74e499532..8a585abca 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataTypeOnlyImport.js +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataTypeOnlyImport.js @@ -19,8 +19,20 @@ class Foo { Object.defineProperty(exports, "__esModule", { value: true }); //// [b.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; Object.defineProperty(exports, "__esModule", { value: true }); class Foo { - @Decorator myList; } +__decorate([ + Decorator, + __metadata("design:type", Object) +], Foo.prototype, "myList", void 0); diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataTypeOnlyImport.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorMetadataTypeOnlyImport.js.diff index 178e1243e..df6c8f051 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataTypeOnlyImport.js.diff +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataTypeOnlyImport.js.diff @@ -1,24 +1,10 @@ --- old.decoratorMetadataTypeOnlyImport.js +++ new.decoratorMetadataTypeOnlyImport.js -@@= skipped -18, +18 lines =@@ - Object.defineProperty(exports, "__esModule", { value: true }); - //// [b.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; +@@= skipped -29, +29 lines =@@ + }; Object.defineProperty(exports, "__esModule", { value: true }); class Foo { -+ @Decorator + myList; } --__decorate([ -- Decorator, -- __metadata("design:type", Object) --], Foo.prototype, "myList", void 0); \ No newline at end of file + __decorate([ + Decorator, \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithConstructorType.js b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithConstructorType.js index 2b76ae951..ee30fbcf6 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithConstructorType.js +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithConstructorType.js @@ -28,7 +28,10 @@ class A { function decorator(target, propertyKey) { } class B { - @decorator x = new A(); } exports.B = B; +__decorate([ + decorator, + __metadata("design:type", A) +], B.prototype, "x", void 0); diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithConstructorType.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithConstructorType.js.diff index 42987000b..0bc88264b 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithConstructorType.js.diff +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithConstructorType.js.diff @@ -7,11 +7,7 @@ - constructor() { - this.x = new A(); - } -+ @decorator + x = new A(); } exports.B = B; --__decorate([ -- decorator, -- __metadata("design:type", A) --], B.prototype, "x", void 0); \ No newline at end of file + __decorate([ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision.js b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision.js index 53a4f4e1e..2d07f26a2 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision.js +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision.js @@ -36,15 +36,19 @@ exports.db = db; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MyClass = void 0; +const db_1 = require("./db"); function someDecorator(target) { return target; } -@someDecorator -class MyClass { +let MyClass = class MyClass { db; constructor(db) { this.db = db; this.db.doSomething(); } -} +}; exports.MyClass = MyClass; +exports.MyClass = MyClass = __decorate([ + someDecorator, + __metadata("design:paramtypes", [db_1.db]) +], MyClass); diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision.js.diff index 451939e96..8adb65cb8 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision.js.diff +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision.js.diff @@ -1,25 +1,10 @@ --- old.decoratorMetadataWithImportDeclarationNameCollision.js +++ new.decoratorMetadataWithImportDeclarationNameCollision.js -@@= skipped -35, +35 lines =@@ - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.MyClass = void 0; --const db_1 = require("./db"); - function someDecorator(target) { +@@= skipped -40, +40 lines =@@ return target; } --let MyClass = class MyClass { -+@someDecorator -+class MyClass { + let MyClass = class MyClass { + db; constructor(db) { this.db = db; - this.db.doSomething(); - } --}; -+} - exports.MyClass = MyClass; --exports.MyClass = MyClass = __decorate([ -- someDecorator, -- __metadata("design:paramtypes", [db_1.db]) --], MyClass); \ No newline at end of file + this.db.doSomething(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision2.js b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision2.js index dbf5f4b88..165494858 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision2.js +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision2.js @@ -36,15 +36,19 @@ exports.db = db; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MyClass = void 0; +const db_1 = require("./db"); function someDecorator(target) { return target; } -@someDecorator -class MyClass { +let MyClass = class MyClass { db; constructor(db) { this.db = db; this.db.doSomething(); } -} +}; exports.MyClass = MyClass; +exports.MyClass = MyClass = __decorate([ + someDecorator, + __metadata("design:paramtypes", [db_1.db]) +], MyClass); diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision2.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision2.js.diff index ce4fc16af..6ad0791a6 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision2.js.diff +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision2.js.diff @@ -1,25 +1,10 @@ --- old.decoratorMetadataWithImportDeclarationNameCollision2.js +++ new.decoratorMetadataWithImportDeclarationNameCollision2.js -@@= skipped -35, +35 lines =@@ - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.MyClass = void 0; --const db_1 = require("./db"); - function someDecorator(target) { +@@= skipped -40, +40 lines =@@ return target; } --let MyClass = class MyClass { -+@someDecorator -+class MyClass { + let MyClass = class MyClass { + db; constructor(db) { this.db = db; - this.db.doSomething(); - } --}; -+} - exports.MyClass = MyClass; --exports.MyClass = MyClass = __decorate([ -- someDecorator, -- __metadata("design:paramtypes", [db_1.db]) --], MyClass); \ No newline at end of file + this.db.doSomething(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision3.js b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision3.js index 9d1a28d99..0a8707b2a 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision3.js +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision3.js @@ -36,15 +36,19 @@ exports.db = db; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MyClass = void 0; +const db = require("./db"); function someDecorator(target) { return target; } -@someDecorator -class MyClass { +let MyClass = class MyClass { db; constructor(db) { this.db = db; this.db.doSomething(); } -} +}; exports.MyClass = MyClass; +exports.MyClass = MyClass = __decorate([ + someDecorator, + __metadata("design:paramtypes", [db.db]) +], MyClass); diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision3.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision3.js.diff index f7743bd29..98e718422 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision3.js.diff +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision3.js.diff @@ -1,25 +1,10 @@ --- old.decoratorMetadataWithImportDeclarationNameCollision3.js +++ new.decoratorMetadataWithImportDeclarationNameCollision3.js -@@= skipped -35, +35 lines =@@ - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.MyClass = void 0; --const db = require("./db"); - function someDecorator(target) { +@@= skipped -40, +40 lines =@@ return target; } --let MyClass = class MyClass { -+@someDecorator -+class MyClass { + let MyClass = class MyClass { + db; constructor(db) { this.db = db; - this.db.doSomething(); - } --}; -+} - exports.MyClass = MyClass; --exports.MyClass = MyClass = __decorate([ -- someDecorator, -- __metadata("design:paramtypes", [db.db]) --], MyClass); \ No newline at end of file + this.db.doSomething(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision4.js b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision4.js index 029a7d446..9e05a7999 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision4.js +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision4.js @@ -34,17 +34,22 @@ class db { exports.db = db; //// [service.js] "use strict"; +var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.MyClass = void 0; +const db_1 = __importDefault(require("./db")); // error no default export function someDecorator(target) { return target; } -@someDecorator -class MyClass { +let MyClass = class MyClass { db; constructor(db) { this.db = db; this.db.doSomething(); } -} +}; exports.MyClass = MyClass; +exports.MyClass = MyClass = __decorate([ + someDecorator, + __metadata("design:paramtypes", [typeof (_a = typeof db_1.default !== "undefined" && db_1.default.db) === "function" ? _a : Object]) +], MyClass); diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision4.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision4.js.diff index f4e874698..df11f7974 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision4.js.diff +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision4.js.diff @@ -1,28 +1,10 @@ --- old.decoratorMetadataWithImportDeclarationNameCollision4.js +++ new.decoratorMetadataWithImportDeclarationNameCollision4.js -@@= skipped -33, +33 lines =@@ - exports.db = db; - //// [service.js] - "use strict"; --var _a; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.MyClass = void 0; --const db_1 = __importDefault(require("./db")); // error no default export - function someDecorator(target) { +@@= skipped -41, +41 lines =@@ return target; } --let MyClass = class MyClass { -+@someDecorator -+class MyClass { + let MyClass = class MyClass { + db; constructor(db) { this.db = db; - this.db.doSomething(); - } --}; -+} - exports.MyClass = MyClass; --exports.MyClass = MyClass = __decorate([ -- someDecorator, -- __metadata("design:paramtypes", [typeof (_a = typeof db_1.default !== "undefined" && db_1.default.db) === "function" ? _a : Object]) --], MyClass); \ No newline at end of file + this.db.doSomething(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision5.js b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision5.js index 8d31d301b..89ed56c78 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision5.js +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision5.js @@ -35,15 +35,19 @@ exports.default = db; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MyClass = void 0; +const db_1 = __importDefault(require("./db")); function someDecorator(target) { return target; } -@someDecorator -class MyClass { +let MyClass = class MyClass { db; constructor(db) { this.db = db; this.db.doSomething(); } -} +}; exports.MyClass = MyClass; +exports.MyClass = MyClass = __decorate([ + someDecorator, + __metadata("design:paramtypes", [db_1.default]) +], MyClass); diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision5.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision5.js.diff index 8cc2adf93..9fb451fda 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision5.js.diff +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision5.js.diff @@ -1,25 +1,10 @@ --- old.decoratorMetadataWithImportDeclarationNameCollision5.js +++ new.decoratorMetadataWithImportDeclarationNameCollision5.js -@@= skipped -34, +34 lines =@@ - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.MyClass = void 0; --const db_1 = __importDefault(require("./db")); - function someDecorator(target) { +@@= skipped -39, +39 lines =@@ return target; } --let MyClass = class MyClass { -+@someDecorator -+class MyClass { + let MyClass = class MyClass { + db; constructor(db) { this.db = db; - this.db.doSomething(); - } --}; -+} - exports.MyClass = MyClass; --exports.MyClass = MyClass = __decorate([ -- someDecorator, -- __metadata("design:paramtypes", [db_1.default]) --], MyClass); \ No newline at end of file + this.db.doSomething(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision6.js b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision6.js index af6018cc6..fad0b991d 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision6.js +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision6.js @@ -35,15 +35,19 @@ exports.default = db; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MyClass = void 0; +const db_1 = __importDefault(require("./db")); function someDecorator(target) { return target; } -@someDecorator -class MyClass { +let MyClass = class MyClass { db; constructor(db) { this.db = db; this.db.doSomething(); } -} +}; exports.MyClass = MyClass; +exports.MyClass = MyClass = __decorate([ + someDecorator, + __metadata("design:paramtypes", [db_1.default]) +], MyClass); diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision6.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision6.js.diff index 73bd2dd2b..76ae3a673 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision6.js.diff +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision6.js.diff @@ -1,25 +1,10 @@ --- old.decoratorMetadataWithImportDeclarationNameCollision6.js +++ new.decoratorMetadataWithImportDeclarationNameCollision6.js -@@= skipped -34, +34 lines =@@ - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.MyClass = void 0; --const db_1 = __importDefault(require("./db")); - function someDecorator(target) { +@@= skipped -39, +39 lines =@@ return target; } --let MyClass = class MyClass { -+@someDecorator -+class MyClass { + let MyClass = class MyClass { + db; constructor(db) { this.db = db; - this.db.doSomething(); - } --}; -+} - exports.MyClass = MyClass; --exports.MyClass = MyClass = __decorate([ -- someDecorator, -- __metadata("design:paramtypes", [db_1.default]) --], MyClass); \ No newline at end of file + this.db.doSomething(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision7.js b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision7.js index 004a41903..43a4f68db 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision7.js +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision7.js @@ -33,17 +33,22 @@ class db { exports.default = db; //// [service.js] "use strict"; +var _a; Object.defineProperty(exports, "__esModule", { value: true }); exports.MyClass = void 0; +const db_1 = __importDefault(require("./db")); function someDecorator(target) { return target; } -@someDecorator -class MyClass { +let MyClass = class MyClass { db; //error constructor(db) { this.db = db; this.db.doSomething(); } -} +}; exports.MyClass = MyClass; +exports.MyClass = MyClass = __decorate([ + someDecorator, + __metadata("design:paramtypes", [typeof (_a = typeof db_1.default !== "undefined" && db_1.default.db) === "function" ? _a : Object]) +], MyClass); diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision7.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision7.js.diff index 6252ef03d..b6a4ff871 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision7.js.diff +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision7.js.diff @@ -1,28 +1,10 @@ --- old.decoratorMetadataWithImportDeclarationNameCollision7.js +++ new.decoratorMetadataWithImportDeclarationNameCollision7.js -@@= skipped -32, +32 lines =@@ - exports.default = db; - //// [service.js] - "use strict"; --var _a; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.MyClass = void 0; --const db_1 = __importDefault(require("./db")); - function someDecorator(target) { +@@= skipped -40, +40 lines =@@ return target; } --let MyClass = class MyClass { -+@someDecorator -+class MyClass { + let MyClass = class MyClass { + db; //error constructor(db) { this.db = db; - this.db.doSomething(); - } --}; -+} - exports.MyClass = MyClass; --exports.MyClass = MyClass = __decorate([ -- someDecorator, -- __metadata("design:paramtypes", [typeof (_a = typeof db_1.default !== "undefined" && db_1.default.db) === "function" ? _a : Object]) --], MyClass); \ No newline at end of file + this.db.doSomething(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision8.js b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision8.js index 00c5a8ee2..bb559ed02 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision8.js +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision8.js @@ -36,15 +36,19 @@ exports.db = db; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MyClass = void 0; +const database = require("./db"); function someDecorator(target) { return target; } -@someDecorator -class MyClass { +let MyClass = class MyClass { db; constructor(db) { this.db = db; this.db.doSomething(); } -} +}; exports.MyClass = MyClass; +exports.MyClass = MyClass = __decorate([ + someDecorator, + __metadata("design:paramtypes", [database.db]) +], MyClass); diff --git a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision8.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision8.js.diff index 561b77d13..368501760 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision8.js.diff +++ b/testdata/baselines/reference/submodule/compiler/decoratorMetadataWithImportDeclarationNameCollision8.js.diff @@ -1,25 +1,10 @@ --- old.decoratorMetadataWithImportDeclarationNameCollision8.js +++ new.decoratorMetadataWithImportDeclarationNameCollision8.js -@@= skipped -35, +35 lines =@@ - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.MyClass = void 0; --const database = require("./db"); - function someDecorator(target) { +@@= skipped -40, +40 lines =@@ return target; } --let MyClass = class MyClass { -+@someDecorator -+class MyClass { + let MyClass = class MyClass { + db; constructor(db) { this.db = db; - this.db.doSomething(); - } --}; -+} - exports.MyClass = MyClass; --exports.MyClass = MyClass = __decorate([ -- someDecorator, -- __metadata("design:paramtypes", [database.db]) --], MyClass); \ No newline at end of file + this.db.doSomething(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/decoratorReferenceOnOtherProperty.js b/testdata/baselines/reference/submodule/compiler/decoratorReferenceOnOtherProperty.js index 089e1bd33..0cef0b1c7 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorReferenceOnOtherProperty.js +++ b/testdata/baselines/reference/submodule/compiler/decoratorReferenceOnOtherProperty.js @@ -32,15 +32,53 @@ class Yoha { exports.Yoha = Yoha; //// [index.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; Object.defineProperty(exports, "__esModule", { value: true }); +const yoha_1 = require("./yoha"); function foo(...args) { } class Bar { yoha(yoha, bar) { } } +__decorate([ + __param(0, foo), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Object, yoha_1.Yoha]), + __metadata("design:returntype", void 0) +], Bar.prototype, "yoha", null); //// [index2.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; Object.defineProperty(exports, "__esModule", { value: true }); +const yoha_1 = require("./yoha"); function foo(...args) { } class Bar { yoha(yoha, ...bar) { } } +__decorate([ + __param(0, foo), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Object, yoha_1.Yoha]), + __metadata("design:returntype", void 0) +], Bar.prototype, "yoha", null); diff --git a/testdata/baselines/reference/submodule/compiler/decoratorReferenceOnOtherProperty.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorReferenceOnOtherProperty.js.diff deleted file mode 100644 index 3ca0672a7..000000000 --- a/testdata/baselines/reference/submodule/compiler/decoratorReferenceOnOtherProperty.js.diff +++ /dev/null @@ -1,56 +0,0 @@ ---- old.decoratorReferenceOnOtherProperty.js -+++ new.decoratorReferenceOnOtherProperty.js -@@= skipped -31, +31 lines =@@ - exports.Yoha = Yoha; - //// [index.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; --var __param = (this && this.__param) || function (paramIndex, decorator) { -- return function (target, key) { decorator(target, key, paramIndex); } --}; - Object.defineProperty(exports, "__esModule", { value: true }); --const yoha_1 = require("./yoha"); - function foo(...args) { } - class Bar { - yoha(yoha, bar) { } - } --__decorate([ -- __param(0, foo), -- __metadata("design:type", Function), -- __metadata("design:paramtypes", [Object, yoha_1.Yoha]), -- __metadata("design:returntype", void 0) --], Bar.prototype, "yoha", null); - //// [index2.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; --var __param = (this && this.__param) || function (paramIndex, decorator) { -- return function (target, key) { decorator(target, key, paramIndex); } --}; - Object.defineProperty(exports, "__esModule", { value: true }); --const yoha_1 = require("./yoha"); - function foo(...args) { } - class Bar { - yoha(yoha, ...bar) { } - } --__decorate([ -- __param(0, foo), -- __metadata("design:type", Function), -- __metadata("design:paramtypes", [Object, yoha_1.Yoha]), -- __metadata("design:returntype", void 0) --], Bar.prototype, "yoha", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/decoratorReferences.js b/testdata/baselines/reference/submodule/compiler/decoratorReferences.js index f56856bb5..c47712e49 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorReferences.js +++ b/testdata/baselines/reference/submodule/compiler/decoratorReferences.js @@ -10,8 +10,23 @@ class C { } //// [decoratorReferences.js] -@y(1, () => C) // <-- T should be resolved to the type alias, not the type parameter of the class; C should resolve to the class -class C { - @y(null) // <-- y should resolve to the function declaration, not the parameter; T should resolve to the type parameter of the class +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; +let C = class C { method(x, y) { } // <-- decorator y should be resolved at the class declaration, not the parameter. -} +}; +__decorate([ + y(null) // <-- y should resolve to the function declaration, not the parameter; T should resolve to the type parameter of the class + , + __param(0, y) +], C.prototype, "method", null); +C = __decorate([ + y(1, () => C) // <-- T should be resolved to the type alias, not the type parameter of the class; C should resolve to the class +], C); diff --git a/testdata/baselines/reference/submodule/compiler/decoratorReferences.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorReferences.js.diff deleted file mode 100644 index 461ddb8ec..000000000 --- a/testdata/baselines/reference/submodule/compiler/decoratorReferences.js.diff +++ /dev/null @@ -1,30 +0,0 @@ ---- old.decoratorReferences.js -+++ new.decoratorReferences.js -@@= skipped -9, +9 lines =@@ - } - - //// [decoratorReferences.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __param = (this && this.__param) || function (paramIndex, decorator) { -- return function (target, key) { decorator(target, key, paramIndex); } --}; --let C = class C { -+@y(1, () => C) // <-- T should be resolved to the type alias, not the type parameter of the class; C should resolve to the class -+class C { -+ @y(null) // <-- y should resolve to the function declaration, not the parameter; T should resolve to the type parameter of the class - method(x, y) { } // <-- decorator y should be resolved at the class declaration, not the parameter. --}; --__decorate([ -- y(null) // <-- y should resolve to the function declaration, not the parameter; T should resolve to the type parameter of the class -- , -- __param(0, y) --], C.prototype, "method", null); --C = __decorate([ -- y(1, () => C) // <-- T should be resolved to the type alias, not the type parameter of the class; C should resolve to the class --], C); -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/decoratorUsedBeforeDeclaration.js b/testdata/baselines/reference/submodule/compiler/decoratorUsedBeforeDeclaration.js index f82ffbfa7..552377a68 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorUsedBeforeDeclaration.js +++ b/testdata/baselines/reference/submodule/compiler/decoratorUsedBeforeDeclaration.js @@ -76,22 +76,23 @@ class Greeter1 { //// [decoratorUsedBeforeDeclaration.js] -@lambda(Enum.No) -@deco(Enum.No) -class Greeter { - @lambda(Enum.No) - @deco(Enum.No) +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; +let Greeter = class Greeter { greeting; constructor(message) { this.greeting = message; } - @lambda(Enum.No) - @deco(Enum.No) greet() { return "Hello, " + this.greeting; } - @lambda - @deco greet1() { return "Hello, " + this.greeting; } @@ -101,7 +102,31 @@ class Greeter { greet3(param) { return "Hello, " + this.greeting; } -} +}; +__decorate([ + lambda(Enum.No), + deco(Enum.No) +], Greeter.prototype, "greeting", void 0); +__decorate([ + lambda(Enum.No), + deco(Enum.No) +], Greeter.prototype, "greet", null); +__decorate([ + lambda, + deco +], Greeter.prototype, "greet1", null); +__decorate([ + __param(0, lambda(Enum.No)), + __param(0, deco(Enum.No)) +], Greeter.prototype, "greet2", null); +__decorate([ + __param(0, lambda), + __param(0, deco) +], Greeter.prototype, "greet3", null); +Greeter = __decorate([ + lambda(Enum.No), + deco(Enum.No) +], Greeter); function deco(...args) { } var Enum; (function (Enum) { @@ -109,22 +134,14 @@ var Enum; Enum[Enum["Yes"] = 1] = "Yes"; })(Enum || (Enum = {})); const lambda = (...args) => { }; -@lambda(Enum.No) -@deco(Enum.No) -class Greeter1 { - @lambda(Enum.No) - @deco(Enum.No) +let Greeter1 = class Greeter1 { greeting; constructor(message) { this.greeting = message; } - @lambda(Enum.No) - @deco(Enum.No) greet() { return "Hello, " + this.greeting; } - @lambda - @deco greet1() { return "Hello, " + this.greeting; } @@ -134,4 +151,28 @@ class Greeter1 { greet3(param) { return "Hello, " + this.greeting; } -} +}; +__decorate([ + lambda(Enum.No), + deco(Enum.No) +], Greeter1.prototype, "greeting", void 0); +__decorate([ + lambda(Enum.No), + deco(Enum.No) +], Greeter1.prototype, "greet", null); +__decorate([ + lambda, + deco +], Greeter1.prototype, "greet1", null); +__decorate([ + __param(0, lambda(Enum.No)), + __param(0, deco(Enum.No)) +], Greeter1.prototype, "greet2", null); +__decorate([ + __param(0, lambda), + __param(0, deco) +], Greeter1.prototype, "greet3", null); +Greeter1 = __decorate([ + lambda(Enum.No), + deco(Enum.No) +], Greeter1); diff --git a/testdata/baselines/reference/submodule/compiler/decoratorUsedBeforeDeclaration.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorUsedBeforeDeclaration.js.diff index 89776def3..4490afc97 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorUsedBeforeDeclaration.js.diff +++ b/testdata/baselines/reference/submodule/compiler/decoratorUsedBeforeDeclaration.js.diff @@ -1,122 +1,18 @@ --- old.decoratorUsedBeforeDeclaration.js +++ new.decoratorUsedBeforeDeclaration.js -@@= skipped -75, +75 lines =@@ - - - //// [decoratorUsedBeforeDeclaration.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __param = (this && this.__param) || function (paramIndex, decorator) { -- return function (target, key) { decorator(target, key, paramIndex); } --}; --let Greeter = class Greeter { -+@lambda(Enum.No) -+@deco(Enum.No) -+class Greeter { -+ @lambda(Enum.No) -+ @deco(Enum.No) +@@= skipped -85, +85 lines =@@ + return function (target, key) { decorator(target, key, paramIndex); } + }; + let Greeter = class Greeter { + greeting; constructor(message) { this.greeting = message; } -+ @lambda(Enum.No) -+ @deco(Enum.No) - greet() { - return "Hello, " + this.greeting; - } -+ @lambda -+ @deco - greet1() { - return "Hello, " + this.greeting; - } -@@= skipped -25, +25 lines =@@ - greet3(param) { - return "Hello, " + this.greeting; - } --}; --__decorate([ -- lambda(Enum.No), -- deco(Enum.No) --], Greeter.prototype, "greeting", void 0); --__decorate([ -- lambda(Enum.No), -- deco(Enum.No) --], Greeter.prototype, "greet", null); --__decorate([ -- lambda, -- deco --], Greeter.prototype, "greet1", null); --__decorate([ -- __param(0, lambda(Enum.No)), -- __param(0, deco(Enum.No)) --], Greeter.prototype, "greet2", null); --__decorate([ -- __param(0, lambda), -- __param(0, deco) --], Greeter.prototype, "greet3", null); --Greeter = __decorate([ -- lambda(Enum.No), -- deco(Enum.No) --], Greeter); -+} - function deco(...args) { } - var Enum; - (function (Enum) { -@@= skipped -32, +8 lines =@@ - Enum[Enum["Yes"] = 1] = "Yes"; +@@= skipped -48, +49 lines =@@ })(Enum || (Enum = {})); const lambda = (...args) => { }; --let Greeter1 = class Greeter1 { -+@lambda(Enum.No) -+@deco(Enum.No) -+class Greeter1 { -+ @lambda(Enum.No) -+ @deco(Enum.No) + let Greeter1 = class Greeter1 { + greeting; constructor(message) { this.greeting = message; - } -+ @lambda(Enum.No) -+ @deco(Enum.No) - greet() { - return "Hello, " + this.greeting; - } -+ @lambda -+ @deco - greet1() { - return "Hello, " + this.greeting; - } -@@= skipped -16, +25 lines =@@ - greet3(param) { - return "Hello, " + this.greeting; - } --}; --__decorate([ -- lambda(Enum.No), -- deco(Enum.No) --], Greeter1.prototype, "greeting", void 0); --__decorate([ -- lambda(Enum.No), -- deco(Enum.No) --], Greeter1.prototype, "greet", null); --__decorate([ -- lambda, -- deco --], Greeter1.prototype, "greet1", null); --__decorate([ -- __param(0, lambda(Enum.No)), -- __param(0, deco(Enum.No)) --], Greeter1.prototype, "greet2", null); --__decorate([ -- __param(0, lambda), -- __param(0, deco) --], Greeter1.prototype, "greet3", null); --Greeter1 = __decorate([ -- lambda(Enum.No), -- deco(Enum.No) --], Greeter1); -+} \ No newline at end of file + } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/decoratorWithNegativeLiteralTypeNoCrash.js b/testdata/baselines/reference/submodule/compiler/decoratorWithNegativeLiteralTypeNoCrash.js index d366a891f..5e2ff6175 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorWithNegativeLiteralTypeNoCrash.js +++ b/testdata/baselines/reference/submodule/compiler/decoratorWithNegativeLiteralTypeNoCrash.js @@ -8,8 +8,20 @@ class A { function decorator(target: any, field: any) {} //// [decoratorWithNegativeLiteralTypeNoCrash.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; class A { - @decorator field1 = -1; } +__decorate([ + decorator, + __metadata("design:type", Number) +], A.prototype, "field1", void 0); function decorator(target, field) { } diff --git a/testdata/baselines/reference/submodule/compiler/decoratorWithNegativeLiteralTypeNoCrash.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorWithNegativeLiteralTypeNoCrash.js.diff index 0c4b63235..b59f0faf3 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorWithNegativeLiteralTypeNoCrash.js.diff +++ b/testdata/baselines/reference/submodule/compiler/decoratorWithNegativeLiteralTypeNoCrash.js.diff @@ -1,27 +1,13 @@ --- old.decoratorWithNegativeLiteralTypeNoCrash.js +++ new.decoratorWithNegativeLiteralTypeNoCrash.js -@@= skipped -7, +7 lines =@@ - function decorator(target: any, field: any) {} - - //// [decoratorWithNegativeLiteralTypeNoCrash.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; +@@= skipped -17, +17 lines =@@ + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); + }; class A { - constructor() { - this.field1 = -1; - } -+ @decorator + field1 = -1; } --__decorate([ -- decorator, -- __metadata("design:type", Number) --], A.prototype, "field1", void 0); - function decorator(target, field) { } \ No newline at end of file + __decorate([ + decorator, \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/decoratorWithUnderscoreMethod.js b/testdata/baselines/reference/submodule/compiler/decoratorWithUnderscoreMethod.js index 2e641abe6..46c052454 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorWithUnderscoreMethod.js +++ b/testdata/baselines/reference/submodule/compiler/decoratorWithUnderscoreMethod.js @@ -26,8 +26,10 @@ function dec() { }; } class A { - @dec() __foo(bar) { // do something with bar } } +__decorate([ + dec() +], A.prototype, "__foo", null); diff --git a/testdata/baselines/reference/submodule/compiler/decoratorWithUnderscoreMethod.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorWithUnderscoreMethod.js.diff deleted file mode 100644 index 26c25a70f..000000000 --- a/testdata/baselines/reference/submodule/compiler/decoratorWithUnderscoreMethod.js.diff +++ /dev/null @@ -1,14 +0,0 @@ ---- old.decoratorWithUnderscoreMethod.js -+++ new.decoratorWithUnderscoreMethod.js -@@= skipped -25, +25 lines =@@ - }; - } - class A { -+ @dec() - __foo(bar) { - // do something with bar - } - } --__decorate([ -- dec() --], A.prototype, "__foo", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/decoratorsOnComputedProperties.js b/testdata/baselines/reference/submodule/compiler/decoratorsOnComputedProperties.js index bf084efa5..c4775832c 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorsOnComputedProperties.js +++ b/testdata/baselines/reference/submodule/compiler/decoratorsOnComputedProperties.js @@ -192,6 +192,12 @@ void class J { }; //// [decoratorsOnComputedProperties.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; function x(o, k) { } let i = 0; function foo() { return ++i + ""; } @@ -199,256 +205,297 @@ const fieldNameA = "fieldName1"; const fieldNameB = "fieldName2"; const fieldNameC = "fieldName3"; class A { - @x ["property"]; - @x [Symbol.toStringTag]; - @x ["property2"] = 2; - @x [Symbol.iterator] = null; ["property3"]; [Symbol.isConcatSpreadable]; ["property4"] = 2; [Symbol.match] = null; [foo()]; - @x [foo()]; - @x [foo()] = null; [fieldNameA]; - @x [fieldNameB]; - @x [fieldNameC] = null; } +__decorate([ + x +], A.prototype, "property", void 0); +__decorate([ + x +], A.prototype, _a, void 0); +__decorate([ + x +], A.prototype, "property2", void 0); +__decorate([ + x +], A.prototype, _b, void 0); +__decorate([ + x +], A.prototype, _c, void 0); +__decorate([ + x +], A.prototype, _d, void 0); +__decorate([ + x +], A.prototype, _e, void 0); +__decorate([ + x +], A.prototype, _f, void 0); void class B { - @x ["property"]; - @x [Symbol.toStringTag]; - @x ["property2"] = 2; - @x [Symbol.iterator] = null; ["property3"]; [Symbol.isConcatSpreadable]; ["property4"] = 2; [Symbol.match] = null; [foo()]; - @x [foo()]; - @x [foo()] = null; [fieldNameA]; - @x [fieldNameB]; - @x [fieldNameC] = null; }; class C { - @x ["property"]; - @x [Symbol.toStringTag]; - @x ["property2"] = 2; - @x [Symbol.iterator] = null; ["property3"]; [Symbol.isConcatSpreadable]; ["property4"] = 2; [Symbol.match] = null; [foo()]; - @x [foo()]; - @x [foo()] = null; [fieldNameA]; - @x [fieldNameB]; - @x [fieldNameC] = null; ["some" + "method"]() { } } +__decorate([ + x +], C.prototype, "property", void 0); +__decorate([ + x +], C.prototype, _g, void 0); +__decorate([ + x +], C.prototype, "property2", void 0); +__decorate([ + x +], C.prototype, _h, void 0); +__decorate([ + x +], C.prototype, _j, void 0); +__decorate([ + x +], C.prototype, _k, void 0); +__decorate([ + x +], C.prototype, _l, void 0); +__decorate([ + x +], C.prototype, _m, void 0); void class D { - @x ["property"]; - @x [Symbol.toStringTag]; - @x ["property2"] = 2; - @x [Symbol.iterator] = null; ["property3"]; [Symbol.isConcatSpreadable]; ["property4"] = 2; [Symbol.match] = null; [foo()]; - @x [foo()]; - @x [foo()] = null; [fieldNameA]; - @x [fieldNameB]; - @x [fieldNameC] = null; ["some" + "method"]() { } }; class E { - @x ["property"]; - @x [Symbol.toStringTag]; - @x ["property2"] = 2; - @x [Symbol.iterator] = null; ["property3"]; [Symbol.isConcatSpreadable]; ["property4"] = 2; [Symbol.match] = null; [foo()]; - @x [foo()]; - @x [foo()] = null; ["some" + "method"]() { } [fieldNameA]; - @x [fieldNameB]; - @x [fieldNameC] = null; } +__decorate([ + x +], E.prototype, "property", void 0); +__decorate([ + x +], E.prototype, _o, void 0); +__decorate([ + x +], E.prototype, "property2", void 0); +__decorate([ + x +], E.prototype, _p, void 0); +__decorate([ + x +], E.prototype, _q, void 0); +__decorate([ + x +], E.prototype, _r, void 0); +__decorate([ + x +], E.prototype, _s, void 0); +__decorate([ + x +], E.prototype, _t, void 0); void class F { - @x ["property"]; - @x [Symbol.toStringTag]; - @x ["property2"] = 2; - @x [Symbol.iterator] = null; ["property3"]; [Symbol.isConcatSpreadable]; ["property4"] = 2; [Symbol.match] = null; [foo()]; - @x [foo()]; - @x [foo()] = null; ["some" + "method"]() { } [fieldNameA]; - @x [fieldNameB]; - @x [fieldNameC] = null; }; class G { - @x ["property"]; - @x [Symbol.toStringTag]; - @x ["property2"] = 2; - @x [Symbol.iterator] = null; ["property3"]; [Symbol.isConcatSpreadable]; ["property4"] = 2; [Symbol.match] = null; [foo()]; - @x [foo()]; - @x [foo()] = null; ["some" + "method"]() { } [fieldNameA]; - @x [fieldNameB]; ["some" + "method2"]() { } - @x [fieldNameC] = null; } +__decorate([ + x +], G.prototype, "property", void 0); +__decorate([ + x +], G.prototype, _u, void 0); +__decorate([ + x +], G.prototype, "property2", void 0); +__decorate([ + x +], G.prototype, _v, void 0); +__decorate([ + x +], G.prototype, _w, void 0); +__decorate([ + x +], G.prototype, _x, void 0); +__decorate([ + x +], G.prototype, _y, void 0); +__decorate([ + x +], G.prototype, _z, void 0); void class H { - @x ["property"]; - @x [Symbol.toStringTag]; - @x ["property2"] = 2; - @x [Symbol.iterator] = null; ["property3"]; [Symbol.isConcatSpreadable]; ["property4"] = 2; [Symbol.match] = null; [foo()]; - @x [foo()]; - @x [foo()] = null; ["some" + "method"]() { } [fieldNameA]; - @x [fieldNameB]; ["some" + "method2"]() { } - @x [fieldNameC] = null; }; class I { - @x ["property"]; - @x [Symbol.toStringTag]; - @x ["property2"] = 2; - @x [Symbol.iterator] = null; ["property3"]; [Symbol.isConcatSpreadable]; ["property4"] = 2; [Symbol.match] = null; [foo()]; - @x [foo()]; - @x [foo()] = null; - @x ["some" + "method"]() { } [fieldNameA]; - @x [fieldNameB]; ["some" + "method2"]() { } - @x [fieldNameC] = null; } +__decorate([ + x +], I.prototype, "property", void 0); +__decorate([ + x +], I.prototype, _0, void 0); +__decorate([ + x +], I.prototype, "property2", void 0); +__decorate([ + x +], I.prototype, _1, void 0); +__decorate([ + x +], I.prototype, _2, void 0); +__decorate([ + x +], I.prototype, _3, void 0); +__decorate([ + x +], I.prototype, _4, null); +__decorate([ + x +], I.prototype, _5, void 0); +__decorate([ + x +], I.prototype, _6, void 0); void class J { - @x ["property"]; - @x [Symbol.toStringTag]; - @x ["property2"] = 2; - @x [Symbol.iterator] = null; ["property3"]; [Symbol.isConcatSpreadable]; ["property4"] = 2; [Symbol.match] = null; [foo()]; - @x [foo()]; - @x [foo()] = null; - @x ["some" + "method"]() { } [fieldNameA]; - @x [fieldNameB]; ["some" + "method2"]() { } - @x [fieldNameC] = null; }; diff --git a/testdata/baselines/reference/submodule/compiler/decoratorsOnComputedProperties.js.diff b/testdata/baselines/reference/submodule/compiler/decoratorsOnComputedProperties.js.diff index e4a9119af..0852db0cc 100644 --- a/testdata/baselines/reference/submodule/compiler/decoratorsOnComputedProperties.js.diff +++ b/testdata/baselines/reference/submodule/compiler/decoratorsOnComputedProperties.js.diff @@ -1,21 +1,15 @@ --- old.decoratorsOnComputedProperties.js +++ new.decoratorsOnComputedProperties.js -@@= skipped -191, +191 lines =@@ +@@= skipped -197, +197 lines =@@ + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; }; - - //// [decoratorsOnComputedProperties.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; -var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p; -var _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51; function x(o, k) { } let i = 0; function foo() { return ++i + ""; } -@@= skipped -15, +7 lines =@@ +@@= skipped -9, +7 lines =@@ const fieldNameB = "fieldName2"; const fieldNameC = "fieldName3"; class A { @@ -27,41 +21,34 @@ - this[_t] = null; - this[_v] = null; - } -+ @x + ["property"]; -+ @x + [Symbol.toStringTag]; -+ @x + ["property2"] = 2; -+ @x + [Symbol.iterator] = null; + ["property3"]; + [Symbol.isConcatSpreadable]; + ["property4"] = 2; + [Symbol.match] = null; + [foo()]; -+ @x + [foo()]; -+ @x + [foo()] = null; + [fieldNameA]; -+ @x + [fieldNameB]; -+ @x + [fieldNameC] = null; } -_q = Symbol.toStringTag, _r = Symbol.iterator, Symbol.isConcatSpreadable, _a = Symbol.match, foo(), _s = foo(), _t = foo(), _u = fieldNameB, _v = fieldNameC; --__decorate([ -- x --], A.prototype, "property", void 0); --__decorate([ -- x + __decorate([ + x + ], A.prototype, "property", void 0); + __decorate([ + x -], A.prototype, _q, void 0); --__decorate([ -- x --], A.prototype, "property2", void 0); --__decorate([ -- x ++], A.prototype, _a, void 0); + __decorate([ + x + ], A.prototype, "property2", void 0); + __decorate([ + x -], A.prototype, _r, void 0); -__decorate([ - x @@ -95,28 +82,33 @@ - _0 = fieldNameB, - _1 = fieldNameC, - _c); ++], A.prototype, _b, void 0); ++__decorate([ ++ x ++], A.prototype, _c, void 0); ++__decorate([ ++ x ++], A.prototype, _d, void 0); ++__decorate([ ++ x ++], A.prototype, _e, void 0); ++__decorate([ ++ x ++], A.prototype, _f, void 0); +void class B { -+ @x + ["property"]; -+ @x + [Symbol.toStringTag]; -+ @x + ["property2"] = 2; -+ @x + [Symbol.iterator] = null; + ["property3"]; + [Symbol.isConcatSpreadable]; + ["property4"] = 2; + [Symbol.match] = null; + [foo()]; -+ @x + [foo()]; -+ @x + [foo()] = null; + [fieldNameA]; -+ @x + [fieldNameB]; -+ @x + [fieldNameC] = null; +}; class C { @@ -129,41 +121,34 @@ - this[_7] = null; - } - [(_2 = Symbol.toStringTag, _3 = Symbol.iterator, Symbol.isConcatSpreadable, _d = Symbol.match, foo(), _4 = foo(), _5 = foo(), _6 = fieldNameB, _7 = fieldNameC, "some" + "method")]() { } -+ @x + ["property"]; -+ @x + [Symbol.toStringTag]; -+ @x + ["property2"] = 2; -+ @x + [Symbol.iterator] = null; + ["property3"]; + [Symbol.isConcatSpreadable]; + ["property4"] = 2; + [Symbol.match] = null; + [foo()]; -+ @x + [foo()]; -+ @x + [foo()] = null; + [fieldNameA]; -+ @x + [fieldNameB]; -+ @x + [fieldNameC] = null; + ["some" + "method"]() { } } --__decorate([ -- x --], C.prototype, "property", void 0); --__decorate([ -- x + __decorate([ + x + ], C.prototype, "property", void 0); + __decorate([ + x -], C.prototype, _2, void 0); --__decorate([ -- x --], C.prototype, "property2", void 0); --__decorate([ -- x ++], C.prototype, _g, void 0); + __decorate([ + x + ], C.prototype, "property2", void 0); + __decorate([ + x -], C.prototype, _3, void 0); -__decorate([ - x @@ -177,6 +162,19 @@ -__decorate([ - x -], C.prototype, _7, void 0); ++], C.prototype, _h, void 0); ++__decorate([ ++ x ++], C.prototype, _j, void 0); ++__decorate([ ++ x ++], C.prototype, _k, void 0); ++__decorate([ ++ x ++], C.prototype, _l, void 0); ++__decorate([ ++ x ++], C.prototype, _m, void 0); void class D { - constructor() { - this["property2"] = 2; @@ -187,27 +185,19 @@ - this[_13] = null; - } - [(_8 = Symbol.toStringTag, _9 = Symbol.iterator, Symbol.isConcatSpreadable, _e = Symbol.match, foo(), _10 = foo(), _11 = foo(), _12 = fieldNameB, _13 = fieldNameC, "some" + "method")]() { } -+ @x + ["property"]; -+ @x + [Symbol.toStringTag]; -+ @x + ["property2"] = 2; -+ @x + [Symbol.iterator] = null; + ["property3"]; + [Symbol.isConcatSpreadable]; + ["property4"] = 2; + [Symbol.match] = null; + [foo()]; -+ @x + [foo()]; -+ @x + [foo()] = null; + [fieldNameA]; -+ @x + [fieldNameB]; -+ @x + [fieldNameC] = null; + ["some" + "method"]() { } }; @@ -221,42 +211,35 @@ - this[_19] = null; - } - [(_14 = Symbol.toStringTag, _15 = Symbol.iterator, Symbol.isConcatSpreadable, _f = Symbol.match, foo(), _16 = foo(), _17 = foo(), "some" + "method")]() { } -+ @x + ["property"]; -+ @x + [Symbol.toStringTag]; -+ @x + ["property2"] = 2; -+ @x + [Symbol.iterator] = null; + ["property3"]; + [Symbol.isConcatSpreadable]; + ["property4"] = 2; + [Symbol.match] = null; + [foo()]; -+ @x + [foo()]; -+ @x + [foo()] = null; + ["some" + "method"]() { } + [fieldNameA]; -+ @x + [fieldNameB]; -+ @x + [fieldNameC] = null; } -_18 = fieldNameB, _19 = fieldNameC; --__decorate([ -- x --], E.prototype, "property", void 0); --__decorate([ -- x + __decorate([ + x + ], E.prototype, "property", void 0); + __decorate([ + x -], E.prototype, _14, void 0); --__decorate([ -- x --], E.prototype, "property2", void 0); --__decorate([ -- x ++], E.prototype, _o, void 0); + __decorate([ + x + ], E.prototype, "property2", void 0); + __decorate([ + x -], E.prototype, _15, void 0); -__decorate([ - x @@ -284,29 +267,34 @@ - _24 = fieldNameB, - _25 = fieldNameC, - _h); ++], E.prototype, _p, void 0); ++__decorate([ ++ x ++], E.prototype, _q, void 0); ++__decorate([ ++ x ++], E.prototype, _r, void 0); ++__decorate([ ++ x ++], E.prototype, _s, void 0); ++__decorate([ ++ x ++], E.prototype, _t, void 0); +void class F { -+ @x + ["property"]; -+ @x + [Symbol.toStringTag]; -+ @x + ["property2"] = 2; -+ @x + [Symbol.iterator] = null; + ["property3"]; + [Symbol.isConcatSpreadable]; + ["property4"] = 2; + [Symbol.match] = null; + [foo()]; -+ @x + [foo()]; -+ @x + [foo()] = null; + ["some" + "method"]() { } + [fieldNameA]; -+ @x + [fieldNameB]; -+ @x + [fieldNameC] = null; +}; class G { @@ -320,43 +308,36 @@ - } - [(_26 = Symbol.toStringTag, _27 = Symbol.iterator, Symbol.isConcatSpreadable, _j = Symbol.match, foo(), _28 = foo(), _29 = foo(), "some" + "method")]() { } - [(_30 = fieldNameB, "some" + "method2")]() { } -+ @x + ["property"]; -+ @x + [Symbol.toStringTag]; -+ @x + ["property2"] = 2; -+ @x + [Symbol.iterator] = null; + ["property3"]; + [Symbol.isConcatSpreadable]; + ["property4"] = 2; + [Symbol.match] = null; + [foo()]; -+ @x + [foo()]; -+ @x + [foo()] = null; + ["some" + "method"]() { } + [fieldNameA]; -+ @x + [fieldNameB]; + ["some" + "method2"]() { } -+ @x + [fieldNameC] = null; } -_31 = fieldNameC; --__decorate([ -- x --], G.prototype, "property", void 0); --__decorate([ -- x + __decorate([ + x + ], G.prototype, "property", void 0); + __decorate([ + x -], G.prototype, _26, void 0); --__decorate([ -- x --], G.prototype, "property2", void 0); --__decorate([ -- x ++], G.prototype, _u, void 0); + __decorate([ + x + ], G.prototype, "property2", void 0); + __decorate([ + x -], G.prototype, _27, void 0); -__decorate([ - x @@ -384,30 +365,35 @@ - }, - _37 = fieldNameC, - _l); ++], G.prototype, _v, void 0); ++__decorate([ ++ x ++], G.prototype, _w, void 0); ++__decorate([ ++ x ++], G.prototype, _x, void 0); ++__decorate([ ++ x ++], G.prototype, _y, void 0); ++__decorate([ ++ x ++], G.prototype, _z, void 0); +void class H { -+ @x + ["property"]; -+ @x + [Symbol.toStringTag]; -+ @x + ["property2"] = 2; -+ @x + [Symbol.iterator] = null; + ["property3"]; + [Symbol.isConcatSpreadable]; + ["property4"] = 2; + [Symbol.match] = null; + [foo()]; -+ @x + [foo()]; -+ @x + [foo()] = null; + ["some" + "method"]() { } + [fieldNameA]; -+ @x + [fieldNameB]; + ["some" + "method2"]() { } -+ @x + [fieldNameC] = null; +}; class I { @@ -421,44 +407,36 @@ - } - [(_38 = Symbol.toStringTag, _39 = Symbol.iterator, Symbol.isConcatSpreadable, _m = Symbol.match, foo(), _40 = foo(), _41 = foo(), _42 = "some" + "method")]() { } - [(_43 = fieldNameB, "some" + "method2")]() { } -+ @x + ["property"]; -+ @x + [Symbol.toStringTag]; -+ @x + ["property2"] = 2; -+ @x + [Symbol.iterator] = null; + ["property3"]; + [Symbol.isConcatSpreadable]; + ["property4"] = 2; + [Symbol.match] = null; + [foo()]; -+ @x + [foo()]; -+ @x + [foo()] = null; -+ @x + ["some" + "method"]() { } + [fieldNameA]; -+ @x + [fieldNameB]; + ["some" + "method2"]() { } -+ @x + [fieldNameC] = null; } -_44 = fieldNameC; --__decorate([ -- x --], I.prototype, "property", void 0); --__decorate([ -- x + __decorate([ + x + ], I.prototype, "property", void 0); + __decorate([ + x -], I.prototype, _38, void 0); --__decorate([ -- x --], I.prototype, "property2", void 0); --__decorate([ -- x ++], I.prototype, _0, void 0); + __decorate([ + x + ], I.prototype, "property2", void 0); + __decorate([ + x -], I.prototype, _39, void 0); -__decorate([ - x @@ -489,30 +467,37 @@ - }, - _51 = fieldNameC, - _p); ++], I.prototype, _1, void 0); ++__decorate([ ++ x ++], I.prototype, _2, void 0); ++__decorate([ ++ x ++], I.prototype, _3, void 0); ++__decorate([ ++ x ++], I.prototype, _4, null); ++__decorate([ ++ x ++], I.prototype, _5, void 0); ++__decorate([ ++ x ++], I.prototype, _6, void 0); +void class J { -+ @x + ["property"]; -+ @x + [Symbol.toStringTag]; -+ @x + ["property2"] = 2; -+ @x + [Symbol.iterator] = null; + ["property3"]; + [Symbol.isConcatSpreadable]; + ["property4"] = 2; + [Symbol.match] = null; + [foo()]; -+ @x + [foo()]; -+ @x + [foo()] = null; -+ @x + ["some" + "method"]() { } + [fieldNameA]; -+ @x + [fieldNameB]; + ["some" + "method2"]() { } -+ @x + [fieldNameC] = null; +}; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/defaultKeywordWithoutExport1.js b/testdata/baselines/reference/submodule/compiler/defaultKeywordWithoutExport1.js index 3a9910cb3..6c80d3c09 100644 --- a/testdata/baselines/reference/submodule/compiler/defaultKeywordWithoutExport1.js +++ b/testdata/baselines/reference/submodule/compiler/defaultKeywordWithoutExport1.js @@ -7,6 +7,14 @@ declare function decorator(constructor: any): any; default class {} //// [defaultKeywordWithoutExport1.js] -@decorator -default class { -} +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let default_1 = class { +}; +default_1 = __decorate([ + decorator +], default_1); diff --git a/testdata/baselines/reference/submodule/compiler/defaultKeywordWithoutExport1.js.diff b/testdata/baselines/reference/submodule/compiler/defaultKeywordWithoutExport1.js.diff deleted file mode 100644 index 93b578960..000000000 --- a/testdata/baselines/reference/submodule/compiler/defaultKeywordWithoutExport1.js.diff +++ /dev/null @@ -1,20 +0,0 @@ ---- old.defaultKeywordWithoutExport1.js -+++ new.defaultKeywordWithoutExport1.js -@@= skipped -6, +6 lines =@@ - default class {} - - //// [defaultKeywordWithoutExport1.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --let default_1 = class { --}; --default_1 = __decorate([ -- decorator --], default_1); -+@decorator -+default class { -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_isolatedModules(module=commonjs).js b/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_isolatedModules(module=commonjs).js index 93cd0d8b4..28cce5b10 100644 --- a/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_isolatedModules(module=commonjs).js +++ b/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_isolatedModules(module=commonjs).js @@ -53,18 +53,86 @@ class C3 { exports.C3 = C3; //// [index.js] "use strict"; +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __importStar = (this && this.__importStar) || (function () { + var ownKeys = function(o) { + ownKeys = Object.getOwnPropertyNames || function (o) { + var ar = []; + for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; + return ar; + }; + return ownKeys(o); + }; + return function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); + __setModuleDefault(result, mod); + return result; + }; +})(); +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; Object.defineProperty(exports, "__esModule", { value: true }); +const t1 = __importStar(require("./type1")); +const class3_1 = require("./class3"); class HelloWorld { - @EventListener('1') handleEvent1(event) { } // Error - @EventListener('2') handleEvent2(event) { } // Ok - @EventListener('1') p1; // Error - @EventListener('1') p1_ns; // Ok - @EventListener('2') p2; // Ok - @EventListener('3') handleEvent3(event) { return undefined; } // Ok, Error } +__decorate([ + EventListener('1'), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Object]), + __metadata("design:returntype", void 0) +], HelloWorld.prototype, "handleEvent1", null); +__decorate([ + EventListener('2'), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Object]), + __metadata("design:returntype", void 0) +], HelloWorld.prototype, "handleEvent2", null); +__decorate([ + EventListener('1'), + __metadata("design:type", Object) +], HelloWorld.prototype, "p1", void 0); +__decorate([ + EventListener('1'), + __metadata("design:type", Object) +], HelloWorld.prototype, "p1_ns", void 0); +__decorate([ + EventListener('2'), + __metadata("design:type", Object) +], HelloWorld.prototype, "p2", void 0); +__decorate([ + EventListener('3'), + __metadata("design:type", Function), + __metadata("design:paramtypes", [class3_1.C3]), + __metadata("design:returntype", Object) +], HelloWorld.prototype, "handleEvent3", null); diff --git a/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_isolatedModules(module=commonjs).js.diff b/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_isolatedModules(module=commonjs).js.diff index 1d3a1524b..617d534a4 100644 --- a/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_isolatedModules(module=commonjs).js.diff +++ b/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_isolatedModules(module=commonjs).js.diff @@ -1,95 +1,12 @@ --- old.emitDecoratorMetadata_isolatedModules(module=commonjs).js +++ new.emitDecoratorMetadata_isolatedModules(module=commonjs).js -@@= skipped -52, +52 lines =@@ - exports.C3 = C3; - //// [index.js] - "use strict"; --var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { -- if (k2 === undefined) k2 = k; -- var desc = Object.getOwnPropertyDescriptor(m, k); -- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { -- desc = { enumerable: true, get: function() { return m[k]; } }; -- } -- Object.defineProperty(o, k2, desc); --}) : (function(o, m, k, k2) { -- if (k2 === undefined) k2 = k; -- o[k2] = m[k]; --})); --var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { -- Object.defineProperty(o, "default", { enumerable: true, value: v }); --}) : function(o, v) { -- o["default"] = v; --}); --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __importStar = (this && this.__importStar) || (function () { -- var ownKeys = function(o) { -- ownKeys = Object.getOwnPropertyNames || function (o) { -- var ar = []; -- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; -- return ar; -- }; -- return ownKeys(o); -- }; -- return function (mod) { -- if (mod && mod.__esModule) return mod; -- var result = {}; -- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); -- __setModuleDefault(result, mod); -- return result; -- }; --})(); --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; - Object.defineProperty(exports, "__esModule", { value: true }); --const t1 = __importStar(require("./type1")); --const class3_1 = require("./class3"); +@@= skipped -100, +100 lines =@@ class HelloWorld { -+ @EventListener('1') handleEvent1(event) { } // Error -+ @EventListener('2') handleEvent2(event) { } // Ok -+ @EventListener('1') + p1; // Error -+ @EventListener('1') + p1_ns; // Ok -+ @EventListener('2') + p2; // Ok -+ @EventListener('3') handleEvent3(event) { return undefined; } // Ok, Error } --__decorate([ -- EventListener('1'), -- __metadata("design:type", Function), -- __metadata("design:paramtypes", [Object]), -- __metadata("design:returntype", void 0) --], HelloWorld.prototype, "handleEvent1", null); --__decorate([ -- EventListener('2'), -- __metadata("design:type", Function), -- __metadata("design:paramtypes", [Object]), -- __metadata("design:returntype", void 0) --], HelloWorld.prototype, "handleEvent2", null); --__decorate([ -- EventListener('1'), -- __metadata("design:type", Object) --], HelloWorld.prototype, "p1", void 0); --__decorate([ -- EventListener('1'), -- __metadata("design:type", Object) --], HelloWorld.prototype, "p1_ns", void 0); --__decorate([ -- EventListener('2'), -- __metadata("design:type", Object) --], HelloWorld.prototype, "p2", void 0); --__decorate([ -- EventListener('3'), -- __metadata("design:type", Function), -- __metadata("design:paramtypes", [class3_1.C3]), -- __metadata("design:returntype", Object) --], HelloWorld.prototype, "handleEvent3", null); \ No newline at end of file + __decorate([ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_isolatedModules(module=esnext).errors.txt b/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_isolatedModules(module=esnext).errors.txt new file mode 100644 index 000000000..dfac6107c --- /dev/null +++ b/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_isolatedModules(module=esnext).errors.txt @@ -0,0 +1,51 @@ +index.ts(9,23): error TS1272: A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled. +index.ts(15,8): error TS1272: A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled. +index.ts(24,28): error TS1272: A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled. + + +==== type1.ts (0 errors) ==== + interface T1 {} + export type { T1 } + +==== type2.ts (0 errors) ==== + export interface T2 {} + +==== class3.ts (0 errors) ==== + export class C3 {} + +==== index.ts (3 errors) ==== + import { T1 } from "./type1"; + import * as t1 from "./type1"; + import type { T2 } from "./type2"; + import { C3 } from "./class3"; + declare var EventListener: any; + + class HelloWorld { + @EventListener('1') + handleEvent1(event: T1) {} // Error + ~~ +!!! error TS1272: A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled. +!!! related TS1376 index.ts:1:10: 'T1' was imported here. + + @EventListener('2') + handleEvent2(event: T2) {} // Ok + + @EventListener('1') + p1!: T1; // Error + ~~ +!!! error TS1272: A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled. +!!! related TS1376 index.ts:1:10: 'T1' was imported here. + + @EventListener('1') + p1_ns!: t1.T1; // Ok + + @EventListener('2') + p2!: T2; // Ok + + @EventListener('3') + handleEvent3(event: C3): T1 { return undefined! } // Ok, Error + ~~ +!!! error TS1272: A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled. +!!! related TS1376 index.ts:1:10: 'T1' was imported here. + } + \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_isolatedModules(module=esnext).errors.txt.diff b/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_isolatedModules(module=esnext).errors.txt.diff deleted file mode 100644 index 07f8db89c..000000000 --- a/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_isolatedModules(module=esnext).errors.txt.diff +++ /dev/null @@ -1,55 +0,0 @@ ---- old.emitDecoratorMetadata_isolatedModules(module=esnext).errors.txt -+++ new.emitDecoratorMetadata_isolatedModules(module=esnext).errors.txt -@@= skipped -0, +0 lines =@@ --index.ts(9,23): error TS1272: A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled. --index.ts(15,8): error TS1272: A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled. --index.ts(24,28): error TS1272: A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled. -- -- --==== type1.ts (0 errors) ==== -- interface T1 {} -- export type { T1 } -- --==== type2.ts (0 errors) ==== -- export interface T2 {} -- --==== class3.ts (0 errors) ==== -- export class C3 {} -- --==== index.ts (3 errors) ==== -- import { T1 } from "./type1"; -- import * as t1 from "./type1"; -- import type { T2 } from "./type2"; -- import { C3 } from "./class3"; -- declare var EventListener: any; -- -- class HelloWorld { -- @EventListener('1') -- handleEvent1(event: T1) {} // Error -- ~~ --!!! error TS1272: A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled. --!!! related TS1376 index.ts:1:10: 'T1' was imported here. -- -- @EventListener('2') -- handleEvent2(event: T2) {} // Ok -- -- @EventListener('1') -- p1!: T1; // Error -- ~~ --!!! error TS1272: A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled. --!!! related TS1376 index.ts:1:10: 'T1' was imported here. -- -- @EventListener('1') -- p1_ns!: t1.T1; // Ok -- -- @EventListener('2') -- p2!: T2; // Ok -- -- @EventListener('3') -- handleEvent3(event: C3): T1 { return undefined! } // Ok, Error -- ~~ --!!! error TS1272: A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled. --!!! related TS1376 index.ts:1:10: 'T1' was imported here. -- } -- -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_isolatedModules(module=esnext).js b/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_isolatedModules(module=esnext).js index 290ec5765..aade00747 100644 --- a/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_isolatedModules(module=esnext).js +++ b/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_isolatedModules(module=esnext).js @@ -46,18 +46,52 @@ export {}; export class C3 { } //// [index.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +import * as t1 from "./type1"; +import { C3 } from "./class3"; class HelloWorld { - @EventListener('1') handleEvent1(event) { } // Error - @EventListener('2') handleEvent2(event) { } // Ok - @EventListener('1') p1; // Error - @EventListener('1') p1_ns; // Ok - @EventListener('2') p2; // Ok - @EventListener('3') handleEvent3(event) { return undefined; } // Ok, Error } -export {}; +__decorate([ + EventListener('1'), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Object]), + __metadata("design:returntype", void 0) +], HelloWorld.prototype, "handleEvent1", null); +__decorate([ + EventListener('2'), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Object]), + __metadata("design:returntype", void 0) +], HelloWorld.prototype, "handleEvent2", null); +__decorate([ + EventListener('1'), + __metadata("design:type", Object) +], HelloWorld.prototype, "p1", void 0); +__decorate([ + EventListener('1'), + __metadata("design:type", Object) +], HelloWorld.prototype, "p1_ns", void 0); +__decorate([ + EventListener('2'), + __metadata("design:type", Object) +], HelloWorld.prototype, "p2", void 0); +__decorate([ + EventListener('3'), + __metadata("design:type", Function), + __metadata("design:paramtypes", [C3]), + __metadata("design:returntype", Object) +], HelloWorld.prototype, "handleEvent3", null); diff --git a/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_isolatedModules(module=esnext).js.diff b/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_isolatedModules(module=esnext).js.diff index 8278bb05c..7a3cb360e 100644 --- a/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_isolatedModules(module=esnext).js.diff +++ b/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_isolatedModules(module=esnext).js.diff @@ -1,62 +1,12 @@ --- old.emitDecoratorMetadata_isolatedModules(module=esnext).js +++ new.emitDecoratorMetadata_isolatedModules(module=esnext).js -@@= skipped -45, +45 lines =@@ - export class C3 { - } - //// [index.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; --import * as t1 from "./type1"; --import { C3 } from "./class3"; +@@= skipped -59, +59 lines =@@ class HelloWorld { -+ @EventListener('1') handleEvent1(event) { } // Error -+ @EventListener('2') handleEvent2(event) { } // Ok -+ @EventListener('1') + p1; // Error -+ @EventListener('1') + p1_ns; // Ok -+ @EventListener('2') + p2; // Ok -+ @EventListener('3') handleEvent3(event) { return undefined; } // Ok, Error } --__decorate([ -- EventListener('1'), -- __metadata("design:type", Function), -- __metadata("design:paramtypes", [Object]), -- __metadata("design:returntype", void 0) --], HelloWorld.prototype, "handleEvent1", null); --__decorate([ -- EventListener('2'), -- __metadata("design:type", Function), -- __metadata("design:paramtypes", [Object]), -- __metadata("design:returntype", void 0) --], HelloWorld.prototype, "handleEvent2", null); --__decorate([ -- EventListener('1'), -- __metadata("design:type", Object) --], HelloWorld.prototype, "p1", void 0); --__decorate([ -- EventListener('1'), -- __metadata("design:type", Object) --], HelloWorld.prototype, "p1_ns", void 0); --__decorate([ -- EventListener('2'), -- __metadata("design:type", Object) --], HelloWorld.prototype, "p2", void 0); --__decorate([ -- EventListener('3'), -- __metadata("design:type", Function), -- __metadata("design:paramtypes", [C3]), -- __metadata("design:returntype", Object) --], HelloWorld.prototype, "handleEvent3", null); -+export {}; \ No newline at end of file + __decorate([ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_object.js b/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_object.js index 2d17ed01d..019f06ec6 100644 --- a/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_object.js +++ b/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_object.js @@ -13,9 +13,26 @@ class A { //// [emitDecoratorMetadata_object.js] -@MyClassDecorator -class A { +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +let A = class A { constructor(hi) { } - @MyMethodDecorator method(there) { } -} +}; +__decorate([ + MyMethodDecorator, + __metadata("design:type", Function), + __metadata("design:paramtypes", [Object]), + __metadata("design:returntype", void 0) +], A.prototype, "method", null); +A = __decorate([ + MyClassDecorator, + __metadata("design:paramtypes", [Object]) +], A); diff --git a/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_object.js.diff b/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_object.js.diff deleted file mode 100644 index c1437b5b0..000000000 --- a/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_object.js.diff +++ /dev/null @@ -1,33 +0,0 @@ ---- old.emitDecoratorMetadata_object.js -+++ new.emitDecoratorMetadata_object.js -@@= skipped -12, +12 lines =@@ - - - //// [emitDecoratorMetadata_object.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; --let A = class A { -+@MyClassDecorator -+class A { - constructor(hi) { } -+ @MyMethodDecorator - method(there) { } --}; --__decorate([ -- MyMethodDecorator, -- __metadata("design:type", Function), -- __metadata("design:paramtypes", [Object]), -- __metadata("design:returntype", void 0) --], A.prototype, "method", null); --A = __decorate([ -- MyClassDecorator, -- __metadata("design:paramtypes", [Object]) --], A); -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_restArgs.js b/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_restArgs.js index 998743f05..59d81c22c 100644 --- a/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_restArgs.js +++ b/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_restArgs.js @@ -20,15 +20,40 @@ class B { //// [emitDecoratorMetadata_restArgs.js] -@MyClassDecorator -class A { +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +let A = class A { constructor(...args) { } - @MyMethodDecorator method(...args) { } -} -@MyClassDecorator -class B { +}; +__decorate([ + MyMethodDecorator, + __metadata("design:type", Function), + __metadata("design:paramtypes", [Object]), + __metadata("design:returntype", void 0) +], A.prototype, "method", null); +A = __decorate([ + MyClassDecorator, + __metadata("design:paramtypes", [Object]) +], A); +let B = class B { constructor(...args) { } - @MyMethodDecorator method(...args) { } -} +}; +__decorate([ + MyMethodDecorator, + __metadata("design:type", Function), + __metadata("design:paramtypes", [String]), + __metadata("design:returntype", void 0) +], B.prototype, "method", null); +B = __decorate([ + MyClassDecorator, + __metadata("design:paramtypes", [Number]) +], B); diff --git a/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_restArgs.js.diff b/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_restArgs.js.diff deleted file mode 100644 index cf3e674a5..000000000 --- a/testdata/baselines/reference/submodule/compiler/emitDecoratorMetadata_restArgs.js.diff +++ /dev/null @@ -1,55 +0,0 @@ ---- old.emitDecoratorMetadata_restArgs.js -+++ new.emitDecoratorMetadata_restArgs.js -@@= skipped -19, +19 lines =@@ - - - //// [emitDecoratorMetadata_restArgs.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; --let A = class A { -- constructor(...args) { } -- method(...args) { } --}; --__decorate([ -- MyMethodDecorator, -- __metadata("design:type", Function), -- __metadata("design:paramtypes", [Object]), -- __metadata("design:returntype", void 0) --], A.prototype, "method", null); --A = __decorate([ -- MyClassDecorator, -- __metadata("design:paramtypes", [Object]) --], A); --let B = class B { -- constructor(...args) { } -- method(...args) { } --}; --__decorate([ -- MyMethodDecorator, -- __metadata("design:type", Function), -- __metadata("design:paramtypes", [String]), -- __metadata("design:returntype", void 0) --], B.prototype, "method", null); --B = __decorate([ -- MyClassDecorator, -- __metadata("design:paramtypes", [Number]) --], B); -+@MyClassDecorator -+class A { -+ constructor(...args) { } -+ @MyMethodDecorator -+ method(...args) { } -+} -+@MyClassDecorator -+class B { -+ constructor(...args) { } -+ @MyMethodDecorator -+ method(...args) { } -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=commonjs).js b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=commonjs).js index 08abaa3d8..2bf5641f4 100644 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=commonjs).js +++ b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=commonjs).js @@ -11,11 +11,19 @@ const y = { ...o }; //// [a.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.A = void 0; -@dec -class A { -} +let A = class A { +}; exports.A = A; +exports.A = A = __decorate([ + dec +], A); const o = { a: 1 }; const y = Object.assign({}, o); diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=commonjs).js.diff b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=commonjs).js.diff deleted file mode 100644 index 0f8491c6d..000000000 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=commonjs).js.diff +++ /dev/null @@ -1,25 +0,0 @@ ---- old.emitHelpersWithLocalCollisions(module=commonjs).js -+++ new.emitHelpersWithLocalCollisions(module=commonjs).js -@@= skipped -10, +10 lines =@@ - - //// [a.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.A = void 0; --let A = class A { --}; -+@dec -+class A { -+} - exports.A = A; --exports.A = A = __decorate([ -- dec --], A); - const o = { a: 1 }; - const y = Object.assign({}, o); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=es2020).js b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=es2020).js index 42e35b59c..47204b7a7 100644 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=es2020).js +++ b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=es2020).js @@ -10,8 +10,17 @@ const y = { ...o }; //// [a.js] -@dec -export class A { -} +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let A = class A { +}; +A = __decorate([ + dec +], A); +export { A }; const o = { a: 1 }; const y = Object.assign({}, o); diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=es2020).js.diff b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=es2020).js.diff deleted file mode 100644 index 3232c6057..000000000 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=es2020).js.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- old.emitHelpersWithLocalCollisions(module=es2020).js -+++ new.emitHelpersWithLocalCollisions(module=es2020).js -@@= skipped -9, +9 lines =@@ - - - //// [a.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --let A = class A { --}; --A = __decorate([ -- dec --], A); --export { A }; -+@dec -+export class A { -+} - const o = { a: 1 }; - const y = Object.assign({}, o); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=es2022).js b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=es2022).js index 42e35b59c..47204b7a7 100644 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=es2022).js +++ b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=es2022).js @@ -10,8 +10,17 @@ const y = { ...o }; //// [a.js] -@dec -export class A { -} +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let A = class A { +}; +A = __decorate([ + dec +], A); +export { A }; const o = { a: 1 }; const y = Object.assign({}, o); diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=es2022).js.diff b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=es2022).js.diff deleted file mode 100644 index 8254c062a..000000000 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=es2022).js.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- old.emitHelpersWithLocalCollisions(module=es2022).js -+++ new.emitHelpersWithLocalCollisions(module=es2022).js -@@= skipped -9, +9 lines =@@ - - - //// [a.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --let A = class A { --}; --A = __decorate([ -- dec --], A); --export { A }; -+@dec -+export class A { -+} - const o = { a: 1 }; - const y = Object.assign({}, o); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=es6).js b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=es6).js index 42e35b59c..47204b7a7 100644 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=es6).js +++ b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=es6).js @@ -10,8 +10,17 @@ const y = { ...o }; //// [a.js] -@dec -export class A { -} +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let A = class A { +}; +A = __decorate([ + dec +], A); +export { A }; const o = { a: 1 }; const y = Object.assign({}, o); diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=es6).js.diff b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=es6).js.diff deleted file mode 100644 index c59af0d24..000000000 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=es6).js.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- old.emitHelpersWithLocalCollisions(module=es6).js -+++ new.emitHelpersWithLocalCollisions(module=es6).js -@@= skipped -9, +9 lines =@@ - - - //// [a.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --let A = class A { --}; --A = __decorate([ -- dec --], A); --export { A }; -+@dec -+export class A { -+} - const o = { a: 1 }; - const y = Object.assign({}, o); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=esnext).js b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=esnext).js index 42e35b59c..47204b7a7 100644 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=esnext).js +++ b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=esnext).js @@ -10,8 +10,17 @@ const y = { ...o }; //// [a.js] -@dec -export class A { -} +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let A = class A { +}; +A = __decorate([ + dec +], A); +export { A }; const o = { a: 1 }; const y = Object.assign({}, o); diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=esnext).js.diff b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=esnext).js.diff deleted file mode 100644 index e03559a83..000000000 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=esnext).js.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- old.emitHelpersWithLocalCollisions(module=esnext).js -+++ new.emitHelpersWithLocalCollisions(module=esnext).js -@@= skipped -9, +9 lines =@@ - - - //// [a.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --let A = class A { --}; --A = __decorate([ -- dec --], A); --export { A }; -+@dec -+export class A { -+} - const o = { a: 1 }; - const y = Object.assign({}, o); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node16).js b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node16).js index 08abaa3d8..2bf5641f4 100644 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node16).js +++ b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node16).js @@ -11,11 +11,19 @@ const y = { ...o }; //// [a.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.A = void 0; -@dec -class A { -} +let A = class A { +}; exports.A = A; +exports.A = A = __decorate([ + dec +], A); const o = { a: 1 }; const y = Object.assign({}, o); diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node16).js.diff b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node16).js.diff deleted file mode 100644 index 988663297..000000000 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node16).js.diff +++ /dev/null @@ -1,25 +0,0 @@ ---- old.emitHelpersWithLocalCollisions(module=node16).js -+++ new.emitHelpersWithLocalCollisions(module=node16).js -@@= skipped -10, +10 lines =@@ - - //// [a.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.A = void 0; --let A = class A { --}; -+@dec -+class A { -+} - exports.A = A; --exports.A = A = __decorate([ -- dec --], A); - const o = { a: 1 }; - const y = Object.assign({}, o); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node18).js b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node18).js index 08abaa3d8..2bf5641f4 100644 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node18).js +++ b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node18).js @@ -11,11 +11,19 @@ const y = { ...o }; //// [a.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.A = void 0; -@dec -class A { -} +let A = class A { +}; exports.A = A; +exports.A = A = __decorate([ + dec +], A); const o = { a: 1 }; const y = Object.assign({}, o); diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node18).js.diff b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node18).js.diff deleted file mode 100644 index f7e3e17ef..000000000 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node18).js.diff +++ /dev/null @@ -1,25 +0,0 @@ ---- old.emitHelpersWithLocalCollisions(module=node18).js -+++ new.emitHelpersWithLocalCollisions(module=node18).js -@@= skipped -10, +10 lines =@@ - - //// [a.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.A = void 0; --let A = class A { --}; -+@dec -+class A { -+} - exports.A = A; --exports.A = A = __decorate([ -- dec --], A); - const o = { a: 1 }; - const y = Object.assign({}, o); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node20).js b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node20).js index 08abaa3d8..2bf5641f4 100644 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node20).js +++ b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node20).js @@ -11,11 +11,19 @@ const y = { ...o }; //// [a.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.A = void 0; -@dec -class A { -} +let A = class A { +}; exports.A = A; +exports.A = A = __decorate([ + dec +], A); const o = { a: 1 }; const y = Object.assign({}, o); diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node20).js.diff b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node20).js.diff deleted file mode 100644 index cc9a2defb..000000000 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=node20).js.diff +++ /dev/null @@ -1,25 +0,0 @@ ---- old.emitHelpersWithLocalCollisions(module=node20).js -+++ new.emitHelpersWithLocalCollisions(module=node20).js -@@= skipped -10, +10 lines =@@ - - //// [a.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.A = void 0; --let A = class A { --}; -+@dec -+class A { -+} - exports.A = A; --exports.A = A = __decorate([ -- dec --], A); - const o = { a: 1 }; - const y = Object.assign({}, o); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=nodenext).js b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=nodenext).js index 08abaa3d8..2bf5641f4 100644 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=nodenext).js +++ b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=nodenext).js @@ -11,11 +11,19 @@ const y = { ...o }; //// [a.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.A = void 0; -@dec -class A { -} +let A = class A { +}; exports.A = A; +exports.A = A = __decorate([ + dec +], A); const o = { a: 1 }; const y = Object.assign({}, o); diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=nodenext).js.diff b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=nodenext).js.diff deleted file mode 100644 index 9c16969e5..000000000 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=nodenext).js.diff +++ /dev/null @@ -1,25 +0,0 @@ ---- old.emitHelpersWithLocalCollisions(module=nodenext).js -+++ new.emitHelpersWithLocalCollisions(module=nodenext).js -@@= skipped -10, +10 lines =@@ - - //// [a.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.A = void 0; --let A = class A { --}; -+@dec -+class A { -+} - exports.A = A; --exports.A = A = __decorate([ -- dec --], A); - const o = { a: 1 }; - const y = Object.assign({}, o); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=none).js b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=none).js index 42e35b59c..47204b7a7 100644 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=none).js +++ b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=none).js @@ -10,8 +10,17 @@ const y = { ...o }; //// [a.js] -@dec -export class A { -} +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let A = class A { +}; +A = __decorate([ + dec +], A); +export { A }; const o = { a: 1 }; const y = Object.assign({}, o); diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=none).js.diff b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=none).js.diff index 3ea7892d2..d453e55d4 100644 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=none).js.diff +++ b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=none).js.diff @@ -5,22 +5,21 @@ //// [a.js] -"use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; + var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.A = void 0; --let A = class A { --}; + let A = class A { + }; -exports.A = A; -exports.A = A = __decorate([ -- dec --], A); -+@dec -+export class A { -+} ++A = __decorate([ + dec + ], A); ++export { A }; const o = { a: 1 }; const y = Object.assign({}, o); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=preserve).js b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=preserve).js index 42e35b59c..47204b7a7 100644 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=preserve).js +++ b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=preserve).js @@ -10,8 +10,17 @@ const y = { ...o }; //// [a.js] -@dec -export class A { -} +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let A = class A { +}; +A = __decorate([ + dec +], A); +export { A }; const o = { a: 1 }; const y = Object.assign({}, o); diff --git a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=preserve).js.diff b/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=preserve).js.diff deleted file mode 100644 index 7c8d72d6c..000000000 --- a/testdata/baselines/reference/submodule/compiler/emitHelpersWithLocalCollisions(module=preserve).js.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- old.emitHelpersWithLocalCollisions(module=preserve).js -+++ new.emitHelpersWithLocalCollisions(module=preserve).js -@@= skipped -9, +9 lines =@@ - - - //// [a.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --let A = class A { --}; --A = __decorate([ -- dec --], A); --export { A }; -+@dec -+export class A { -+} - const o = { a: 1 }; - const y = Object.assign({}, o); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/erasableSyntaxOnly.js b/testdata/baselines/reference/submodule/compiler/erasableSyntaxOnly.js index c71bd4d2a..4d8c8fa8b 100644 --- a/testdata/baselines/reference/submodule/compiler/erasableSyntaxOnly.js +++ b/testdata/baselines/reference/submodule/compiler/erasableSyntaxOnly.js @@ -145,27 +145,27 @@ class MyClassOk { constructor(foo) { } } // Not erasable -(() => (({})))(); -(() => (({})))(); -(() => (({})))(); +(() => ({}))(); +(() => ({}))(); +(() => ({}))(); // Erasable (() => ({}))(); -(() => (({})))(); -(({})); +(() => ({}))(); +({}); // return and yield ASI function* gen() { yield 1; return 1; } // at the start of an ExpressionStatement if followed by an object literal; though I'm not sure why one would use it there -(({ foo() { } }.foo())); +({ foo() { } }.foo()); // at the start of an ExpressionStatement if followed by function keyword -((function () { }())); -((function () { })); +(function () { }()); +(function () { }); // at the start of an ExpressionStatement if followed by an anonymous class expression // note that this exact syntax currently emits invalid JS (no parenthesis added like for function above) -((class { -})); +(class { +}); //// [commonjs.cjs] "use strict"; const foo = require("./other.cjs"); diff --git a/testdata/baselines/reference/submodule/compiler/erasableSyntaxOnly.js.diff b/testdata/baselines/reference/submodule/compiler/erasableSyntaxOnly.js.diff index 96cc7ca90..a02611253 100644 --- a/testdata/baselines/reference/submodule/compiler/erasableSyntaxOnly.js.diff +++ b/testdata/baselines/reference/submodule/compiler/erasableSyntaxOnly.js.diff @@ -16,40 +16,19 @@ // No errors after this point class MyClassOk { // Not a parameter property, ok - constructor(foo) { } - } - // Not erasable --(() => ({}))(); --(() => ({}))(); --(() => ({}))(); -+(() => (({})))(); -+(() => (({})))(); -+(() => (({})))(); - // Erasable - (() => ({}))(); --(() => ({}))(); --({}); -+(() => (({})))(); -+(({})); - // return and yield ASI - function* gen() { - yield 1; - return 1; - } +@@= skipped -22, +21 lines =@@ // at the start of an ExpressionStatement if followed by an object literal; though I'm not sure why one would use it there --({ foo() { } }.foo()); -+(({ foo() { } }.foo())); + ({ foo() { } }.foo()); // at the start of an ExpressionStatement if followed by function keyword -(function () { })(); --(function () { }); -+((function () { }())); -+((function () { })); ++(function () { }()); + (function () { }); // at the start of an ExpressionStatement if followed by an anonymous class expression // note that this exact syntax currently emits invalid JS (no parenthesis added like for function above) -class { -}; -+((class { -+})); ++(class { ++}); //// [commonjs.cjs] "use strict"; const foo = require("./other.cjs"); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/experimentalDecoratorMetadataUnresolvedTypeObjectInEmit.js b/testdata/baselines/reference/submodule/compiler/experimentalDecoratorMetadataUnresolvedTypeObjectInEmit.js index 39d51d022..4d586c9b6 100644 --- a/testdata/baselines/reference/submodule/compiler/experimentalDecoratorMetadataUnresolvedTypeObjectInEmit.js +++ b/testdata/baselines/reference/submodule/compiler/experimentalDecoratorMetadataUnresolvedTypeObjectInEmit.js @@ -16,6 +16,25 @@ class Foo { //// [usage.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; +var _a, _b, _c, _d; class Foo { f(user) { } } +__decorate([ + __param(0, decorate), + __metadata("design:type", Function), + __metadata("design:paramtypes", [typeof (_d = typeof A !== "undefined" && (_a = A.B) !== void 0 && (_b = _a.C) !== void 0 && (_c = _b.D) !== void 0 && _c.E) === "function" ? _d : Object]), + __metadata("design:returntype", void 0) +], Foo.prototype, "f", null); diff --git a/testdata/baselines/reference/submodule/compiler/experimentalDecoratorMetadataUnresolvedTypeObjectInEmit.js.diff b/testdata/baselines/reference/submodule/compiler/experimentalDecoratorMetadataUnresolvedTypeObjectInEmit.js.diff deleted file mode 100644 index 131321b18..000000000 --- a/testdata/baselines/reference/submodule/compiler/experimentalDecoratorMetadataUnresolvedTypeObjectInEmit.js.diff +++ /dev/null @@ -1,28 +0,0 @@ ---- old.experimentalDecoratorMetadataUnresolvedTypeObjectInEmit.js -+++ new.experimentalDecoratorMetadataUnresolvedTypeObjectInEmit.js -@@= skipped -15, +15 lines =@@ - - - //// [usage.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; --var __param = (this && this.__param) || function (paramIndex, decorator) { -- return function (target, key) { decorator(target, key, paramIndex); } --}; --var _a, _b, _c, _d; - class Foo { - f(user) { } - } --__decorate([ -- __param(0, decorate), -- __metadata("design:type", Function), -- __metadata("design:paramtypes", [typeof (_d = typeof A !== "undefined" && (_a = A.B) !== void 0 && (_b = _a.C) !== void 0 && (_c = _b.D) !== void 0 && _c.E) === "function" ? _d : Object]), -- __metadata("design:returntype", void 0) --], Foo.prototype, "f", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/exportDefaultParenthesizeES6.js b/testdata/baselines/reference/submodule/compiler/exportDefaultParenthesizeES6.js index ec14db605..0dc16d3bf 100644 --- a/testdata/baselines/reference/submodule/compiler/exportDefaultParenthesizeES6.js +++ b/testdata/baselines/reference/submodule/compiler/exportDefaultParenthesizeES6.js @@ -4,5 +4,5 @@ export default (class Foo {} as any); //// [classexpr.js] -export default ((class Foo { -})); +export default (class Foo { +}); diff --git a/testdata/baselines/reference/submodule/compiler/exportDefaultParenthesizeES6.js.diff b/testdata/baselines/reference/submodule/compiler/exportDefaultParenthesizeES6.js.diff deleted file mode 100644 index 725ac8548..000000000 --- a/testdata/baselines/reference/submodule/compiler/exportDefaultParenthesizeES6.js.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- old.exportDefaultParenthesizeES6.js -+++ new.exportDefaultParenthesizeES6.js -@@= skipped -3, +3 lines =@@ - export default (class Foo {} as any); - - //// [classexpr.js] --export default (class Foo { --}); -+export default ((class Foo { -+})); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importHelpers.js b/testdata/baselines/reference/submodule/compiler/importHelpers.js index 3f818f167..89b1584b8 100644 --- a/testdata/baselines/reference/submodule/compiler/importHelpers.js +++ b/testdata/baselines/reference/submodule/compiler/importHelpers.js @@ -50,31 +50,60 @@ export declare function __makeTemplateObject(cooked: string[], raw: string[]): T "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.result = exports.B = exports.A = void 0; +const tslib_1 = require("tslib"); class A { } exports.A = A; class B extends A { } exports.B = B; -@dec -class C { +let C = class C { method(x) { } -} +}; +tslib_1.__decorate([ + tslib_1.__param(0, dec), + tslib_1.__metadata("design:type", Function), + tslib_1.__metadata("design:paramtypes", [Number]), + tslib_1.__metadata("design:returntype", void 0) +], C.prototype, "method", null); +C = tslib_1.__decorate([ + dec +], C); function id(x) { return x; } exports.result = id `hello world`; //// [script.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; class A { } class B extends A { } -@dec -class C { +let C = class C { method(x) { } -} +}; +__decorate([ + __param(0, dec), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Number]), + __metadata("design:returntype", void 0) +], C.prototype, "method", null); +C = __decorate([ + dec +], C); function id(x) { return x; } diff --git a/testdata/baselines/reference/submodule/compiler/importHelpers.js.diff b/testdata/baselines/reference/submodule/compiler/importHelpers.js.diff deleted file mode 100644 index 91026ef13..000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpers.js.diff +++ /dev/null @@ -1,69 +0,0 @@ ---- old.importHelpers.js -+++ new.importHelpers.js -@@= skipped -49, +49 lines =@@ - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.result = exports.B = exports.A = void 0; --const tslib_1 = require("tslib"); - class A { - } - exports.A = A; - class B extends A { - } - exports.B = B; --let C = class C { -+@dec -+class C { - method(x) { - } --}; --tslib_1.__decorate([ -- tslib_1.__param(0, dec), -- tslib_1.__metadata("design:type", Function), -- tslib_1.__metadata("design:paramtypes", [Number]), -- tslib_1.__metadata("design:returntype", void 0) --], C.prototype, "method", null); --C = tslib_1.__decorate([ -- dec --], C); -+} - function id(x) { - return x; - } - exports.result = id `hello world`; - //// [script.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; --var __param = (this && this.__param) || function (paramIndex, decorator) { -- return function (target, key) { decorator(target, key, paramIndex); } --}; - class A { - } - class B extends A { - } --let C = class C { -+@dec -+class C { - method(x) { - } --}; --__decorate([ -- __param(0, dec), -- __metadata("design:type", Function), -- __metadata("design:paramtypes", [Number]), -- __metadata("design:returntype", void 0) --], C.prototype, "method", null); --C = __decorate([ -- dec --], C); -+} - function id(x) { - return x; - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersES6.js b/testdata/baselines/reference/submodule/compiler/importHelpersES6.js index 6d03b088f..ca5e5d874 100644 --- a/testdata/baselines/reference/submodule/compiler/importHelpersES6.js +++ b/testdata/baselines/reference/submodule/compiler/importHelpersES6.js @@ -23,11 +23,15 @@ export declare function __classPrivateFieldIn(a: any, b: any): boolean; //// [a.js] -@dec -export class A { +import { __decorate } from "tslib"; +let A = class A { #x = 1; async f() { this.#x = await this.#x; } g(u) { return #x in u; } -} +}; +A = __decorate([ + dec +], A); +export { A }; const o = { a: 1 }; const y = Object.assign({}, o); diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersES6.js.diff b/testdata/baselines/reference/submodule/compiler/importHelpersES6.js.diff index 215060a0d..9086b54ce 100644 --- a/testdata/baselines/reference/submodule/compiler/importHelpersES6.js.diff +++ b/testdata/baselines/reference/submodule/compiler/importHelpersES6.js.diff @@ -6,7 +6,8 @@ //// [a.js] -var _A_x; -import { __awaiter, __classPrivateFieldGet, __classPrivateFieldIn, __classPrivateFieldSet, __decorate } from "tslib"; --let A = class A { ++import { __decorate } from "tslib"; + let A = class A { - constructor() { - _A_x.set(this, 1); - } @@ -14,17 +15,11 @@ - return __awaiter(this, void 0, void 0, function* () { __classPrivateFieldSet(this, _A_x, yield __classPrivateFieldGet(this, _A_x, "f"), "f"); }); - } - g(u) { return __classPrivateFieldIn(_A_x, u); } --}; --_A_x = new WeakMap(); --A = __decorate([ -- dec --], A); --export { A }; -+@dec -+export class A { + #x = 1; + async f() { this.#x = await this.#x; } + g(u) { return #x in u; } -+} - const o = { a: 1 }; - const y = Object.assign({}, o); \ No newline at end of file + }; +-_A_x = new WeakMap(); + A = __decorate([ + dec + ], A); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersInIsolatedModules.js b/testdata/baselines/reference/submodule/compiler/importHelpersInIsolatedModules.js index c38d01d11..228f0c6ab 100644 --- a/testdata/baselines/reference/submodule/compiler/importHelpersInIsolatedModules.js +++ b/testdata/baselines/reference/submodule/compiler/importHelpersInIsolatedModules.js @@ -37,24 +37,53 @@ export declare function __awaiter(thisArg: any, _arguments: any, P: Function, ge "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.B = exports.A = void 0; +const tslib_1 = require("tslib"); class A { } exports.A = A; class B extends A { } exports.B = B; -@dec -class C { +let C = class C { method(x) { } -} +}; +tslib_1.__decorate([ + tslib_1.__param(0, dec), + tslib_1.__metadata("design:type", Function), + tslib_1.__metadata("design:paramtypes", [Number]), + tslib_1.__metadata("design:returntype", void 0) +], C.prototype, "method", null); +C = tslib_1.__decorate([ + dec +], C); //// [script.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; class A { } class B extends A { } -@dec -class C { +let C = class C { method(x) { } -} +}; +__decorate([ + __param(0, dec), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Number]), + __metadata("design:returntype", void 0) +], C.prototype, "method", null); +C = __decorate([ + dec +], C); diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersInIsolatedModules.js.diff b/testdata/baselines/reference/submodule/compiler/importHelpersInIsolatedModules.js.diff deleted file mode 100644 index db0ab0c55..000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersInIsolatedModules.js.diff +++ /dev/null @@ -1,62 +0,0 @@ ---- old.importHelpersInIsolatedModules.js -+++ new.importHelpersInIsolatedModules.js -@@= skipped -36, +36 lines =@@ - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.B = exports.A = void 0; --const tslib_1 = require("tslib"); - class A { - } - exports.A = A; - class B extends A { - } - exports.B = B; --let C = class C { -+@dec -+class C { - method(x) { - } --}; --tslib_1.__decorate([ -- tslib_1.__param(0, dec), -- tslib_1.__metadata("design:type", Function), -- tslib_1.__metadata("design:paramtypes", [Number]), -- tslib_1.__metadata("design:returntype", void 0) --], C.prototype, "method", null); --C = tslib_1.__decorate([ -- dec --], C); -+} - //// [script.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; --var __param = (this && this.__param) || function (paramIndex, decorator) { -- return function (target, key) { decorator(target, key, paramIndex); } --}; - class A { - } - class B extends A { - } --let C = class C { -+@dec -+class C { - method(x) { - } --}; --__decorate([ -- __param(0, dec), -- __metadata("design:type", Function), -- __metadata("design:paramtypes", [Number]), -- __metadata("design:returntype", void 0) --], C.prototype, "method", null); --C = __decorate([ -- dec --], C); -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithLocalCollisions(module=commonjs).js b/testdata/baselines/reference/submodule/compiler/importHelpersWithLocalCollisions(module=commonjs).js index cc1242f52..d0149baff 100644 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithLocalCollisions(module=commonjs).js +++ b/testdata/baselines/reference/submodule/compiler/importHelpersWithLocalCollisions(module=commonjs).js @@ -21,9 +21,12 @@ export declare function __awaiter(thisArg: any, _arguments: any, P: Function, ge "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.A = void 0; -@dec -class A { -} +const tslib_1 = require("tslib"); +let A = class A { +}; exports.A = A; +exports.A = A = tslib_1.__decorate([ + dec +], A); const o = { a: 1 }; const y = Object.assign({}, o); diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithLocalCollisions(module=commonjs).js.diff b/testdata/baselines/reference/submodule/compiler/importHelpersWithLocalCollisions(module=commonjs).js.diff deleted file mode 100644 index c8299bf09..000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithLocalCollisions(module=commonjs).js.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.importHelpersWithLocalCollisions(module=commonjs).js -+++ new.importHelpersWithLocalCollisions(module=commonjs).js -@@= skipped -20, +20 lines =@@ - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.A = void 0; --const tslib_1 = require("tslib"); --let A = class A { --}; -+@dec -+class A { -+} - exports.A = A; --exports.A = A = tslib_1.__decorate([ -- dec --], A); - const o = { a: 1 }; - const y = Object.assign({}, o); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithLocalCollisions(module=es2015).js b/testdata/baselines/reference/submodule/compiler/importHelpersWithLocalCollisions(module=es2015).js index 8f7015dcd..a974a5de5 100644 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithLocalCollisions(module=es2015).js +++ b/testdata/baselines/reference/submodule/compiler/importHelpersWithLocalCollisions(module=es2015).js @@ -18,8 +18,12 @@ export declare function __awaiter(thisArg: any, _arguments: any, P: Function, ge //// [a.js] -@dec -export class A { -} +import { __decorate as __decorate_1 } from "tslib"; +let A = class A { +}; +A = __decorate_1([ + dec +], A); +export { A }; const o = { a: 1 }; const y = Object.assign({}, o); diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersWithLocalCollisions(module=es2015).js.diff b/testdata/baselines/reference/submodule/compiler/importHelpersWithLocalCollisions(module=es2015).js.diff deleted file mode 100644 index 1472b1bae..000000000 --- a/testdata/baselines/reference/submodule/compiler/importHelpersWithLocalCollisions(module=es2015).js.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.importHelpersWithLocalCollisions(module=es2015).js -+++ new.importHelpersWithLocalCollisions(module=es2015).js -@@= skipped -17, +17 lines =@@ - - - //// [a.js] --import { __decorate as __decorate_1 } from "tslib"; --let A = class A { --}; --A = __decorate_1([ -- dec --], A); --export { A }; -+@dec -+export class A { -+} - const o = { a: 1 }; - const y = Object.assign({}, o); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/metadataImportType.js b/testdata/baselines/reference/submodule/compiler/metadataImportType.js index 39e1d4554..f2c764427 100644 --- a/testdata/baselines/reference/submodule/compiler/metadataImportType.js +++ b/testdata/baselines/reference/submodule/compiler/metadataImportType.js @@ -8,10 +8,22 @@ export class A { //// [metadataImportType.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.A = void 0; class A { - @test b; } exports.A = A; +__decorate([ + test, + __metadata("design:type", Object) +], A.prototype, "b", void 0); diff --git a/testdata/baselines/reference/submodule/compiler/metadataImportType.js.diff b/testdata/baselines/reference/submodule/compiler/metadataImportType.js.diff index f05c15a7a..8252d2dfb 100644 --- a/testdata/baselines/reference/submodule/compiler/metadataImportType.js.diff +++ b/testdata/baselines/reference/submodule/compiler/metadataImportType.js.diff @@ -1,26 +1,10 @@ --- old.metadataImportType.js +++ new.metadataImportType.js -@@= skipped -7, +7 lines =@@ - - //// [metadataImportType.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; +@@= skipped -19, +19 lines =@@ Object.defineProperty(exports, "__esModule", { value: true }); exports.A = void 0; class A { -+ @test + b; } exports.A = A; --__decorate([ -- test, -- __metadata("design:type", Object) --], A.prototype, "b", void 0); \ No newline at end of file + __decorate([ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/metadataOfClassFromAlias.js b/testdata/baselines/reference/submodule/compiler/metadataOfClassFromAlias.js index 162de7656..3e2a4103f 100644 --- a/testdata/baselines/reference/submodule/compiler/metadataOfClassFromAlias.js +++ b/testdata/baselines/reference/submodule/compiler/metadataOfClassFromAlias.js @@ -24,13 +24,26 @@ class SomeClass { exports.SomeClass = SomeClass; //// [test.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.ClassA = void 0; +const auxiliry_1 = require("./auxiliry"); function annotation() { return (target) => { }; } class ClassA { - @annotation() array; } exports.ClassA = ClassA; +__decorate([ + annotation(), + __metadata("design:type", auxiliry_1.SomeClass) +], ClassA.prototype, "array", void 0); diff --git a/testdata/baselines/reference/submodule/compiler/metadataOfClassFromAlias.js.diff b/testdata/baselines/reference/submodule/compiler/metadataOfClassFromAlias.js.diff index dae54a6ec..ef945d7ca 100644 --- a/testdata/baselines/reference/submodule/compiler/metadataOfClassFromAlias.js.diff +++ b/testdata/baselines/reference/submodule/compiler/metadataOfClassFromAlias.js.diff @@ -8,28 +8,11 @@ } exports.SomeClass = SomeClass; //// [test.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.ClassA = void 0; --const auxiliry_1 = require("./auxiliry"); - function annotation() { +@@= skipped -20, +21 lines =@@ return (target) => { }; } class ClassA { -+ @annotation() + array; } exports.ClassA = ClassA; --__decorate([ -- annotation(), -- __metadata("design:type", auxiliry_1.SomeClass) --], ClassA.prototype, "array", void 0); \ No newline at end of file + __decorate([ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/metadataOfClassFromAlias2.js b/testdata/baselines/reference/submodule/compiler/metadataOfClassFromAlias2.js index 242caf642..906f4e9d0 100644 --- a/testdata/baselines/reference/submodule/compiler/metadataOfClassFromAlias2.js +++ b/testdata/baselines/reference/submodule/compiler/metadataOfClassFromAlias2.js @@ -24,13 +24,25 @@ class SomeClass { exports.SomeClass = SomeClass; //// [test.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.ClassA = void 0; function annotation() { return (target) => { }; } class ClassA { - @annotation() array; } exports.ClassA = ClassA; +__decorate([ + annotation(), + __metadata("design:type", Object) +], ClassA.prototype, "array", void 0); diff --git a/testdata/baselines/reference/submodule/compiler/metadataOfClassFromAlias2.js.diff b/testdata/baselines/reference/submodule/compiler/metadataOfClassFromAlias2.js.diff index 404cf64ff..22fc85e75 100644 --- a/testdata/baselines/reference/submodule/compiler/metadataOfClassFromAlias2.js.diff +++ b/testdata/baselines/reference/submodule/compiler/metadataOfClassFromAlias2.js.diff @@ -8,27 +8,11 @@ } exports.SomeClass = SomeClass; //// [test.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.ClassA = void 0; - function annotation() { +@@= skipped -19, +20 lines =@@ return (target) => { }; } class ClassA { -+ @annotation() + array; } exports.ClassA = ClassA; --__decorate([ -- annotation(), -- __metadata("design:type", Object) --], ClassA.prototype, "array", void 0); \ No newline at end of file + __decorate([ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/metadataOfClassFromModule.js b/testdata/baselines/reference/submodule/compiler/metadataOfClassFromModule.js index bd2cb2747..7a3d30ce3 100644 --- a/testdata/baselines/reference/submodule/compiler/metadataOfClassFromModule.js +++ b/testdata/baselines/reference/submodule/compiler/metadataOfClassFromModule.js @@ -14,6 +14,15 @@ module MyModule { } //// [metadataOfClassFromModule.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; var MyModule; (function (MyModule) { function inject(target, key) { } @@ -22,8 +31,11 @@ var MyModule; } MyModule.Leg = Leg; class Person { - @inject leftLeg; } + __decorate([ + inject, + __metadata("design:type", Leg) + ], Person.prototype, "leftLeg", void 0); MyModule.Person = Person; })(MyModule || (MyModule = {})); diff --git a/testdata/baselines/reference/submodule/compiler/metadataOfClassFromModule.js.diff b/testdata/baselines/reference/submodule/compiler/metadataOfClassFromModule.js.diff index aff05ea55..7756a266e 100644 --- a/testdata/baselines/reference/submodule/compiler/metadataOfClassFromModule.js.diff +++ b/testdata/baselines/reference/submodule/compiler/metadataOfClassFromModule.js.diff @@ -1,31 +1,10 @@ --- old.metadataOfClassFromModule.js +++ new.metadataOfClassFromModule.js -@@= skipped -13, +13 lines =@@ - } - - //// [metadataOfClassFromModule.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; - var MyModule; - (function (MyModule) { - function inject(target, key) { } -@@= skipped -17, +8 lines =@@ +@@= skipped -30, +30 lines =@@ } MyModule.Leg = Leg; class Person { -+ @inject + leftLeg; } -- __decorate([ -- inject, -- __metadata("design:type", Leg) -- ], Person.prototype, "leftLeg", void 0); - MyModule.Person = Person; - })(MyModule || (MyModule = {})); \ No newline at end of file + __decorate([ + inject, \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/metadataOfEventAlias.js b/testdata/baselines/reference/submodule/compiler/metadataOfEventAlias.js index f59e1e142..7eb4ea3d7 100644 --- a/testdata/baselines/reference/submodule/compiler/metadataOfEventAlias.js +++ b/testdata/baselines/reference/submodule/compiler/metadataOfEventAlias.js @@ -16,11 +16,23 @@ Object.defineProperty(exports, "__esModule", { value: true }); ; //// [test.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.SomeClass = void 0; function Input(target, key) { } class SomeClass { - @Input event; } exports.SomeClass = SomeClass; +__decorate([ + Input, + __metadata("design:type", Object) +], SomeClass.prototype, "event", void 0); diff --git a/testdata/baselines/reference/submodule/compiler/metadataOfEventAlias.js.diff b/testdata/baselines/reference/submodule/compiler/metadataOfEventAlias.js.diff index 1e803192d..64b77ae83 100644 --- a/testdata/baselines/reference/submodule/compiler/metadataOfEventAlias.js.diff +++ b/testdata/baselines/reference/submodule/compiler/metadataOfEventAlias.js.diff @@ -1,27 +1,10 @@ --- old.metadataOfEventAlias.js +++ new.metadataOfEventAlias.js -@@= skipped -15, +15 lines =@@ - ; - //// [test.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; - Object.defineProperty(exports, "__esModule", { value: true }); +@@= skipped -28, +28 lines =@@ exports.SomeClass = void 0; function Input(target, key) { } class SomeClass { -+ @Input + event; } exports.SomeClass = SomeClass; --__decorate([ -- Input, -- __metadata("design:type", Object) --], SomeClass.prototype, "event", void 0); \ No newline at end of file + __decorate([ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/metadataOfStringLiteral.js b/testdata/baselines/reference/submodule/compiler/metadataOfStringLiteral.js index fc91098b7..4edbb9a36 100644 --- a/testdata/baselines/reference/submodule/compiler/metadataOfStringLiteral.js +++ b/testdata/baselines/reference/submodule/compiler/metadataOfStringLiteral.js @@ -9,8 +9,20 @@ class Foo { } //// [metadataOfStringLiteral.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; function PropDeco(target, propKey) { } class Foo { - @PropDeco foo; } +__decorate([ + PropDeco, + __metadata("design:type", String) +], Foo.prototype, "foo", void 0); diff --git a/testdata/baselines/reference/submodule/compiler/metadataOfStringLiteral.js.diff b/testdata/baselines/reference/submodule/compiler/metadataOfStringLiteral.js.diff index 58c5d83d9..a4c26ae47 100644 --- a/testdata/baselines/reference/submodule/compiler/metadataOfStringLiteral.js.diff +++ b/testdata/baselines/reference/submodule/compiler/metadataOfStringLiteral.js.diff @@ -1,24 +1,10 @@ --- old.metadataOfStringLiteral.js +++ new.metadataOfStringLiteral.js -@@= skipped -8, +8 lines =@@ - } - - //// [metadataOfStringLiteral.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; +@@= skipped -19, +19 lines =@@ + }; function PropDeco(target, propKey) { } class Foo { -+ @PropDeco + foo; } --__decorate([ -- PropDeco, -- __metadata("design:type", String) --], Foo.prototype, "foo", void 0); \ No newline at end of file + __decorate([ + PropDeco, \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/metadataOfUnion.js b/testdata/baselines/reference/submodule/compiler/metadataOfUnion.js index c236713f7..715293a5f 100644 --- a/testdata/baselines/reference/submodule/compiler/metadataOfUnion.js +++ b/testdata/baselines/reference/submodule/compiler/metadataOfUnion.js @@ -39,17 +39,35 @@ class D { } //// [metadataOfUnion.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; function PropDeco(target, propKey) { } class A { } class B { - @PropDeco x; - @PropDeco y; - @PropDeco z; } +__decorate([ + PropDeco, + __metadata("design:type", Object) +], B.prototype, "x", void 0); +__decorate([ + PropDeco, + __metadata("design:type", Boolean) +], B.prototype, "y", void 0); +__decorate([ + PropDeco, + __metadata("design:type", Object) +], B.prototype, "z", void 0); var E; (function (E) { E[E["A"] = 0] = "A"; @@ -58,12 +76,24 @@ var E; E[E["D"] = 3] = "D"; })(E || (E = {})); class D { - @PropDeco a; - @PropDeco b; - @PropDeco c; - @PropDeco d; } +__decorate([ + PropDeco, + __metadata("design:type", Number) +], D.prototype, "a", void 0); +__decorate([ + PropDeco, + __metadata("design:type", Number) +], D.prototype, "b", void 0); +__decorate([ + PropDeco, + __metadata("design:type", Number) +], D.prototype, "c", void 0); +__decorate([ + PropDeco, + __metadata("design:type", Number) +], D.prototype, "d", void 0); diff --git a/testdata/baselines/reference/submodule/compiler/metadataOfUnion.js.diff b/testdata/baselines/reference/submodule/compiler/metadataOfUnion.js.diff index 4c8ba5ce3..e3e05c5e4 100644 --- a/testdata/baselines/reference/submodule/compiler/metadataOfUnion.js.diff +++ b/testdata/baselines/reference/submodule/compiler/metadataOfUnion.js.diff @@ -1,70 +1,23 @@ --- old.metadataOfUnion.js +++ new.metadataOfUnion.js -@@= skipped -38, +38 lines =@@ - } - - //// [metadataOfUnion.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; - function PropDeco(target, propKey) { } +@@= skipped -51, +51 lines =@@ class A { } class B { -+ @PropDeco + x; -+ @PropDeco + y; -+ @PropDeco + z; } --__decorate([ -- PropDeco, -- __metadata("design:type", Object) --], B.prototype, "x", void 0); --__decorate([ -- PropDeco, -- __metadata("design:type", Boolean) --], B.prototype, "y", void 0); --__decorate([ -- PropDeco, -- __metadata("design:type", Object) --], B.prototype, "z", void 0); - var E; - (function (E) { - E[E["A"] = 0] = "A"; -@@= skipped -34, +19 lines =@@ + __decorate([ + PropDeco, +@@= skipped -21, +24 lines =@@ E[E["D"] = 3] = "D"; })(E || (E = {})); class D { -+ @PropDeco + a; -+ @PropDeco + b; -+ @PropDeco + c; -+ @PropDeco + d; } --__decorate([ -- PropDeco, -- __metadata("design:type", Number) --], D.prototype, "a", void 0); --__decorate([ -- PropDeco, -- __metadata("design:type", Number) --], D.prototype, "b", void 0); --__decorate([ -- PropDeco, -- __metadata("design:type", Number) --], D.prototype, "c", void 0); --__decorate([ -- PropDeco, -- __metadata("design:type", Number) --], D.prototype, "d", void 0); \ No newline at end of file + __decorate([ + PropDeco, \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/metadataOfUnionWithNull.js b/testdata/baselines/reference/submodule/compiler/metadataOfUnionWithNull.js index d6a6d935c..33edabad3 100644 --- a/testdata/baselines/reference/submodule/compiler/metadataOfUnionWithNull.js +++ b/testdata/baselines/reference/submodule/compiler/metadataOfUnionWithNull.js @@ -45,32 +45,77 @@ class B { } //// [metadataOfUnionWithNull.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; function PropDeco(target, propKey) { } class A { } class B { - @PropDeco x; - @PropDeco y; - @PropDeco z; - @PropDeco a; - @PropDeco b; - @PropDeco c; - @PropDeco d; - @PropDeco e; - @PropDeco f; - @PropDeco g; - @PropDeco h; - @PropDeco j; } +__decorate([ + PropDeco, + __metadata("design:type", String) +], B.prototype, "x", void 0); +__decorate([ + PropDeco, + __metadata("design:type", Boolean) +], B.prototype, "y", void 0); +__decorate([ + PropDeco, + __metadata("design:type", String) +], B.prototype, "z", void 0); +__decorate([ + PropDeco, + __metadata("design:type", void 0) +], B.prototype, "a", void 0); +__decorate([ + PropDeco, + __metadata("design:type", void 0) +], B.prototype, "b", void 0); +__decorate([ + PropDeco, + __metadata("design:type", void 0) +], B.prototype, "c", void 0); +__decorate([ + PropDeco, + __metadata("design:type", void 0) +], B.prototype, "d", void 0); +__decorate([ + PropDeco, + __metadata("design:type", Symbol) +], B.prototype, "e", void 0); +__decorate([ + PropDeco, + __metadata("design:type", Object) +], B.prototype, "f", void 0); +__decorate([ + PropDeco, + __metadata("design:type", A) +], B.prototype, "g", void 0); +__decorate([ + PropDeco, + __metadata("design:type", B) +], B.prototype, "h", void 0); +__decorate([ + PropDeco, + __metadata("design:type", Symbol) +], B.prototype, "j", void 0); diff --git a/testdata/baselines/reference/submodule/compiler/metadataOfUnionWithNull.js.diff b/testdata/baselines/reference/submodule/compiler/metadataOfUnionWithNull.js.diff index 3b4d9611a..d31c858da 100644 --- a/testdata/baselines/reference/submodule/compiler/metadataOfUnionWithNull.js.diff +++ b/testdata/baselines/reference/submodule/compiler/metadataOfUnionWithNull.js.diff @@ -1,92 +1,21 @@ --- old.metadataOfUnionWithNull.js +++ new.metadataOfUnionWithNull.js -@@= skipped -44, +44 lines =@@ - } - - //// [metadataOfUnionWithNull.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; - function PropDeco(target, propKey) { } +@@= skipped -57, +57 lines =@@ class A { } class B { -+ @PropDeco + x; -+ @PropDeco + y; -+ @PropDeco + z; -+ @PropDeco + a; -+ @PropDeco + b; -+ @PropDeco + c; -+ @PropDeco + d; -+ @PropDeco + e; -+ @PropDeco + f; -+ @PropDeco + g; -+ @PropDeco + h; -+ @PropDeco + j; } --__decorate([ -- PropDeco, -- __metadata("design:type", String) --], B.prototype, "x", void 0); --__decorate([ -- PropDeco, -- __metadata("design:type", Boolean) --], B.prototype, "y", void 0); --__decorate([ -- PropDeco, -- __metadata("design:type", String) --], B.prototype, "z", void 0); --__decorate([ -- PropDeco, -- __metadata("design:type", void 0) --], B.prototype, "a", void 0); --__decorate([ -- PropDeco, -- __metadata("design:type", void 0) --], B.prototype, "b", void 0); --__decorate([ -- PropDeco, -- __metadata("design:type", void 0) --], B.prototype, "c", void 0); --__decorate([ -- PropDeco, -- __metadata("design:type", void 0) --], B.prototype, "d", void 0); --__decorate([ -- PropDeco, -- __metadata("design:type", Symbol) --], B.prototype, "e", void 0); --__decorate([ -- PropDeco, -- __metadata("design:type", Object) --], B.prototype, "f", void 0); --__decorate([ -- PropDeco, -- __metadata("design:type", A) --], B.prototype, "g", void 0); --__decorate([ -- PropDeco, -- __metadata("design:type", B) --], B.prototype, "h", void 0); --__decorate([ -- PropDeco, -- __metadata("design:type", Symbol) --], B.prototype, "j", void 0); \ No newline at end of file + __decorate([ + PropDeco, \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/metadataReferencedWithinFilteredUnion.js b/testdata/baselines/reference/submodule/compiler/metadataReferencedWithinFilteredUnion.js index 894380752..14b3b09ba 100644 --- a/testdata/baselines/reference/submodule/compiler/metadataReferencedWithinFilteredUnion.js +++ b/testdata/baselines/reference/submodule/compiler/metadataReferencedWithinFilteredUnion.js @@ -25,14 +25,28 @@ class Class1 { exports.Class1 = Class1; //// [Class2.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.Class2 = void 0; +const Class1_1 = require("./Class1"); function decorate(target, propertyKey) { } class Class2 { - @decorate get prop() { return undefined; } } exports.Class2 = Class2; +__decorate([ + decorate, + __metadata("design:type", Class1_1.Class1), + __metadata("design:paramtypes", []) +], Class2.prototype, "prop", null); diff --git a/testdata/baselines/reference/submodule/compiler/metadataReferencedWithinFilteredUnion.js.diff b/testdata/baselines/reference/submodule/compiler/metadataReferencedWithinFilteredUnion.js.diff deleted file mode 100644 index 0d00080eb..000000000 --- a/testdata/baselines/reference/submodule/compiler/metadataReferencedWithinFilteredUnion.js.diff +++ /dev/null @@ -1,32 +0,0 @@ ---- old.metadataReferencedWithinFilteredUnion.js -+++ new.metadataReferencedWithinFilteredUnion.js -@@= skipped -24, +24 lines =@@ - exports.Class1 = Class1; - //// [Class2.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.Class2 = void 0; --const Class1_1 = require("./Class1"); - function decorate(target, propertyKey) { - } - class Class2 { -+ @decorate - get prop() { - return undefined; - } - } - exports.Class2 = Class2; --__decorate([ -- decorate, -- __metadata("design:type", Class1_1.Class1), -- __metadata("design:paramtypes", []) --], Class2.prototype, "prop", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/narrowingWithNonNullExpression.js b/testdata/baselines/reference/submodule/compiler/narrowingWithNonNullExpression.js index 6a5aba6f2..91cf36c63 100644 --- a/testdata/baselines/reference/submodule/compiler/narrowingWithNonNullExpression.js +++ b/testdata/baselines/reference/submodule/compiler/narrowingWithNonNullExpression.js @@ -9,4 +9,4 @@ m?.[0]! && m[0]; //// [narrowingWithNonNullExpression.js] const m = ''.match(''); m && m[0]; -((m === null || m === void 0 ? void 0 : m[0])) && m[0]; +(m === null || m === void 0 ? void 0 : m[0]) && m[0]; diff --git a/testdata/baselines/reference/submodule/compiler/narrowingWithNonNullExpression.js.diff b/testdata/baselines/reference/submodule/compiler/narrowingWithNonNullExpression.js.diff deleted file mode 100644 index d174751e1..000000000 --- a/testdata/baselines/reference/submodule/compiler/narrowingWithNonNullExpression.js.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- old.narrowingWithNonNullExpression.js -+++ new.narrowingWithNonNullExpression.js -@@= skipped -8, +8 lines =@@ - //// [narrowingWithNonNullExpression.js] - const m = ''.match(''); - m && m[0]; --(m === null || m === void 0 ? void 0 : m[0]) && m[0]; -+((m === null || m === void 0 ? void 0 : m[0])) && m[0]; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/noEmitHelpers2.js b/testdata/baselines/reference/submodule/compiler/noEmitHelpers2.js index 727d0f229..4843574cf 100644 --- a/testdata/baselines/reference/submodule/compiler/noEmitHelpers2.js +++ b/testdata/baselines/reference/submodule/compiler/noEmitHelpers2.js @@ -10,8 +10,12 @@ class A { } //// [noEmitHelpers2.js] -@decorator -class A { +let A = class A { constructor(a, b) { } -} +}; +A = __decorate([ + decorator, + __param(1, decorator), + __metadata("design:paramtypes", [Number, String]) +], A); diff --git a/testdata/baselines/reference/submodule/compiler/noEmitHelpers2.js.diff b/testdata/baselines/reference/submodule/compiler/noEmitHelpers2.js.diff deleted file mode 100644 index b61371e0d..000000000 --- a/testdata/baselines/reference/submodule/compiler/noEmitHelpers2.js.diff +++ /dev/null @@ -1,18 +0,0 @@ ---- old.noEmitHelpers2.js -+++ new.noEmitHelpers2.js -@@= skipped -9, +9 lines =@@ - } - - //// [noEmitHelpers2.js] --let A = class A { -+@decorator -+class A { - constructor(a, b) { - } --}; --A = __decorate([ -- decorator, -- __param(1, decorator), -- __metadata("design:paramtypes", [Number, String]) --], A); -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/noImplicitAnyInCastExpression.js b/testdata/baselines/reference/submodule/compiler/noImplicitAnyInCastExpression.js index 564f12939..b6f7a7672 100644 --- a/testdata/baselines/reference/submodule/compiler/noImplicitAnyInCastExpression.js +++ b/testdata/baselines/reference/submodule/compiler/noImplicitAnyInCastExpression.js @@ -20,8 +20,8 @@ interface IFoo { //// [noImplicitAnyInCastExpression.js] // verify no noImplictAny errors reported with cast expression // Expr type not assignable to target type -(({ a: null })); +({ a: null }); // Expr type assignable to target type -(({ a: 2, b: undefined })); +({ a: 2, b: undefined }); // Neither types is assignable to each other -(({ c: null })); +({ c: null }); diff --git a/testdata/baselines/reference/submodule/compiler/noImplicitAnyInCastExpression.js.diff b/testdata/baselines/reference/submodule/compiler/noImplicitAnyInCastExpression.js.diff deleted file mode 100644 index 6b86be548..000000000 --- a/testdata/baselines/reference/submodule/compiler/noImplicitAnyInCastExpression.js.diff +++ /dev/null @@ -1,14 +0,0 @@ ---- old.noImplicitAnyInCastExpression.js -+++ new.noImplicitAnyInCastExpression.js -@@= skipped -19, +19 lines =@@ - //// [noImplicitAnyInCastExpression.js] - // verify no noImplictAny errors reported with cast expression - // Expr type not assignable to target type --({ a: null }); -+(({ a: null })); - // Expr type assignable to target type --({ a: 2, b: undefined }); -+(({ a: 2, b: undefined })); - // Neither types is assignable to each other --({ c: null }); -+(({ c: null })); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/numberLiteralsWithLeadingZeros.js b/testdata/baselines/reference/submodule/compiler/numberLiteralsWithLeadingZeros.js index 0efab2fae..6b2ba1a3e 100644 --- a/testdata/baselines/reference/submodule/compiler/numberLiteralsWithLeadingZeros.js +++ b/testdata/baselines/reference/submodule/compiler/numberLiteralsWithLeadingZeros.js @@ -119,13 +119,13 @@ e5; 850000; 850000; 0; -.5_5; +0.55; 0; -.5_5; +0.55; 1; -.5_5; +0.55; 1; -.5_5; +0.55; 8.55; 8.55; 0; @@ -139,13 +139,13 @@ e5_5; 8e+55; 8e+55; 0; -.5_5e5_5; +5.5e+54; 0; -.5_5e5_5; +5.5e+54; 1; -.5_5e5_5; +5.5e+54; 1; -.5_5e5_5; +5.5e+54; 8.55e+55; 8.55e+55; 0.55; diff --git a/testdata/baselines/reference/submodule/compiler/numberLiteralsWithLeadingZeros.js.diff b/testdata/baselines/reference/submodule/compiler/numberLiteralsWithLeadingZeros.js.diff deleted file mode 100644 index 9f600ead9..000000000 --- a/testdata/baselines/reference/submodule/compiler/numberLiteralsWithLeadingZeros.js.diff +++ /dev/null @@ -1,63 +0,0 @@ ---- old.numberLiteralsWithLeadingZeros.js -+++ new.numberLiteralsWithLeadingZeros.js -@@= skipped -118, +118 lines =@@ - 850000; - 850000; - 0; --0.55; --0; --0.55; --1; --0.55; --1; --0.55; --8.55; --8.55; --0; --e5_5; --0; --e5_5; --1; --e5_5; --1; --e5_5; --8e+55; --8e+55; --0; --5.5e+54; --0; --5.5e+54; --1; --5.5e+54; --1; --5.5e+54; -+.5_5; -+0; -+.5_5; -+1; -+.5_5; -+1; -+.5_5; -+8.55; -+8.55; -+0; -+e5_5; -+0; -+e5_5; -+1; -+e5_5; -+1; -+e5_5; -+8e+55; -+8e+55; -+0; -+.5_5e5_5; -+0; -+.5_5e5_5; -+1; -+.5_5e5_5; -+1; -+.5_5e5_5; - 8.55e+55; - 8.55e+55; - 0.55; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2015).js b/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2015).js index 9288684a8..b37b75d1f 100644 --- a/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2015).js +++ b/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2015).js @@ -8,7 +8,7 @@ //// [numericUnderscoredSeparator.js] -1_000_000_000_000; -0b1010_0001_1000_0101; -0b1010_0001_1000_0101; -0xA0_B0_C0; +1000000000000; +41349; +41349; +10531008; diff --git a/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2015).js.diff b/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2015).js.diff deleted file mode 100644 index 9744342f2..000000000 --- a/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2015).js.diff +++ /dev/null @@ -1,14 +0,0 @@ ---- old.numericUnderscoredSeparator(target=es2015).js -+++ new.numericUnderscoredSeparator(target=es2015).js -@@= skipped -7, +7 lines =@@ - - - //// [numericUnderscoredSeparator.js] --1000000000000; --41349; --41349; --10531008; -+1_000_000_000_000; -+0b1010_0001_1000_0101; -+0b1010_0001_1000_0101; -+0xA0_B0_C0; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2016).js b/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2016).js index 9288684a8..b37b75d1f 100644 --- a/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2016).js +++ b/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2016).js @@ -8,7 +8,7 @@ //// [numericUnderscoredSeparator.js] -1_000_000_000_000; -0b1010_0001_1000_0101; -0b1010_0001_1000_0101; -0xA0_B0_C0; +1000000000000; +41349; +41349; +10531008; diff --git a/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2016).js.diff b/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2016).js.diff deleted file mode 100644 index f0a826621..000000000 --- a/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2016).js.diff +++ /dev/null @@ -1,14 +0,0 @@ ---- old.numericUnderscoredSeparator(target=es2016).js -+++ new.numericUnderscoredSeparator(target=es2016).js -@@= skipped -7, +7 lines =@@ - - - //// [numericUnderscoredSeparator.js] --1000000000000; --41349; --41349; --10531008; -+1_000_000_000_000; -+0b1010_0001_1000_0101; -+0b1010_0001_1000_0101; -+0xA0_B0_C0; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2017).js b/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2017).js index 9288684a8..b37b75d1f 100644 --- a/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2017).js +++ b/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2017).js @@ -8,7 +8,7 @@ //// [numericUnderscoredSeparator.js] -1_000_000_000_000; -0b1010_0001_1000_0101; -0b1010_0001_1000_0101; -0xA0_B0_C0; +1000000000000; +41349; +41349; +10531008; diff --git a/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2017).js.diff b/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2017).js.diff deleted file mode 100644 index 1ffc95eda..000000000 --- a/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2017).js.diff +++ /dev/null @@ -1,14 +0,0 @@ ---- old.numericUnderscoredSeparator(target=es2017).js -+++ new.numericUnderscoredSeparator(target=es2017).js -@@= skipped -7, +7 lines =@@ - - - //// [numericUnderscoredSeparator.js] --1000000000000; --41349; --41349; --10531008; -+1_000_000_000_000; -+0b1010_0001_1000_0101; -+0b1010_0001_1000_0101; -+0xA0_B0_C0; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2018).js b/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2018).js index 9288684a8..b37b75d1f 100644 --- a/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2018).js +++ b/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2018).js @@ -8,7 +8,7 @@ //// [numericUnderscoredSeparator.js] -1_000_000_000_000; -0b1010_0001_1000_0101; -0b1010_0001_1000_0101; -0xA0_B0_C0; +1000000000000; +41349; +41349; +10531008; diff --git a/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2018).js.diff b/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2018).js.diff deleted file mode 100644 index 94d49499a..000000000 --- a/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2018).js.diff +++ /dev/null @@ -1,14 +0,0 @@ ---- old.numericUnderscoredSeparator(target=es2018).js -+++ new.numericUnderscoredSeparator(target=es2018).js -@@= skipped -7, +7 lines =@@ - - - //// [numericUnderscoredSeparator.js] --1000000000000; --41349; --41349; --10531008; -+1_000_000_000_000; -+0b1010_0001_1000_0101; -+0b1010_0001_1000_0101; -+0xA0_B0_C0; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2019).js b/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2019).js index 9288684a8..b37b75d1f 100644 --- a/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2019).js +++ b/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2019).js @@ -8,7 +8,7 @@ //// [numericUnderscoredSeparator.js] -1_000_000_000_000; -0b1010_0001_1000_0101; -0b1010_0001_1000_0101; -0xA0_B0_C0; +1000000000000; +41349; +41349; +10531008; diff --git a/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2019).js.diff b/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2019).js.diff deleted file mode 100644 index a490f90c1..000000000 --- a/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es2019).js.diff +++ /dev/null @@ -1,14 +0,0 @@ ---- old.numericUnderscoredSeparator(target=es2019).js -+++ new.numericUnderscoredSeparator(target=es2019).js -@@= skipped -7, +7 lines =@@ - - - //// [numericUnderscoredSeparator.js] --1000000000000; --41349; --41349; --10531008; -+1_000_000_000_000; -+0b1010_0001_1000_0101; -+0b1010_0001_1000_0101; -+0xA0_B0_C0; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es5).js b/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es5).js index 9288684a8..b37b75d1f 100644 --- a/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es5).js +++ b/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es5).js @@ -8,7 +8,7 @@ //// [numericUnderscoredSeparator.js] -1_000_000_000_000; -0b1010_0001_1000_0101; -0b1010_0001_1000_0101; -0xA0_B0_C0; +1000000000000; +41349; +41349; +10531008; diff --git a/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es5).js.diff b/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es5).js.diff deleted file mode 100644 index c3ad175b5..000000000 --- a/testdata/baselines/reference/submodule/compiler/numericUnderscoredSeparator(target=es5).js.diff +++ /dev/null @@ -1,14 +0,0 @@ ---- old.numericUnderscoredSeparator(target=es5).js -+++ new.numericUnderscoredSeparator(target=es5).js -@@= skipped -7, +7 lines =@@ - - - //// [numericUnderscoredSeparator.js] --1000000000000; --41349; --41349; --10531008; -+1_000_000_000_000; -+0b1010_0001_1000_0101; -+0b1010_0001_1000_0101; -+0xA0_B0_C0; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/overshifts.js b/testdata/baselines/reference/submodule/compiler/overshifts.js index 757aba96a..a336e22b9 100644 --- a/testdata/baselines/reference/submodule/compiler/overshifts.js +++ b/testdata/baselines/reference/submodule/compiler/overshifts.js @@ -99,22 +99,22 @@ enum Three { 1 << -32; // backwards overshift 1 << -123; 1 << -1024; -0xFF_FF_FF_FF >> 1; // ok -0xFF_FF_FF_FF >> 32; // overshift -0xFF_FF_FF_FF >> 123; -0xFF_FF_FF_FF >> 1024; -0xFF_FF_FF_FF >> -1; // OK-ish -0xFF_FF_FF_FF >> -32; // backwards overshift -0xFF_FF_FF_FF >> -123; -0xFF_FF_FF_FF >> -1024; -0xFF_FF_FF_FF >>> 1; // ok -0xFF_FF_FF_FF >>> 32; // overshift -0xFF_FF_FF_FF >>> 123; -0xFF_FF_FF_FF >>> 1024; -0xFF_FF_FF_FF >>> -1; // OK-ish -0xFF_FF_FF_FF >>> -32; // backwards overshift -0xFF_FF_FF_FF >>> -123; -0xFF_FF_FF_FF >>> -1024; +4294967295 >> 1; // ok +4294967295 >> 32; // overshift +4294967295 >> 123; +4294967295 >> 1024; +4294967295 >> -1; // OK-ish +4294967295 >> -32; // backwards overshift +4294967295 >> -123; +4294967295 >> -1024; +4294967295 >>> 1; // ok +4294967295 >>> 32; // overshift +4294967295 >>> 123; +4294967295 >>> 1024; +4294967295 >>> -1; // OK-ish +4294967295 >>> -32; // backwards overshift +4294967295 >>> -123; +4294967295 >>> -1024; let x = 1; x <<= 1; // ok x <<= 32; // overshift diff --git a/testdata/baselines/reference/submodule/compiler/overshifts.js.diff b/testdata/baselines/reference/submodule/compiler/overshifts.js.diff deleted file mode 100644 index d90814d80..000000000 --- a/testdata/baselines/reference/submodule/compiler/overshifts.js.diff +++ /dev/null @@ -1,41 +0,0 @@ ---- old.overshifts.js -+++ new.overshifts.js -@@= skipped -98, +98 lines =@@ - 1 << -32; // backwards overshift - 1 << -123; - 1 << -1024; --4294967295 >> 1; // ok --4294967295 >> 32; // overshift --4294967295 >> 123; --4294967295 >> 1024; --4294967295 >> -1; // OK-ish --4294967295 >> -32; // backwards overshift --4294967295 >> -123; --4294967295 >> -1024; --4294967295 >>> 1; // ok --4294967295 >>> 32; // overshift --4294967295 >>> 123; --4294967295 >>> 1024; --4294967295 >>> -1; // OK-ish --4294967295 >>> -32; // backwards overshift --4294967295 >>> -123; --4294967295 >>> -1024; -+0xFF_FF_FF_FF >> 1; // ok -+0xFF_FF_FF_FF >> 32; // overshift -+0xFF_FF_FF_FF >> 123; -+0xFF_FF_FF_FF >> 1024; -+0xFF_FF_FF_FF >> -1; // OK-ish -+0xFF_FF_FF_FF >> -32; // backwards overshift -+0xFF_FF_FF_FF >> -123; -+0xFF_FF_FF_FF >> -1024; -+0xFF_FF_FF_FF >>> 1; // ok -+0xFF_FF_FF_FF >>> 32; // overshift -+0xFF_FF_FF_FF >>> 123; -+0xFF_FF_FF_FF >>> 1024; -+0xFF_FF_FF_FF >>> -1; // OK-ish -+0xFF_FF_FF_FF >>> -32; // backwards overshift -+0xFF_FF_FF_FF >>> -123; -+0xFF_FF_FF_FF >>> -1024; - let x = 1; - x <<= 1; // ok - x <<= 32; // overshift \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/parameterDecoratorsEmitCrash.js b/testdata/baselines/reference/submodule/compiler/parameterDecoratorsEmitCrash.js index 216fc9ab3..c9fa504d4 100644 --- a/testdata/baselines/reference/submodule/compiler/parameterDecoratorsEmitCrash.js +++ b/testdata/baselines/reference/submodule/compiler/parameterDecoratorsEmitCrash.js @@ -17,6 +17,8 @@ exports.C = void 0; class C { @dec x; - constructor(x) { } + constructor( + @dec + x) { } } exports.C = C; diff --git a/testdata/baselines/reference/submodule/compiler/parameterDecoratorsEmitCrash.js.diff b/testdata/baselines/reference/submodule/compiler/parameterDecoratorsEmitCrash.js.diff index d7a6b837f..84b9beef9 100644 --- a/testdata/baselines/reference/submodule/compiler/parameterDecoratorsEmitCrash.js.diff +++ b/testdata/baselines/reference/submodule/compiler/parameterDecoratorsEmitCrash.js.diff @@ -62,6 +62,8 @@ +class C { + @dec + x; -+ constructor(x) { } ++ constructor( ++ @dec ++ x) { } +} exports.C = C; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/potentiallyUncalledDecorators.js b/testdata/baselines/reference/submodule/compiler/potentiallyUncalledDecorators.js index 56aa036d1..40510a85d 100644 --- a/testdata/baselines/reference/submodule/compiler/potentiallyUncalledDecorators.js +++ b/testdata/baselines/reference/submodule/compiler/potentiallyUncalledDecorators.js @@ -81,69 +81,123 @@ export { }; //// [potentiallyUncalledDecorators.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class FooComponent { - @Input foo; } +__decorate([ + Input +], FooComponent.prototype, "foo", void 0); class Person { - @tracked person; any; } +__decorate([ + tracked +], Person.prototype, "person", void 0); class MultiplyByTwo { args; - @tracked('args') get multiplied() { return this.args.number * 2; } } -@noArgs -class A { - @noArgs +__decorate([ + tracked('args') +], MultiplyByTwo.prototype, "multiplied", null); +let A = class A { foo; - @noArgs bar() { } -} -@allRest -class B { - @allRest +}; +__decorate([ + noArgs +], A.prototype, "foo", void 0); +__decorate([ + noArgs +], A.prototype, "bar", null); +A = __decorate([ + noArgs +], A); +let B = class B { foo; - @allRest bar() { } -} -@oneOptional -class C { - @oneOptional +}; +__decorate([ + allRest +], B.prototype, "foo", void 0); +__decorate([ + allRest +], B.prototype, "bar", null); +B = __decorate([ + allRest +], B); +let C = class C { foo; - @oneOptional bar() { } -} -@twoOptional -class D { - @twoOptional +}; +__decorate([ + oneOptional +], C.prototype, "foo", void 0); +__decorate([ + oneOptional +], C.prototype, "bar", null); +C = __decorate([ + oneOptional +], C); +let D = class D { foo; - @twoOptional bar() { } -} -@threeOptional -class E { - @threeOptional +}; +__decorate([ + twoOptional +], D.prototype, "foo", void 0); +__decorate([ + twoOptional +], D.prototype, "bar", null); +D = __decorate([ + twoOptional +], D); +let E = class E { foo; - @threeOptional bar() { } -} -@oneOptionalWithRest -class F { - @oneOptionalWithRest +}; +__decorate([ + threeOptional +], E.prototype, "foo", void 0); +__decorate([ + threeOptional +], E.prototype, "bar", null); +E = __decorate([ + threeOptional +], E); +let F = class F { foo; - @oneOptionalWithRest bar() { } -} -@anyDec -class G { - @anyDec +}; +__decorate([ + oneOptionalWithRest +], F.prototype, "foo", void 0); +__decorate([ + oneOptionalWithRest +], F.prototype, "bar", null); +F = __decorate([ + oneOptionalWithRest +], F); +let G = class G { foo; - @anyDec bar() { } -} +}; +__decorate([ + anyDec +], G.prototype, "foo", void 0); +__decorate([ + anyDec +], G.prototype, "bar", null); +G = __decorate([ + anyDec +], G); export {}; diff --git a/testdata/baselines/reference/submodule/compiler/potentiallyUncalledDecorators.js.diff b/testdata/baselines/reference/submodule/compiler/potentiallyUncalledDecorators.js.diff index 0ac210232..b209a4ac1 100644 --- a/testdata/baselines/reference/submodule/compiler/potentiallyUncalledDecorators.js.diff +++ b/testdata/baselines/reference/submodule/compiler/potentiallyUncalledDecorators.js.diff @@ -1,171 +1,79 @@ --- old.potentiallyUncalledDecorators.js +++ new.potentiallyUncalledDecorators.js -@@= skipped -80, +80 lines =@@ - - - //// [potentiallyUncalledDecorators.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; +@@= skipped -87, +87 lines =@@ + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; class FooComponent { -+ @Input + foo; } --__decorate([ -- Input --], FooComponent.prototype, "foo", void 0); + __decorate([ + Input + ], FooComponent.prototype, "foo", void 0); class Person { -+ @tracked + person; + any; } --__decorate([ -- tracked --], Person.prototype, "person", void 0); + __decorate([ + tracked + ], Person.prototype, "person", void 0); class MultiplyByTwo { + args; -+ @tracked('args') get multiplied() { return this.args.number * 2; } - } --__decorate([ -- tracked('args') --], MultiplyByTwo.prototype, "multiplied", null); --let A = class A { -- bar() { } --}; --__decorate([ -- noArgs --], A.prototype, "foo", void 0); --__decorate([ -- noArgs --], A.prototype, "bar", null); --A = __decorate([ -- noArgs --], A); --let B = class B { -- bar() { } --}; --__decorate([ -- allRest --], B.prototype, "foo", void 0); --__decorate([ -- allRest --], B.prototype, "bar", null); --B = __decorate([ -- allRest --], B); --let C = class C { -- bar() { } --}; --__decorate([ -- oneOptional --], C.prototype, "foo", void 0); --__decorate([ -- oneOptional --], C.prototype, "bar", null); --C = __decorate([ -- oneOptional --], C); --let D = class D { -- bar() { } --}; --__decorate([ -- twoOptional --], D.prototype, "foo", void 0); --__decorate([ -- twoOptional --], D.prototype, "bar", null); --D = __decorate([ -- twoOptional --], D); --let E = class E { -- bar() { } --}; --__decorate([ -- threeOptional --], E.prototype, "foo", void 0); --__decorate([ -- threeOptional --], E.prototype, "bar", null); --E = __decorate([ -- threeOptional --], E); --let F = class F { -- bar() { } --}; --__decorate([ -- oneOptionalWithRest --], F.prototype, "foo", void 0); --__decorate([ -- oneOptionalWithRest --], F.prototype, "bar", null); --F = __decorate([ -- oneOptionalWithRest --], F); --let G = class G { -- bar() { } --}; --__decorate([ -- anyDec --], G.prototype, "foo", void 0); --__decorate([ -- anyDec --], G.prototype, "bar", null); --G = __decorate([ -- anyDec --], G); -+@noArgs -+class A { -+ @noArgs +@@= skipped -18, +22 lines =@@ + tracked('args') + ], MultiplyByTwo.prototype, "multiplied", null); + let A = class A { + foo; -+ @noArgs -+ bar() { } -+} -+@allRest -+class B { -+ @allRest + bar() { } + }; + __decorate([ +@@= skipped -12, +13 lines =@@ + noArgs + ], A); + let B = class B { + foo; -+ @allRest -+ bar() { } -+} -+@oneOptional -+class C { -+ @oneOptional + bar() { } + }; + __decorate([ +@@= skipped -12, +13 lines =@@ + allRest + ], B); + let C = class C { + foo; -+ @oneOptional -+ bar() { } -+} -+@twoOptional -+class D { -+ @twoOptional + bar() { } + }; + __decorate([ +@@= skipped -12, +13 lines =@@ + oneOptional + ], C); + let D = class D { + foo; -+ @twoOptional -+ bar() { } -+} -+@threeOptional -+class E { -+ @threeOptional + bar() { } + }; + __decorate([ +@@= skipped -12, +13 lines =@@ + twoOptional + ], D); + let E = class E { + foo; -+ @threeOptional -+ bar() { } -+} -+@oneOptionalWithRest -+class F { -+ @oneOptionalWithRest + bar() { } + }; + __decorate([ +@@= skipped -12, +13 lines =@@ + threeOptional + ], E); + let F = class F { + foo; -+ @oneOptionalWithRest -+ bar() { } -+} -+@anyDec -+class G { -+ @anyDec + bar() { } + }; + __decorate([ +@@= skipped -12, +13 lines =@@ + oneOptionalWithRest + ], F); + let G = class G { + foo; -+ @anyDec -+ bar() { } -+} - export {}; \ No newline at end of file + bar() { } + }; + __decorate([ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/sourceMapValidationDecorators.js b/testdata/baselines/reference/submodule/compiler/sourceMapValidationDecorators.js index 6e02ab2a7..d8b2bf66c 100644 --- a/testdata/baselines/reference/submodule/compiler/sourceMapValidationDecorators.js +++ b/testdata/baselines/reference/submodule/compiler/sourceMapValidationDecorators.js @@ -57,34 +57,63 @@ class Greeter { } //// [sourceMapValidationDecorators.js] -@ClassDecorator1 -@ClassDecorator2(10) -class Greeter { +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; +let Greeter = class Greeter { greeting; constructor(greeting, ...b) { this.greeting = greeting; } - @PropertyDecorator1 - @PropertyDecorator2(40) greet() { return "

" + this.greeting + "

"; } - @PropertyDecorator1 - @PropertyDecorator2(50) x; - @PropertyDecorator1 - @PropertyDecorator2(60) static x1 = 10; fn(x) { return this.greeting; } - @PropertyDecorator1 - @PropertyDecorator2(80) get greetings() { return this.greeting; } set greetings(greetings) { this.greeting = greetings; } -} +}; +__decorate([ + PropertyDecorator1, + PropertyDecorator2(40) +], Greeter.prototype, "greet", null); +__decorate([ + PropertyDecorator1, + PropertyDecorator2(50) +], Greeter.prototype, "x", void 0); +__decorate([ + __param(0, ParameterDecorator1), + __param(0, ParameterDecorator2(70)) +], Greeter.prototype, "fn", null); +__decorate([ + PropertyDecorator1, + PropertyDecorator2(80), + __param(0, ParameterDecorator1), + __param(0, ParameterDecorator2(90)) +], Greeter.prototype, "greetings", null); +__decorate([ + PropertyDecorator1, + PropertyDecorator2(60) +], Greeter, "x1", void 0); +Greeter = __decorate([ + ClassDecorator1, + ClassDecorator2(10), + __param(0, ParameterDecorator1), + __param(0, ParameterDecorator2(20)), + __param(1, ParameterDecorator1), + __param(1, ParameterDecorator2(30)) +], Greeter); //# sourceMappingURL=sourceMapValidationDecorators.js.map \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/sourceMapValidationDecorators.js.diff b/testdata/baselines/reference/submodule/compiler/sourceMapValidationDecorators.js.diff index ee625c951..5c0072012 100644 --- a/testdata/baselines/reference/submodule/compiler/sourceMapValidationDecorators.js.diff +++ b/testdata/baselines/reference/submodule/compiler/sourceMapValidationDecorators.js.diff @@ -1,79 +1,26 @@ --- old.sourceMapValidationDecorators.js +++ new.sourceMapValidationDecorators.js -@@= skipped -56, +56 lines =@@ - } - - //// [sourceMapValidationDecorators.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __param = (this && this.__param) || function (paramIndex, decorator) { -- return function (target, key) { decorator(target, key, paramIndex); } --}; --let Greeter = class Greeter { -+@ClassDecorator1 -+@ClassDecorator2(10) -+class Greeter { +@@= skipped -66, +66 lines =@@ + return function (target, key) { decorator(target, key, paramIndex); } + }; + let Greeter = class Greeter { + greeting; constructor(greeting, ...b) { this.greeting = greeting; } -+ @PropertyDecorator1 -+ @PropertyDecorator2(40) greet() { return "

" + this.greeting + "

"; } -+ @PropertyDecorator1 -+ @PropertyDecorator2(50) + x; -+ @PropertyDecorator1 -+ @PropertyDecorator2(60) + static x1 = 10; fn(x) { return this.greeting; } -+ @PropertyDecorator1 -+ @PropertyDecorator2(80) - get greetings() { - return this.greeting; - } - set greetings(greetings) { +@@= skipped -16, +19 lines =@@ this.greeting = greetings; } --}; + }; -Greeter.x1 = 10; --__decorate([ -- PropertyDecorator1, -- PropertyDecorator2(40) --], Greeter.prototype, "greet", null); --__decorate([ -- PropertyDecorator1, -- PropertyDecorator2(50) --], Greeter.prototype, "x", void 0); --__decorate([ -- __param(0, ParameterDecorator1), -- __param(0, ParameterDecorator2(70)) --], Greeter.prototype, "fn", null); --__decorate([ -- PropertyDecorator1, -- PropertyDecorator2(80), -- __param(0, ParameterDecorator1), -- __param(0, ParameterDecorator2(90)) --], Greeter.prototype, "greetings", null); --__decorate([ -- PropertyDecorator1, -- PropertyDecorator2(60) --], Greeter, "x1", void 0); --Greeter = __decorate([ -- ClassDecorator1, -- ClassDecorator2(10), -- __param(0, ParameterDecorator1), -- __param(0, ParameterDecorator2(20)), -- __param(1, ParameterDecorator1), -- __param(1, ParameterDecorator2(30)) --], Greeter); -+} - //# sourceMappingURL=sourceMapValidationDecorators.js.map \ No newline at end of file + __decorate([ + PropertyDecorator1, + PropertyDecorator2(40) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/sourceMapValidationDecorators.js.map b/testdata/baselines/reference/submodule/compiler/sourceMapValidationDecorators.js.map index 7f22a815d..35ba1cc7e 100644 --- a/testdata/baselines/reference/submodule/compiler/sourceMapValidationDecorators.js.map +++ b/testdata/baselines/reference/submodule/compiler/sourceMapValidationDecorators.js.map @@ -1,3 +1,3 @@ //// [sourceMapValidationDecorators.js.map] -{"version":3,"file":"sourceMapValidationDecorators.js","sourceRoot":"","sources":["sourceMapValidationDecorators.ts"],"names":[],"mappings":"AAOA,CAAC,eAAe;CACf,eAAe,CAAC,EAAE,CAAC;MACd,OAAO;IAIA,QAAQ;IAHjB,YAGS,QAAgB,EAIvB,GAAG,CAAW,EAAE;wBAJT,QAAQ;IAIE,CAClB;IAED,CAAC,kBAAkB;KAClB,kBAAkB,CAAC,EAAE,CAAC;IACvB,KAAK,GAAG;QACJ,OAAO,MAAM,GAAG,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAAA,CAC3C;IAED,CAAC,kBAAkB;KAClB,kBAAkB,CAAC,EAAE,CAAC;IACf,CAAC,CAAS;IAElB,CAAC,kBAAkB;KAClB,kBAAkB,CAAC,EAAE,CAAC;IACf,MAAM,CAAC,EAAE,GAAW,EAAE,CAAC;IAEvB,EAAE,CAGR,CAAS,EAAE;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;IAAA,CACxB;IAED,CAAC,kBAAkB;KAClB,kBAAkB,CAAC,EAAE,CAAC;QACnB,SAAS,GAAG;QACZ,OAAO,IAAI,CAAC,QAAQ,CAAC;IAAA,CACxB;IAED,IAAI,SAAS,CAGX,SAAiB,EAAE;QACjB,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;IAAA,CAC7B;CACJ"} -//// https://sokra.github.io/source-map-visualization#base64,QENsYXNzRGVjb3JhdG9yMQ0KQENsYXNzRGVjb3JhdG9yMigxMCkNCmNsYXNzIEdyZWV0ZXIgew0KICAgIGdyZWV0aW5nOw0KICAgIGNvbnN0cnVjdG9yKGdyZWV0aW5nLCAuLi5iKSB7DQogICAgICAgIHRoaXMuZ3JlZXRpbmcgPSBncmVldGluZzsNCiAgICB9DQogICAgQFByb3BlcnR5RGVjb3JhdG9yMQ0KICAgIEBQcm9wZXJ0eURlY29yYXRvcjIoNDApDQogICAgZ3JlZXQoKSB7DQogICAgICAgIHJldHVybiAiPGgxPiIgKyB0aGlzLmdyZWV0aW5nICsgIjwvaDE+IjsNCiAgICB9DQogICAgQFByb3BlcnR5RGVjb3JhdG9yMQ0KICAgIEBQcm9wZXJ0eURlY29yYXRvcjIoNTApDQogICAgeDsNCiAgICBAUHJvcGVydHlEZWNvcmF0b3IxDQogICAgQFByb3BlcnR5RGVjb3JhdG9yMig2MCkNCiAgICBzdGF0aWMgeDEgPSAxMDsNCiAgICBmbih4KSB7DQogICAgICAgIHJldHVybiB0aGlzLmdyZWV0aW5nOw0KICAgIH0NCiAgICBAUHJvcGVydHlEZWNvcmF0b3IxDQogICAgQFByb3BlcnR5RGVjb3JhdG9yMig4MCkNCiAgICBnZXQgZ3JlZXRpbmdzKCkgew0KICAgICAgICByZXR1cm4gdGhpcy5ncmVldGluZzsNCiAgICB9DQogICAgc2V0IGdyZWV0aW5ncyhncmVldGluZ3MpIHsNCiAgICAgICAgdGhpcy5ncmVldGluZyA9IGdyZWV0aW5nczsNCiAgICB9DQp9DQovLyMgc291cmNlTWFwcGluZ1VSTD1zb3VyY2VNYXBWYWxpZGF0aW9uRGVjb3JhdG9ycy5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlTWFwVmFsaWRhdGlvbkRlY29yYXRvcnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzb3VyY2VNYXBWYWxpZGF0aW9uRGVjb3JhdG9ycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPQSxDQUFDLGVBQWU7Q0FDZixlQUFlLENBQUMsRUFBRSxDQUFDO01BQ2QsT0FBTztJQUlBLFFBQVE7SUFIakIsWUFHUyxRQUFnQixFQUl2QixHQUFHLENBQVcsRUFBRTt3QkFKVCxRQUFRO0lBSUUsQ0FDbEI7SUFFRCxDQUFDLGtCQUFrQjtLQUNsQixrQkFBa0IsQ0FBQyxFQUFFLENBQUM7SUFDdkIsS0FBSyxHQUFHO1FBQ0osT0FBTyxNQUFNLEdBQUcsSUFBSSxDQUFDLFFBQVEsR0FBRyxPQUFPLENBQUM7SUFBQSxDQUMzQztJQUVELENBQUMsa0JBQWtCO0tBQ2xCLGtCQUFrQixDQUFDLEVBQUUsQ0FBQztJQUNmLENBQUMsQ0FBUztJQUVsQixDQUFDLGtCQUFrQjtLQUNsQixrQkFBa0IsQ0FBQyxFQUFFLENBQUM7SUFDZixNQUFNLENBQUMsRUFBRSxHQUFXLEVBQUUsQ0FBQztJQUV2QixFQUFFLENBR1IsQ0FBUyxFQUFFO1FBQ1QsT0FBTyxJQUFJLENBQUMsUUFBUSxDQUFDO0lBQUEsQ0FDeEI7SUFFRCxDQUFDLGtCQUFrQjtLQUNsQixrQkFBa0IsQ0FBQyxFQUFFLENBQUM7UUFDbkIsU0FBUyxHQUFHO1FBQ1osT0FBTyxJQUFJLENBQUMsUUFBUSxDQUFDO0lBQUEsQ0FDeEI7SUFFRCxJQUFJLFNBQVMsQ0FHWCxTQUFpQixFQUFFO1FBQ2pCLElBQUksQ0FBQyxRQUFRLEdBQUcsU0FBUyxDQUFDO0lBQUEsQ0FDN0I7Q0FDSiJ9,ZGVjbGFyZSBmdW5jdGlvbiBDbGFzc0RlY29yYXRvcjEodGFyZ2V0OiBGdW5jdGlvbik6IHZvaWQ7CmRlY2xhcmUgZnVuY3Rpb24gQ2xhc3NEZWNvcmF0b3IyKHg6IG51bWJlcik6ICh0YXJnZXQ6IEZ1bmN0aW9uKSA9PiB2b2lkOwpkZWNsYXJlIGZ1bmN0aW9uIFByb3BlcnR5RGVjb3JhdG9yMSh0YXJnZXQ6IE9iamVjdCwga2V5OiBzdHJpbmcgfCBzeW1ib2wsIGRlc2NyaXB0b3I/OiBQcm9wZXJ0eURlc2NyaXB0b3IpOiB2b2lkOwpkZWNsYXJlIGZ1bmN0aW9uIFByb3BlcnR5RGVjb3JhdG9yMih4OiBudW1iZXIpOiAodGFyZ2V0OiBPYmplY3QsIGtleTogc3RyaW5nIHwgc3ltYm9sLCBkZXNjcmlwdG9yPzogUHJvcGVydHlEZXNjcmlwdG9yKSA9PiB2b2lkOwpkZWNsYXJlIGZ1bmN0aW9uIFBhcmFtZXRlckRlY29yYXRvcjEodGFyZ2V0OiBPYmplY3QsIGtleTogc3RyaW5nIHwgc3ltYm9sLCBwYXJhbUluZGV4OiBudW1iZXIpOiB2b2lkOwpkZWNsYXJlIGZ1bmN0aW9uIFBhcmFtZXRlckRlY29yYXRvcjIoeDogbnVtYmVyKTogKHRhcmdldDogT2JqZWN0LCBrZXk6IHN0cmluZyB8IHN5bWJvbCwgcGFyYW1JbmRleDogbnVtYmVyKSA9PiB2b2lkOwoKQENsYXNzRGVjb3JhdG9yMQpAQ2xhc3NEZWNvcmF0b3IyKDEwKQpjbGFzcyBHcmVldGVyIHsKICAgIGNvbnN0cnVjdG9yKAogICAgICBAUGFyYW1ldGVyRGVjb3JhdG9yMSAKICAgICAgQFBhcmFtZXRlckRlY29yYXRvcjIoMjApIAogICAgICBwdWJsaWMgZ3JlZXRpbmc6IHN0cmluZywgCiAgICAgIAogICAgICBAUGFyYW1ldGVyRGVjb3JhdG9yMSAKICAgICAgQFBhcmFtZXRlckRlY29yYXRvcjIoMzApIAogICAgICAuLi5iOiBzdHJpbmdbXSkgewogICAgfQogICAgCiAgICBAUHJvcGVydHlEZWNvcmF0b3IxCiAgICBAUHJvcGVydHlEZWNvcmF0b3IyKDQwKQogICAgZ3JlZXQoKSB7CiAgICAgICAgcmV0dXJuICI8aDE+IiArIHRoaXMuZ3JlZXRpbmcgKyAiPC9oMT4iOwogICAgfQoKICAgIEBQcm9wZXJ0eURlY29yYXRvcjEKICAgIEBQcm9wZXJ0eURlY29yYXRvcjIoNTApCiAgICBwcml2YXRlIHg6IHN0cmluZzsKCiAgICBAUHJvcGVydHlEZWNvcmF0b3IxCiAgICBAUHJvcGVydHlEZWNvcmF0b3IyKDYwKQogICAgcHJpdmF0ZSBzdGF0aWMgeDE6IG51bWJlciA9IDEwOwogICAgCiAgICBwcml2YXRlIGZuKAogICAgICBAUGFyYW1ldGVyRGVjb3JhdG9yMSAKICAgICAgQFBhcmFtZXRlckRlY29yYXRvcjIoNzApIAogICAgICB4OiBudW1iZXIpIHsKICAgICAgICByZXR1cm4gdGhpcy5ncmVldGluZzsKICAgIH0KCiAgICBAUHJvcGVydHlEZWNvcmF0b3IxCiAgICBAUHJvcGVydHlEZWNvcmF0b3IyKDgwKQogICAgZ2V0IGdyZWV0aW5ncygpIHsKICAgICAgICByZXR1cm4gdGhpcy5ncmVldGluZzsKICAgIH0KCiAgICBzZXQgZ3JlZXRpbmdzKAogICAgICBAUGFyYW1ldGVyRGVjb3JhdG9yMSAKICAgICAgQFBhcmFtZXRlckRlY29yYXRvcjIoOTApIAogICAgICBncmVldGluZ3M6IHN0cmluZykgewogICAgICAgIHRoaXMuZ3JlZXRpbmcgPSBncmVldGluZ3M7CiAgICB9ICAgIAp9 +{"version":3,"file":"sourceMapValidationDecorators.js","sourceRoot":"","sources":["sourceMapValidationDecorators.ts"],"names":[],"mappings":";;;;;;;;;AAQA,IACM,OAAO,GADb,MACM,OAAO;IAIA,QAAQ;IAHjB,YAGS,QAAgB,EAIvB,GAAG,CAAW,EAAE;wBAJT,QAAQ;IAIE,CAClB;IAID,KAAK,GAAG;QACJ,OAAO,MAAM,GAAG,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAAA,CAC3C;IAIO,CAAC,CAAS;IAIH,AAAP,MAAM,CAAC,EAAE,GAAW,EAAE,CAAC;IAEvB,EAAE,CAGR,CAAS,EAAE;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;IAAA,CACxB;IAGD,IACI,SAAS,GAAG;QACZ,OAAO,IAAI,CAAC,QAAQ,CAAC;IAAA,CACxB;IAED,IAAI,SAAS,CAGX,SAAiB,EAAE;QACjB,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;IAAA,CAC7B;CACJ,CAAA;AA/BG;IAFC,kBAAkB;IAClB,kBAAkB,CAAC,EAAE,CAAC;oCAGtB;AAIO;IAFP,kBAAkB;IAClB,kBAAkB,CAAC,EAAE,CAAC;kCACL;AAMV;IACL,WAAA,mBAAmB,CAAA;IACnB,WAAA,mBAAmB,CAAC,EAAE,CAAC,CAAA;iCAGzB;AAGD;IADC,kBAAkB;IAClB,kBAAkB,CAAC,EAAE,CAAC;IAMpB,WAAA,mBAAmB,CAAA;IACnB,WAAA,mBAAmB,CAAC,EAAE,CAAC,CAAA;wCAJzB;AAbc;IAFd,kBAAkB;IAClB,kBAAkB,CAAC,EAAE,CAAC;yBACQ;AAvB7B,OAAO;IAFZ,eAAe;IACf,eAAe,CAAC,EAAE,CAAC;IAGb,WAAA,mBAAmB,CAAA;IACnB,WAAA,mBAAmB,CAAC,EAAE,CAAC,CAAA;IAGvB,WAAA,mBAAmB,CAAA;IACnB,WAAA,mBAAmB,CAAC,EAAE,CAAC,CAAA;GAPxB,OAAO,CA4CZ"} +//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fZGVjb3JhdGUgPSAodGhpcyAmJiB0aGlzLl9fZGVjb3JhdGUpIHx8IGZ1bmN0aW9uIChkZWNvcmF0b3JzLCB0YXJnZXQsIGtleSwgZGVzYykgew0KICAgIHZhciBjID0gYXJndW1lbnRzLmxlbmd0aCwgciA9IGMgPCAzID8gdGFyZ2V0IDogZGVzYyA9PT0gbnVsbCA/IGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKHRhcmdldCwga2V5KSA6IGRlc2MsIGQ7DQogICAgaWYgKHR5cGVvZiBSZWZsZWN0ID09PSAib2JqZWN0IiAmJiB0eXBlb2YgUmVmbGVjdC5kZWNvcmF0ZSA9PT0gImZ1bmN0aW9uIikgciA9IFJlZmxlY3QuZGVjb3JhdGUoZGVjb3JhdG9ycywgdGFyZ2V0LCBrZXksIGRlc2MpOw0KICAgIGVsc2UgZm9yICh2YXIgaSA9IGRlY29yYXRvcnMubGVuZ3RoIC0gMTsgaSA+PSAwOyBpLS0pIGlmIChkID0gZGVjb3JhdG9yc1tpXSkgciA9IChjIDwgMyA/IGQocikgOiBjID4gMyA/IGQodGFyZ2V0LCBrZXksIHIpIDogZCh0YXJnZXQsIGtleSkpIHx8IHI7DQogICAgcmV0dXJuIGMgPiAzICYmIHIgJiYgT2JqZWN0LmRlZmluZVByb3BlcnR5KHRhcmdldCwga2V5LCByKSwgcjsNCn07DQp2YXIgX19wYXJhbSA9ICh0aGlzICYmIHRoaXMuX19wYXJhbSkgfHwgZnVuY3Rpb24gKHBhcmFtSW5kZXgsIGRlY29yYXRvcikgew0KICAgIHJldHVybiBmdW5jdGlvbiAodGFyZ2V0LCBrZXkpIHsgZGVjb3JhdG9yKHRhcmdldCwga2V5LCBwYXJhbUluZGV4KTsgfQ0KfTsNCmxldCBHcmVldGVyID0gY2xhc3MgR3JlZXRlciB7DQogICAgZ3JlZXRpbmc7DQogICAgY29uc3RydWN0b3IoZ3JlZXRpbmcsIC4uLmIpIHsNCiAgICAgICAgdGhpcy5ncmVldGluZyA9IGdyZWV0aW5nOw0KICAgIH0NCiAgICBncmVldCgpIHsNCiAgICAgICAgcmV0dXJuICI8aDE+IiArIHRoaXMuZ3JlZXRpbmcgKyAiPC9oMT4iOw0KICAgIH0NCiAgICB4Ow0KICAgIHN0YXRpYyB4MSA9IDEwOw0KICAgIGZuKHgpIHsNCiAgICAgICAgcmV0dXJuIHRoaXMuZ3JlZXRpbmc7DQogICAgfQ0KICAgIGdldCBncmVldGluZ3MoKSB7DQogICAgICAgIHJldHVybiB0aGlzLmdyZWV0aW5nOw0KICAgIH0NCiAgICBzZXQgZ3JlZXRpbmdzKGdyZWV0aW5ncykgew0KICAgICAgICB0aGlzLmdyZWV0aW5nID0gZ3JlZXRpbmdzOw0KICAgIH0NCn07DQpfX2RlY29yYXRlKFsNCiAgICBQcm9wZXJ0eURlY29yYXRvcjEsDQogICAgUHJvcGVydHlEZWNvcmF0b3IyKDQwKQ0KXSwgR3JlZXRlci5wcm90b3R5cGUsICJncmVldCIsIG51bGwpOw0KX19kZWNvcmF0ZShbDQogICAgUHJvcGVydHlEZWNvcmF0b3IxLA0KICAgIFByb3BlcnR5RGVjb3JhdG9yMig1MCkNCl0sIEdyZWV0ZXIucHJvdG90eXBlLCAieCIsIHZvaWQgMCk7DQpfX2RlY29yYXRlKFsNCiAgICBfX3BhcmFtKDAsIFBhcmFtZXRlckRlY29yYXRvcjEpLA0KICAgIF9fcGFyYW0oMCwgUGFyYW1ldGVyRGVjb3JhdG9yMig3MCkpDQpdLCBHcmVldGVyLnByb3RvdHlwZSwgImZuIiwgbnVsbCk7DQpfX2RlY29yYXRlKFsNCiAgICBQcm9wZXJ0eURlY29yYXRvcjEsDQogICAgUHJvcGVydHlEZWNvcmF0b3IyKDgwKSwNCiAgICBfX3BhcmFtKDAsIFBhcmFtZXRlckRlY29yYXRvcjEpLA0KICAgIF9fcGFyYW0oMCwgUGFyYW1ldGVyRGVjb3JhdG9yMig5MCkpDQpdLCBHcmVldGVyLnByb3RvdHlwZSwgImdyZWV0aW5ncyIsIG51bGwpOw0KX19kZWNvcmF0ZShbDQogICAgUHJvcGVydHlEZWNvcmF0b3IxLA0KICAgIFByb3BlcnR5RGVjb3JhdG9yMig2MCkNCl0sIEdyZWV0ZXIsICJ4MSIsIHZvaWQgMCk7DQpHcmVldGVyID0gX19kZWNvcmF0ZShbDQogICAgQ2xhc3NEZWNvcmF0b3IxLA0KICAgIENsYXNzRGVjb3JhdG9yMigxMCksDQogICAgX19wYXJhbSgwLCBQYXJhbWV0ZXJEZWNvcmF0b3IxKSwNCiAgICBfX3BhcmFtKDAsIFBhcmFtZXRlckRlY29yYXRvcjIoMjApKSwNCiAgICBfX3BhcmFtKDEsIFBhcmFtZXRlckRlY29yYXRvcjEpLA0KICAgIF9fcGFyYW0oMSwgUGFyYW1ldGVyRGVjb3JhdG9yMigzMCkpDQpdLCBHcmVldGVyKTsNCi8vIyBzb3VyY2VNYXBwaW5nVVJMPXNvdXJjZU1hcFZhbGlkYXRpb25EZWNvcmF0b3JzLmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlTWFwVmFsaWRhdGlvbkRlY29yYXRvcnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzb3VyY2VNYXBWYWxpZGF0aW9uRGVjb3JhdG9ycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFRQSxJQUNNLE9BQU8sR0FEYixNQUNNLE9BQU87SUFJQSxRQUFRO0lBSGpCLFlBR1MsUUFBZ0IsRUFJdkIsR0FBRyxDQUFXLEVBQUU7d0JBSlQsUUFBUTtJQUlFLENBQ2xCO0lBSUQsS0FBSyxHQUFHO1FBQ0osT0FBTyxNQUFNLEdBQUcsSUFBSSxDQUFDLFFBQVEsR0FBRyxPQUFPLENBQUM7SUFBQSxDQUMzQztJQUlPLENBQUMsQ0FBUztJQUlILEFBQVAsTUFBTSxDQUFDLEVBQUUsR0FBVyxFQUFFLENBQUM7SUFFdkIsRUFBRSxDQUdSLENBQVMsRUFBRTtRQUNULE9BQU8sSUFBSSxDQUFDLFFBQVEsQ0FBQztJQUFBLENBQ3hCO0lBR0QsSUFDSSxTQUFTLEdBQUc7UUFDWixPQUFPLElBQUksQ0FBQyxRQUFRLENBQUM7SUFBQSxDQUN4QjtJQUVELElBQUksU0FBUyxDQUdYLFNBQWlCLEVBQUU7UUFDakIsSUFBSSxDQUFDLFFBQVEsR0FBRyxTQUFTLENBQUM7SUFBQSxDQUM3QjtDQUNKLENBQUE7QUEvQkc7SUFGQyxrQkFBa0I7SUFDbEIsa0JBQWtCLENBQUMsRUFBRSxDQUFDO29DQUd0QjtBQUlPO0lBRlAsa0JBQWtCO0lBQ2xCLGtCQUFrQixDQUFDLEVBQUUsQ0FBQztrQ0FDTDtBQU1WO0lBQ0wsV0FBQSxtQkFBbUIsQ0FBQTtJQUNuQixXQUFBLG1CQUFtQixDQUFDLEVBQUUsQ0FBQyxDQUFBO2lDQUd6QjtBQUdEO0lBREMsa0JBQWtCO0lBQ2xCLGtCQUFrQixDQUFDLEVBQUUsQ0FBQztJQU1wQixXQUFBLG1CQUFtQixDQUFBO0lBQ25CLFdBQUEsbUJBQW1CLENBQUMsRUFBRSxDQUFDLENBQUE7d0NBSnpCO0FBYmM7SUFGZCxrQkFBa0I7SUFDbEIsa0JBQWtCLENBQUMsRUFBRSxDQUFDO3lCQUNRO0FBdkI3QixPQUFPO0lBRlosZUFBZTtJQUNmLGVBQWUsQ0FBQyxFQUFFLENBQUM7SUFHYixXQUFBLG1CQUFtQixDQUFBO0lBQ25CLFdBQUEsbUJBQW1CLENBQUMsRUFBRSxDQUFDLENBQUE7SUFHdkIsV0FBQSxtQkFBbUIsQ0FBQTtJQUNuQixXQUFBLG1CQUFtQixDQUFDLEVBQUUsQ0FBQyxDQUFBO0dBUHhCLE9BQU8sQ0E0Q1oifQ==,ZGVjbGFyZSBmdW5jdGlvbiBDbGFzc0RlY29yYXRvcjEodGFyZ2V0OiBGdW5jdGlvbik6IHZvaWQ7CmRlY2xhcmUgZnVuY3Rpb24gQ2xhc3NEZWNvcmF0b3IyKHg6IG51bWJlcik6ICh0YXJnZXQ6IEZ1bmN0aW9uKSA9PiB2b2lkOwpkZWNsYXJlIGZ1bmN0aW9uIFByb3BlcnR5RGVjb3JhdG9yMSh0YXJnZXQ6IE9iamVjdCwga2V5OiBzdHJpbmcgfCBzeW1ib2wsIGRlc2NyaXB0b3I/OiBQcm9wZXJ0eURlc2NyaXB0b3IpOiB2b2lkOwpkZWNsYXJlIGZ1bmN0aW9uIFByb3BlcnR5RGVjb3JhdG9yMih4OiBudW1iZXIpOiAodGFyZ2V0OiBPYmplY3QsIGtleTogc3RyaW5nIHwgc3ltYm9sLCBkZXNjcmlwdG9yPzogUHJvcGVydHlEZXNjcmlwdG9yKSA9PiB2b2lkOwpkZWNsYXJlIGZ1bmN0aW9uIFBhcmFtZXRlckRlY29yYXRvcjEodGFyZ2V0OiBPYmplY3QsIGtleTogc3RyaW5nIHwgc3ltYm9sLCBwYXJhbUluZGV4OiBudW1iZXIpOiB2b2lkOwpkZWNsYXJlIGZ1bmN0aW9uIFBhcmFtZXRlckRlY29yYXRvcjIoeDogbnVtYmVyKTogKHRhcmdldDogT2JqZWN0LCBrZXk6IHN0cmluZyB8IHN5bWJvbCwgcGFyYW1JbmRleDogbnVtYmVyKSA9PiB2b2lkOwoKQENsYXNzRGVjb3JhdG9yMQpAQ2xhc3NEZWNvcmF0b3IyKDEwKQpjbGFzcyBHcmVldGVyIHsKICAgIGNvbnN0cnVjdG9yKAogICAgICBAUGFyYW1ldGVyRGVjb3JhdG9yMSAKICAgICAgQFBhcmFtZXRlckRlY29yYXRvcjIoMjApIAogICAgICBwdWJsaWMgZ3JlZXRpbmc6IHN0cmluZywgCiAgICAgIAogICAgICBAUGFyYW1ldGVyRGVjb3JhdG9yMSAKICAgICAgQFBhcmFtZXRlckRlY29yYXRvcjIoMzApIAogICAgICAuLi5iOiBzdHJpbmdbXSkgewogICAgfQogICAgCiAgICBAUHJvcGVydHlEZWNvcmF0b3IxCiAgICBAUHJvcGVydHlEZWNvcmF0b3IyKDQwKQogICAgZ3JlZXQoKSB7CiAgICAgICAgcmV0dXJuICI8aDE+IiArIHRoaXMuZ3JlZXRpbmcgKyAiPC9oMT4iOwogICAgfQoKICAgIEBQcm9wZXJ0eURlY29yYXRvcjEKICAgIEBQcm9wZXJ0eURlY29yYXRvcjIoNTApCiAgICBwcml2YXRlIHg6IHN0cmluZzsKCiAgICBAUHJvcGVydHlEZWNvcmF0b3IxCiAgICBAUHJvcGVydHlEZWNvcmF0b3IyKDYwKQogICAgcHJpdmF0ZSBzdGF0aWMgeDE6IG51bWJlciA9IDEwOwogICAgCiAgICBwcml2YXRlIGZuKAogICAgICBAUGFyYW1ldGVyRGVjb3JhdG9yMSAKICAgICAgQFBhcmFtZXRlckRlY29yYXRvcjIoNzApIAogICAgICB4OiBudW1iZXIpIHsKICAgICAgICByZXR1cm4gdGhpcy5ncmVldGluZzsKICAgIH0KCiAgICBAUHJvcGVydHlEZWNvcmF0b3IxCiAgICBAUHJvcGVydHlEZWNvcmF0b3IyKDgwKQogICAgZ2V0IGdyZWV0aW5ncygpIHsKICAgICAgICByZXR1cm4gdGhpcy5ncmVldGluZzsKICAgIH0KCiAgICBzZXQgZ3JlZXRpbmdzKAogICAgICBAUGFyYW1ldGVyRGVjb3JhdG9yMSAKICAgICAgQFBhcmFtZXRlckRlY29yYXRvcjIoOTApIAogICAgICBncmVldGluZ3M6IHN0cmluZykgewogICAgICAgIHRoaXMuZ3JlZXRpbmcgPSBncmVldGluZ3M7CiAgICB9ICAgIAp9 diff --git a/testdata/baselines/reference/submodule/compiler/sourceMapValidationDecorators.js.map.diff b/testdata/baselines/reference/submodule/compiler/sourceMapValidationDecorators.js.map.diff index 52d5e03bf..4112387e2 100644 --- a/testdata/baselines/reference/submodule/compiler/sourceMapValidationDecorators.js.map.diff +++ b/testdata/baselines/reference/submodule/compiler/sourceMapValidationDecorators.js.map.diff @@ -4,5 +4,5 @@ //// [sourceMapValidationDecorators.js.map] -{"version":3,"file":"sourceMapValidationDecorators.js","sourceRoot":"","sources":["sourceMapValidationDecorators.ts"],"names":[],"mappings":";;;;;;;;;AASA,IAAM,OAAO,GAAb,MAAM,OAAO;IACT,YAGS,QAAgB,EAIvB,GAAG,CAAW;QAJP,aAAQ,GAAR,QAAQ,CAAQ;IAKzB,CAAC;IAID,KAAK;QACD,OAAO,MAAM,GAAG,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAC5C,CAAC;IAUO,EAAE,CAGR,CAAS;QACP,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IAID,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IAED,IAAI,SAAS,CAGX,SAAiB;QACf,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;IAC9B,CAAC;;AApBc,UAAE,GAAW,EAAE,AAAb,CAAc;AAV/B;IAFC,kBAAkB;IAClB,kBAAkB,CAAC,EAAE,CAAC;oCAGtB;AAIO;IAFP,kBAAkB;IAClB,kBAAkB,CAAC,EAAE,CAAC;kCACL;AAMV;IACL,WAAA,mBAAmB,CAAA;IACnB,WAAA,mBAAmB,CAAC,EAAE,CAAC,CAAA;iCAGzB;AAID;IAFC,kBAAkB;IAClB,kBAAkB,CAAC,EAAE,CAAC;IAMpB,WAAA,mBAAmB,CAAA;IACnB,WAAA,mBAAmB,CAAC,EAAE,CAAC,CAAA;wCAJzB;AAbc;IAFd,kBAAkB;IAClB,kBAAkB,CAAC,EAAE,CAAC;yBACQ;AAvB7B,OAAO;IAFZ,eAAe;IACf,eAAe,CAAC,EAAE,CAAC;IAGb,WAAA,mBAAmB,CAAA;IACnB,WAAA,mBAAmB,CAAC,EAAE,CAAC,CAAA;IAGvB,WAAA,mBAAmB,CAAA;IACnB,WAAA,mBAAmB,CAAC,EAAE,CAAC,CAAA;GAPxB,OAAO,CA4CZ"} -//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fZGVjb3JhdGUgPSAodGhpcyAmJiB0aGlzLl9fZGVjb3JhdGUpIHx8IGZ1bmN0aW9uIChkZWNvcmF0b3JzLCB0YXJnZXQsIGtleSwgZGVzYykgew0KICAgIHZhciBjID0gYXJndW1lbnRzLmxlbmd0aCwgciA9IGMgPCAzID8gdGFyZ2V0IDogZGVzYyA9PT0gbnVsbCA/IGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKHRhcmdldCwga2V5KSA6IGRlc2MsIGQ7DQogICAgaWYgKHR5cGVvZiBSZWZsZWN0ID09PSAib2JqZWN0IiAmJiB0eXBlb2YgUmVmbGVjdC5kZWNvcmF0ZSA9PT0gImZ1bmN0aW9uIikgciA9IFJlZmxlY3QuZGVjb3JhdGUoZGVjb3JhdG9ycywgdGFyZ2V0LCBrZXksIGRlc2MpOw0KICAgIGVsc2UgZm9yICh2YXIgaSA9IGRlY29yYXRvcnMubGVuZ3RoIC0gMTsgaSA+PSAwOyBpLS0pIGlmIChkID0gZGVjb3JhdG9yc1tpXSkgciA9IChjIDwgMyA/IGQocikgOiBjID4gMyA/IGQodGFyZ2V0LCBrZXksIHIpIDogZCh0YXJnZXQsIGtleSkpIHx8IHI7DQogICAgcmV0dXJuIGMgPiAzICYmIHIgJiYgT2JqZWN0LmRlZmluZVByb3BlcnR5KHRhcmdldCwga2V5LCByKSwgcjsNCn07DQp2YXIgX19wYXJhbSA9ICh0aGlzICYmIHRoaXMuX19wYXJhbSkgfHwgZnVuY3Rpb24gKHBhcmFtSW5kZXgsIGRlY29yYXRvcikgew0KICAgIHJldHVybiBmdW5jdGlvbiAodGFyZ2V0LCBrZXkpIHsgZGVjb3JhdG9yKHRhcmdldCwga2V5LCBwYXJhbUluZGV4KTsgfQ0KfTsNCmxldCBHcmVldGVyID0gY2xhc3MgR3JlZXRlciB7DQogICAgY29uc3RydWN0b3IoZ3JlZXRpbmcsIC4uLmIpIHsNCiAgICAgICAgdGhpcy5ncmVldGluZyA9IGdyZWV0aW5nOw0KICAgIH0NCiAgICBncmVldCgpIHsNCiAgICAgICAgcmV0dXJuICI8aDE+IiArIHRoaXMuZ3JlZXRpbmcgKyAiPC9oMT4iOw0KICAgIH0NCiAgICBmbih4KSB7DQogICAgICAgIHJldHVybiB0aGlzLmdyZWV0aW5nOw0KICAgIH0NCiAgICBnZXQgZ3JlZXRpbmdzKCkgew0KICAgICAgICByZXR1cm4gdGhpcy5ncmVldGluZzsNCiAgICB9DQogICAgc2V0IGdyZWV0aW5ncyhncmVldGluZ3MpIHsNCiAgICAgICAgdGhpcy5ncmVldGluZyA9IGdyZWV0aW5nczsNCiAgICB9DQp9Ow0KR3JlZXRlci54MSA9IDEwOw0KX19kZWNvcmF0ZShbDQogICAgUHJvcGVydHlEZWNvcmF0b3IxLA0KICAgIFByb3BlcnR5RGVjb3JhdG9yMig0MCkNCl0sIEdyZWV0ZXIucHJvdG90eXBlLCAiZ3JlZXQiLCBudWxsKTsNCl9fZGVjb3JhdGUoWw0KICAgIFByb3BlcnR5RGVjb3JhdG9yMSwNCiAgICBQcm9wZXJ0eURlY29yYXRvcjIoNTApDQpdLCBHcmVldGVyLnByb3RvdHlwZSwgIngiLCB2b2lkIDApOw0KX19kZWNvcmF0ZShbDQogICAgX19wYXJhbSgwLCBQYXJhbWV0ZXJEZWNvcmF0b3IxKSwNCiAgICBfX3BhcmFtKDAsIFBhcmFtZXRlckRlY29yYXRvcjIoNzApKQ0KXSwgR3JlZXRlci5wcm90b3R5cGUsICJmbiIsIG51bGwpOw0KX19kZWNvcmF0ZShbDQogICAgUHJvcGVydHlEZWNvcmF0b3IxLA0KICAgIFByb3BlcnR5RGVjb3JhdG9yMig4MCksDQogICAgX19wYXJhbSgwLCBQYXJhbWV0ZXJEZWNvcmF0b3IxKSwNCiAgICBfX3BhcmFtKDAsIFBhcmFtZXRlckRlY29yYXRvcjIoOTApKQ0KXSwgR3JlZXRlci5wcm90b3R5cGUsICJncmVldGluZ3MiLCBudWxsKTsNCl9fZGVjb3JhdGUoWw0KICAgIFByb3BlcnR5RGVjb3JhdG9yMSwNCiAgICBQcm9wZXJ0eURlY29yYXRvcjIoNjApDQpdLCBHcmVldGVyLCAieDEiLCB2b2lkIDApOw0KR3JlZXRlciA9IF9fZGVjb3JhdGUoWw0KICAgIENsYXNzRGVjb3JhdG9yMSwNCiAgICBDbGFzc0RlY29yYXRvcjIoMTApLA0KICAgIF9fcGFyYW0oMCwgUGFyYW1ldGVyRGVjb3JhdG9yMSksDQogICAgX19wYXJhbSgwLCBQYXJhbWV0ZXJEZWNvcmF0b3IyKDIwKSksDQogICAgX19wYXJhbSgxLCBQYXJhbWV0ZXJEZWNvcmF0b3IxKSwNCiAgICBfX3BhcmFtKDEsIFBhcmFtZXRlckRlY29yYXRvcjIoMzApKQ0KXSwgR3JlZXRlcik7DQovLyMgc291cmNlTWFwcGluZ1VSTD1zb3VyY2VNYXBWYWxpZGF0aW9uRGVjb3JhdG9ycy5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlTWFwVmFsaWRhdGlvbkRlY29yYXRvcnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzb3VyY2VNYXBWYWxpZGF0aW9uRGVjb3JhdG9ycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFTQSxJQUFNLE9BQU8sR0FBYixNQUFNLE9BQU87SUFDVCxZQUdTLFFBQWdCLEVBSXZCLEdBQUcsQ0FBVztRQUpQLGFBQVEsR0FBUixRQUFRLENBQVE7SUFLekIsQ0FBQztJQUlELEtBQUs7UUFDRCxPQUFPLE1BQU0sR0FBRyxJQUFJLENBQUMsUUFBUSxHQUFHLE9BQU8sQ0FBQztJQUM1QyxDQUFDO0lBVU8sRUFBRSxDQUdSLENBQVM7UUFDUCxPQUFPLElBQUksQ0FBQyxRQUFRLENBQUM7SUFDekIsQ0FBQztJQUlELElBQUksU0FBUztRQUNULE9BQU8sSUFBSSxDQUFDLFFBQVEsQ0FBQztJQUN6QixDQUFDO0lBRUQsSUFBSSxTQUFTLENBR1gsU0FBaUI7UUFDZixJQUFJLENBQUMsUUFBUSxHQUFHLFNBQVMsQ0FBQztJQUM5QixDQUFDOztBQXBCYyxVQUFFLEdBQVcsRUFBRSxBQUFiLENBQWM7QUFWL0I7SUFGQyxrQkFBa0I7SUFDbEIsa0JBQWtCLENBQUMsRUFBRSxDQUFDO29DQUd0QjtBQUlPO0lBRlAsa0JBQWtCO0lBQ2xCLGtCQUFrQixDQUFDLEVBQUUsQ0FBQztrQ0FDTDtBQU1WO0lBQ0wsV0FBQSxtQkFBbUIsQ0FBQTtJQUNuQixXQUFBLG1CQUFtQixDQUFDLEVBQUUsQ0FBQyxDQUFBO2lDQUd6QjtBQUlEO0lBRkMsa0JBQWtCO0lBQ2xCLGtCQUFrQixDQUFDLEVBQUUsQ0FBQztJQU1wQixXQUFBLG1CQUFtQixDQUFBO0lBQ25CLFdBQUEsbUJBQW1CLENBQUMsRUFBRSxDQUFDLENBQUE7d0NBSnpCO0FBYmM7SUFGZCxrQkFBa0I7SUFDbEIsa0JBQWtCLENBQUMsRUFBRSxDQUFDO3lCQUNRO0FBdkI3QixPQUFPO0lBRlosZUFBZTtJQUNmLGVBQWUsQ0FBQyxFQUFFLENBQUM7SUFHYixXQUFBLG1CQUFtQixDQUFBO0lBQ25CLFdBQUEsbUJBQW1CLENBQUMsRUFBRSxDQUFDLENBQUE7SUFHdkIsV0FBQSxtQkFBbUIsQ0FBQTtJQUNuQixXQUFBLG1CQUFtQixDQUFDLEVBQUUsQ0FBQyxDQUFBO0dBUHhCLE9BQU8sQ0E0Q1oifQ==,ZGVjbGFyZSBmdW5jdGlvbiBDbGFzc0RlY29yYXRvcjEodGFyZ2V0OiBGdW5jdGlvbik6IHZvaWQ7CmRlY2xhcmUgZnVuY3Rpb24gQ2xhc3NEZWNvcmF0b3IyKHg6IG51bWJlcik6ICh0YXJnZXQ6IEZ1bmN0aW9uKSA9PiB2b2lkOwpkZWNsYXJlIGZ1bmN0aW9uIFByb3BlcnR5RGVjb3JhdG9yMSh0YXJnZXQ6IE9iamVjdCwga2V5OiBzdHJpbmcgfCBzeW1ib2wsIGRlc2NyaXB0b3I/OiBQcm9wZXJ0eURlc2NyaXB0b3IpOiB2b2lkOwpkZWNsYXJlIGZ1bmN0aW9uIFByb3BlcnR5RGVjb3JhdG9yMih4OiBudW1iZXIpOiAodGFyZ2V0OiBPYmplY3QsIGtleTogc3RyaW5nIHwgc3ltYm9sLCBkZXNjcmlwdG9yPzogUHJvcGVydHlEZXNjcmlwdG9yKSA9PiB2b2lkOwpkZWNsYXJlIGZ1bmN0aW9uIFBhcmFtZXRlckRlY29yYXRvcjEodGFyZ2V0OiBPYmplY3QsIGtleTogc3RyaW5nIHwgc3ltYm9sLCBwYXJhbUluZGV4OiBudW1iZXIpOiB2b2lkOwpkZWNsYXJlIGZ1bmN0aW9uIFBhcmFtZXRlckRlY29yYXRvcjIoeDogbnVtYmVyKTogKHRhcmdldDogT2JqZWN0LCBrZXk6IHN0cmluZyB8IHN5bWJvbCwgcGFyYW1JbmRleDogbnVtYmVyKSA9PiB2b2lkOwoKQENsYXNzRGVjb3JhdG9yMQpAQ2xhc3NEZWNvcmF0b3IyKDEwKQpjbGFzcyBHcmVldGVyIHsKICAgIGNvbnN0cnVjdG9yKAogICAgICBAUGFyYW1ldGVyRGVjb3JhdG9yMSAKICAgICAgQFBhcmFtZXRlckRlY29yYXRvcjIoMjApIAogICAgICBwdWJsaWMgZ3JlZXRpbmc6IHN0cmluZywgCiAgICAgIAogICAgICBAUGFyYW1ldGVyRGVjb3JhdG9yMSAKICAgICAgQFBhcmFtZXRlckRlY29yYXRvcjIoMzApIAogICAgICAuLi5iOiBzdHJpbmdbXSkgewogICAgfQogICAgCiAgICBAUHJvcGVydHlEZWNvcmF0b3IxCiAgICBAUHJvcGVydHlEZWNvcmF0b3IyKDQwKQogICAgZ3JlZXQoKSB7CiAgICAgICAgcmV0dXJuICI8aDE+IiArIHRoaXMuZ3JlZXRpbmcgKyAiPC9oMT4iOwogICAgfQoKICAgIEBQcm9wZXJ0eURlY29yYXRvcjEKICAgIEBQcm9wZXJ0eURlY29yYXRvcjIoNTApCiAgICBwcml2YXRlIHg6IHN0cmluZzsKCiAgICBAUHJvcGVydHlEZWNvcmF0b3IxCiAgICBAUHJvcGVydHlEZWNvcmF0b3IyKDYwKQogICAgcHJpdmF0ZSBzdGF0aWMgeDE6IG51bWJlciA9IDEwOwogICAgCiAgICBwcml2YXRlIGZuKAogICAgICBAUGFyYW1ldGVyRGVjb3JhdG9yMSAKICAgICAgQFBhcmFtZXRlckRlY29yYXRvcjIoNzApIAogICAgICB4OiBudW1iZXIpIHsKICAgICAgICByZXR1cm4gdGhpcy5ncmVldGluZzsKICAgIH0KCiAgICBAUHJvcGVydHlEZWNvcmF0b3IxCiAgICBAUHJvcGVydHlEZWNvcmF0b3IyKDgwKQogICAgZ2V0IGdyZWV0aW5ncygpIHsKICAgICAgICByZXR1cm4gdGhpcy5ncmVldGluZzsKICAgIH0KCiAgICBzZXQgZ3JlZXRpbmdzKAogICAgICBAUGFyYW1ldGVyRGVjb3JhdG9yMSAKICAgICAgQFBhcmFtZXRlckRlY29yYXRvcjIoOTApIAogICAgICBncmVldGluZ3M6IHN0cmluZykgewogICAgICAgIHRoaXMuZ3JlZXRpbmcgPSBncmVldGluZ3M7CiAgICB9ICAgIAp9 -+{"version":3,"file":"sourceMapValidationDecorators.js","sourceRoot":"","sources":["sourceMapValidationDecorators.ts"],"names":[],"mappings":"AAOA,CAAC,eAAe;CACf,eAAe,CAAC,EAAE,CAAC;MACd,OAAO;IAIA,QAAQ;IAHjB,YAGS,QAAgB,EAIvB,GAAG,CAAW,EAAE;wBAJT,QAAQ;IAIE,CAClB;IAED,CAAC,kBAAkB;KAClB,kBAAkB,CAAC,EAAE,CAAC;IACvB,KAAK,GAAG;QACJ,OAAO,MAAM,GAAG,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAAA,CAC3C;IAED,CAAC,kBAAkB;KAClB,kBAAkB,CAAC,EAAE,CAAC;IACf,CAAC,CAAS;IAElB,CAAC,kBAAkB;KAClB,kBAAkB,CAAC,EAAE,CAAC;IACf,MAAM,CAAC,EAAE,GAAW,EAAE,CAAC;IAEvB,EAAE,CAGR,CAAS,EAAE;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;IAAA,CACxB;IAED,CAAC,kBAAkB;KAClB,kBAAkB,CAAC,EAAE,CAAC;QACnB,SAAS,GAAG;QACZ,OAAO,IAAI,CAAC,QAAQ,CAAC;IAAA,CACxB;IAED,IAAI,SAAS,CAGX,SAAiB,EAAE;QACjB,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;IAAA,CAC7B;CACJ"} -+//// https://sokra.github.io/source-map-visualization#base64,QENsYXNzRGVjb3JhdG9yMQ0KQENsYXNzRGVjb3JhdG9yMigxMCkNCmNsYXNzIEdyZWV0ZXIgew0KICAgIGdyZWV0aW5nOw0KICAgIGNvbnN0cnVjdG9yKGdyZWV0aW5nLCAuLi5iKSB7DQogICAgICAgIHRoaXMuZ3JlZXRpbmcgPSBncmVldGluZzsNCiAgICB9DQogICAgQFByb3BlcnR5RGVjb3JhdG9yMQ0KICAgIEBQcm9wZXJ0eURlY29yYXRvcjIoNDApDQogICAgZ3JlZXQoKSB7DQogICAgICAgIHJldHVybiAiPGgxPiIgKyB0aGlzLmdyZWV0aW5nICsgIjwvaDE+IjsNCiAgICB9DQogICAgQFByb3BlcnR5RGVjb3JhdG9yMQ0KICAgIEBQcm9wZXJ0eURlY29yYXRvcjIoNTApDQogICAgeDsNCiAgICBAUHJvcGVydHlEZWNvcmF0b3IxDQogICAgQFByb3BlcnR5RGVjb3JhdG9yMig2MCkNCiAgICBzdGF0aWMgeDEgPSAxMDsNCiAgICBmbih4KSB7DQogICAgICAgIHJldHVybiB0aGlzLmdyZWV0aW5nOw0KICAgIH0NCiAgICBAUHJvcGVydHlEZWNvcmF0b3IxDQogICAgQFByb3BlcnR5RGVjb3JhdG9yMig4MCkNCiAgICBnZXQgZ3JlZXRpbmdzKCkgew0KICAgICAgICByZXR1cm4gdGhpcy5ncmVldGluZzsNCiAgICB9DQogICAgc2V0IGdyZWV0aW5ncyhncmVldGluZ3MpIHsNCiAgICAgICAgdGhpcy5ncmVldGluZyA9IGdyZWV0aW5nczsNCiAgICB9DQp9DQovLyMgc291cmNlTWFwcGluZ1VSTD1zb3VyY2VNYXBWYWxpZGF0aW9uRGVjb3JhdG9ycy5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlTWFwVmFsaWRhdGlvbkRlY29yYXRvcnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzb3VyY2VNYXBWYWxpZGF0aW9uRGVjb3JhdG9ycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPQSxDQUFDLGVBQWU7Q0FDZixlQUFlLENBQUMsRUFBRSxDQUFDO01BQ2QsT0FBTztJQUlBLFFBQVE7SUFIakIsWUFHUyxRQUFnQixFQUl2QixHQUFHLENBQVcsRUFBRTt3QkFKVCxRQUFRO0lBSUUsQ0FDbEI7SUFFRCxDQUFDLGtCQUFrQjtLQUNsQixrQkFBa0IsQ0FBQyxFQUFFLENBQUM7SUFDdkIsS0FBSyxHQUFHO1FBQ0osT0FBTyxNQUFNLEdBQUcsSUFBSSxDQUFDLFFBQVEsR0FBRyxPQUFPLENBQUM7SUFBQSxDQUMzQztJQUVELENBQUMsa0JBQWtCO0tBQ2xCLGtCQUFrQixDQUFDLEVBQUUsQ0FBQztJQUNmLENBQUMsQ0FBUztJQUVsQixDQUFDLGtCQUFrQjtLQUNsQixrQkFBa0IsQ0FBQyxFQUFFLENBQUM7SUFDZixNQUFNLENBQUMsRUFBRSxHQUFXLEVBQUUsQ0FBQztJQUV2QixFQUFFLENBR1IsQ0FBUyxFQUFFO1FBQ1QsT0FBTyxJQUFJLENBQUMsUUFBUSxDQUFDO0lBQUEsQ0FDeEI7SUFFRCxDQUFDLGtCQUFrQjtLQUNsQixrQkFBa0IsQ0FBQyxFQUFFLENBQUM7UUFDbkIsU0FBUyxHQUFHO1FBQ1osT0FBTyxJQUFJLENBQUMsUUFBUSxDQUFDO0lBQUEsQ0FDeEI7SUFFRCxJQUFJLFNBQVMsQ0FHWCxTQUFpQixFQUFFO1FBQ2pCLElBQUksQ0FBQyxRQUFRLEdBQUcsU0FBUyxDQUFDO0lBQUEsQ0FDN0I7Q0FDSiJ9,ZGVjbGFyZSBmdW5jdGlvbiBDbGFzc0RlY29yYXRvcjEodGFyZ2V0OiBGdW5jdGlvbik6IHZvaWQ7CmRlY2xhcmUgZnVuY3Rpb24gQ2xhc3NEZWNvcmF0b3IyKHg6IG51bWJlcik6ICh0YXJnZXQ6IEZ1bmN0aW9uKSA9PiB2b2lkOwpkZWNsYXJlIGZ1bmN0aW9uIFByb3BlcnR5RGVjb3JhdG9yMSh0YXJnZXQ6IE9iamVjdCwga2V5OiBzdHJpbmcgfCBzeW1ib2wsIGRlc2NyaXB0b3I/OiBQcm9wZXJ0eURlc2NyaXB0b3IpOiB2b2lkOwpkZWNsYXJlIGZ1bmN0aW9uIFByb3BlcnR5RGVjb3JhdG9yMih4OiBudW1iZXIpOiAodGFyZ2V0OiBPYmplY3QsIGtleTogc3RyaW5nIHwgc3ltYm9sLCBkZXNjcmlwdG9yPzogUHJvcGVydHlEZXNjcmlwdG9yKSA9PiB2b2lkOwpkZWNsYXJlIGZ1bmN0aW9uIFBhcmFtZXRlckRlY29yYXRvcjEodGFyZ2V0OiBPYmplY3QsIGtleTogc3RyaW5nIHwgc3ltYm9sLCBwYXJhbUluZGV4OiBudW1iZXIpOiB2b2lkOwpkZWNsYXJlIGZ1bmN0aW9uIFBhcmFtZXRlckRlY29yYXRvcjIoeDogbnVtYmVyKTogKHRhcmdldDogT2JqZWN0LCBrZXk6IHN0cmluZyB8IHN5bWJvbCwgcGFyYW1JbmRleDogbnVtYmVyKSA9PiB2b2lkOwoKQENsYXNzRGVjb3JhdG9yMQpAQ2xhc3NEZWNvcmF0b3IyKDEwKQpjbGFzcyBHcmVldGVyIHsKICAgIGNvbnN0cnVjdG9yKAogICAgICBAUGFyYW1ldGVyRGVjb3JhdG9yMSAKICAgICAgQFBhcmFtZXRlckRlY29yYXRvcjIoMjApIAogICAgICBwdWJsaWMgZ3JlZXRpbmc6IHN0cmluZywgCiAgICAgIAogICAgICBAUGFyYW1ldGVyRGVjb3JhdG9yMSAKICAgICAgQFBhcmFtZXRlckRlY29yYXRvcjIoMzApIAogICAgICAuLi5iOiBzdHJpbmdbXSkgewogICAgfQogICAgCiAgICBAUHJvcGVydHlEZWNvcmF0b3IxCiAgICBAUHJvcGVydHlEZWNvcmF0b3IyKDQwKQogICAgZ3JlZXQoKSB7CiAgICAgICAgcmV0dXJuICI8aDE+IiArIHRoaXMuZ3JlZXRpbmcgKyAiPC9oMT4iOwogICAgfQoKICAgIEBQcm9wZXJ0eURlY29yYXRvcjEKICAgIEBQcm9wZXJ0eURlY29yYXRvcjIoNTApCiAgICBwcml2YXRlIHg6IHN0cmluZzsKCiAgICBAUHJvcGVydHlEZWNvcmF0b3IxCiAgICBAUHJvcGVydHlEZWNvcmF0b3IyKDYwKQogICAgcHJpdmF0ZSBzdGF0aWMgeDE6IG51bWJlciA9IDEwOwogICAgCiAgICBwcml2YXRlIGZuKAogICAgICBAUGFyYW1ldGVyRGVjb3JhdG9yMSAKICAgICAgQFBhcmFtZXRlckRlY29yYXRvcjIoNzApIAogICAgICB4OiBudW1iZXIpIHsKICAgICAgICByZXR1cm4gdGhpcy5ncmVldGluZzsKICAgIH0KCiAgICBAUHJvcGVydHlEZWNvcmF0b3IxCiAgICBAUHJvcGVydHlEZWNvcmF0b3IyKDgwKQogICAgZ2V0IGdyZWV0aW5ncygpIHsKICAgICAgICByZXR1cm4gdGhpcy5ncmVldGluZzsKICAgIH0KCiAgICBzZXQgZ3JlZXRpbmdzKAogICAgICBAUGFyYW1ldGVyRGVjb3JhdG9yMSAKICAgICAgQFBhcmFtZXRlckRlY29yYXRvcjIoOTApIAogICAgICBncmVldGluZ3M6IHN0cmluZykgewogICAgICAgIHRoaXMuZ3JlZXRpbmcgPSBncmVldGluZ3M7CiAgICB9ICAgIAp9 \ No newline at end of file ++{"version":3,"file":"sourceMapValidationDecorators.js","sourceRoot":"","sources":["sourceMapValidationDecorators.ts"],"names":[],"mappings":";;;;;;;;;AAQA,IACM,OAAO,GADb,MACM,OAAO;IAIA,QAAQ;IAHjB,YAGS,QAAgB,EAIvB,GAAG,CAAW,EAAE;wBAJT,QAAQ;IAIE,CAClB;IAID,KAAK,GAAG;QACJ,OAAO,MAAM,GAAG,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;IAAA,CAC3C;IAIO,CAAC,CAAS;IAIH,AAAP,MAAM,CAAC,EAAE,GAAW,EAAE,CAAC;IAEvB,EAAE,CAGR,CAAS,EAAE;QACT,OAAO,IAAI,CAAC,QAAQ,CAAC;IAAA,CACxB;IAGD,IACI,SAAS,GAAG;QACZ,OAAO,IAAI,CAAC,QAAQ,CAAC;IAAA,CACxB;IAED,IAAI,SAAS,CAGX,SAAiB,EAAE;QACjB,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;IAAA,CAC7B;CACJ,CAAA;AA/BG;IAFC,kBAAkB;IAClB,kBAAkB,CAAC,EAAE,CAAC;oCAGtB;AAIO;IAFP,kBAAkB;IAClB,kBAAkB,CAAC,EAAE,CAAC;kCACL;AAMV;IACL,WAAA,mBAAmB,CAAA;IACnB,WAAA,mBAAmB,CAAC,EAAE,CAAC,CAAA;iCAGzB;AAGD;IADC,kBAAkB;IAClB,kBAAkB,CAAC,EAAE,CAAC;IAMpB,WAAA,mBAAmB,CAAA;IACnB,WAAA,mBAAmB,CAAC,EAAE,CAAC,CAAA;wCAJzB;AAbc;IAFd,kBAAkB;IAClB,kBAAkB,CAAC,EAAE,CAAC;yBACQ;AAvB7B,OAAO;IAFZ,eAAe;IACf,eAAe,CAAC,EAAE,CAAC;IAGb,WAAA,mBAAmB,CAAA;IACnB,WAAA,mBAAmB,CAAC,EAAE,CAAC,CAAA;IAGvB,WAAA,mBAAmB,CAAA;IACnB,WAAA,mBAAmB,CAAC,EAAE,CAAC,CAAA;GAPxB,OAAO,CA4CZ"} ++//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fZGVjb3JhdGUgPSAodGhpcyAmJiB0aGlzLl9fZGVjb3JhdGUpIHx8IGZ1bmN0aW9uIChkZWNvcmF0b3JzLCB0YXJnZXQsIGtleSwgZGVzYykgew0KICAgIHZhciBjID0gYXJndW1lbnRzLmxlbmd0aCwgciA9IGMgPCAzID8gdGFyZ2V0IDogZGVzYyA9PT0gbnVsbCA/IGRlc2MgPSBPYmplY3QuZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yKHRhcmdldCwga2V5KSA6IGRlc2MsIGQ7DQogICAgaWYgKHR5cGVvZiBSZWZsZWN0ID09PSAib2JqZWN0IiAmJiB0eXBlb2YgUmVmbGVjdC5kZWNvcmF0ZSA9PT0gImZ1bmN0aW9uIikgciA9IFJlZmxlY3QuZGVjb3JhdGUoZGVjb3JhdG9ycywgdGFyZ2V0LCBrZXksIGRlc2MpOw0KICAgIGVsc2UgZm9yICh2YXIgaSA9IGRlY29yYXRvcnMubGVuZ3RoIC0gMTsgaSA+PSAwOyBpLS0pIGlmIChkID0gZGVjb3JhdG9yc1tpXSkgciA9IChjIDwgMyA/IGQocikgOiBjID4gMyA/IGQodGFyZ2V0LCBrZXksIHIpIDogZCh0YXJnZXQsIGtleSkpIHx8IHI7DQogICAgcmV0dXJuIGMgPiAzICYmIHIgJiYgT2JqZWN0LmRlZmluZVByb3BlcnR5KHRhcmdldCwga2V5LCByKSwgcjsNCn07DQp2YXIgX19wYXJhbSA9ICh0aGlzICYmIHRoaXMuX19wYXJhbSkgfHwgZnVuY3Rpb24gKHBhcmFtSW5kZXgsIGRlY29yYXRvcikgew0KICAgIHJldHVybiBmdW5jdGlvbiAodGFyZ2V0LCBrZXkpIHsgZGVjb3JhdG9yKHRhcmdldCwga2V5LCBwYXJhbUluZGV4KTsgfQ0KfTsNCmxldCBHcmVldGVyID0gY2xhc3MgR3JlZXRlciB7DQogICAgZ3JlZXRpbmc7DQogICAgY29uc3RydWN0b3IoZ3JlZXRpbmcsIC4uLmIpIHsNCiAgICAgICAgdGhpcy5ncmVldGluZyA9IGdyZWV0aW5nOw0KICAgIH0NCiAgICBncmVldCgpIHsNCiAgICAgICAgcmV0dXJuICI8aDE+IiArIHRoaXMuZ3JlZXRpbmcgKyAiPC9oMT4iOw0KICAgIH0NCiAgICB4Ow0KICAgIHN0YXRpYyB4MSA9IDEwOw0KICAgIGZuKHgpIHsNCiAgICAgICAgcmV0dXJuIHRoaXMuZ3JlZXRpbmc7DQogICAgfQ0KICAgIGdldCBncmVldGluZ3MoKSB7DQogICAgICAgIHJldHVybiB0aGlzLmdyZWV0aW5nOw0KICAgIH0NCiAgICBzZXQgZ3JlZXRpbmdzKGdyZWV0aW5ncykgew0KICAgICAgICB0aGlzLmdyZWV0aW5nID0gZ3JlZXRpbmdzOw0KICAgIH0NCn07DQpfX2RlY29yYXRlKFsNCiAgICBQcm9wZXJ0eURlY29yYXRvcjEsDQogICAgUHJvcGVydHlEZWNvcmF0b3IyKDQwKQ0KXSwgR3JlZXRlci5wcm90b3R5cGUsICJncmVldCIsIG51bGwpOw0KX19kZWNvcmF0ZShbDQogICAgUHJvcGVydHlEZWNvcmF0b3IxLA0KICAgIFByb3BlcnR5RGVjb3JhdG9yMig1MCkNCl0sIEdyZWV0ZXIucHJvdG90eXBlLCAieCIsIHZvaWQgMCk7DQpfX2RlY29yYXRlKFsNCiAgICBfX3BhcmFtKDAsIFBhcmFtZXRlckRlY29yYXRvcjEpLA0KICAgIF9fcGFyYW0oMCwgUGFyYW1ldGVyRGVjb3JhdG9yMig3MCkpDQpdLCBHcmVldGVyLnByb3RvdHlwZSwgImZuIiwgbnVsbCk7DQpfX2RlY29yYXRlKFsNCiAgICBQcm9wZXJ0eURlY29yYXRvcjEsDQogICAgUHJvcGVydHlEZWNvcmF0b3IyKDgwKSwNCiAgICBfX3BhcmFtKDAsIFBhcmFtZXRlckRlY29yYXRvcjEpLA0KICAgIF9fcGFyYW0oMCwgUGFyYW1ldGVyRGVjb3JhdG9yMig5MCkpDQpdLCBHcmVldGVyLnByb3RvdHlwZSwgImdyZWV0aW5ncyIsIG51bGwpOw0KX19kZWNvcmF0ZShbDQogICAgUHJvcGVydHlEZWNvcmF0b3IxLA0KICAgIFByb3BlcnR5RGVjb3JhdG9yMig2MCkNCl0sIEdyZWV0ZXIsICJ4MSIsIHZvaWQgMCk7DQpHcmVldGVyID0gX19kZWNvcmF0ZShbDQogICAgQ2xhc3NEZWNvcmF0b3IxLA0KICAgIENsYXNzRGVjb3JhdG9yMigxMCksDQogICAgX19wYXJhbSgwLCBQYXJhbWV0ZXJEZWNvcmF0b3IxKSwNCiAgICBfX3BhcmFtKDAsIFBhcmFtZXRlckRlY29yYXRvcjIoMjApKSwNCiAgICBfX3BhcmFtKDEsIFBhcmFtZXRlckRlY29yYXRvcjEpLA0KICAgIF9fcGFyYW0oMSwgUGFyYW1ldGVyRGVjb3JhdG9yMigzMCkpDQpdLCBHcmVldGVyKTsNCi8vIyBzb3VyY2VNYXBwaW5nVVJMPXNvdXJjZU1hcFZhbGlkYXRpb25EZWNvcmF0b3JzLmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlTWFwVmFsaWRhdGlvbkRlY29yYXRvcnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzb3VyY2VNYXBWYWxpZGF0aW9uRGVjb3JhdG9ycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFRQSxJQUNNLE9BQU8sR0FEYixNQUNNLE9BQU87SUFJQSxRQUFRO0lBSGpCLFlBR1MsUUFBZ0IsRUFJdkIsR0FBRyxDQUFXLEVBQUU7d0JBSlQsUUFBUTtJQUlFLENBQ2xCO0lBSUQsS0FBSyxHQUFHO1FBQ0osT0FBTyxNQUFNLEdBQUcsSUFBSSxDQUFDLFFBQVEsR0FBRyxPQUFPLENBQUM7SUFBQSxDQUMzQztJQUlPLENBQUMsQ0FBUztJQUlILEFBQVAsTUFBTSxDQUFDLEVBQUUsR0FBVyxFQUFFLENBQUM7SUFFdkIsRUFBRSxDQUdSLENBQVMsRUFBRTtRQUNULE9BQU8sSUFBSSxDQUFDLFFBQVEsQ0FBQztJQUFBLENBQ3hCO0lBR0QsSUFDSSxTQUFTLEdBQUc7UUFDWixPQUFPLElBQUksQ0FBQyxRQUFRLENBQUM7SUFBQSxDQUN4QjtJQUVELElBQUksU0FBUyxDQUdYLFNBQWlCLEVBQUU7UUFDakIsSUFBSSxDQUFDLFFBQVEsR0FBRyxTQUFTLENBQUM7SUFBQSxDQUM3QjtDQUNKLENBQUE7QUEvQkc7SUFGQyxrQkFBa0I7SUFDbEIsa0JBQWtCLENBQUMsRUFBRSxDQUFDO29DQUd0QjtBQUlPO0lBRlAsa0JBQWtCO0lBQ2xCLGtCQUFrQixDQUFDLEVBQUUsQ0FBQztrQ0FDTDtBQU1WO0lBQ0wsV0FBQSxtQkFBbUIsQ0FBQTtJQUNuQixXQUFBLG1CQUFtQixDQUFDLEVBQUUsQ0FBQyxDQUFBO2lDQUd6QjtBQUdEO0lBREMsa0JBQWtCO0lBQ2xCLGtCQUFrQixDQUFDLEVBQUUsQ0FBQztJQU1wQixXQUFBLG1CQUFtQixDQUFBO0lBQ25CLFdBQUEsbUJBQW1CLENBQUMsRUFBRSxDQUFDLENBQUE7d0NBSnpCO0FBYmM7SUFGZCxrQkFBa0I7SUFDbEIsa0JBQWtCLENBQUMsRUFBRSxDQUFDO3lCQUNRO0FBdkI3QixPQUFPO0lBRlosZUFBZTtJQUNmLGVBQWUsQ0FBQyxFQUFFLENBQUM7SUFHYixXQUFBLG1CQUFtQixDQUFBO0lBQ25CLFdBQUEsbUJBQW1CLENBQUMsRUFBRSxDQUFDLENBQUE7SUFHdkIsV0FBQSxtQkFBbUIsQ0FBQTtJQUNuQixXQUFBLG1CQUFtQixDQUFDLEVBQUUsQ0FBQyxDQUFBO0dBUHhCLE9BQU8sQ0E0Q1oifQ==,ZGVjbGFyZSBmdW5jdGlvbiBDbGFzc0RlY29yYXRvcjEodGFyZ2V0OiBGdW5jdGlvbik6IHZvaWQ7CmRlY2xhcmUgZnVuY3Rpb24gQ2xhc3NEZWNvcmF0b3IyKHg6IG51bWJlcik6ICh0YXJnZXQ6IEZ1bmN0aW9uKSA9PiB2b2lkOwpkZWNsYXJlIGZ1bmN0aW9uIFByb3BlcnR5RGVjb3JhdG9yMSh0YXJnZXQ6IE9iamVjdCwga2V5OiBzdHJpbmcgfCBzeW1ib2wsIGRlc2NyaXB0b3I/OiBQcm9wZXJ0eURlc2NyaXB0b3IpOiB2b2lkOwpkZWNsYXJlIGZ1bmN0aW9uIFByb3BlcnR5RGVjb3JhdG9yMih4OiBudW1iZXIpOiAodGFyZ2V0OiBPYmplY3QsIGtleTogc3RyaW5nIHwgc3ltYm9sLCBkZXNjcmlwdG9yPzogUHJvcGVydHlEZXNjcmlwdG9yKSA9PiB2b2lkOwpkZWNsYXJlIGZ1bmN0aW9uIFBhcmFtZXRlckRlY29yYXRvcjEodGFyZ2V0OiBPYmplY3QsIGtleTogc3RyaW5nIHwgc3ltYm9sLCBwYXJhbUluZGV4OiBudW1iZXIpOiB2b2lkOwpkZWNsYXJlIGZ1bmN0aW9uIFBhcmFtZXRlckRlY29yYXRvcjIoeDogbnVtYmVyKTogKHRhcmdldDogT2JqZWN0LCBrZXk6IHN0cmluZyB8IHN5bWJvbCwgcGFyYW1JbmRleDogbnVtYmVyKSA9PiB2b2lkOwoKQENsYXNzRGVjb3JhdG9yMQpAQ2xhc3NEZWNvcmF0b3IyKDEwKQpjbGFzcyBHcmVldGVyIHsKICAgIGNvbnN0cnVjdG9yKAogICAgICBAUGFyYW1ldGVyRGVjb3JhdG9yMSAKICAgICAgQFBhcmFtZXRlckRlY29yYXRvcjIoMjApIAogICAgICBwdWJsaWMgZ3JlZXRpbmc6IHN0cmluZywgCiAgICAgIAogICAgICBAUGFyYW1ldGVyRGVjb3JhdG9yMSAKICAgICAgQFBhcmFtZXRlckRlY29yYXRvcjIoMzApIAogICAgICAuLi5iOiBzdHJpbmdbXSkgewogICAgfQogICAgCiAgICBAUHJvcGVydHlEZWNvcmF0b3IxCiAgICBAUHJvcGVydHlEZWNvcmF0b3IyKDQwKQogICAgZ3JlZXQoKSB7CiAgICAgICAgcmV0dXJuICI8aDE+IiArIHRoaXMuZ3JlZXRpbmcgKyAiPC9oMT4iOwogICAgfQoKICAgIEBQcm9wZXJ0eURlY29yYXRvcjEKICAgIEBQcm9wZXJ0eURlY29yYXRvcjIoNTApCiAgICBwcml2YXRlIHg6IHN0cmluZzsKCiAgICBAUHJvcGVydHlEZWNvcmF0b3IxCiAgICBAUHJvcGVydHlEZWNvcmF0b3IyKDYwKQogICAgcHJpdmF0ZSBzdGF0aWMgeDE6IG51bWJlciA9IDEwOwogICAgCiAgICBwcml2YXRlIGZuKAogICAgICBAUGFyYW1ldGVyRGVjb3JhdG9yMSAKICAgICAgQFBhcmFtZXRlckRlY29yYXRvcjIoNzApIAogICAgICB4OiBudW1iZXIpIHsKICAgICAgICByZXR1cm4gdGhpcy5ncmVldGluZzsKICAgIH0KCiAgICBAUHJvcGVydHlEZWNvcmF0b3IxCiAgICBAUHJvcGVydHlEZWNvcmF0b3IyKDgwKQogICAgZ2V0IGdyZWV0aW5ncygpIHsKICAgICAgICByZXR1cm4gdGhpcy5ncmVldGluZzsKICAgIH0KCiAgICBzZXQgZ3JlZXRpbmdzKAogICAgICBAUGFyYW1ldGVyRGVjb3JhdG9yMSAKICAgICAgQFBhcmFtZXRlckRlY29yYXRvcjIoOTApIAogICAgICBncmVldGluZ3M6IHN0cmluZykgewogICAgICAgIHRoaXMuZ3JlZXRpbmcgPSBncmVldGluZ3M7CiAgICB9ICAgIAp9 \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/sourceMapValidationDecorators.sourcemap.txt b/testdata/baselines/reference/submodule/compiler/sourceMapValidationDecorators.sourcemap.txt index 2acb82de7..d251384cc 100644 --- a/testdata/baselines/reference/submodule/compiler/sourceMapValidationDecorators.sourcemap.txt +++ b/testdata/baselines/reference/submodule/compiler/sourceMapValidationDecorators.sourcemap.txt @@ -8,11 +8,22 @@ sources: sourceMapValidationDecorators.ts emittedFile:sourceMapValidationDecorators.js sourceFile:sourceMapValidationDecorators.ts ------------------------------------------------------------------- ->>>@ClassDecorator1 +>>>var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { +>>> var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; +>>> if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); +>>> else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; +>>> return c > 3 && r && Object.defineProperty(target, key, r), r; +>>>}; +>>>var __param = (this && this.__param) || function (paramIndex, decorator) { +>>> return function (target, key) { decorator(target, key, paramIndex); } +>>>}; +>>>let Greeter = class Greeter { 1 > -2 >^ -3 > ^^^^^^^^^^^^^^^ -4 > ^^^^^-> +2 >^^^^ +3 > ^^^^^^^ +4 > ^^^ +5 > ^^^^^^ +6 > ^^^^^^^ 1 >declare function ClassDecorator1(target: Function): void; >declare function ClassDecorator2(x: number): (target: Function) => void; >declare function PropertyDecorator1(target: Object, key: string | symbol, descriptor?: PropertyDescriptor): void; @@ -20,53 +31,34 @@ sourceFile:sourceMapValidationDecorators.ts >declare function ParameterDecorator1(target: Object, key: string | symbol, paramIndex: number): void; >declare function ParameterDecorator2(x: number): (target: Object, key: string | symbol, paramIndex: number) => void; > + >@ClassDecorator1 > -2 >@ -3 > ClassDecorator1 -1 >Emitted(1, 1) Source(8, 1) + SourceIndex(0) -2 >Emitted(1, 2) Source(8, 2) + SourceIndex(0) -3 >Emitted(1, 17) Source(8, 17) + SourceIndex(0) ---- ->>>@ClassDecorator2(10) -1->^ -2 > ^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^ -5 > ^ -1-> - >@ -2 > ClassDecorator2 -3 > ( -4 > 10 -5 > ) -1->Emitted(2, 2) Source(9, 2) + SourceIndex(0) -2 >Emitted(2, 17) Source(9, 17) + SourceIndex(0) -3 >Emitted(2, 18) Source(9, 18) + SourceIndex(0) -4 >Emitted(2, 20) Source(9, 20) + SourceIndex(0) -5 >Emitted(2, 21) Source(9, 21) + SourceIndex(0) ---- ->>>class Greeter { -1 >^^^^^^ -2 > ^^^^^^^ -3 > ^-> -1 > +2 >@ClassDecorator2(10) >class -2 > Greeter -1 >Emitted(3, 7) Source(10, 7) + SourceIndex(0) -2 >Emitted(3, 14) Source(10, 14) + SourceIndex(0) +3 > Greeter +4 > +5 > @ClassDecorator2(10) + > class +6 > Greeter +1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) +2 >Emitted(10, 5) Source(10, 7) + SourceIndex(0) +3 >Emitted(10, 12) Source(10, 14) + SourceIndex(0) +4 >Emitted(10, 15) Source(9, 1) + SourceIndex(0) +5 >Emitted(10, 21) Source(10, 7) + SourceIndex(0) +6 >Emitted(10, 28) Source(10, 14) + SourceIndex(0) --- >>> greeting; -1->^^^^ +1 >^^^^ 2 > ^^^^^^^^ 3 > ^^^^^^^^^^^^^^^^^^^^^^-> -1-> { +1 > { > constructor( > @ParameterDecorator1 > @ParameterDecorator2(20) > public 2 > greeting -1->Emitted(4, 5) Source(14, 14) + SourceIndex(0) -2 >Emitted(4, 13) Source(14, 22) + SourceIndex(0) +1 >Emitted(11, 5) Source(14, 14) + SourceIndex(0) +2 >Emitted(11, 13) Source(14, 22) + SourceIndex(0) --- >>> constructor(greeting, ...b) { 1->^^^^ @@ -91,26 +83,26 @@ sourceFile:sourceMapValidationDecorators.ts 5 > ... 6 > b: string[] 7 > ) -1->Emitted(5, 5) Source(11, 5) + SourceIndex(0) -2 >Emitted(5, 17) Source(14, 14) + SourceIndex(0) -3 >Emitted(5, 25) Source(14, 30) + SourceIndex(0) -4 >Emitted(5, 27) Source(18, 7) + SourceIndex(0) -5 >Emitted(5, 30) Source(18, 10) + SourceIndex(0) -6 >Emitted(5, 31) Source(18, 21) + SourceIndex(0) -7 >Emitted(5, 33) Source(18, 23) + SourceIndex(0) +1->Emitted(12, 5) Source(11, 5) + SourceIndex(0) +2 >Emitted(12, 17) Source(14, 14) + SourceIndex(0) +3 >Emitted(12, 25) Source(14, 30) + SourceIndex(0) +4 >Emitted(12, 27) Source(18, 7) + SourceIndex(0) +5 >Emitted(12, 30) Source(18, 10) + SourceIndex(0) +6 >Emitted(12, 31) Source(18, 21) + SourceIndex(0) +7 >Emitted(12, 33) Source(18, 23) + SourceIndex(0) --- >>> this.greeting = greeting; 1->^^^^^^^^^^^^^^^^^^^^^^^^ 2 > ^^^^^^^^ 1-> 2 > greeting -1->Emitted(6, 25) Source(14, 14) + SourceIndex(0) -2 >Emitted(6, 33) Source(14, 22) + SourceIndex(0) +1->Emitted(13, 25) Source(14, 14) + SourceIndex(0) +2 >Emitted(13, 33) Source(14, 22) + SourceIndex(0) --- >>> } 1 >^^^^ 2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^-> 1 >: string, > > @ParameterDecorator1 @@ -118,53 +110,24 @@ sourceFile:sourceMapValidationDecorators.ts > ...b: string[]) { 2 > > } -1 >Emitted(7, 5) Source(18, 24) + SourceIndex(0) -2 >Emitted(7, 6) Source(19, 6) + SourceIndex(0) ---- ->>> @PropertyDecorator1 -1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^ -4 > ^^^^^-> -1-> - > - > -2 > @ -3 > PropertyDecorator1 -1->Emitted(8, 5) Source(21, 5) + SourceIndex(0) -2 >Emitted(8, 6) Source(21, 6) + SourceIndex(0) -3 >Emitted(8, 24) Source(21, 24) + SourceIndex(0) ---- ->>> @PropertyDecorator2(40) -1->^^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^ -5 > ^ -1-> - > @ -2 > PropertyDecorator2 -3 > ( -4 > 40 -5 > ) -1->Emitted(9, 6) Source(22, 6) + SourceIndex(0) -2 >Emitted(9, 24) Source(22, 24) + SourceIndex(0) -3 >Emitted(9, 25) Source(22, 25) + SourceIndex(0) -4 >Emitted(9, 27) Source(22, 27) + SourceIndex(0) -5 >Emitted(9, 28) Source(22, 28) + SourceIndex(0) +1 >Emitted(14, 5) Source(18, 24) + SourceIndex(0) +2 >Emitted(14, 6) Source(19, 6) + SourceIndex(0) --- >>> greet() { -1 >^^^^ +1->^^^^ 2 > ^^^^^ 3 > ^^^ 4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > +1-> + > + > @PropertyDecorator1 + > @PropertyDecorator2(40) > 2 > greet 3 > () -1 >Emitted(10, 5) Source(23, 5) + SourceIndex(0) -2 >Emitted(10, 10) Source(23, 10) + SourceIndex(0) -3 >Emitted(10, 13) Source(23, 13) + SourceIndex(0) +1->Emitted(15, 5) Source(23, 5) + SourceIndex(0) +2 >Emitted(15, 10) Source(23, 10) + SourceIndex(0) +3 >Emitted(15, 13) Source(23, 13) + SourceIndex(0) --- >>> return "

" + this.greeting + "

"; 1->^^^^^^^^ @@ -188,127 +151,72 @@ sourceFile:sourceMapValidationDecorators.ts 8 > + 9 > "" 10> ; -1->Emitted(11, 9) Source(24, 9) + SourceIndex(0) -2 >Emitted(11, 16) Source(24, 16) + SourceIndex(0) -3 >Emitted(11, 22) Source(24, 22) + SourceIndex(0) -4 >Emitted(11, 25) Source(24, 25) + SourceIndex(0) -5 >Emitted(11, 29) Source(24, 29) + SourceIndex(0) -6 >Emitted(11, 30) Source(24, 30) + SourceIndex(0) -7 >Emitted(11, 38) Source(24, 38) + SourceIndex(0) -8 >Emitted(11, 41) Source(24, 41) + SourceIndex(0) -9 >Emitted(11, 48) Source(24, 48) + SourceIndex(0) -10>Emitted(11, 49) Source(24, 49) + SourceIndex(0) +1->Emitted(16, 9) Source(24, 9) + SourceIndex(0) +2 >Emitted(16, 16) Source(24, 16) + SourceIndex(0) +3 >Emitted(16, 22) Source(24, 22) + SourceIndex(0) +4 >Emitted(16, 25) Source(24, 25) + SourceIndex(0) +5 >Emitted(16, 29) Source(24, 29) + SourceIndex(0) +6 >Emitted(16, 30) Source(24, 30) + SourceIndex(0) +7 >Emitted(16, 38) Source(24, 38) + SourceIndex(0) +8 >Emitted(16, 41) Source(24, 41) + SourceIndex(0) +9 >Emitted(16, 48) Source(24, 48) + SourceIndex(0) +10>Emitted(16, 49) Source(24, 49) + SourceIndex(0) --- >>> } 1 >^^^^ 2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^-> +3 > ^^-> 1 > 2 > > } -1 >Emitted(12, 5) Source(24, 49) + SourceIndex(0) -2 >Emitted(12, 6) Source(25, 6) + SourceIndex(0) +1 >Emitted(17, 5) Source(24, 49) + SourceIndex(0) +2 >Emitted(17, 6) Source(25, 6) + SourceIndex(0) --- ->>> @PropertyDecorator1 +>>> x; 1->^^^^ 2 > ^ -3 > ^^^^^^^^^^^^^^^^^^ -4 > ^^^^^-> +3 > ^ +4 > ^^^^^^^^^^^^^^-> 1-> > - > -2 > @ -3 > PropertyDecorator1 -1->Emitted(13, 5) Source(27, 5) + SourceIndex(0) -2 >Emitted(13, 6) Source(27, 6) + SourceIndex(0) -3 >Emitted(13, 24) Source(27, 24) + SourceIndex(0) ---- ->>> @PropertyDecorator2(50) -1->^^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^ -5 > ^ -1-> - > @ -2 > PropertyDecorator2 -3 > ( -4 > 50 -5 > ) -1->Emitted(14, 6) Source(28, 6) + SourceIndex(0) -2 >Emitted(14, 24) Source(28, 24) + SourceIndex(0) -3 >Emitted(14, 25) Source(28, 25) + SourceIndex(0) -4 >Emitted(14, 27) Source(28, 27) + SourceIndex(0) -5 >Emitted(14, 28) Source(28, 28) + SourceIndex(0) ---- ->>> x; -1 >^^^^ -2 > ^ -3 > ^ -4 > ^^^^^^^^^^^^^^^^^^-> -1 > + > @PropertyDecorator1 + > @PropertyDecorator2(50) > private 2 > x 3 > : string; -1 >Emitted(15, 5) Source(29, 13) + SourceIndex(0) -2 >Emitted(15, 6) Source(29, 14) + SourceIndex(0) -3 >Emitted(15, 7) Source(29, 23) + SourceIndex(0) +1->Emitted(18, 5) Source(29, 13) + SourceIndex(0) +2 >Emitted(18, 6) Source(29, 14) + SourceIndex(0) +3 >Emitted(18, 7) Source(29, 23) + SourceIndex(0) --- ->>> @PropertyDecorator1 +>>> static x1 = 10; 1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^ -4 > ^^^^^-> +2 > +3 > ^^^^^^ +4 > ^ +5 > ^^ +6 > ^^^ +7 > ^^ +8 > ^ 1-> > - > -2 > @ -3 > PropertyDecorator1 -1->Emitted(16, 5) Source(31, 5) + SourceIndex(0) -2 >Emitted(16, 6) Source(31, 6) + SourceIndex(0) -3 >Emitted(16, 24) Source(31, 24) + SourceIndex(0) ---- ->>> @PropertyDecorator2(60) -1->^^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^ -5 > ^ -1-> - > @ -2 > PropertyDecorator2 -3 > ( -4 > 60 -5 > ) -1->Emitted(17, 6) Source(32, 6) + SourceIndex(0) -2 >Emitted(17, 24) Source(32, 24) + SourceIndex(0) -3 >Emitted(17, 25) Source(32, 25) + SourceIndex(0) -4 >Emitted(17, 27) Source(32, 27) + SourceIndex(0) -5 >Emitted(17, 28) Source(32, 28) + SourceIndex(0) ---- ->>> static x1 = 10; -1 >^^^^ -2 > ^^^^^^ -3 > ^ -4 > ^^ -5 > ^^^ -6 > ^^ -7 > ^ -1 > - > private -2 > static -3 > -4 > x1 -5 > : number = -6 > 10 -7 > ; -1 >Emitted(18, 5) Source(33, 13) + SourceIndex(0) -2 >Emitted(18, 11) Source(33, 19) + SourceIndex(0) -3 >Emitted(18, 12) Source(33, 20) + SourceIndex(0) -4 >Emitted(18, 14) Source(33, 22) + SourceIndex(0) -5 >Emitted(18, 17) Source(33, 33) + SourceIndex(0) -6 >Emitted(18, 19) Source(33, 35) + SourceIndex(0) -7 >Emitted(18, 20) Source(33, 36) + SourceIndex(0) + > @PropertyDecorator1 + > @PropertyDecorator2(60) + > private static +2 > +3 > static +4 > +5 > x1 +6 > : number = +7 > 10 +8 > ; +1->Emitted(19, 5) Source(33, 20) + SourceIndex(0) +2 >Emitted(19, 5) Source(33, 13) + SourceIndex(0) +3 >Emitted(19, 11) Source(33, 19) + SourceIndex(0) +4 >Emitted(19, 12) Source(33, 20) + SourceIndex(0) +5 >Emitted(19, 14) Source(33, 22) + SourceIndex(0) +6 >Emitted(19, 17) Source(33, 33) + SourceIndex(0) +7 >Emitted(19, 19) Source(33, 35) + SourceIndex(0) +8 >Emitted(19, 20) Source(33, 36) + SourceIndex(0) --- >>> fn(x) { 1 >^^^^ @@ -327,11 +235,11 @@ sourceFile:sourceMapValidationDecorators.ts > 4 > x: number 5 > ) -1 >Emitted(19, 5) Source(35, 13) + SourceIndex(0) -2 >Emitted(19, 7) Source(35, 15) + SourceIndex(0) -3 >Emitted(19, 8) Source(38, 7) + SourceIndex(0) -4 >Emitted(19, 9) Source(38, 16) + SourceIndex(0) -5 >Emitted(19, 11) Source(38, 18) + SourceIndex(0) +1 >Emitted(20, 5) Source(35, 13) + SourceIndex(0) +2 >Emitted(20, 7) Source(35, 15) + SourceIndex(0) +3 >Emitted(20, 8) Source(38, 7) + SourceIndex(0) +4 >Emitted(20, 9) Source(38, 16) + SourceIndex(0) +5 >Emitted(20, 11) Source(38, 18) + SourceIndex(0) --- >>> return this.greeting; 1->^^^^^^^^ @@ -347,67 +255,41 @@ sourceFile:sourceMapValidationDecorators.ts 4 > . 5 > greeting 6 > ; -1->Emitted(20, 9) Source(39, 9) + SourceIndex(0) -2 >Emitted(20, 16) Source(39, 16) + SourceIndex(0) -3 >Emitted(20, 20) Source(39, 20) + SourceIndex(0) -4 >Emitted(20, 21) Source(39, 21) + SourceIndex(0) -5 >Emitted(20, 29) Source(39, 29) + SourceIndex(0) -6 >Emitted(20, 30) Source(39, 30) + SourceIndex(0) +1->Emitted(21, 9) Source(39, 9) + SourceIndex(0) +2 >Emitted(21, 16) Source(39, 16) + SourceIndex(0) +3 >Emitted(21, 20) Source(39, 20) + SourceIndex(0) +4 >Emitted(21, 21) Source(39, 21) + SourceIndex(0) +5 >Emitted(21, 29) Source(39, 29) + SourceIndex(0) +6 >Emitted(21, 30) Source(39, 30) + SourceIndex(0) --- >>> } 1 >^^^^ 2 > ^ -3 > ^^^^^^^^^^^^^^^^^^^-> +3 > ^^^^^^^^^^^^^^^^^-> 1 > 2 > > } -1 >Emitted(21, 5) Source(39, 30) + SourceIndex(0) -2 >Emitted(21, 6) Source(40, 6) + SourceIndex(0) +1 >Emitted(22, 5) Source(39, 30) + SourceIndex(0) +2 >Emitted(22, 6) Source(40, 6) + SourceIndex(0) --- ->>> @PropertyDecorator1 +>>> get greetings() { 1->^^^^ -2 > ^ -3 > ^^^^^^^^^^^^^^^^^^ -4 > ^^^^^-> +2 > ^^^^ +3 > ^^^^^^^^^ +4 > ^^^ +5 > ^^^^^^^^^^-> 1-> > + > @PropertyDecorator1 > -2 > @ -3 > PropertyDecorator1 -1->Emitted(22, 5) Source(42, 5) + SourceIndex(0) -2 >Emitted(22, 6) Source(42, 6) + SourceIndex(0) -3 >Emitted(22, 24) Source(42, 24) + SourceIndex(0) ---- ->>> @PropertyDecorator2(80) -1->^^^^^ -2 > ^^^^^^^^^^^^^^^^^^ -3 > ^ -4 > ^^ -5 > ^ -1-> - > @ -2 > PropertyDecorator2 -3 > ( -4 > 80 -5 > ) -1->Emitted(23, 6) Source(43, 6) + SourceIndex(0) -2 >Emitted(23, 24) Source(43, 24) + SourceIndex(0) -3 >Emitted(23, 25) Source(43, 25) + SourceIndex(0) -4 >Emitted(23, 27) Source(43, 27) + SourceIndex(0) -5 >Emitted(23, 28) Source(43, 28) + SourceIndex(0) ---- ->>> get greetings() { -1 >^^^^^^^^ -2 > ^^^^^^^^^ -3 > ^^^ -4 > ^^^^^^^^^^-> -1 > - > get -2 > greetings -3 > () -1 >Emitted(24, 9) Source(44, 9) + SourceIndex(0) -2 >Emitted(24, 18) Source(44, 18) + SourceIndex(0) -3 >Emitted(24, 21) Source(44, 21) + SourceIndex(0) +2 > @PropertyDecorator2(80) + > get +3 > greetings +4 > () +1->Emitted(23, 5) Source(43, 5) + SourceIndex(0) +2 >Emitted(23, 9) Source(44, 9) + SourceIndex(0) +3 >Emitted(23, 18) Source(44, 18) + SourceIndex(0) +4 >Emitted(23, 21) Source(44, 21) + SourceIndex(0) --- >>> return this.greeting; 1->^^^^^^^^ @@ -423,12 +305,12 @@ sourceFile:sourceMapValidationDecorators.ts 4 > . 5 > greeting 6 > ; -1->Emitted(25, 9) Source(45, 9) + SourceIndex(0) -2 >Emitted(25, 16) Source(45, 16) + SourceIndex(0) -3 >Emitted(25, 20) Source(45, 20) + SourceIndex(0) -4 >Emitted(25, 21) Source(45, 21) + SourceIndex(0) -5 >Emitted(25, 29) Source(45, 29) + SourceIndex(0) -6 >Emitted(25, 30) Source(45, 30) + SourceIndex(0) +1->Emitted(24, 9) Source(45, 9) + SourceIndex(0) +2 >Emitted(24, 16) Source(45, 16) + SourceIndex(0) +3 >Emitted(24, 20) Source(45, 20) + SourceIndex(0) +4 >Emitted(24, 21) Source(45, 21) + SourceIndex(0) +5 >Emitted(24, 29) Source(45, 29) + SourceIndex(0) +6 >Emitted(24, 30) Source(45, 30) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -437,8 +319,8 @@ sourceFile:sourceMapValidationDecorators.ts 1 > 2 > > } -1 >Emitted(26, 5) Source(45, 30) + SourceIndex(0) -2 >Emitted(26, 6) Source(46, 6) + SourceIndex(0) +1 >Emitted(25, 5) Source(45, 30) + SourceIndex(0) +2 >Emitted(25, 6) Source(46, 6) + SourceIndex(0) --- >>> set greetings(greetings) { 1->^^^^ @@ -459,12 +341,12 @@ sourceFile:sourceMapValidationDecorators.ts > 5 > greetings: string 6 > ) -1->Emitted(27, 5) Source(48, 5) + SourceIndex(0) -2 >Emitted(27, 9) Source(48, 9) + SourceIndex(0) -3 >Emitted(27, 18) Source(48, 18) + SourceIndex(0) -4 >Emitted(27, 19) Source(51, 7) + SourceIndex(0) -5 >Emitted(27, 28) Source(51, 24) + SourceIndex(0) -6 >Emitted(27, 30) Source(51, 26) + SourceIndex(0) +1->Emitted(26, 5) Source(48, 5) + SourceIndex(0) +2 >Emitted(26, 9) Source(48, 9) + SourceIndex(0) +3 >Emitted(26, 18) Source(48, 18) + SourceIndex(0) +4 >Emitted(26, 19) Source(51, 7) + SourceIndex(0) +5 >Emitted(26, 28) Source(51, 24) + SourceIndex(0) +6 >Emitted(26, 30) Source(51, 26) + SourceIndex(0) --- >>> this.greeting = greetings; 1->^^^^^^^^ @@ -482,13 +364,13 @@ sourceFile:sourceMapValidationDecorators.ts 5 > = 6 > greetings 7 > ; -1->Emitted(28, 9) Source(52, 9) + SourceIndex(0) -2 >Emitted(28, 13) Source(52, 13) + SourceIndex(0) -3 >Emitted(28, 14) Source(52, 14) + SourceIndex(0) -4 >Emitted(28, 22) Source(52, 22) + SourceIndex(0) -5 >Emitted(28, 25) Source(52, 25) + SourceIndex(0) -6 >Emitted(28, 34) Source(52, 34) + SourceIndex(0) -7 >Emitted(28, 35) Source(52, 35) + SourceIndex(0) +1->Emitted(27, 9) Source(52, 9) + SourceIndex(0) +2 >Emitted(27, 13) Source(52, 13) + SourceIndex(0) +3 >Emitted(27, 14) Source(52, 14) + SourceIndex(0) +4 >Emitted(27, 22) Source(52, 22) + SourceIndex(0) +5 >Emitted(27, 25) Source(52, 25) + SourceIndex(0) +6 >Emitted(27, 34) Source(52, 34) + SourceIndex(0) +7 >Emitted(27, 35) Source(52, 35) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -496,14 +378,468 @@ sourceFile:sourceMapValidationDecorators.ts 1 > 2 > > } -1 >Emitted(29, 5) Source(52, 35) + SourceIndex(0) -2 >Emitted(29, 6) Source(53, 6) + SourceIndex(0) +1 >Emitted(28, 5) Source(52, 35) + SourceIndex(0) +2 >Emitted(28, 6) Source(53, 6) + SourceIndex(0) --- ->>>} +>>>}; 1 >^ -2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +2 > ^ +3 > ^^^^^^^^^^^-> 1 > >} -1 >Emitted(30, 2) Source(54, 2) + SourceIndex(0) +2 > +1 >Emitted(29, 2) Source(54, 2) + SourceIndex(0) +2 >Emitted(29, 3) Source(54, 2) + SourceIndex(0) +--- +>>>__decorate([ +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> +1->Emitted(30, 1) Source(23, 5) + SourceIndex(0) +--- +>>> PropertyDecorator1, +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^^^-> +1-> +2 > PropertyDecorator1 +1->Emitted(31, 5) Source(21, 6) + SourceIndex(0) +2 >Emitted(31, 23) Source(21, 24) + SourceIndex(0) +--- +>>> PropertyDecorator2(40) +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^-> +1-> + > @ +2 > PropertyDecorator2 +3 > ( +4 > 40 +5 > ) +1->Emitted(32, 5) Source(22, 6) + SourceIndex(0) +2 >Emitted(32, 23) Source(22, 24) + SourceIndex(0) +3 >Emitted(32, 24) Source(22, 25) + SourceIndex(0) +4 >Emitted(32, 26) Source(22, 27) + SourceIndex(0) +5 >Emitted(32, 27) Source(22, 28) + SourceIndex(0) +--- +>>>], Greeter.prototype, "greet", null); +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > greet() { + > return "

" + this.greeting + "

"; + > } +1->Emitted(33, 37) Source(25, 6) + SourceIndex(0) +--- +>>>__decorate([ +1 > +2 >^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + > @PropertyDecorator1 + > @PropertyDecorator2(50) + > private +1 >Emitted(34, 1) Source(29, 13) + SourceIndex(0) +--- +>>> PropertyDecorator1, +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^^^-> +1-> +2 > PropertyDecorator1 +1->Emitted(35, 5) Source(27, 6) + SourceIndex(0) +2 >Emitted(35, 23) Source(27, 24) + SourceIndex(0) +--- +>>> PropertyDecorator2(50) +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^-> +1-> + > @ +2 > PropertyDecorator2 +3 > ( +4 > 50 +5 > ) +1->Emitted(36, 5) Source(28, 6) + SourceIndex(0) +2 >Emitted(36, 23) Source(28, 24) + SourceIndex(0) +3 >Emitted(36, 24) Source(28, 25) + SourceIndex(0) +4 >Emitted(36, 26) Source(28, 27) + SourceIndex(0) +5 >Emitted(36, 27) Source(28, 28) + SourceIndex(0) +--- +>>>], Greeter.prototype, "x", void 0); +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > private x: string; +1->Emitted(37, 35) Source(29, 23) + SourceIndex(0) +--- +>>>__decorate([ +1 > +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + > @PropertyDecorator1 + > @PropertyDecorator2(60) + > private static x1: number = 10; + > + > private +1 >Emitted(38, 1) Source(35, 13) + SourceIndex(0) +--- +>>> __param(0, ParameterDecorator1), +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^-> +1->fn( + > @ +2 > +3 > ParameterDecorator1 +4 > +1->Emitted(39, 5) Source(36, 8) + SourceIndex(0) +2 >Emitted(39, 16) Source(36, 8) + SourceIndex(0) +3 >Emitted(39, 35) Source(36, 27) + SourceIndex(0) +4 >Emitted(39, 36) Source(36, 27) + SourceIndex(0) +--- +>>> __param(0, ParameterDecorator2(70)) +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^ +7 > ^ +1-> + > @ +2 > +3 > ParameterDecorator2 +4 > ( +5 > 70 +6 > ) +7 > +1->Emitted(40, 5) Source(37, 8) + SourceIndex(0) +2 >Emitted(40, 16) Source(37, 8) + SourceIndex(0) +3 >Emitted(40, 35) Source(37, 27) + SourceIndex(0) +4 >Emitted(40, 36) Source(37, 28) + SourceIndex(0) +5 >Emitted(40, 38) Source(37, 30) + SourceIndex(0) +6 >Emitted(40, 39) Source(37, 31) + SourceIndex(0) +7 >Emitted(40, 40) Source(37, 31) + SourceIndex(0) +--- +>>>], Greeter.prototype, "fn", null); +1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 > + > x: number) { + > return this.greeting; + > } +1 >Emitted(41, 34) Source(40, 6) + SourceIndex(0) +--- +>>>__decorate([ +1 > +2 >^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + > @PropertyDecorator1 + > +1 >Emitted(42, 1) Source(43, 5) + SourceIndex(0) +--- +>>> PropertyDecorator1, +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^-> +1-> +2 > PropertyDecorator1 +1->Emitted(43, 5) Source(42, 6) + SourceIndex(0) +2 >Emitted(43, 23) Source(42, 24) + SourceIndex(0) +--- +>>> PropertyDecorator2(80), +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^-> +1-> + > @ +2 > PropertyDecorator2 +3 > ( +4 > 80 +5 > ) +1->Emitted(44, 5) Source(43, 6) + SourceIndex(0) +2 >Emitted(44, 23) Source(43, 24) + SourceIndex(0) +3 >Emitted(44, 24) Source(43, 25) + SourceIndex(0) +4 >Emitted(44, 26) Source(43, 27) + SourceIndex(0) +5 >Emitted(44, 27) Source(43, 28) + SourceIndex(0) +--- +>>> __param(0, ParameterDecorator1), +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^-> +1-> + > get greetings() { + > return this.greeting; + > } + > + > set greetings( + > @ +2 > +3 > ParameterDecorator1 +4 > +1->Emitted(45, 5) Source(49, 8) + SourceIndex(0) +2 >Emitted(45, 16) Source(49, 8) + SourceIndex(0) +3 >Emitted(45, 35) Source(49, 27) + SourceIndex(0) +4 >Emitted(45, 36) Source(49, 27) + SourceIndex(0) +--- +>>> __param(0, ParameterDecorator2(90)) +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^ +7 > ^ +8 > ^^^-> +1-> + > @ +2 > +3 > ParameterDecorator2 +4 > ( +5 > 90 +6 > ) +7 > +1->Emitted(46, 5) Source(50, 8) + SourceIndex(0) +2 >Emitted(46, 16) Source(50, 8) + SourceIndex(0) +3 >Emitted(46, 35) Source(50, 27) + SourceIndex(0) +4 >Emitted(46, 36) Source(50, 28) + SourceIndex(0) +5 >Emitted(46, 38) Source(50, 30) + SourceIndex(0) +6 >Emitted(46, 39) Source(50, 31) + SourceIndex(0) +7 >Emitted(46, 40) Source(50, 31) + SourceIndex(0) +--- +>>>], Greeter.prototype, "greetings", null); +1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> +1->Emitted(47, 41) Source(46, 6) + SourceIndex(0) +--- +>>>__decorate([ +1 > +2 >^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +1 >Emitted(48, 1) Source(33, 20) + SourceIndex(0) +--- +>>> PropertyDecorator1, +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^^^^^-> +1-> +2 > PropertyDecorator1 +1->Emitted(49, 5) Source(31, 6) + SourceIndex(0) +2 >Emitted(49, 23) Source(31, 24) + SourceIndex(0) +--- +>>> PropertyDecorator2(60) +1->^^^^ +2 > ^^^^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^ +5 > ^ +6 > ^-> +1-> + > @ +2 > PropertyDecorator2 +3 > ( +4 > 60 +5 > ) +1->Emitted(50, 5) Source(32, 6) + SourceIndex(0) +2 >Emitted(50, 23) Source(32, 24) + SourceIndex(0) +3 >Emitted(50, 24) Source(32, 25) + SourceIndex(0) +4 >Emitted(50, 26) Source(32, 27) + SourceIndex(0) +5 >Emitted(50, 27) Source(32, 28) + SourceIndex(0) +--- +>>>], Greeter, "x1", void 0); +1->^^^^^^^^^^^^^^^^^^^^^^^^^ +1-> + > private static x1: number = 10; +1->Emitted(51, 26) Source(33, 36) + SourceIndex(0) +--- +>>>Greeter = __decorate([ +1 > +2 >^^^^^^^ +3 > ^^^^^^^^^^^^^^-> +1 > +2 >Greeter +1 >Emitted(52, 1) Source(10, 7) + SourceIndex(0) +2 >Emitted(52, 8) Source(10, 14) + SourceIndex(0) +--- +>>> ClassDecorator1, +1->^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^^^^^^-> +1-> +2 > ClassDecorator1 +1->Emitted(53, 5) Source(8, 2) + SourceIndex(0) +2 >Emitted(53, 20) Source(8, 17) + SourceIndex(0) +--- +>>> ClassDecorator2(10), +1->^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^ +4 > ^^ +5 > ^ +6 > ^^^^^^^^^^^^^^-> +1-> + >@ +2 > ClassDecorator2 +3 > ( +4 > 10 +5 > ) +1->Emitted(54, 5) Source(9, 2) + SourceIndex(0) +2 >Emitted(54, 20) Source(9, 17) + SourceIndex(0) +3 >Emitted(54, 21) Source(9, 18) + SourceIndex(0) +4 >Emitted(54, 23) Source(9, 20) + SourceIndex(0) +5 >Emitted(54, 24) Source(9, 21) + SourceIndex(0) +--- +>>> __param(0, ParameterDecorator1), +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^^-> +1-> + >class Greeter { + > constructor( + > @ +2 > +3 > ParameterDecorator1 +4 > +1->Emitted(55, 5) Source(12, 8) + SourceIndex(0) +2 >Emitted(55, 16) Source(12, 8) + SourceIndex(0) +3 >Emitted(55, 35) Source(12, 27) + SourceIndex(0) +4 >Emitted(55, 36) Source(12, 27) + SourceIndex(0) +--- +>>> __param(0, ParameterDecorator2(20)), +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^ +7 > ^ +1-> + > @ +2 > +3 > ParameterDecorator2 +4 > ( +5 > 20 +6 > ) +7 > +1->Emitted(56, 5) Source(13, 8) + SourceIndex(0) +2 >Emitted(56, 16) Source(13, 8) + SourceIndex(0) +3 >Emitted(56, 35) Source(13, 27) + SourceIndex(0) +4 >Emitted(56, 36) Source(13, 28) + SourceIndex(0) +5 >Emitted(56, 38) Source(13, 30) + SourceIndex(0) +6 >Emitted(56, 39) Source(13, 31) + SourceIndex(0) +7 >Emitted(56, 40) Source(13, 31) + SourceIndex(0) +--- +>>> __param(1, ParameterDecorator1), +1 >^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^^^^-> +1 > + > public greeting: string, + > + > @ +2 > +3 > ParameterDecorator1 +4 > +1 >Emitted(57, 5) Source(16, 8) + SourceIndex(0) +2 >Emitted(57, 16) Source(16, 8) + SourceIndex(0) +3 >Emitted(57, 35) Source(16, 27) + SourceIndex(0) +4 >Emitted(57, 36) Source(16, 27) + SourceIndex(0) +--- +>>> __param(1, ParameterDecorator2(30)) +1->^^^^ +2 > ^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^ +4 > ^ +5 > ^^ +6 > ^ +7 > ^ +1-> + > @ +2 > +3 > ParameterDecorator2 +4 > ( +5 > 30 +6 > ) +7 > +1->Emitted(58, 5) Source(17, 8) + SourceIndex(0) +2 >Emitted(58, 16) Source(17, 8) + SourceIndex(0) +3 >Emitted(58, 35) Source(17, 27) + SourceIndex(0) +4 >Emitted(58, 36) Source(17, 28) + SourceIndex(0) +5 >Emitted(58, 38) Source(17, 30) + SourceIndex(0) +6 >Emitted(58, 39) Source(17, 31) + SourceIndex(0) +7 >Emitted(58, 40) Source(17, 31) + SourceIndex(0) +--- +>>>], Greeter); +1 >^^^ +2 > ^^^^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > +2 > Greeter +3 > { + > constructor( + > @ParameterDecorator1 + > @ParameterDecorator2(20) + > public greeting: string, + > + > @ParameterDecorator1 + > @ParameterDecorator2(30) + > ...b: string[]) { + > } + > + > @PropertyDecorator1 + > @PropertyDecorator2(40) + > greet() { + > return "

" + this.greeting + "

"; + > } + > + > @PropertyDecorator1 + > @PropertyDecorator2(50) + > private x: string; + > + > @PropertyDecorator1 + > @PropertyDecorator2(60) + > private static x1: number = 10; + > + > private fn( + > @ParameterDecorator1 + > @ParameterDecorator2(70) + > x: number) { + > return this.greeting; + > } + > + > @PropertyDecorator1 + > @PropertyDecorator2(80) + > get greetings() { + > return this.greeting; + > } + > + > set greetings( + > @ParameterDecorator1 + > @ParameterDecorator2(90) + > greetings: string) { + > this.greeting = greetings; + > } + > } +1 >Emitted(59, 4) Source(10, 7) + SourceIndex(0) +2 >Emitted(59, 11) Source(10, 14) + SourceIndex(0) +3 >Emitted(59, 12) Source(54, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=sourceMapValidationDecorators.js.map \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/sourceMapValidationDecorators.sourcemap.txt.diff b/testdata/baselines/reference/submodule/compiler/sourceMapValidationDecorators.sourcemap.txt.diff index adb11aa9a..733a1c875 100644 --- a/testdata/baselines/reference/submodule/compiler/sourceMapValidationDecorators.sourcemap.txt.diff +++ b/testdata/baselines/reference/submodule/compiler/sourceMapValidationDecorators.sourcemap.txt.diff @@ -1,101 +1,54 @@ --- old.sourceMapValidationDecorators.sourcemap.txt +++ new.sourceMapValidationDecorators.sourcemap.txt -@@= skipped -7, +7 lines =@@ - emittedFile:sourceMapValidationDecorators.js - sourceFile:sourceMapValidationDecorators.ts - ------------------------------------------------------------------- -->>>var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -->>> var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -->>> if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -->>> else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -->>> return c > 3 && r && Object.defineProperty(target, key, r), r; -->>>}; -->>>var __param = (this && this.__param) || function (paramIndex, decorator) { -->>> return function (target, key) { decorator(target, key, paramIndex); } -->>>}; -->>>let Greeter = class Greeter { -+>>>@ClassDecorator1 - 1 > --2 >^^^^ --3 > ^^^^^^^ --4 > ^^^ --5 > ^^^^^^ --6 > ^^^^^^^ +@@= skipped -23, +23 lines =@@ + 4 > ^^^ + 5 > ^^^^^^ + 6 > ^^^^^^^ -7 > ^^^^^^^-> -+2 >^ -+3 > ^^^^^^^^^^^^^^^ -+4 > ^^^^^-> 1 >declare function ClassDecorator1(target: Function): void; >declare function ClassDecorator2(x: number): (target: Function) => void; >declare function PropertyDecorator1(target: Object, key: string | symbol, descriptor?: PropertyDescriptor): void; -@@= skipped -24, +12 lines =@@ - >declare function ParameterDecorator1(target: Object, key: string | symbol, paramIndex: number): void; +@@= skipped -9, +8 lines =@@ >declare function ParameterDecorator2(x: number): (target: Object, key: string | symbol, paramIndex: number) => void; > -- >@ClassDecorator1 + >@ClassDecorator1 - >@ClassDecorator2(10) > -2 >class --3 > Greeter --4 > ++2 >@ClassDecorator2(10) ++ >class + 3 > Greeter + 4 > -5 > class --6 > Greeter ++5 > @ClassDecorator2(10) ++ > class + 6 > Greeter -1 >Emitted(10, 1) Source(10, 1) + SourceIndex(0) --2 >Emitted(10, 5) Source(10, 7) + SourceIndex(0) --3 >Emitted(10, 12) Source(10, 14) + SourceIndex(0) ++1 >Emitted(10, 1) Source(9, 1) + SourceIndex(0) + 2 >Emitted(10, 5) Source(10, 7) + SourceIndex(0) + 3 >Emitted(10, 12) Source(10, 14) + SourceIndex(0) -4 >Emitted(10, 15) Source(10, 1) + SourceIndex(0) --5 >Emitted(10, 21) Source(10, 7) + SourceIndex(0) --6 >Emitted(10, 28) Source(10, 14) + SourceIndex(0) -+2 >@ -+3 > ClassDecorator1 -+1 >Emitted(1, 1) Source(8, 1) + SourceIndex(0) -+2 >Emitted(1, 2) Source(8, 2) + SourceIndex(0) -+3 >Emitted(1, 17) Source(8, 17) + SourceIndex(0) -+--- -+>>>@ClassDecorator2(10) -+1->^ -+2 > ^^^^^^^^^^^^^^^ -+3 > ^ -+4 > ^^ -+5 > ^ -+1-> -+ >@ -+2 > ClassDecorator2 -+3 > ( -+4 > 10 -+5 > ) -+1->Emitted(2, 2) Source(9, 2) + SourceIndex(0) -+2 >Emitted(2, 17) Source(9, 17) + SourceIndex(0) -+3 >Emitted(2, 18) Source(9, 18) + SourceIndex(0) -+4 >Emitted(2, 20) Source(9, 20) + SourceIndex(0) -+5 >Emitted(2, 21) Source(9, 21) + SourceIndex(0) -+--- -+>>>class Greeter { -+1 >^^^^^^ -+2 > ^^^^^^^ -+3 > ^-> -+1 > -+ >class -+2 > Greeter -+1 >Emitted(3, 7) Source(10, 7) + SourceIndex(0) -+2 >Emitted(3, 14) Source(10, 14) + SourceIndex(0) -+--- ++4 >Emitted(10, 15) Source(9, 1) + SourceIndex(0) + 5 >Emitted(10, 21) Source(10, 7) + SourceIndex(0) + 6 >Emitted(10, 28) Source(10, 14) + SourceIndex(0) + --- +>>> greeting; -+1->^^^^ ++1 >^^^^ +2 > ^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^-> -+1-> { ++1 > { + > constructor( + > @ParameterDecorator1 + > @ParameterDecorator2(20) + > public +2 > greeting -+1->Emitted(4, 5) Source(14, 14) + SourceIndex(0) -+2 >Emitted(4, 13) Source(14, 22) + SourceIndex(0) - --- ++1 >Emitted(11, 5) Source(14, 14) + SourceIndex(0) ++2 >Emitted(11, 13) Source(14, 22) + SourceIndex(0) ++--- >>> constructor(greeting, ...b) { 1->^^^^ -@@= skipped -22, +55 lines =@@ + 2 > ^^^^^^^^^^^^ +@@= skipped -21, +35 lines =@@ 4 > ^^ 5 > ^^^ 6 > ^ @@ -119,13 +72,13 @@ -5 >Emitted(11, 30) Source(18, 10) + SourceIndex(0) -6 >Emitted(11, 31) Source(18, 21) + SourceIndex(0) +7 > ) -+1->Emitted(5, 5) Source(11, 5) + SourceIndex(0) -+2 >Emitted(5, 17) Source(14, 14) + SourceIndex(0) -+3 >Emitted(5, 25) Source(14, 30) + SourceIndex(0) -+4 >Emitted(5, 27) Source(18, 7) + SourceIndex(0) -+5 >Emitted(5, 30) Source(18, 10) + SourceIndex(0) -+6 >Emitted(5, 31) Source(18, 21) + SourceIndex(0) -+7 >Emitted(5, 33) Source(18, 23) + SourceIndex(0) ++1->Emitted(12, 5) Source(11, 5) + SourceIndex(0) ++2 >Emitted(12, 17) Source(14, 14) + SourceIndex(0) ++3 >Emitted(12, 25) Source(14, 30) + SourceIndex(0) ++4 >Emitted(12, 27) Source(18, 7) + SourceIndex(0) ++5 >Emitted(12, 30) Source(18, 10) + SourceIndex(0) ++6 >Emitted(12, 31) Source(18, 21) + SourceIndex(0) ++7 >Emitted(12, 33) Source(18, 23) + SourceIndex(0) --- >>> this.greeting = greeting; -1->^^^^^^^^ @@ -146,15 +99,14 @@ -4 >Emitted(12, 33) Source(14, 22) + SourceIndex(0) -5 >Emitted(12, 34) Source(14, 30) + SourceIndex(0) +2 > greeting -+1->Emitted(6, 25) Source(14, 14) + SourceIndex(0) -+2 >Emitted(6, 33) Source(14, 22) + SourceIndex(0) ++1->Emitted(13, 25) Source(14, 14) + SourceIndex(0) ++2 >Emitted(13, 33) Source(14, 22) + SourceIndex(0) --- >>> } 1 >^^^^ 2 > ^ --3 > ^^^^^^^^^-> + 3 > ^^^^^^^^^-> -1 >, -+3 > ^^^^^^^^^^^^^^^^^^^-> +1 >: string, > > @ParameterDecorator1 @@ -166,65 +118,31 @@ -2 >Emitted(13, 6) Source(19, 6) + SourceIndex(0) +2 > + > } -+1 >Emitted(7, 5) Source(18, 24) + SourceIndex(0) -+2 >Emitted(7, 6) Source(19, 6) + SourceIndex(0) -+--- -+>>> @PropertyDecorator1 -+1->^^^^ -+2 > ^ -+3 > ^^^^^^^^^^^^^^^^^^ -+4 > ^^^^^-> -+1-> -+ > -+ > -+2 > @ -+3 > PropertyDecorator1 -+1->Emitted(8, 5) Source(21, 5) + SourceIndex(0) -+2 >Emitted(8, 6) Source(21, 6) + SourceIndex(0) -+3 >Emitted(8, 24) Source(21, 24) + SourceIndex(0) -+--- -+>>> @PropertyDecorator2(40) -+1->^^^^^ -+2 > ^^^^^^^^^^^^^^^^^^ -+3 > ^ -+4 > ^^ -+5 > ^ -+1-> -+ > @ -+2 > PropertyDecorator2 -+3 > ( -+4 > 40 -+5 > ) -+1->Emitted(9, 6) Source(22, 6) + SourceIndex(0) -+2 >Emitted(9, 24) Source(22, 24) + SourceIndex(0) -+3 >Emitted(9, 25) Source(22, 25) + SourceIndex(0) -+4 >Emitted(9, 27) Source(22, 27) + SourceIndex(0) -+5 >Emitted(9, 28) Source(22, 28) + SourceIndex(0) ++1 >Emitted(14, 5) Source(18, 24) + SourceIndex(0) ++2 >Emitted(14, 6) Source(19, 6) + SourceIndex(0) --- >>> greet() { --1->^^^^ -+1 >^^^^ + 1->^^^^ 2 > ^^^^^ -3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> --1-> -- > -- > @PropertyDecorator1 -- > @PropertyDecorator2(40) +3 > ^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -+1 > + 1-> + > + > @PropertyDecorator1 + > @PropertyDecorator2(40) > 2 > greet -1->Emitted(14, 5) Source(23, 5) + SourceIndex(0) -2 >Emitted(14, 10) Source(23, 10) + SourceIndex(0) +3 > () -+1 >Emitted(10, 5) Source(23, 5) + SourceIndex(0) -+2 >Emitted(10, 10) Source(23, 10) + SourceIndex(0) -+3 >Emitted(10, 13) Source(23, 13) + SourceIndex(0) ++1->Emitted(15, 5) Source(23, 5) + SourceIndex(0) ++2 >Emitted(15, 10) Source(23, 10) + SourceIndex(0) ++3 >Emitted(15, 13) Source(23, 13) + SourceIndex(0) --- >>> return "

" + this.greeting + "

"; 1->^^^^^^^^ -@@= skipped -62, +87 lines =@@ +@@= skipped -62, +58 lines =@@ 8 > ^^^ 9 > ^^^^^^^ 10> ^ @@ -247,133 +165,77 @@ -8 >Emitted(15, 41) Source(24, 41) + SourceIndex(0) -9 >Emitted(15, 48) Source(24, 48) + SourceIndex(0) -10>Emitted(15, 49) Source(24, 49) + SourceIndex(0) -+1->Emitted(11, 9) Source(24, 9) + SourceIndex(0) -+2 >Emitted(11, 16) Source(24, 16) + SourceIndex(0) -+3 >Emitted(11, 22) Source(24, 22) + SourceIndex(0) -+4 >Emitted(11, 25) Source(24, 25) + SourceIndex(0) -+5 >Emitted(11, 29) Source(24, 29) + SourceIndex(0) -+6 >Emitted(11, 30) Source(24, 30) + SourceIndex(0) -+7 >Emitted(11, 38) Source(24, 38) + SourceIndex(0) -+8 >Emitted(11, 41) Source(24, 41) + SourceIndex(0) -+9 >Emitted(11, 48) Source(24, 48) + SourceIndex(0) -+10>Emitted(11, 49) Source(24, 49) + SourceIndex(0) ++1->Emitted(16, 9) Source(24, 9) + SourceIndex(0) ++2 >Emitted(16, 16) Source(24, 16) + SourceIndex(0) ++3 >Emitted(16, 22) Source(24, 22) + SourceIndex(0) ++4 >Emitted(16, 25) Source(24, 25) + SourceIndex(0) ++5 >Emitted(16, 29) Source(24, 29) + SourceIndex(0) ++6 >Emitted(16, 30) Source(24, 30) + SourceIndex(0) ++7 >Emitted(16, 38) Source(24, 38) + SourceIndex(0) ++8 >Emitted(16, 41) Source(24, 41) + SourceIndex(0) ++9 >Emitted(16, 48) Source(24, 48) + SourceIndex(0) ++10>Emitted(16, 49) Source(24, 49) + SourceIndex(0) --- >>> } 1 >^^^^ 2 > ^ -3 > ^^^^^^^-> --1 > ++3 > ^^-> + 1 > - > -2 > } -1 >Emitted(16, 5) Source(25, 5) + SourceIndex(0) -2 >Emitted(16, 6) Source(25, 6) + SourceIndex(0) -+3 > ^^^^^^^^^^^^^^^^^^^-> -+1 > +2 > + > } -+1 >Emitted(12, 5) Source(24, 49) + SourceIndex(0) -+2 >Emitted(12, 6) Source(25, 6) + SourceIndex(0) ++1 >Emitted(17, 5) Source(24, 49) + SourceIndex(0) ++2 >Emitted(17, 6) Source(25, 6) + SourceIndex(0) +--- -+>>> @PropertyDecorator1 ++>>> x; +1->^^^^ +2 > ^ -+3 > ^^^^^^^^^^^^^^^^^^ -+4 > ^^^^^-> ++3 > ^ ++4 > ^^^^^^^^^^^^^^-> +1-> + > -+ > -+2 > @ -+3 > PropertyDecorator1 -+1->Emitted(13, 5) Source(27, 5) + SourceIndex(0) -+2 >Emitted(13, 6) Source(27, 6) + SourceIndex(0) -+3 >Emitted(13, 24) Source(27, 24) + SourceIndex(0) -+--- -+>>> @PropertyDecorator2(50) -+1->^^^^^ -+2 > ^^^^^^^^^^^^^^^^^^ -+3 > ^ -+4 > ^^ -+5 > ^ -+1-> -+ > @ -+2 > PropertyDecorator2 -+3 > ( -+4 > 50 -+5 > ) -+1->Emitted(14, 6) Source(28, 6) + SourceIndex(0) -+2 >Emitted(14, 24) Source(28, 24) + SourceIndex(0) -+3 >Emitted(14, 25) Source(28, 25) + SourceIndex(0) -+4 >Emitted(14, 27) Source(28, 27) + SourceIndex(0) -+5 >Emitted(14, 28) Source(28, 28) + SourceIndex(0) -+--- -+>>> x; -+1 >^^^^ -+2 > ^ -+3 > ^ -+4 > ^^^^^^^^^^^^^^^^^^-> -+1 > ++ > @PropertyDecorator1 ++ > @PropertyDecorator2(50) + > private +2 > x +3 > : string; -+1 >Emitted(15, 5) Source(29, 13) + SourceIndex(0) -+2 >Emitted(15, 6) Source(29, 14) + SourceIndex(0) -+3 >Emitted(15, 7) Source(29, 23) + SourceIndex(0) ++1->Emitted(18, 5) Source(29, 13) + SourceIndex(0) ++2 >Emitted(18, 6) Source(29, 14) + SourceIndex(0) ++3 >Emitted(18, 7) Source(29, 23) + SourceIndex(0) +--- -+>>> @PropertyDecorator1 ++>>> static x1 = 10; +1->^^^^ -+2 > ^ -+3 > ^^^^^^^^^^^^^^^^^^ -+4 > ^^^^^-> ++2 > ++3 > ^^^^^^ ++4 > ^ ++5 > ^^ ++6 > ^^^ ++7 > ^^ ++8 > ^ +1-> + > -+ > -+2 > @ -+3 > PropertyDecorator1 -+1->Emitted(16, 5) Source(31, 5) + SourceIndex(0) -+2 >Emitted(16, 6) Source(31, 6) + SourceIndex(0) -+3 >Emitted(16, 24) Source(31, 24) + SourceIndex(0) -+--- -+>>> @PropertyDecorator2(60) -+1->^^^^^ -+2 > ^^^^^^^^^^^^^^^^^^ -+3 > ^ -+4 > ^^ -+5 > ^ -+1-> -+ > @ -+2 > PropertyDecorator2 -+3 > ( -+4 > 60 -+5 > ) -+1->Emitted(17, 6) Source(32, 6) + SourceIndex(0) -+2 >Emitted(17, 24) Source(32, 24) + SourceIndex(0) -+3 >Emitted(17, 25) Source(32, 25) + SourceIndex(0) -+4 >Emitted(17, 27) Source(32, 27) + SourceIndex(0) -+5 >Emitted(17, 28) Source(32, 28) + SourceIndex(0) -+--- -+>>> static x1 = 10; -+1 >^^^^ -+2 > ^^^^^^ -+3 > ^ -+4 > ^^ -+5 > ^^^ -+6 > ^^ -+7 > ^ -+1 > -+ > private -+2 > static -+3 > -+4 > x1 -+5 > : number = -+6 > 10 -+7 > ; -+1 >Emitted(18, 5) Source(33, 13) + SourceIndex(0) -+2 >Emitted(18, 11) Source(33, 19) + SourceIndex(0) -+3 >Emitted(18, 12) Source(33, 20) + SourceIndex(0) -+4 >Emitted(18, 14) Source(33, 22) + SourceIndex(0) -+5 >Emitted(18, 17) Source(33, 33) + SourceIndex(0) -+6 >Emitted(18, 19) Source(33, 35) + SourceIndex(0) -+7 >Emitted(18, 20) Source(33, 36) + SourceIndex(0) ++ > @PropertyDecorator1 ++ > @PropertyDecorator2(60) ++ > private static ++2 > ++3 > static ++4 > ++5 > x1 ++6 > : number = ++7 > 10 ++8 > ; ++1->Emitted(19, 5) Source(33, 20) + SourceIndex(0) ++2 >Emitted(19, 5) Source(33, 13) + SourceIndex(0) ++3 >Emitted(19, 11) Source(33, 19) + SourceIndex(0) ++4 >Emitted(19, 12) Source(33, 20) + SourceIndex(0) ++5 >Emitted(19, 14) Source(33, 22) + SourceIndex(0) ++6 >Emitted(19, 17) Source(33, 33) + SourceIndex(0) ++7 >Emitted(19, 19) Source(33, 35) + SourceIndex(0) ++8 >Emitted(19, 20) Source(33, 36) + SourceIndex(0) --- >>> fn(x) { -1->^^^^ @@ -397,7 +259,7 @@ > > private 2 > fn -@@= skipped -44, +138 lines =@@ +@@= skipped -44, +83 lines =@@ > @ParameterDecorator2(70) > 4 > x: number @@ -406,11 +268,11 @@ -3 >Emitted(17, 8) Source(38, 7) + SourceIndex(0) -4 >Emitted(17, 9) Source(38, 16) + SourceIndex(0) +5 > ) -+1 >Emitted(19, 5) Source(35, 13) + SourceIndex(0) -+2 >Emitted(19, 7) Source(35, 15) + SourceIndex(0) -+3 >Emitted(19, 8) Source(38, 7) + SourceIndex(0) -+4 >Emitted(19, 9) Source(38, 16) + SourceIndex(0) -+5 >Emitted(19, 11) Source(38, 18) + SourceIndex(0) ++1 >Emitted(20, 5) Source(35, 13) + SourceIndex(0) ++2 >Emitted(20, 7) Source(35, 15) + SourceIndex(0) ++3 >Emitted(20, 8) Source(38, 7) + SourceIndex(0) ++4 >Emitted(20, 9) Source(38, 16) + SourceIndex(0) ++5 >Emitted(20, 11) Source(38, 18) + SourceIndex(0) --- >>> return this.greeting; 1->^^^^^^^^ @@ -432,89 +294,55 @@ -4 >Emitted(18, 21) Source(39, 21) + SourceIndex(0) -5 >Emitted(18, 29) Source(39, 29) + SourceIndex(0) -6 >Emitted(18, 30) Source(39, 30) + SourceIndex(0) -+1->Emitted(20, 9) Source(39, 9) + SourceIndex(0) -+2 >Emitted(20, 16) Source(39, 16) + SourceIndex(0) -+3 >Emitted(20, 20) Source(39, 20) + SourceIndex(0) -+4 >Emitted(20, 21) Source(39, 21) + SourceIndex(0) -+5 >Emitted(20, 29) Source(39, 29) + SourceIndex(0) -+6 >Emitted(20, 30) Source(39, 30) + SourceIndex(0) ++1->Emitted(21, 9) Source(39, 9) + SourceIndex(0) ++2 >Emitted(21, 16) Source(39, 16) + SourceIndex(0) ++3 >Emitted(21, 20) Source(39, 20) + SourceIndex(0) ++4 >Emitted(21, 21) Source(39, 21) + SourceIndex(0) ++5 >Emitted(21, 29) Source(39, 29) + SourceIndex(0) ++6 >Emitted(21, 30) Source(39, 30) + SourceIndex(0) --- >>> } 1 >^^^^ 2 > ^ --3 > ^^^^^^^^^^^^^^^^^-> -+3 > ^^^^^^^^^^^^^^^^^^^-> + 3 > ^^^^^^^^^^^^^^^^^-> 1 > -+2 > -+ > } -+1 >Emitted(21, 5) Source(39, 30) + SourceIndex(0) -+2 >Emitted(21, 6) Source(40, 6) + SourceIndex(0) -+--- -+>>> @PropertyDecorator1 -+1->^^^^ -+2 > ^ -+3 > ^^^^^^^^^^^^^^^^^^ -+4 > ^^^^^-> -+1-> -+ > - > +- > -2 > } -1 >Emitted(19, 5) Source(40, 5) + SourceIndex(0) -2 >Emitted(19, 6) Source(40, 6) + SourceIndex(0) -+2 > @ -+3 > PropertyDecorator1 -+1->Emitted(22, 5) Source(42, 5) + SourceIndex(0) -+2 >Emitted(22, 6) Source(42, 6) + SourceIndex(0) -+3 >Emitted(22, 24) Source(42, 24) + SourceIndex(0) -+--- -+>>> @PropertyDecorator2(80) -+1->^^^^^ -+2 > ^^^^^^^^^^^^^^^^^^ -+3 > ^ -+4 > ^^ -+5 > ^ -+1-> -+ > @ -+2 > PropertyDecorator2 -+3 > ( -+4 > 80 -+5 > ) -+1->Emitted(23, 6) Source(43, 6) + SourceIndex(0) -+2 >Emitted(23, 24) Source(43, 24) + SourceIndex(0) -+3 >Emitted(23, 25) Source(43, 25) + SourceIndex(0) -+4 >Emitted(23, 27) Source(43, 27) + SourceIndex(0) -+5 >Emitted(23, 28) Source(43, 28) + SourceIndex(0) ++2 > ++ > } ++1 >Emitted(22, 5) Source(39, 30) + SourceIndex(0) ++2 >Emitted(22, 6) Source(40, 6) + SourceIndex(0) --- >>> get greetings() { --1->^^^^ --2 > ^^^^ --3 > ^^^^^^^^^ + 1->^^^^ + 2 > ^^^^ + 3 > ^^^^^^^^^ -4 > ^^^^^^^^^^^^^-> --1-> -- > -- > @PropertyDecorator1 ++4 > ^^^ ++5 > ^^^^^^^^^^-> + 1-> + > + > @PropertyDecorator1 - > @PropertyDecorator2(80) -- > + > -2 > get --3 > greetings ++2 > @PropertyDecorator2(80) ++ > get + 3 > greetings -1->Emitted(20, 5) Source(44, 5) + SourceIndex(0) -2 >Emitted(20, 9) Source(44, 9) + SourceIndex(0) -3 >Emitted(20, 18) Source(44, 18) + SourceIndex(0) -+1 >^^^^^^^^ -+2 > ^^^^^^^^^ -+3 > ^^^ -+4 > ^^^^^^^^^^-> -+1 > -+ > get -+2 > greetings -+3 > () -+1 >Emitted(24, 9) Source(44, 9) + SourceIndex(0) -+2 >Emitted(24, 18) Source(44, 18) + SourceIndex(0) -+3 >Emitted(24, 21) Source(44, 21) + SourceIndex(0) ++4 > () ++1->Emitted(23, 5) Source(43, 5) + SourceIndex(0) ++2 >Emitted(23, 9) Source(44, 9) + SourceIndex(0) ++3 >Emitted(23, 18) Source(44, 18) + SourceIndex(0) ++4 >Emitted(23, 21) Source(44, 21) + SourceIndex(0) --- >>> return this.greeting; 1->^^^^^^^^ -@@= skipped -47, +76 lines =@@ +@@= skipped -47, +50 lines =@@ 4 > ^ 5 > ^^^^^^^^ 6 > ^ @@ -532,12 +360,12 @@ -4 >Emitted(21, 21) Source(45, 21) + SourceIndex(0) -5 >Emitted(21, 29) Source(45, 29) + SourceIndex(0) -6 >Emitted(21, 30) Source(45, 30) + SourceIndex(0) -+1->Emitted(25, 9) Source(45, 9) + SourceIndex(0) -+2 >Emitted(25, 16) Source(45, 16) + SourceIndex(0) -+3 >Emitted(25, 20) Source(45, 20) + SourceIndex(0) -+4 >Emitted(25, 21) Source(45, 21) + SourceIndex(0) -+5 >Emitted(25, 29) Source(45, 29) + SourceIndex(0) -+6 >Emitted(25, 30) Source(45, 30) + SourceIndex(0) ++1->Emitted(24, 9) Source(45, 9) + SourceIndex(0) ++2 >Emitted(24, 16) Source(45, 16) + SourceIndex(0) ++3 >Emitted(24, 20) Source(45, 20) + SourceIndex(0) ++4 >Emitted(24, 21) Source(45, 21) + SourceIndex(0) ++5 >Emitted(24, 29) Source(45, 29) + SourceIndex(0) ++6 >Emitted(24, 30) Source(45, 30) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -550,8 +378,8 @@ -2 >Emitted(22, 6) Source(46, 6) + SourceIndex(0) +2 > + > } -+1 >Emitted(26, 5) Source(45, 30) + SourceIndex(0) -+2 >Emitted(26, 6) Source(46, 6) + SourceIndex(0) ++1 >Emitted(25, 5) Source(45, 30) + SourceIndex(0) ++2 >Emitted(25, 6) Source(46, 6) + SourceIndex(0) --- >>> set greetings(greetings) { 1->^^^^ @@ -575,12 +403,12 @@ -4 >Emitted(23, 19) Source(51, 7) + SourceIndex(0) -5 >Emitted(23, 28) Source(51, 24) + SourceIndex(0) +6 > ) -+1->Emitted(27, 5) Source(48, 5) + SourceIndex(0) -+2 >Emitted(27, 9) Source(48, 9) + SourceIndex(0) -+3 >Emitted(27, 18) Source(48, 18) + SourceIndex(0) -+4 >Emitted(27, 19) Source(51, 7) + SourceIndex(0) -+5 >Emitted(27, 28) Source(51, 24) + SourceIndex(0) -+6 >Emitted(27, 30) Source(51, 26) + SourceIndex(0) ++1->Emitted(26, 5) Source(48, 5) + SourceIndex(0) ++2 >Emitted(26, 9) Source(48, 9) + SourceIndex(0) ++3 >Emitted(26, 18) Source(48, 18) + SourceIndex(0) ++4 >Emitted(26, 19) Source(51, 7) + SourceIndex(0) ++5 >Emitted(26, 28) Source(51, 24) + SourceIndex(0) ++6 >Emitted(26, 30) Source(51, 26) + SourceIndex(0) --- >>> this.greeting = greetings; 1->^^^^^^^^ @@ -604,13 +432,13 @@ -5 >Emitted(24, 25) Source(52, 25) + SourceIndex(0) -6 >Emitted(24, 34) Source(52, 34) + SourceIndex(0) -7 >Emitted(24, 35) Source(52, 35) + SourceIndex(0) -+1->Emitted(28, 9) Source(52, 9) + SourceIndex(0) -+2 >Emitted(28, 13) Source(52, 13) + SourceIndex(0) -+3 >Emitted(28, 14) Source(52, 14) + SourceIndex(0) -+4 >Emitted(28, 22) Source(52, 22) + SourceIndex(0) -+5 >Emitted(28, 25) Source(52, 25) + SourceIndex(0) -+6 >Emitted(28, 34) Source(52, 34) + SourceIndex(0) -+7 >Emitted(28, 35) Source(52, 35) + SourceIndex(0) ++1->Emitted(27, 9) Source(52, 9) + SourceIndex(0) ++2 >Emitted(27, 13) Source(52, 13) + SourceIndex(0) ++3 >Emitted(27, 14) Source(52, 14) + SourceIndex(0) ++4 >Emitted(27, 22) Source(52, 22) + SourceIndex(0) ++5 >Emitted(27, 25) Source(52, 25) + SourceIndex(0) ++6 >Emitted(27, 34) Source(52, 34) + SourceIndex(0) ++7 >Emitted(27, 35) Source(52, 35) + SourceIndex(0) --- >>> } 1 >^^^^ @@ -620,8 +448,12 @@ -2 > } -1 >Emitted(25, 5) Source(53, 5) + SourceIndex(0) -2 >Emitted(25, 6) Source(53, 6) + SourceIndex(0) ----- -->>>}; ++2 > ++ > } ++1 >Emitted(28, 5) Source(52, 35) + SourceIndex(0) ++2 >Emitted(28, 6) Source(53, 6) + SourceIndex(0) + --- + >>>}; ->>>Greeter.x1 = 10; -1 > -2 >^^^^^^^^^^ @@ -641,137 +473,135 @@ -4 >Emitted(27, 16) Source(33, 35) + SourceIndex(0) -5 >Emitted(27, 16) Source(33, 22) + SourceIndex(0) -6 >Emitted(27, 17) Source(33, 36) + SourceIndex(0) ----- -->>>__decorate([ ++1 >^ ++2 > ^ ++3 > ^^^^^^^^^^^-> ++1 > ++ >} ++2 > ++1 >Emitted(29, 2) Source(54, 2) + SourceIndex(0) ++2 >Emitted(29, 3) Source(54, 2) + SourceIndex(0) + --- + >>>__decorate([ -1 > --2 >^^^^^^^^^^^^^^^^^^^^^^^^-> ++1-> + 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> -1 > -1 >Emitted(28, 1) Source(23, 5) + SourceIndex(0) ----- -->>> PropertyDecorator1, --1->^^^^ --2 > ^^^^^^^^^^^^^^^^^^ --3 > ^^^^^-> --1-> --2 > PropertyDecorator1 ++1-> ++1->Emitted(30, 1) Source(23, 5) + SourceIndex(0) + --- + >>> PropertyDecorator1, + 1->^^^^ +@@= skipped -50, +39 lines =@@ + 3 > ^^^^^-> + 1-> + 2 > PropertyDecorator1 -1->Emitted(29, 5) Source(21, 6) + SourceIndex(0) -2 >Emitted(29, 23) Source(21, 24) + SourceIndex(0) ----- -->>> PropertyDecorator2(40) --1->^^^^ --2 > ^^^^^^^^^^^^^^^^^^ --3 > ^ --4 > ^^ --5 > ^ --6 > ^^^^^^^^^^^^-> --1-> -- > @ --2 > PropertyDecorator2 --3 > ( --4 > 40 --5 > ) ++1->Emitted(31, 5) Source(21, 6) + SourceIndex(0) ++2 >Emitted(31, 23) Source(21, 24) + SourceIndex(0) + --- + >>> PropertyDecorator2(40) + 1->^^^^ +@@= skipped -16, +16 lines =@@ + 3 > ( + 4 > 40 + 5 > ) -1->Emitted(30, 5) Source(22, 6) + SourceIndex(0) -2 >Emitted(30, 23) Source(22, 24) + SourceIndex(0) -3 >Emitted(30, 24) Source(22, 25) + SourceIndex(0) -4 >Emitted(30, 26) Source(22, 27) + SourceIndex(0) -5 >Emitted(30, 27) Source(22, 28) + SourceIndex(0) ----- -->>>], Greeter.prototype, "greet", null); --1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --1-> -- > greet() { -- > return "

" + this.greeting + "

"; -- > } ++1->Emitted(32, 5) Source(22, 6) + SourceIndex(0) ++2 >Emitted(32, 23) Source(22, 24) + SourceIndex(0) ++3 >Emitted(32, 24) Source(22, 25) + SourceIndex(0) ++4 >Emitted(32, 26) Source(22, 27) + SourceIndex(0) ++5 >Emitted(32, 27) Source(22, 28) + SourceIndex(0) + --- + >>>], Greeter.prototype, "greet", null); + 1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +@@= skipped -12, +12 lines =@@ + > greet() { + > return "

" + this.greeting + "

"; + > } -1->Emitted(31, 37) Source(25, 6) + SourceIndex(0) ----- -->>>__decorate([ --1 > --2 >^^^^^^^^^^^^^^^^^^^^^^^^-> --1 > -- > -- > @PropertyDecorator1 -- > @PropertyDecorator2(50) -- > private ++1->Emitted(33, 37) Source(25, 6) + SourceIndex(0) + --- + >>>__decorate([ + 1 > +@@= skipped -10, +10 lines =@@ + > @PropertyDecorator1 + > @PropertyDecorator2(50) + > private -1 >Emitted(32, 1) Source(29, 13) + SourceIndex(0) ----- -->>> PropertyDecorator1, --1->^^^^ --2 > ^^^^^^^^^^^^^^^^^^ --3 > ^^^^^-> --1-> --2 > PropertyDecorator1 ++1 >Emitted(34, 1) Source(29, 13) + SourceIndex(0) + --- + >>> PropertyDecorator1, + 1->^^^^ +@@= skipped -8, +8 lines =@@ + 3 > ^^^^^-> + 1-> + 2 > PropertyDecorator1 -1->Emitted(33, 5) Source(27, 6) + SourceIndex(0) -2 >Emitted(33, 23) Source(27, 24) + SourceIndex(0) ----- -->>> PropertyDecorator2(50) --1->^^^^ --2 > ^^^^^^^^^^^^^^^^^^ --3 > ^ --4 > ^^ --5 > ^ --6 > ^^^^^^^^^^-> --1-> -- > @ --2 > PropertyDecorator2 --3 > ( --4 > 50 --5 > ) ++1->Emitted(35, 5) Source(27, 6) + SourceIndex(0) ++2 >Emitted(35, 23) Source(27, 24) + SourceIndex(0) + --- + >>> PropertyDecorator2(50) + 1->^^^^ +@@= skipped -16, +16 lines =@@ + 3 > ( + 4 > 50 + 5 > ) -1->Emitted(34, 5) Source(28, 6) + SourceIndex(0) -2 >Emitted(34, 23) Source(28, 24) + SourceIndex(0) -3 >Emitted(34, 24) Source(28, 25) + SourceIndex(0) -4 >Emitted(34, 26) Source(28, 27) + SourceIndex(0) -5 >Emitted(34, 27) Source(28, 28) + SourceIndex(0) ----- -->>>], Greeter.prototype, "x", void 0); --1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --1-> -- > private x: string; ++1->Emitted(36, 5) Source(28, 6) + SourceIndex(0) ++2 >Emitted(36, 23) Source(28, 24) + SourceIndex(0) ++3 >Emitted(36, 24) Source(28, 25) + SourceIndex(0) ++4 >Emitted(36, 26) Source(28, 27) + SourceIndex(0) ++5 >Emitted(36, 27) Source(28, 28) + SourceIndex(0) + --- + >>>], Greeter.prototype, "x", void 0); + 1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 1-> + > private x: string; -1->Emitted(35, 35) Source(29, 23) + SourceIndex(0) ----- -->>>__decorate([ --1 > --2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> --1 > -- > -- > @PropertyDecorator1 -- > @PropertyDecorator2(60) -- > private static x1: number = 10; -- > -- > private ++1->Emitted(37, 35) Source(29, 23) + SourceIndex(0) + --- + >>>__decorate([ + 1 > +@@= skipped -22, +22 lines =@@ + > private static x1: number = 10; + > + > private -1 >Emitted(36, 1) Source(35, 13) + SourceIndex(0) ----- -->>> __param(0, ParameterDecorator1), --1->^^^^ --2 > ^^^^^^^^^^^ --3 > ^^^^^^^^^^^^^^^^^^^ --4 > ^ --5 > ^^^^^-> --1->fn( -- > @ --2 > --3 > ParameterDecorator1 --4 > ++1 >Emitted(38, 1) Source(35, 13) + SourceIndex(0) + --- + >>> __param(0, ParameterDecorator1), + 1->^^^^ +@@= skipped -13, +13 lines =@@ + 2 > + 3 > ParameterDecorator1 + 4 > -1->Emitted(37, 5) Source(36, 8) + SourceIndex(0) -2 >Emitted(37, 16) Source(36, 8) + SourceIndex(0) -3 >Emitted(37, 35) Source(36, 27) + SourceIndex(0) -4 >Emitted(37, 36) Source(36, 27) + SourceIndex(0) ----- -->>> __param(0, ParameterDecorator2(70)) --1->^^^^ --2 > ^^^^^^^^^^^ --3 > ^^^^^^^^^^^^^^^^^^^ --4 > ^ --5 > ^^ --6 > ^ --7 > ^ --1-> -- > @ --2 > --3 > ParameterDecorator2 --4 > ( --5 > 70 --6 > ) --7 > ++1->Emitted(39, 5) Source(36, 8) + SourceIndex(0) ++2 >Emitted(39, 16) Source(36, 8) + SourceIndex(0) ++3 >Emitted(39, 35) Source(36, 27) + SourceIndex(0) ++4 >Emitted(39, 36) Source(36, 27) + SourceIndex(0) + --- + >>> __param(0, ParameterDecorator2(70)) + 1->^^^^ +@@= skipped -21, +21 lines =@@ + 5 > 70 + 6 > ) + 7 > -1->Emitted(38, 5) Source(37, 8) + SourceIndex(0) -2 >Emitted(38, 16) Source(37, 8) + SourceIndex(0) -3 >Emitted(38, 35) Source(37, 27) + SourceIndex(0) @@ -779,91 +609,83 @@ -5 >Emitted(38, 38) Source(37, 30) + SourceIndex(0) -6 >Emitted(38, 39) Source(37, 31) + SourceIndex(0) -7 >Emitted(38, 40) Source(37, 31) + SourceIndex(0) ----- -->>>], Greeter.prototype, "fn", null); --1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --1 > -- > x: number) { -- > return this.greeting; -- > } ++1->Emitted(40, 5) Source(37, 8) + SourceIndex(0) ++2 >Emitted(40, 16) Source(37, 8) + SourceIndex(0) ++3 >Emitted(40, 35) Source(37, 27) + SourceIndex(0) ++4 >Emitted(40, 36) Source(37, 28) + SourceIndex(0) ++5 >Emitted(40, 38) Source(37, 30) + SourceIndex(0) ++6 >Emitted(40, 39) Source(37, 31) + SourceIndex(0) ++7 >Emitted(40, 40) Source(37, 31) + SourceIndex(0) + --- + >>>], Greeter.prototype, "fn", null); + 1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +@@= skipped -14, +14 lines =@@ + > x: number) { + > return this.greeting; + > } -1 >Emitted(39, 34) Source(40, 6) + SourceIndex(0) ----- -->>>__decorate([ --1 > --2 >^^^^^^^^^^^^^^^^^^^^^^^^-> --1 > -- > -- > @PropertyDecorator1 ++1 >Emitted(41, 34) Source(40, 6) + SourceIndex(0) + --- + >>>__decorate([ + 1 > +@@= skipped -8, +8 lines =@@ + 1 > + > + > @PropertyDecorator1 - > @PropertyDecorator2(80) -- > + > -1 >Emitted(40, 1) Source(44, 5) + SourceIndex(0) ----- -->>> PropertyDecorator1, --1->^^^^ --2 > ^^^^^^^^^^^^^^^^^^ --3 > ^^^^^^-> --1-> --2 > PropertyDecorator1 ++1 >Emitted(42, 1) Source(43, 5) + SourceIndex(0) + --- + >>> PropertyDecorator1, + 1->^^^^ +@@= skipped -10, +9 lines =@@ + 3 > ^^^^^^-> + 1-> + 2 > PropertyDecorator1 -1->Emitted(41, 5) Source(42, 6) + SourceIndex(0) -2 >Emitted(41, 23) Source(42, 24) + SourceIndex(0) ----- -->>> PropertyDecorator2(80), --1->^^^^ --2 > ^^^^^^^^^^^^^^^^^^ --3 > ^ --4 > ^^ --5 > ^ --6 > ^^^^^^^^^^^-> --1-> -- > @ --2 > PropertyDecorator2 --3 > ( --4 > 80 --5 > ) ++1->Emitted(43, 5) Source(42, 6) + SourceIndex(0) ++2 >Emitted(43, 23) Source(42, 24) + SourceIndex(0) + --- + >>> PropertyDecorator2(80), + 1->^^^^ +@@= skipped -16, +16 lines =@@ + 3 > ( + 4 > 80 + 5 > ) -1->Emitted(42, 5) Source(43, 6) + SourceIndex(0) -2 >Emitted(42, 23) Source(43, 24) + SourceIndex(0) -3 >Emitted(42, 24) Source(43, 25) + SourceIndex(0) -4 >Emitted(42, 26) Source(43, 27) + SourceIndex(0) -5 >Emitted(42, 27) Source(43, 28) + SourceIndex(0) ----- -->>> __param(0, ParameterDecorator1), --1->^^^^ --2 > ^^^^^^^^^^^ --3 > ^^^^^^^^^^^^^^^^^^^ --4 > ^ --5 > ^^^^^-> --1-> -- > get greetings() { -- > return this.greeting; -- > } -- > -- > set greetings( -- > @ --2 > --3 > ParameterDecorator1 --4 > ++1->Emitted(44, 5) Source(43, 6) + SourceIndex(0) ++2 >Emitted(44, 23) Source(43, 24) + SourceIndex(0) ++3 >Emitted(44, 24) Source(43, 25) + SourceIndex(0) ++4 >Emitted(44, 26) Source(43, 27) + SourceIndex(0) ++5 >Emitted(44, 27) Source(43, 28) + SourceIndex(0) + --- + >>> __param(0, ParameterDecorator1), + 1->^^^^ +@@= skipped -22, +22 lines =@@ + 2 > + 3 > ParameterDecorator1 + 4 > -1->Emitted(43, 5) Source(49, 8) + SourceIndex(0) -2 >Emitted(43, 16) Source(49, 8) + SourceIndex(0) -3 >Emitted(43, 35) Source(49, 27) + SourceIndex(0) -4 >Emitted(43, 36) Source(49, 27) + SourceIndex(0) ----- -->>> __param(0, ParameterDecorator2(90)) --1->^^^^ --2 > ^^^^^^^^^^^ --3 > ^^^^^^^^^^^^^^^^^^^ --4 > ^ --5 > ^^ --6 > ^ --7 > ^ --8 > ^^^-> --1-> -- > @ --2 > --3 > ParameterDecorator2 --4 > ( --5 > 90 --6 > ) --7 > ++1->Emitted(45, 5) Source(49, 8) + SourceIndex(0) ++2 >Emitted(45, 16) Source(49, 8) + SourceIndex(0) ++3 >Emitted(45, 35) Source(49, 27) + SourceIndex(0) ++4 >Emitted(45, 36) Source(49, 27) + SourceIndex(0) + --- + >>> __param(0, ParameterDecorator2(90)) + 1->^^^^ +@@= skipped -22, +22 lines =@@ + 5 > 90 + 6 > ) + 7 > -1->Emitted(44, 5) Source(50, 8) + SourceIndex(0) -2 >Emitted(44, 16) Source(50, 8) + SourceIndex(0) -3 >Emitted(44, 35) Source(50, 27) + SourceIndex(0) @@ -871,123 +693,122 @@ -5 >Emitted(44, 38) Source(50, 30) + SourceIndex(0) -6 >Emitted(44, 39) Source(50, 31) + SourceIndex(0) -7 >Emitted(44, 40) Source(50, 31) + SourceIndex(0) ----- -->>>], Greeter.prototype, "greetings", null); --1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --1-> ++1->Emitted(46, 5) Source(50, 8) + SourceIndex(0) ++2 >Emitted(46, 16) Source(50, 8) + SourceIndex(0) ++3 >Emitted(46, 35) Source(50, 27) + SourceIndex(0) ++4 >Emitted(46, 36) Source(50, 28) + SourceIndex(0) ++5 >Emitted(46, 38) Source(50, 30) + SourceIndex(0) ++6 >Emitted(46, 39) Source(50, 31) + SourceIndex(0) ++7 >Emitted(46, 40) Source(50, 31) + SourceIndex(0) + --- + >>>], Greeter.prototype, "greetings", null); + 1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + 1-> -1->Emitted(45, 41) Source(46, 6) + SourceIndex(0) ----- -->>>__decorate([ --1 > --2 >^^^^^^^^^^^^^^^^^^^^^^^^-> --1 > ++1->Emitted(47, 41) Source(46, 6) + SourceIndex(0) + --- + >>>__decorate([ + 1 > + 2 >^^^^^^^^^^^^^^^^^^^^^^^^-> + 1 > -1 >Emitted(46, 1) Source(33, 20) + SourceIndex(0) ----- -->>> PropertyDecorator1, --1->^^^^ --2 > ^^^^^^^^^^^^^^^^^^ --3 > ^^^^^-> --1-> --2 > PropertyDecorator1 ++1 >Emitted(48, 1) Source(33, 20) + SourceIndex(0) + --- + >>> PropertyDecorator1, + 1->^^^^ +@@= skipped -25, +25 lines =@@ + 3 > ^^^^^-> + 1-> + 2 > PropertyDecorator1 -1->Emitted(47, 5) Source(31, 6) + SourceIndex(0) -2 >Emitted(47, 23) Source(31, 24) + SourceIndex(0) ----- -->>> PropertyDecorator2(60) --1->^^^^ --2 > ^^^^^^^^^^^^^^^^^^ --3 > ^ --4 > ^^ --5 > ^ --6 > ^-> --1-> -- > @ --2 > PropertyDecorator2 --3 > ( --4 > 60 --5 > ) ++1->Emitted(49, 5) Source(31, 6) + SourceIndex(0) ++2 >Emitted(49, 23) Source(31, 24) + SourceIndex(0) + --- + >>> PropertyDecorator2(60) + 1->^^^^ +@@= skipped -16, +16 lines =@@ + 3 > ( + 4 > 60 + 5 > ) -1->Emitted(48, 5) Source(32, 6) + SourceIndex(0) -2 >Emitted(48, 23) Source(32, 24) + SourceIndex(0) -3 >Emitted(48, 24) Source(32, 25) + SourceIndex(0) -4 >Emitted(48, 26) Source(32, 27) + SourceIndex(0) -5 >Emitted(48, 27) Source(32, 28) + SourceIndex(0) ----- -->>>], Greeter, "x1", void 0); --1->^^^^^^^^^^^^^^^^^^^^^^^^^ --1-> -- > private static x1: number = 10; ++1->Emitted(50, 5) Source(32, 6) + SourceIndex(0) ++2 >Emitted(50, 23) Source(32, 24) + SourceIndex(0) ++3 >Emitted(50, 24) Source(32, 25) + SourceIndex(0) ++4 >Emitted(50, 26) Source(32, 27) + SourceIndex(0) ++5 >Emitted(50, 27) Source(32, 28) + SourceIndex(0) + --- + >>>], Greeter, "x1", void 0); + 1->^^^^^^^^^^^^^^^^^^^^^^^^^ + 1-> + > private static x1: number = 10; -1->Emitted(49, 26) Source(33, 36) + SourceIndex(0) ----- -->>>Greeter = __decorate([ --1 > --2 >^^^^^^^ --3 > ^^^^^^^^^^^^^^-> --1 > --2 >Greeter ++1->Emitted(51, 26) Source(33, 36) + SourceIndex(0) + --- + >>>Greeter = __decorate([ + 1 > +@@= skipped -18, +18 lines =@@ + 3 > ^^^^^^^^^^^^^^-> + 1 > + 2 >Greeter -1 >Emitted(50, 1) Source(10, 7) + SourceIndex(0) -2 >Emitted(50, 8) Source(10, 14) + SourceIndex(0) ----- -->>> ClassDecorator1, --1->^^^^ --2 > ^^^^^^^^^^^^^^^ --3 > ^^^^^^-> --1-> --2 > ClassDecorator1 ++1 >Emitted(52, 1) Source(10, 7) + SourceIndex(0) ++2 >Emitted(52, 8) Source(10, 14) + SourceIndex(0) + --- + >>> ClassDecorator1, + 1->^^^^ +@@= skipped -9, +9 lines =@@ + 3 > ^^^^^^-> + 1-> + 2 > ClassDecorator1 -1->Emitted(51, 5) Source(8, 2) + SourceIndex(0) -2 >Emitted(51, 20) Source(8, 17) + SourceIndex(0) ----- -->>> ClassDecorator2(10), --1->^^^^ --2 > ^^^^^^^^^^^^^^^ --3 > ^ --4 > ^^ --5 > ^ --6 > ^^^^^^^^^^^^^^-> --1-> -- >@ --2 > ClassDecorator2 --3 > ( --4 > 10 --5 > ) ++1->Emitted(53, 5) Source(8, 2) + SourceIndex(0) ++2 >Emitted(53, 20) Source(8, 17) + SourceIndex(0) + --- + >>> ClassDecorator2(10), + 1->^^^^ +@@= skipped -16, +16 lines =@@ + 3 > ( + 4 > 10 + 5 > ) -1->Emitted(52, 5) Source(9, 2) + SourceIndex(0) -2 >Emitted(52, 20) Source(9, 17) + SourceIndex(0) -3 >Emitted(52, 21) Source(9, 18) + SourceIndex(0) -4 >Emitted(52, 23) Source(9, 20) + SourceIndex(0) -5 >Emitted(52, 24) Source(9, 21) + SourceIndex(0) ----- -->>> __param(0, ParameterDecorator1), --1->^^^^ --2 > ^^^^^^^^^^^ --3 > ^^^^^^^^^^^^^^^^^^^ --4 > ^ --5 > ^^^^^^-> --1-> -- >class Greeter { -- > constructor( -- > @ --2 > --3 > ParameterDecorator1 --4 > ++1->Emitted(54, 5) Source(9, 2) + SourceIndex(0) ++2 >Emitted(54, 20) Source(9, 17) + SourceIndex(0) ++3 >Emitted(54, 21) Source(9, 18) + SourceIndex(0) ++4 >Emitted(54, 23) Source(9, 20) + SourceIndex(0) ++5 >Emitted(54, 24) Source(9, 21) + SourceIndex(0) + --- + >>> __param(0, ParameterDecorator1), + 1->^^^^ +@@= skipped -19, +19 lines =@@ + 2 > + 3 > ParameterDecorator1 + 4 > -1->Emitted(53, 5) Source(12, 8) + SourceIndex(0) -2 >Emitted(53, 16) Source(12, 8) + SourceIndex(0) -3 >Emitted(53, 35) Source(12, 27) + SourceIndex(0) -4 >Emitted(53, 36) Source(12, 27) + SourceIndex(0) ----- -->>> __param(0, ParameterDecorator2(20)), --1->^^^^ --2 > ^^^^^^^^^^^ --3 > ^^^^^^^^^^^^^^^^^^^ --4 > ^ --5 > ^^ --6 > ^ --7 > ^ --1-> -- > @ --2 > --3 > ParameterDecorator2 --4 > ( --5 > 20 --6 > ) --7 > ++1->Emitted(55, 5) Source(12, 8) + SourceIndex(0) ++2 >Emitted(55, 16) Source(12, 8) + SourceIndex(0) ++3 >Emitted(55, 35) Source(12, 27) + SourceIndex(0) ++4 >Emitted(55, 36) Source(12, 27) + SourceIndex(0) + --- + >>> __param(0, ParameterDecorator2(20)), + 1->^^^^ +@@= skipped -21, +21 lines =@@ + 5 > 20 + 6 > ) + 7 > -1->Emitted(54, 5) Source(13, 8) + SourceIndex(0) -2 >Emitted(54, 16) Source(13, 8) + SourceIndex(0) -3 >Emitted(54, 35) Source(13, 27) + SourceIndex(0) @@ -995,41 +816,35 @@ -5 >Emitted(54, 38) Source(13, 30) + SourceIndex(0) -6 >Emitted(54, 39) Source(13, 31) + SourceIndex(0) -7 >Emitted(54, 40) Source(13, 31) + SourceIndex(0) ----- -->>> __param(1, ParameterDecorator1), --1 >^^^^ --2 > ^^^^^^^^^^^ --3 > ^^^^^^^^^^^^^^^^^^^ --4 > ^ --5 > ^^^^^-> --1 > -- > public greeting: string, -- > -- > @ --2 > --3 > ParameterDecorator1 --4 > ++1->Emitted(56, 5) Source(13, 8) + SourceIndex(0) ++2 >Emitted(56, 16) Source(13, 8) + SourceIndex(0) ++3 >Emitted(56, 35) Source(13, 27) + SourceIndex(0) ++4 >Emitted(56, 36) Source(13, 28) + SourceIndex(0) ++5 >Emitted(56, 38) Source(13, 30) + SourceIndex(0) ++6 >Emitted(56, 39) Source(13, 31) + SourceIndex(0) ++7 >Emitted(56, 40) Source(13, 31) + SourceIndex(0) + --- + >>> __param(1, ParameterDecorator1), + 1 >^^^^ +@@= skipped -21, +21 lines =@@ + 2 > + 3 > ParameterDecorator1 + 4 > -1 >Emitted(55, 5) Source(16, 8) + SourceIndex(0) -2 >Emitted(55, 16) Source(16, 8) + SourceIndex(0) -3 >Emitted(55, 35) Source(16, 27) + SourceIndex(0) -4 >Emitted(55, 36) Source(16, 27) + SourceIndex(0) ----- -->>> __param(1, ParameterDecorator2(30)) --1->^^^^ --2 > ^^^^^^^^^^^ --3 > ^^^^^^^^^^^^^^^^^^^ --4 > ^ --5 > ^^ --6 > ^ --7 > ^ --1-> -- > @ --2 > --3 > ParameterDecorator2 --4 > ( --5 > 30 --6 > ) --7 > ++1 >Emitted(57, 5) Source(16, 8) + SourceIndex(0) ++2 >Emitted(57, 16) Source(16, 8) + SourceIndex(0) ++3 >Emitted(57, 35) Source(16, 27) + SourceIndex(0) ++4 >Emitted(57, 36) Source(16, 27) + SourceIndex(0) + --- + >>> __param(1, ParameterDecorator2(30)) + 1->^^^^ +@@= skipped -21, +21 lines =@@ + 5 > 30 + 6 > ) + 7 > -1->Emitted(56, 5) Source(17, 8) + SourceIndex(0) -2 >Emitted(56, 16) Source(17, 8) + SourceIndex(0) -3 >Emitted(56, 35) Source(17, 27) + SourceIndex(0) @@ -1037,72 +852,25 @@ -5 >Emitted(56, 38) Source(17, 30) + SourceIndex(0) -6 >Emitted(56, 39) Source(17, 31) + SourceIndex(0) -7 >Emitted(56, 40) Source(17, 31) + SourceIndex(0) ----- -->>>], Greeter); --1 >^^^ --2 > ^^^^^^^ --3 > ^ --4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> --1 > --2 > Greeter --3 > { -- > constructor( -- > @ParameterDecorator1 -- > @ParameterDecorator2(20) -- > public greeting: string, -- > -- > @ParameterDecorator1 -- > @ParameterDecorator2(30) -- > ...b: string[]) { -- > } -- > -- > @PropertyDecorator1 -- > @PropertyDecorator2(40) -- > greet() { -- > return "

" + this.greeting + "

"; -- > } -- > -- > @PropertyDecorator1 -- > @PropertyDecorator2(50) -- > private x: string; -- > -- > @PropertyDecorator1 -- > @PropertyDecorator2(60) -- > private static x1: number = 10; -- > -- > private fn( -- > @ParameterDecorator1 -- > @ParameterDecorator2(70) -- > x: number) { -- > return this.greeting; -- > } -- > -- > @PropertyDecorator1 -- > @PropertyDecorator2(80) -- > get greetings() { -- > return this.greeting; -- > } -- > -- > set greetings( -- > @ParameterDecorator1 -- > @ParameterDecorator2(90) -- > greetings: string) { -- > this.greeting = greetings; -- > } -- > } ++1->Emitted(58, 5) Source(17, 8) + SourceIndex(0) ++2 >Emitted(58, 16) Source(17, 8) + SourceIndex(0) ++3 >Emitted(58, 35) Source(17, 27) + SourceIndex(0) ++4 >Emitted(58, 36) Source(17, 28) + SourceIndex(0) ++5 >Emitted(58, 38) Source(17, 30) + SourceIndex(0) ++6 >Emitted(58, 39) Source(17, 31) + SourceIndex(0) ++7 >Emitted(58, 40) Source(17, 31) + SourceIndex(0) + --- + >>>], Greeter); + 1 >^^^ +@@= skipped -60, +60 lines =@@ + > this.greeting = greetings; + > } + > } -1 >Emitted(57, 4) Source(10, 7) + SourceIndex(0) -2 >Emitted(57, 11) Source(10, 14) + SourceIndex(0) -3 >Emitted(57, 12) Source(54, 2) + SourceIndex(0) -+2 > -+ > } -+1 >Emitted(29, 5) Source(52, 35) + SourceIndex(0) -+2 >Emitted(29, 6) Source(53, 6) + SourceIndex(0) -+--- -+>>>} -+1 >^ -+2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> -+1 > -+ >} -+1 >Emitted(30, 2) Source(54, 2) + SourceIndex(0) ++1 >Emitted(59, 4) Source(10, 7) + SourceIndex(0) ++2 >Emitted(59, 11) Source(10, 14) + SourceIndex(0) ++3 >Emitted(59, 12) Source(54, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=sourceMapValidationDecorators.js.map \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/staticInitializersAndLegacyClassDecorators.js b/testdata/baselines/reference/submodule/compiler/staticInitializersAndLegacyClassDecorators.js index 93041a866..1d6618bd2 100644 --- a/testdata/baselines/reference/submodule/compiler/staticInitializersAndLegacyClassDecorators.js +++ b/testdata/baselines/reference/submodule/compiler/staticInitializersAndLegacyClassDecorators.js @@ -20,13 +20,26 @@ class C2 //// [staticInitializersAndLegacyClassDecorators.js] -@dec -class C1 { - static instance = new C1(); -} -@dec -class C2 { +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var C1_1, C2_1; +let C1 = class C1 { + static { C1_1 = this; } + static instance = new C1_1(); +}; +C1 = C1_1 = __decorate([ + dec +], C1); +let C2 = class C2 { + static { C2_1 = this; } static { - new C2(); + new C2_1(); } -} +}; +C2 = C2_1 = __decorate([ + dec +], C2); diff --git a/testdata/baselines/reference/submodule/compiler/staticInitializersAndLegacyClassDecorators.js.diff b/testdata/baselines/reference/submodule/compiler/staticInitializersAndLegacyClassDecorators.js.diff deleted file mode 100644 index 649811df2..000000000 --- a/testdata/baselines/reference/submodule/compiler/staticInitializersAndLegacyClassDecorators.js.diff +++ /dev/null @@ -1,37 +0,0 @@ ---- old.staticInitializersAndLegacyClassDecorators.js -+++ new.staticInitializersAndLegacyClassDecorators.js -@@= skipped -19, +19 lines =@@ - - - //// [staticInitializersAndLegacyClassDecorators.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var C1_1, C2_1; --let C1 = class C1 { -- static { C1_1 = this; } -- static instance = new C1_1(); --}; --C1 = C1_1 = __decorate([ -- dec --], C1); --let C2 = class C2 { -- static { C2_1 = this; } -+@dec -+class C1 { -+ static instance = new C1(); -+} -+@dec -+class C2 { - static { -- new C2_1(); -+ new C2(); - } --}; --C2 = C2_1 = __decorate([ -- dec --], C2); -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/targetEs6DecoratorMetadataImportNotElided.js b/testdata/baselines/reference/submodule/compiler/targetEs6DecoratorMetadataImportNotElided.js index d25b20f13..688082866 100644 --- a/testdata/baselines/reference/submodule/compiler/targetEs6DecoratorMetadataImportNotElided.js +++ b/testdata/baselines/reference/submodule/compiler/targetEs6DecoratorMetadataImportNotElided.js @@ -21,10 +21,23 @@ export function Input() { } export class TemplateRef { } //// [index.js] -import { Input } from './deps'; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +import { Input, TemplateRef } from './deps'; export class MyComponent { _ref; - @Input() get ref() { return this._ref; } set ref(value) { this._ref = value; } } +__decorate([ + Input(), + __metadata("design:type", TemplateRef), + __metadata("design:paramtypes", [TemplateRef]) +], MyComponent.prototype, "ref", null); diff --git a/testdata/baselines/reference/submodule/compiler/targetEs6DecoratorMetadataImportNotElided.js.diff b/testdata/baselines/reference/submodule/compiler/targetEs6DecoratorMetadataImportNotElided.js.diff index d5c5418b1..0da4f0b07 100644 --- a/testdata/baselines/reference/submodule/compiler/targetEs6DecoratorMetadataImportNotElided.js.diff +++ b/testdata/baselines/reference/submodule/compiler/targetEs6DecoratorMetadataImportNotElided.js.diff @@ -1,28 +1,10 @@ --- old.targetEs6DecoratorMetadataImportNotElided.js +++ new.targetEs6DecoratorMetadataImportNotElided.js -@@= skipped -20, +20 lines =@@ - export class TemplateRef { - } - //// [index.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; --import { Input, TemplateRef } from './deps'; -+import { Input } from './deps'; +@@= skipped -31, +31 lines =@@ + }; + import { Input, TemplateRef } from './deps'; export class MyComponent { + _ref; -+ @Input() get ref() { return this._ref; } set ref(value) { this._ref = value; } - } --__decorate([ -- Input(), -- __metadata("design:type", TemplateRef), -- __metadata("design:paramtypes", [TemplateRef]) --], MyComponent.prototype, "ref", null); \ No newline at end of file + } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/templateLiteralsAndDecoratorMetadata.js b/testdata/baselines/reference/submodule/compiler/templateLiteralsAndDecoratorMetadata.js index 27fe83430..a68bf3f57 100644 --- a/testdata/baselines/reference/submodule/compiler/templateLiteralsAndDecoratorMetadata.js +++ b/testdata/baselines/reference/submodule/compiler/templateLiteralsAndDecoratorMetadata.js @@ -9,10 +9,22 @@ export class Greeter { //// [templateLiteralsAndDecoratorMetadata.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.Greeter = void 0; class Greeter { - @format("Hello, %s") greeting = `employee`; //template literals on this line cause the issue } exports.Greeter = Greeter; +__decorate([ + format("Hello, %s"), + __metadata("design:type", String) +], Greeter.prototype, "greeting", void 0); diff --git a/testdata/baselines/reference/submodule/compiler/templateLiteralsAndDecoratorMetadata.js.diff b/testdata/baselines/reference/submodule/compiler/templateLiteralsAndDecoratorMetadata.js.diff index 38af81f6c..efc8b1765 100644 --- a/testdata/baselines/reference/submodule/compiler/templateLiteralsAndDecoratorMetadata.js.diff +++ b/testdata/baselines/reference/submodule/compiler/templateLiteralsAndDecoratorMetadata.js.diff @@ -1,29 +1,13 @@ --- old.templateLiteralsAndDecoratorMetadata.js +++ new.templateLiteralsAndDecoratorMetadata.js -@@= skipped -8, +8 lines =@@ - - //// [templateLiteralsAndDecoratorMetadata.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; +@@= skipped -20, +20 lines =@@ Object.defineProperty(exports, "__esModule", { value: true }); exports.Greeter = void 0; class Greeter { - constructor() { - this.greeting = `employee`; //template literals on this line cause the issue - } -+ @format("Hello, %s") + greeting = `employee`; //template literals on this line cause the issue } exports.Greeter = Greeter; --__decorate([ -- format("Hello, %s"), -- __metadata("design:type", String) --], Greeter.prototype, "greeting", void 0); \ No newline at end of file + __decorate([ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/compiler/tslibReExportHelpers.js b/testdata/baselines/reference/submodule/compiler/tslibReExportHelpers.js index ed98df63a..7dd733ece 100644 --- a/testdata/baselines/reference/submodule/compiler/tslibReExportHelpers.js +++ b/testdata/baselines/reference/submodule/compiler/tslibReExportHelpers.js @@ -28,6 +28,10 @@ export class Foo {} //// [index.mjs] -@decorator -export class Foo { -} +import { __decorate } from "tslib"; +let Foo = class Foo { +}; +Foo = __decorate([ + decorator +], Foo); +export { Foo }; diff --git a/testdata/baselines/reference/submodule/compiler/tslibReExportHelpers.js.diff b/testdata/baselines/reference/submodule/compiler/tslibReExportHelpers.js.diff deleted file mode 100644 index 56f24807a..000000000 --- a/testdata/baselines/reference/submodule/compiler/tslibReExportHelpers.js.diff +++ /dev/null @@ -1,16 +0,0 @@ ---- old.tslibReExportHelpers.js -+++ new.tslibReExportHelpers.js -@@= skipped -27, +27 lines =@@ - - - //// [index.mjs] --import { __decorate } from "tslib"; --let Foo = class Foo { --}; --Foo = __decorate([ -- decorator --], Foo); --export { Foo }; -+@decorator -+export class Foo { -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/asOpEmitParens.js b/testdata/baselines/reference/submodule/conformance/asOpEmitParens.js index c8862f02c..1096a2a24 100644 --- a/testdata/baselines/reference/submodule/conformance/asOpEmitParens.js +++ b/testdata/baselines/reference/submodule/conformance/asOpEmitParens.js @@ -14,8 +14,8 @@ new (x() as any); //// [asOpEmitParens.js] // Must emit as (x + 1) * 3 -((x + 1)) * 3; +(x + 1) * 3; // Should still emit as x.y x.y; // Emit as new (x()) -new ((x())); +new (x()); diff --git a/testdata/baselines/reference/submodule/conformance/asOpEmitParens.js.diff b/testdata/baselines/reference/submodule/conformance/asOpEmitParens.js.diff deleted file mode 100644 index d2cec786c..000000000 --- a/testdata/baselines/reference/submodule/conformance/asOpEmitParens.js.diff +++ /dev/null @@ -1,13 +0,0 @@ ---- old.asOpEmitParens.js -+++ new.asOpEmitParens.js -@@= skipped -13, +13 lines =@@ - - //// [asOpEmitParens.js] - // Must emit as (x + 1) * 3 --(x + 1) * 3; -+((x + 1)) * 3; - // Should still emit as x.y - x.y; - // Emit as new (x()) --new (x()); -+new ((x())); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/autoAccessorExperimentalDecorators(target=es2015).js b/testdata/baselines/reference/submodule/conformance/autoAccessorExperimentalDecorators(target=es2015).js index c61e927ec..c3f5fdcc2 100644 --- a/testdata/baselines/reference/submodule/conformance/autoAccessorExperimentalDecorators(target=es2015).js +++ b/testdata/baselines/reference/submodule/conformance/autoAccessorExperimentalDecorators(target=es2015).js @@ -21,15 +21,23 @@ class C2 { //// [autoAccessorExperimentalDecorators.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class C1 { - @dec accessor a; - @dec static accessor b; } +__decorate([ + dec +], C1.prototype, "a", null); +__decorate([ + dec +], C1, "b", null); class C2 { - @dec accessor #a; - @dec static accessor #b; } diff --git a/testdata/baselines/reference/submodule/conformance/autoAccessorExperimentalDecorators(target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/autoAccessorExperimentalDecorators(target=es2015).js.diff index 363cfab7b..6e71b1ad5 100644 --- a/testdata/baselines/reference/submodule/conformance/autoAccessorExperimentalDecorators(target=es2015).js.diff +++ b/testdata/baselines/reference/submodule/conformance/autoAccessorExperimentalDecorators(target=es2015).js.diff @@ -1,15 +1,9 @@ --- old.autoAccessorExperimentalDecorators(target=es2015).js +++ new.autoAccessorExperimentalDecorators(target=es2015).js -@@= skipped -20, +20 lines =@@ - - - //// [autoAccessorExperimentalDecorators.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; +@@= skipped -26, +26 lines =@@ + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; -var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); @@ -30,27 +24,23 @@ - set a(value) { __classPrivateFieldSet(this, _C1_a_accessor_storage, value, "f"); } - static get b() { return __classPrivateFieldGet(_a, _a, "f", _C1_b_accessor_storage); } - static set b(value) { __classPrivateFieldSet(_a, _a, value, "f", _C1_b_accessor_storage); } -+ @dec + accessor a; -+ @dec + static accessor b; } -_a = C1, _C1_a_accessor_storage = new WeakMap(); -_C1_b_accessor_storage = { value: void 0 }; --__decorate([ -- dec --], C1.prototype, "a", null); --__decorate([ -- dec --], C1, "b", null); + __decorate([ + dec + ], C1.prototype, "a", null); +@@= skipped -30, +11 lines =@@ + dec + ], C1, "b", null); class C2 { - constructor() { - _C2_instances.add(this); - _C2_a_1_accessor_storage.set(this, void 0); - } -+ @dec + accessor #a; -+ @dec + static accessor #b; } -_b = C2, _C2_instances = new WeakSet(), _C2_a_1_accessor_storage = new WeakMap(), _C2_a_get = function _C2_a_get() { return __classPrivateFieldGet(this, _C2_a_1_accessor_storage, "f"); }, _C2_a_set = function _C2_a_set(value) { __classPrivateFieldSet(this, _C2_a_1_accessor_storage, value, "f"); }, _C2_b_get = function _C2_b_get() { return __classPrivateFieldGet(_b, _b, "f", _C2_b_1_accessor_storage); }, _C2_b_set = function _C2_b_set(value) { __classPrivateFieldSet(_b, _b, value, "f", _C2_b_1_accessor_storage); }; diff --git a/testdata/baselines/reference/submodule/conformance/autoAccessorExperimentalDecorators(target=es2022).js b/testdata/baselines/reference/submodule/conformance/autoAccessorExperimentalDecorators(target=es2022).js index c61e927ec..c3f5fdcc2 100644 --- a/testdata/baselines/reference/submodule/conformance/autoAccessorExperimentalDecorators(target=es2022).js +++ b/testdata/baselines/reference/submodule/conformance/autoAccessorExperimentalDecorators(target=es2022).js @@ -21,15 +21,23 @@ class C2 { //// [autoAccessorExperimentalDecorators.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class C1 { - @dec accessor a; - @dec static accessor b; } +__decorate([ + dec +], C1.prototype, "a", null); +__decorate([ + dec +], C1, "b", null); class C2 { - @dec accessor #a; - @dec static accessor #b; } diff --git a/testdata/baselines/reference/submodule/conformance/autoAccessorExperimentalDecorators(target=es2022).js.diff b/testdata/baselines/reference/submodule/conformance/autoAccessorExperimentalDecorators(target=es2022).js.diff index 45f8a61f4..4f6363e8c 100644 --- a/testdata/baselines/reference/submodule/conformance/autoAccessorExperimentalDecorators(target=es2022).js.diff +++ b/testdata/baselines/reference/submodule/conformance/autoAccessorExperimentalDecorators(target=es2022).js.diff @@ -1,15 +1,8 @@ --- old.autoAccessorExperimentalDecorators(target=es2022).js +++ new.autoAccessorExperimentalDecorators(target=es2022).js -@@= skipped -20, +20 lines =@@ - - - //// [autoAccessorExperimentalDecorators.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; +@@= skipped -27, +27 lines =@@ + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; class C1 { - #a_accessor_storage; - get a() { return this.#a_accessor_storage; } @@ -17,17 +10,14 @@ - static #b_accessor_storage; - static get b() { return C1.#b_accessor_storage; } - static set b(value) { C1.#b_accessor_storage = value; } -+ @dec + accessor a; -+ @dec + static accessor b; } --__decorate([ -- dec --], C1.prototype, "a", null); --__decorate([ -- dec --], C1, "b", null); + __decorate([ + dec +@@= skipped -14, +10 lines =@@ + dec + ], C1, "b", null); class C2 { - #a_accessor_storage; - get #a() { return this.#a_accessor_storage; } @@ -35,8 +25,6 @@ - static #b_accessor_storage; - static get #b() { return C2.#b_accessor_storage; } - static set #b(value) { C2.#b_accessor_storage = value; } -+ @dec + accessor #a; -+ @dec + static accessor #b; } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/autoAccessorExperimentalDecorators(target=esnext).js b/testdata/baselines/reference/submodule/conformance/autoAccessorExperimentalDecorators(target=esnext).js index c61e927ec..c3f5fdcc2 100644 --- a/testdata/baselines/reference/submodule/conformance/autoAccessorExperimentalDecorators(target=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/autoAccessorExperimentalDecorators(target=esnext).js @@ -21,15 +21,23 @@ class C2 { //// [autoAccessorExperimentalDecorators.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class C1 { - @dec accessor a; - @dec static accessor b; } +__decorate([ + dec +], C1.prototype, "a", null); +__decorate([ + dec +], C1, "b", null); class C2 { - @dec accessor #a; - @dec static accessor #b; } diff --git a/testdata/baselines/reference/submodule/conformance/autoAccessorExperimentalDecorators(target=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/autoAccessorExperimentalDecorators(target=esnext).js.diff deleted file mode 100644 index f3cd48c38..000000000 --- a/testdata/baselines/reference/submodule/conformance/autoAccessorExperimentalDecorators(target=esnext).js.diff +++ /dev/null @@ -1,30 +0,0 @@ ---- old.autoAccessorExperimentalDecorators(target=esnext).js -+++ new.autoAccessorExperimentalDecorators(target=esnext).js -@@= skipped -20, +20 lines =@@ - - - //// [autoAccessorExperimentalDecorators.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - class C1 { -+ @dec - accessor a; -+ @dec - static accessor b; - } --__decorate([ -- dec --], C1.prototype, "a", null); --__decorate([ -- dec --], C1, "b", null); - class C2 { -+ @dec - accessor #a; -+ @dec - static accessor #b; - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/constructableDecoratorOnClass01.js b/testdata/baselines/reference/submodule/conformance/constructableDecoratorOnClass01.js index a87d36d8f..623f53faf 100644 --- a/testdata/baselines/reference/submodule/conformance/constructableDecoratorOnClass01.js +++ b/testdata/baselines/reference/submodule/conformance/constructableDecoratorOnClass01.js @@ -10,8 +10,16 @@ class C { //// [constructableDecoratorOnClass01.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class CtorDtor { } -@CtorDtor -class C { -} +let C = class C { +}; +C = __decorate([ + CtorDtor +], C); diff --git a/testdata/baselines/reference/submodule/conformance/constructableDecoratorOnClass01.js.diff b/testdata/baselines/reference/submodule/conformance/constructableDecoratorOnClass01.js.diff deleted file mode 100644 index 9024205d4..000000000 --- a/testdata/baselines/reference/submodule/conformance/constructableDecoratorOnClass01.js.diff +++ /dev/null @@ -1,22 +0,0 @@ ---- old.constructableDecoratorOnClass01.js -+++ new.constructableDecoratorOnClass01.js -@@= skipped -9, +9 lines =@@ - - - //// [constructableDecoratorOnClass01.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - class CtorDtor { - } --let C = class C { --}; --C = __decorate([ -- CtorDtor --], C); -+@CtorDtor -+class C { -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass1.js b/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass1.js index 66b36e9fe..3d5aea71d 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass1.js +++ b/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass1.js @@ -15,13 +15,21 @@ Foo.func(); //// [a.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; function decorator() { return (target) => { }; } -@decorator() -class Foo { +let Foo = class Foo { static func() { return new Foo(); } -} +}; +Foo = __decorate([ + decorator() +], Foo); Foo.func(); diff --git a/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass1.js.diff b/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass1.js.diff index 1c1412c2c..1dc2a603b 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass1.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass1.js.diff @@ -1,29 +1,22 @@ --- old.decoratedBlockScopedClass1.js +++ new.decoratedBlockScopedClass1.js -@@= skipped -14, +14 lines =@@ - - - //// [a.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; +@@= skipped -20, +20 lines =@@ + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; -var Foo_1; function decorator() { return (target) => { }; } -let Foo = Foo_1 = class Foo { -+@decorator() -+class Foo { ++let Foo = class Foo { static func() { - return new Foo_1(); + return new Foo(); } --}; + }; -Foo = Foo_1 = __decorate([ -- decorator() --], Foo); -+} ++Foo = __decorate([ + decorator() + ], Foo); Foo.func(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass2.js b/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass2.js index 92db8d2ff..8026f2149 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass2.js +++ b/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass2.js @@ -18,16 +18,24 @@ catch (e) {} //// [a.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; function decorator() { return (target) => { }; } try { - @decorator() - class Foo { + let Foo = class Foo { static func() { return new Foo(); } - } + }; + Foo = __decorate([ + decorator() + ], Foo); Foo.func(); } catch (e) { } diff --git a/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass2.js.diff b/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass2.js.diff index 8d1623a8e..53dbd0970 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass2.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass2.js.diff @@ -1,32 +1,23 @@ --- old.decoratedBlockScopedClass2.js +++ new.decoratedBlockScopedClass2.js -@@= skipped -17, +17 lines =@@ - - - //// [a.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; +@@= skipped -23, +23 lines =@@ + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; -var Foo_1; function decorator() { return (target) => { }; } try { - let Foo = Foo_1 = class Foo { -+ @decorator() -+ class Foo { ++ let Foo = class Foo { static func() { - return new Foo_1(); + return new Foo(); } -- }; + }; - Foo = Foo_1 = __decorate([ -- decorator() -- ], Foo); -+ } - Foo.func(); - } - catch (e) { } \ No newline at end of file ++ Foo = __decorate([ + decorator() + ], Foo); + Foo.func(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass3.js b/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass3.js index 498297b98..4b9c8f248 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass3.js +++ b/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass3.js @@ -26,23 +26,33 @@ catch (e) {} //// [a.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; function decorator() { return (target) => { }; } -@decorator() -class Foo { +let Foo = class Foo { static func() { return new Foo(); } -} +}; +Foo = __decorate([ + decorator() +], Foo); Foo.func(); try { - @decorator() - class Foo { + let Foo = class Foo { static func() { return new Foo(); } - } + }; + Foo = __decorate([ + decorator() + ], Foo); Foo.func(); } catch (e) { } diff --git a/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass3.js.diff b/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass3.js.diff index b899d7458..0b135b532 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass3.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass3.js.diff @@ -1,45 +1,35 @@ --- old.decoratedBlockScopedClass3.js +++ new.decoratedBlockScopedClass3.js -@@= skipped -25, +25 lines =@@ - - - //// [a.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; +@@= skipped -31, +31 lines =@@ + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; -var Foo_1, Foo_2; function decorator() { return (target) => { }; } -let Foo = Foo_1 = class Foo { -+@decorator() -+class Foo { ++let Foo = class Foo { static func() { - return new Foo_1(); + return new Foo(); } --}; + }; -Foo = Foo_1 = __decorate([ -- decorator() --], Foo); -+} ++Foo = __decorate([ + decorator() + ], Foo); Foo.func(); try { - let Foo = Foo_2 = class Foo { -+ @decorator() -+ class Foo { ++ let Foo = class Foo { static func() { - return new Foo_2(); + return new Foo(); } -- }; + }; - Foo = Foo_2 = __decorate([ -- decorator() -- ], Foo); -+ } - Foo.func(); - } - catch (e) { } \ No newline at end of file ++ Foo = __decorate([ + decorator() + ], Foo); + Foo.func(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratedClassExportsCommonJS1.js b/testdata/baselines/reference/submodule/conformance/decoratedClassExportsCommonJS1.js index 3e7ead401..3fd619f58 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratedClassExportsCommonJS1.js +++ b/testdata/baselines/reference/submodule/conformance/decoratedClassExportsCommonJS1.js @@ -11,11 +11,19 @@ export class Testing123 { //// [a.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.Testing123 = void 0; -@Something({ v: () => Testing123 }) -class Testing123 { +let Testing123 = class Testing123 { static prop0; static prop1 = Testing123.prop0; -} +}; exports.Testing123 = Testing123; +exports.Testing123 = Testing123 = __decorate([ + Something({ v: () => Testing123 }) +], Testing123); diff --git a/testdata/baselines/reference/submodule/conformance/decoratedClassExportsCommonJS1.js.diff b/testdata/baselines/reference/submodule/conformance/decoratedClassExportsCommonJS1.js.diff index e0133f60d..6860750a4 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratedClassExportsCommonJS1.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratedClassExportsCommonJS1.js.diff @@ -16,24 +16,23 @@ -//// [decoratedClassExportsCommonJS1.js] +//// [a.js] "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; + var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; +@@= skipped -8, +8 lines =@@ + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; -var Testing123_1; Object.defineProperty(exports, "__esModule", { value: true }); exports.Testing123 = void 0; -let Testing123 = Testing123_1 = class Testing123 { --}; -+@Something({ v: () => Testing123 }) -+class Testing123 { ++let Testing123 = class Testing123 { + static prop0; + static prop1 = Testing123.prop0; -+} + }; exports.Testing123 = Testing123; -Testing123.prop1 = Testing123_1.prop0; -exports.Testing123 = Testing123 = Testing123_1 = __decorate([ -- Something({ v: () => Testing123 }) --], Testing123); \ No newline at end of file ++exports.Testing123 = Testing123 = __decorate([ + Something({ v: () => Testing123 }) + ], Testing123); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratedClassExportsCommonJS2.js b/testdata/baselines/reference/submodule/conformance/decoratedClassExportsCommonJS2.js index 06e197652..a7525a994 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratedClassExportsCommonJS2.js +++ b/testdata/baselines/reference/submodule/conformance/decoratedClassExportsCommonJS2.js @@ -8,9 +8,17 @@ export class Testing123 { } //// [a.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.Testing123 = void 0; -@Something({ v: () => Testing123 }) -class Testing123 { -} +let Testing123 = class Testing123 { +}; exports.Testing123 = Testing123; +exports.Testing123 = Testing123 = __decorate([ + Something({ v: () => Testing123 }) +], Testing123); diff --git a/testdata/baselines/reference/submodule/conformance/decoratedClassExportsCommonJS2.js.diff b/testdata/baselines/reference/submodule/conformance/decoratedClassExportsCommonJS2.js.diff deleted file mode 100644 index 121e29310..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratedClassExportsCommonJS2.js.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- old.decoratedClassExportsCommonJS2.js -+++ new.decoratedClassExportsCommonJS2.js -@@= skipped -7, +7 lines =@@ - - //// [a.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.Testing123 = void 0; --let Testing123 = class Testing123 { --}; -+@Something({ v: () => Testing123 }) -+class Testing123 { -+} - exports.Testing123 = Testing123; --exports.Testing123 = Testing123 = __decorate([ -- Something({ v: () => Testing123 }) --], Testing123); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratedClassFromExternalModule.js b/testdata/baselines/reference/submodule/conformance/decoratedClassFromExternalModule.js index f47b92f51..c40cd3f69 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratedClassFromExternalModule.js +++ b/testdata/baselines/reference/submodule/conformance/decoratedClassFromExternalModule.js @@ -10,9 +10,18 @@ export default class Decorated { } import Decorated from 'decorated'; //// [decorated.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; function decorate(target) { } -@decorate -export default class Decorated { -} +let Decorated = class Decorated { +}; +Decorated = __decorate([ + decorate +], Decorated); +export default Decorated; //// [undecorated.js] export {}; diff --git a/testdata/baselines/reference/submodule/conformance/decoratedClassFromExternalModule.js.diff b/testdata/baselines/reference/submodule/conformance/decoratedClassFromExternalModule.js.diff deleted file mode 100644 index fbc3c222c..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratedClassFromExternalModule.js.diff +++ /dev/null @@ -1,24 +0,0 @@ ---- old.decoratedClassFromExternalModule.js -+++ new.decoratedClassFromExternalModule.js -@@= skipped -9, +9 lines =@@ - import Decorated from 'decorated'; - - //// [decorated.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - function decorate(target) { } --let Decorated = class Decorated { --}; --Decorated = __decorate([ -- decorate --], Decorated); --export default Decorated; -+@decorate -+export default class Decorated { -+} - //// [undecorated.js] - export {}; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratedDefaultExportsGetExportedCommonjs.js b/testdata/baselines/reference/submodule/conformance/decoratedDefaultExportsGetExportedCommonjs.js index 379f3c1c5..f6c7b7cbc 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratedDefaultExportsGetExportedCommonjs.js +++ b/testdata/baselines/reference/submodule/conformance/decoratedDefaultExportsGetExportedCommonjs.js @@ -15,17 +15,33 @@ export default class {} //// [a.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; Object.defineProperty(exports, "__esModule", { value: true }); var decorator; -@decorator -class Foo { -} +let Foo = class Foo { +}; +Foo = __decorate([ + decorator +], Foo); exports.default = Foo; //// [b.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; Object.defineProperty(exports, "__esModule", { value: true }); var decorator; -@decorator -class default_1 { -} +let default_1 = class { +}; +default_1 = __decorate([ + decorator +], default_1); exports.default = default_1; diff --git a/testdata/baselines/reference/submodule/conformance/decoratedDefaultExportsGetExportedCommonjs.js.diff b/testdata/baselines/reference/submodule/conformance/decoratedDefaultExportsGetExportedCommonjs.js.diff deleted file mode 100644 index dc58277e0..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratedDefaultExportsGetExportedCommonjs.js.diff +++ /dev/null @@ -1,42 +0,0 @@ ---- old.decoratedDefaultExportsGetExportedCommonjs.js -+++ new.decoratedDefaultExportsGetExportedCommonjs.js -@@= skipped -14, +14 lines =@@ - - //// [a.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - Object.defineProperty(exports, "__esModule", { value: true }); - var decorator; --let Foo = class Foo { --}; --Foo = __decorate([ -- decorator --], Foo); -+@decorator -+class Foo { -+} - exports.default = Foo; - //// [b.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - Object.defineProperty(exports, "__esModule", { value: true }); - var decorator; --let default_1 = class { --}; --default_1 = __decorate([ -- decorator --], default_1); -+@decorator -+class default_1 { -+} - exports.default = default_1; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorCallGeneric.js b/testdata/baselines/reference/submodule/conformance/decoratorCallGeneric.js index 454d5db19..93ce7a1ce 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorCallGeneric.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorCallGeneric.js @@ -15,9 +15,17 @@ class C { //// [decoratorCallGeneric.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; function dec(c) { } -@dec -class C { +let C = class C { _brand; static m() { } -} +}; +C = __decorate([ + dec +], C); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorCallGeneric.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorCallGeneric.js.diff index b2d88f00c..c8841f1e3 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorCallGeneric.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratorCallGeneric.js.diff @@ -1,23 +1,10 @@ --- old.decoratorCallGeneric.js +++ new.decoratorCallGeneric.js -@@= skipped -14, +14 lines =@@ - - - //// [decoratorCallGeneric.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; +@@= skipped -22, +22 lines =@@ + }; function dec(c) { } --let C = class C { -+@dec -+class C { + let C = class C { + _brand; static m() { } --}; --C = __decorate([ -- dec --], C); -+} \ No newline at end of file + }; + C = __decorate([ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorChecksFunctionBodies.js b/testdata/baselines/reference/submodule/conformance/decoratorChecksFunctionBodies.js index 3e60c6dc5..b350043de 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorChecksFunctionBodies.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorChecksFunctionBodies.js @@ -17,15 +17,23 @@ class A { } //// [decoratorChecksFunctionBodies.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; // from #2971 function func(s) { } class A { - @((x, p, d) => { + m() { + } +} +__decorate([ + ((x, p, d) => { var a = 3; func(a); return d; }) - m() { - } -} +], A.prototype, "m", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorChecksFunctionBodies.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorChecksFunctionBodies.js.diff deleted file mode 100644 index b3531137d..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorChecksFunctionBodies.js.diff +++ /dev/null @@ -1,30 +0,0 @@ ---- old.decoratorChecksFunctionBodies.js -+++ new.decoratorChecksFunctionBodies.js -@@= skipped -16, +16 lines =@@ - } - - //// [decoratorChecksFunctionBodies.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - // from #2971 - function func(s) { - } - class A { -- m() { -- } --} --__decorate([ -- ((x, p, d) => { -+ @((x, p, d) => { - var a = 3; - func(a); - return d; - }) --], A.prototype, "m", null); -+ m() { -+ } -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorInAmbientContext.js b/testdata/baselines/reference/submodule/conformance/decoratorInAmbientContext.js index 6c60b0e74..61bf03bd5 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorInAmbientContext.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorInAmbientContext.js @@ -11,6 +11,18 @@ class Foo { //// [decoratorInAmbientContext.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; const b = Symbol('b'); class Foo { } +__decorate([ + decorator +], Foo.prototype, "a", void 0); +__decorate([ + decorator +], Foo.prototype, _a, void 0); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorInAmbientContext.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorInAmbientContext.js.diff index d978285d6..fe43dc23c 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorInAmbientContext.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratorInAmbientContext.js.diff @@ -1,21 +1,8 @@ --- old.decoratorInAmbientContext.js +++ new.decoratorInAmbientContext.js -@@= skipped -10, +10 lines =@@ - - - //// [decoratorInAmbientContext.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - const b = Symbol('b'); - class Foo { - } --__decorate([ -- decorator --], Foo.prototype, "a", void 0); --__decorate([ -- decorator --], Foo.prototype, b, void 0); \ No newline at end of file +@@= skipped -24, +24 lines =@@ + ], Foo.prototype, "a", void 0); + __decorate([ + decorator +-], Foo.prototype, b, void 0); ++], Foo.prototype, _a, void 0); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorInstantiateModulesInFunctionBodies.js b/testdata/baselines/reference/submodule/conformance/decoratorInstantiateModulesInFunctionBodies.js index 9846bb5de..8ae8b35bb 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorInstantiateModulesInFunctionBodies.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorInstantiateModulesInFunctionBodies.js @@ -28,6 +28,12 @@ exports.test = void 0; exports.test = 'abc'; //// [b.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; Object.defineProperty(exports, "__esModule", { value: true }); const a_1 = require("./a"); function filter(handler) { @@ -36,8 +42,10 @@ function filter(handler) { }; } class Wat { - @filter(() => a_1.test == 'abc') static whatever() { // ... } } +__decorate([ + filter(() => a_1.test == 'abc') +], Wat, "whatever", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorInstantiateModulesInFunctionBodies.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorInstantiateModulesInFunctionBodies.js.diff deleted file mode 100644 index 8f5e18b05..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorInstantiateModulesInFunctionBodies.js.diff +++ /dev/null @@ -1,27 +0,0 @@ ---- old.decoratorInstantiateModulesInFunctionBodies.js -+++ new.decoratorInstantiateModulesInFunctionBodies.js -@@= skipped -27, +27 lines =@@ - exports.test = 'abc'; - //// [b.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - Object.defineProperty(exports, "__esModule", { value: true }); - const a_1 = require("./a"); - function filter(handler) { -@@= skipped -14, +8 lines =@@ - }; - } - class Wat { -+ @filter(() => a_1.test == 'abc') - static whatever() { - // ... - } - } --__decorate([ -- filter(() => a_1.test == 'abc') --], Wat, "whatever", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorMetadata-jsdoc.js b/testdata/baselines/reference/submodule/conformance/decoratorMetadata-jsdoc.js index 54a734151..5d378c1ba 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorMetadata-jsdoc.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorMetadata-jsdoc.js @@ -13,11 +13,29 @@ class X { } //// [decoratorMetadata-jsdoc.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; class X { - @decorator() a; - @decorator() b; - @decorator() c; } +__decorate([ + decorator(), + __metadata("design:type", String) +], X.prototype, "a", void 0); +__decorate([ + decorator(), + __metadata("design:type", String) +], X.prototype, "b", void 0); +__decorate([ + decorator(), + __metadata("design:type", Object) +], X.prototype, "c", void 0); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorMetadata-jsdoc.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorMetadata-jsdoc.js.diff index d29122da2..23c8aa922 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorMetadata-jsdoc.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratorMetadata-jsdoc.js.diff @@ -1,35 +1,12 @@ --- old.decoratorMetadata-jsdoc.js +++ new.decoratorMetadata-jsdoc.js -@@= skipped -12, +12 lines =@@ - } - - //// [decoratorMetadata-jsdoc.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; +@@= skipped -22, +22 lines =@@ + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); + }; class X { -+ @decorator() + a; -+ @decorator() + b; -+ @decorator() + c; } --__decorate([ -- decorator(), -- __metadata("design:type", String) --], X.prototype, "a", void 0); --__decorate([ -- decorator(), -- __metadata("design:type", String) --], X.prototype, "b", void 0); --__decorate([ -- decorator(), -- __metadata("design:type", Object) --], X.prototype, "c", void 0); \ No newline at end of file + __decorate([ + decorator(), \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorMetadata.js b/testdata/baselines/reference/submodule/conformance/decoratorMetadata.js index dfacfd2cd..d6a80908a 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorMetadata.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorMetadata.js @@ -26,14 +26,35 @@ class Service { exports.default = Service; //// [component.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; Object.defineProperty(exports, "__esModule", { value: true }); -@decorator -class MyComponent { +const service_1 = __importDefault(require("./service")); +let MyComponent = class MyComponent { Service; constructor(Service) { this.Service = Service; } - @decorator method(x) { } -} +}; +__decorate([ + decorator, + __metadata("design:type", Function), + __metadata("design:paramtypes", [Object]), + __metadata("design:returntype", void 0) +], MyComponent.prototype, "method", null); +MyComponent = __decorate([ + decorator, + __metadata("design:paramtypes", [service_1.default]) +], MyComponent); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorMetadata.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorMetadata.js.diff index 32004d5b9..64f020529 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorMetadata.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratorMetadata.js.diff @@ -1,42 +1,10 @@ --- old.decoratorMetadata.js +++ new.decoratorMetadata.js -@@= skipped -25, +25 lines =@@ - exports.default = Service; - //// [component.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; --var __importDefault = (this && this.__importDefault) || function (mod) { -- return (mod && mod.__esModule) ? mod : { "default": mod }; --}; +@@= skipped -40, +40 lines =@@ Object.defineProperty(exports, "__esModule", { value: true }); --const service_1 = __importDefault(require("./service")); --let MyComponent = class MyComponent { -+@decorator -+class MyComponent { + const service_1 = __importDefault(require("./service")); + let MyComponent = class MyComponent { + Service; constructor(Service) { this.Service = Service; - } -+ @decorator - method(x) { - } --}; --__decorate([ -- decorator, -- __metadata("design:type", Function), -- __metadata("design:paramtypes", [Object]), -- __metadata("design:returntype", void 0) --], MyComponent.prototype, "method", null); --MyComponent = __decorate([ -- decorator, -- __metadata("design:paramtypes", [service_1.default]) --], MyComponent); -+} \ No newline at end of file + } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorMetadataWithTypeOnlyImport.js b/testdata/baselines/reference/submodule/conformance/decoratorMetadataWithTypeOnlyImport.js index 8f8953b63..6cda51dd7 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorMetadataWithTypeOnlyImport.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorMetadataWithTypeOnlyImport.js @@ -27,14 +27,31 @@ class Service { exports.Service = Service; //// [component.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; Object.defineProperty(exports, "__esModule", { value: true }); -@decorator -class MyComponent { +let MyComponent = class MyComponent { Service; constructor(Service) { this.Service = Service; } - @decorator method(x) { } -} +}; +__decorate([ + decorator, + __metadata("design:type", Function), + __metadata("design:paramtypes", [Object]), + __metadata("design:returntype", void 0) +], MyComponent.prototype, "method", null); +MyComponent = __decorate([ + decorator, + __metadata("design:paramtypes", [Function]) +], MyComponent); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorMetadataWithTypeOnlyImport.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorMetadataWithTypeOnlyImport.js.diff index 93ca74742..c056a1a0b 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorMetadataWithTypeOnlyImport.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratorMetadataWithTypeOnlyImport.js.diff @@ -1,38 +1,10 @@ --- old.decoratorMetadataWithTypeOnlyImport.js +++ new.decoratorMetadataWithTypeOnlyImport.js -@@= skipped -26, +26 lines =@@ - exports.Service = Service; - //// [component.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; +@@= skipped -37, +37 lines =@@ + }; Object.defineProperty(exports, "__esModule", { value: true }); --let MyComponent = class MyComponent { -+@decorator -+class MyComponent { + let MyComponent = class MyComponent { + Service; constructor(Service) { this.Service = Service; - } -+ @decorator - method(x) { - } --}; --__decorate([ -- decorator, -- __metadata("design:type", Function), -- __metadata("design:paramtypes", [Object]), -- __metadata("design:returntype", void 0) --], MyComponent.prototype, "method", null); --MyComponent = __decorate([ -- decorator, -- __metadata("design:paramtypes", [Function]) --], MyComponent); -+} \ No newline at end of file + } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorMetadataWithTypeOnlyImport2.js b/testdata/baselines/reference/submodule/conformance/decoratorMetadataWithTypeOnlyImport2.js index 59cbe004a..ccb11a1cc 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorMetadataWithTypeOnlyImport2.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorMetadataWithTypeOnlyImport2.js @@ -27,10 +27,22 @@ var Services; })(Services || (exports.Services = Services = {})); //// [index.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.Main = void 0; class Main { - @decorator() field; } exports.Main = Main; +__decorate([ + decorator(), + __metadata("design:type", Function) +], Main.prototype, "field", void 0); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorMetadataWithTypeOnlyImport2.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorMetadataWithTypeOnlyImport2.js.diff index e74b30c11..05f87f76f 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorMetadataWithTypeOnlyImport2.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratorMetadataWithTypeOnlyImport2.js.diff @@ -1,26 +1,10 @@ --- old.decoratorMetadataWithTypeOnlyImport2.js +++ new.decoratorMetadataWithTypeOnlyImport2.js -@@= skipped -26, +26 lines =@@ - })(Services || (exports.Services = Services = {})); - //// [index.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; +@@= skipped -38, +38 lines =@@ Object.defineProperty(exports, "__esModule", { value: true }); exports.Main = void 0; class Main { -+ @decorator() + field; } exports.Main = Main; --__decorate([ -- decorator(), -- __metadata("design:type", Function) --], Main.prototype, "field", void 0); \ No newline at end of file + __decorate([ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass1.es6.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClass1.es6.js index 7061be18f..22c8b2083 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass1.es6.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClass1.es6.js @@ -10,7 +10,15 @@ class C { let c = new C(); //// [decoratorOnClass1.es6.js] -@dec -class C { -} +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let C = class C { +}; +C = __decorate([ + dec +], C); let c = new C(); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass1.es6.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClass1.es6.js.diff deleted file mode 100644 index 45d1676b3..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass1.es6.js.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- old.decoratorOnClass1.es6.js -+++ new.decoratorOnClass1.es6.js -@@= skipped -9, +9 lines =@@ - let c = new C(); - - //// [decoratorOnClass1.es6.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --let C = class C { --}; --C = __decorate([ -- dec --], C); -+@dec -+class C { -+} - let c = new C(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass1.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClass1.js index ee4e6def7..29cb48bba 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass1.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClass1.js @@ -8,6 +8,14 @@ class C { } //// [decoratorOnClass1.js] -@dec -class C { -} +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let C = class C { +}; +C = __decorate([ + dec +], C); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass1.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClass1.js.diff deleted file mode 100644 index 4f1fae8db..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass1.js.diff +++ /dev/null @@ -1,20 +0,0 @@ ---- old.decoratorOnClass1.js -+++ new.decoratorOnClass1.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClass1.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --let C = class C { --}; --C = __decorate([ -- dec --], C); -+@dec -+class C { -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass2.es6.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClass2.es6.js index 374ab36bf..608d98270 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass2.es6.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClass2.es6.js @@ -10,7 +10,16 @@ export class C { let c = new C(); //// [decoratorOnClass2.es6.js] -@dec -export class C { -} +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let C = class C { +}; +C = __decorate([ + dec +], C); +export { C }; let c = new C(); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass2.es6.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClass2.es6.js.diff deleted file mode 100644 index 2a7f50698..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass2.es6.js.diff +++ /dev/null @@ -1,22 +0,0 @@ ---- old.decoratorOnClass2.es6.js -+++ new.decoratorOnClass2.es6.js -@@= skipped -9, +9 lines =@@ - let c = new C(); - - //// [decoratorOnClass2.es6.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --let C = class C { --}; --C = __decorate([ -- dec --], C); --export { C }; -+@dec -+export class C { -+} - let c = new C(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass2.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClass2.js index f46d62b81..172324643 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass2.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClass2.js @@ -9,9 +9,17 @@ export class C { //// [decoratorOnClass2.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.C = void 0; -@dec -class C { -} +let C = class C { +}; exports.C = C; +exports.C = C = __decorate([ + dec +], C); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass2.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClass2.js.diff deleted file mode 100644 index 8d0066242..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass2.js.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- old.decoratorOnClass2.js -+++ new.decoratorOnClass2.js -@@= skipped -8, +8 lines =@@ - - //// [decoratorOnClass2.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.C = void 0; --let C = class C { --}; -+@dec -+class C { -+} - exports.C = C; --exports.C = C = __decorate([ -- dec --], C); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass3.es6.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClass3.es6.js index dcb346046..a00905806 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass3.es6.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClass3.es6.js @@ -10,7 +10,16 @@ export default class C { let c = new C(); //// [decoratorOnClass3.es6.js] -@dec -export default class C { -} +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let C = class C { +}; +C = __decorate([ + dec +], C); +export default C; let c = new C(); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass3.es6.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClass3.es6.js.diff deleted file mode 100644 index 780550550..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass3.es6.js.diff +++ /dev/null @@ -1,22 +0,0 @@ ---- old.decoratorOnClass3.es6.js -+++ new.decoratorOnClass3.es6.js -@@= skipped -9, +9 lines =@@ - let c = new C(); - - //// [decoratorOnClass3.es6.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --let C = class C { --}; --C = __decorate([ -- dec --], C); --export default C; -+@dec -+export default class C { -+} - let c = new C(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass3.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClass3.js index 322089025..2d9eaa878 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass3.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClass3.js @@ -10,9 +10,17 @@ class C { //// [decoratorOnClass3.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.C = void 0; -@dec -class C { -} +let C = class C { +}; exports.C = C; +exports.C = C = __decorate([ + dec +], C); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass3.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClass3.js.diff deleted file mode 100644 index b42f0fbb5..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass3.js.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- old.decoratorOnClass3.js -+++ new.decoratorOnClass3.js -@@= skipped -9, +9 lines =@@ - - //// [decoratorOnClass3.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.C = void 0; --let C = class C { --}; -+@dec -+class C { -+} - exports.C = C; --exports.C = C = __decorate([ -- dec --], C); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass4.es6.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClass4.es6.js index 5c11ae832..50674e8e0 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass4.es6.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClass4.es6.js @@ -8,6 +8,15 @@ export default class { } //// [decoratorOnClass4.es6.js] -@dec -export default class { -} +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let default_1 = class { +}; +default_1 = __decorate([ + dec +], default_1); +export default default_1; diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass4.es6.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClass4.es6.js.diff deleted file mode 100644 index 90d6413aa..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass4.es6.js.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- old.decoratorOnClass4.es6.js -+++ new.decoratorOnClass4.es6.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClass4.es6.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --let default_1 = class { --}; --default_1 = __decorate([ -- dec --], default_1); --export default default_1; -+@dec -+export default class { -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass4.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClass4.js index 198791dde..7c2fc8f2a 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass4.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClass4.js @@ -8,6 +8,14 @@ class C { } //// [decoratorOnClass4.js] -@dec() -class C { -} +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let C = class C { +}; +C = __decorate([ + dec() +], C); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass4.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClass4.js.diff deleted file mode 100644 index 732004443..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass4.js.diff +++ /dev/null @@ -1,20 +0,0 @@ ---- old.decoratorOnClass4.js -+++ new.decoratorOnClass4.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClass4.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --let C = class C { --}; --C = __decorate([ -- dec() --], C); -+@dec() -+class C { -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass5.es6.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClass5.es6.js index 1f6e3463f..00d87c7dc 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass5.es6.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClass5.es6.js @@ -12,9 +12,18 @@ class C { let c = new C(); //// [decoratorOnClass5.es6.js] -@dec -class C { - static x() { return C.y; } +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var C_1; +let C = C_1 = class C { + static x() { return C_1.y; } static y = 1; -} +}; +C = C_1 = __decorate([ + dec +], C); let c = new C(); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass5.es6.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClass5.es6.js.diff index c9763d756..2aa069991 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass5.es6.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClass5.es6.js.diff @@ -1,26 +1,12 @@ --- old.decoratorOnClass5.es6.js +++ new.decoratorOnClass5.es6.js -@@= skipped -11, +11 lines =@@ - let c = new C(); - - //// [decoratorOnClass5.es6.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var C_1; --let C = C_1 = class C { -- static x() { return C_1.y; } --}; --C.y = 1; --C = C_1 = __decorate([ -- dec --], C); -+@dec -+class C { -+ static x() { return C.y; } +@@= skipped -20, +20 lines =@@ + var C_1; + let C = C_1 = class C { + static x() { return C_1.y; } + static y = 1; -+} - let c = new C(); \ No newline at end of file + }; +-C.y = 1; + C = C_1 = __decorate([ + dec + ], C); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass5.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClass5.js index ab913de3b..88650cf4e 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass5.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClass5.js @@ -8,6 +8,14 @@ class C { } //// [decoratorOnClass5.js] -@dec() -class C { -} +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let C = class C { +}; +C = __decorate([ + dec() +], C); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass5.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClass5.js.diff deleted file mode 100644 index a3f13b1e8..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass5.js.diff +++ /dev/null @@ -1,20 +0,0 @@ ---- old.decoratorOnClass5.js -+++ new.decoratorOnClass5.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClass5.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --let C = class C { --}; --C = __decorate([ -- dec() --], C); -+@dec() -+class C { -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass6.es6.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClass6.es6.js index e652b3d1b..59cac6c0e 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass6.es6.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClass6.es6.js @@ -12,9 +12,19 @@ export class C { let c = new C(); //// [decoratorOnClass6.es6.js] -@dec -export class C { - static x() { return C.y; } +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var C_1; +let C = C_1 = class C { + static x() { return C_1.y; } static y = 1; -} +}; +C = C_1 = __decorate([ + dec +], C); +export { C }; let c = new C(); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass6.es6.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClass6.es6.js.diff index de7dc9b1e..112780128 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass6.es6.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClass6.es6.js.diff @@ -1,27 +1,12 @@ --- old.decoratorOnClass6.es6.js +++ new.decoratorOnClass6.es6.js -@@= skipped -11, +11 lines =@@ - let c = new C(); - - //// [decoratorOnClass6.es6.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var C_1; --let C = C_1 = class C { -- static x() { return C_1.y; } --}; --C.y = 1; --C = C_1 = __decorate([ -- dec --], C); --export { C }; -+@dec -+export class C { -+ static x() { return C.y; } +@@= skipped -20, +20 lines =@@ + var C_1; + let C = C_1 = class C { + static x() { return C_1.y; } + static y = 1; -+} - let c = new C(); \ No newline at end of file + }; +-C.y = 1; + C = C_1 = __decorate([ + dec + ], C); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass7.es6.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClass7.es6.js index a6e9f6be7..878797c6d 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass7.es6.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClass7.es6.js @@ -12,9 +12,19 @@ export default class C { let c = new C(); //// [decoratorOnClass7.es6.js] -@dec -export default class C { - static x() { return C.y; } +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var C_1; +let C = C_1 = class C { + static x() { return C_1.y; } static y = 1; -} +}; +C = C_1 = __decorate([ + dec +], C); +export default C; let c = new C(); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass7.es6.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClass7.es6.js.diff index 6d82e0b82..e797940a5 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass7.es6.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClass7.es6.js.diff @@ -1,27 +1,12 @@ --- old.decoratorOnClass7.es6.js +++ new.decoratorOnClass7.es6.js -@@= skipped -11, +11 lines =@@ - let c = new C(); - - //// [decoratorOnClass7.es6.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var C_1; --let C = C_1 = class C { -- static x() { return C_1.y; } --}; --C.y = 1; --C = C_1 = __decorate([ -- dec --], C); --export default C; -+@dec -+export default class C { -+ static x() { return C.y; } +@@= skipped -20, +20 lines =@@ + var C_1; + let C = C_1 = class C { + static x() { return C_1.y; } + static y = 1; -+} - let c = new C(); \ No newline at end of file + }; +-C.y = 1; + C = C_1 = __decorate([ + dec + ], C); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass8.es6.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClass8.es6.js index 77442f776..7065acfd0 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass8.es6.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClass8.es6.js @@ -9,7 +9,16 @@ export default class { } //// [decoratorOnClass8.es6.js] -@dec -export default class { +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let default_1 = class { static y = 1; -} +}; +default_1 = __decorate([ + dec +], default_1); +export default default_1; diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass8.es6.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClass8.es6.js.diff index 43a85b683..eb15f63d6 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass8.es6.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClass8.es6.js.diff @@ -1,15 +1,9 @@ --- old.decoratorOnClass8.es6.js +++ new.decoratorOnClass8.es6.js -@@= skipped -8, +8 lines =@@ - } - - //// [decoratorOnClass8.es6.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; +@@= skipped -14, +14 lines =@@ + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; -var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) { - if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; - return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); @@ -19,11 +13,9 @@ -}; -__setFunctionName(_a, "default"); -default_1.y = 1; --default_1 = __decorate([ -- dec --], default_1); --export default default_1; -+@dec -+export default class { ++let default_1 = class { + static y = 1; -+} \ No newline at end of file ++}; + default_1 = __decorate([ + dec + ], default_1); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass8.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClass8.js index d87058925..396ce1451 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass8.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClass8.js @@ -8,6 +8,14 @@ class C { } //// [decoratorOnClass8.js] -@dec() -class C { -} +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let C = class C { +}; +C = __decorate([ + dec() +], C); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass8.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClass8.js.diff deleted file mode 100644 index a2ed7b28c..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass8.js.diff +++ /dev/null @@ -1,20 +0,0 @@ ---- old.decoratorOnClass8.js -+++ new.decoratorOnClass8.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClass8.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --let C = class C { --}; --C = __decorate([ -- dec() --], C); -+@dec() -+class C { -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass9.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClass9.js index 2718a5bd4..3bb531038 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass9.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClass9.js @@ -16,14 +16,23 @@ class B extends A { } //// [decoratorOnClass9.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var B_1; class A { } // https://github.com/Microsoft/TypeScript/issues/16417 -@dec -class B extends A { +let B = B_1 = class B extends A { static x = 1; - static y = B.x; + static y = B_1.x; m() { - return B.x; + return B_1.x; } -} +}; +B = B_1 = __decorate([ + dec +], B); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass9.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClass9.js.diff index 7e9aeb9df..139f81dd4 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass9.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClass9.js.diff @@ -1,32 +1,17 @@ --- old.decoratorOnClass9.js +++ new.decoratorOnClass9.js -@@= skipped -15, +15 lines =@@ - } - - //// [decoratorOnClass9.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var B_1; - class A { +@@= skipped -26, +26 lines =@@ } // https://github.com/Microsoft/TypeScript/issues/16417 --let B = B_1 = class B extends A { -+@dec -+class B extends A { + let B = B_1 = class B extends A { + static x = 1; -+ static y = B.x; ++ static y = B_1.x; m() { -- return B_1.x; -+ return B.x; + return B_1.x; } --}; + }; -B.x = 1; -B.y = B_1.x; --B = B_1 = __decorate([ -- dec --], B); -+} \ No newline at end of file + B = B_1 = __decorate([ + dec + ], B); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor1.es6.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor1.es6.js index 32bcd53b8..f7c55ea78 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor1.es6.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor1.es6.js @@ -8,7 +8,15 @@ export default class { } //// [decoratorOnClassAccessor1.es6.js] -export default class { - @dec +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +export default class default_1 { get accessor() { return 1; } } +__decorate([ + dec +], default_1.prototype, "accessor", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor1.es6.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor1.es6.js.diff deleted file mode 100644 index 3ab2bf514..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor1.es6.js.diff +++ /dev/null @@ -1,20 +0,0 @@ ---- old.decoratorOnClassAccessor1.es6.js -+++ new.decoratorOnClassAccessor1.es6.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassAccessor1.es6.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --export default class default_1 { -+export default class { -+ @dec - get accessor() { return 1; } - } --__decorate([ -- dec --], default_1.prototype, "accessor", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor1.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor1.js index 255aadd02..77eb77eb4 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor1.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor1.js @@ -8,7 +8,15 @@ class C { } //// [decoratorOnClassAccessor1.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class C { - @dec get accessor() { return 1; } } +__decorate([ + dec +], C.prototype, "accessor", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor1.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor1.js.diff deleted file mode 100644 index 9e0d1d9ed..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor1.js.diff +++ /dev/null @@ -1,19 +0,0 @@ ---- old.decoratorOnClassAccessor1.js -+++ new.decoratorOnClassAccessor1.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassAccessor1.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - class C { -+ @dec - get accessor() { return 1; } - } --__decorate([ -- dec --], C.prototype, "accessor", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor2.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor2.js index 6464353dc..53bd52766 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor2.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor2.js @@ -8,7 +8,15 @@ class C { } //// [decoratorOnClassAccessor2.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class C { - @dec get accessor() { return 1; } } +__decorate([ + dec +], C.prototype, "accessor", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor2.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor2.js.diff deleted file mode 100644 index 046c57b72..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor2.js.diff +++ /dev/null @@ -1,19 +0,0 @@ ---- old.decoratorOnClassAccessor2.js -+++ new.decoratorOnClassAccessor2.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassAccessor2.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - class C { -+ @dec - get accessor() { return 1; } - } --__decorate([ -- dec --], C.prototype, "accessor", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor3.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor3.js index 23c913d44..571041a9c 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor3.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor3.js @@ -8,8 +8,16 @@ class C { } //// [decoratorOnClassAccessor3.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class C { public; - @dec get accessor() { return 1; } } +__decorate([ + dec +], C.prototype, "accessor", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor3.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor3.js.diff index c26841273..5df4547be 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor3.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor3.js.diff @@ -1,20 +1,10 @@ --- old.decoratorOnClassAccessor3.js +++ new.decoratorOnClassAccessor3.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassAccessor3.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; +@@= skipped -14, +14 lines =@@ + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; class C { + public; -+ @dec get accessor() { return 1; } } --__decorate([ -- dec --], C.prototype, "accessor", null); \ No newline at end of file + __decorate([ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor4.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor4.js index 423e1d347..7e6ba343c 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor4.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor4.js @@ -8,7 +8,15 @@ class C { } //// [decoratorOnClassAccessor4.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class C { - @dec set accessor(value) { } } +__decorate([ + dec +], C.prototype, "accessor", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor4.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor4.js.diff deleted file mode 100644 index 82d844f7d..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor4.js.diff +++ /dev/null @@ -1,19 +0,0 @@ ---- old.decoratorOnClassAccessor4.js -+++ new.decoratorOnClassAccessor4.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassAccessor4.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - class C { -+ @dec - set accessor(value) { } - } --__decorate([ -- dec --], C.prototype, "accessor", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor5.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor5.js index 76fac5402..4fe1649d5 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor5.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor5.js @@ -8,7 +8,15 @@ class C { } //// [decoratorOnClassAccessor5.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class C { - @dec set accessor(value) { } } +__decorate([ + dec +], C.prototype, "accessor", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor5.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor5.js.diff deleted file mode 100644 index 776479619..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor5.js.diff +++ /dev/null @@ -1,19 +0,0 @@ ---- old.decoratorOnClassAccessor5.js -+++ new.decoratorOnClassAccessor5.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassAccessor5.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - class C { -+ @dec - set accessor(value) { } - } --__decorate([ -- dec --], C.prototype, "accessor", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor6.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor6.js index f749956ef..d39035522 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor6.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor6.js @@ -8,8 +8,16 @@ class C { } //// [decoratorOnClassAccessor6.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class C { public; - @dec set accessor(value) { } } +__decorate([ + dec +], C.prototype, "accessor", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor6.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor6.js.diff index 23fe11fc7..8fd057a17 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor6.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor6.js.diff @@ -1,20 +1,10 @@ --- old.decoratorOnClassAccessor6.js +++ new.decoratorOnClassAccessor6.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassAccessor6.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; +@@= skipped -14, +14 lines =@@ + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; class C { + public; -+ @dec set accessor(value) { } } --__decorate([ -- dec --], C.prototype, "accessor", null); \ No newline at end of file + __decorate([ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor7.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor7.js index ef93f16f7..079c3c96e 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor7.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor7.js @@ -35,35 +35,51 @@ class F { } //// [decoratorOnClassAccessor7.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class A { - @dec1 get x() { return 0; } set x(value) { } } +__decorate([ + dec1 +], A.prototype, "x", null); class B { get x() { return 0; } - @dec2 set x(value) { } } +__decorate([ + dec2 +], B.prototype, "x", null); class C { - @dec1 set x(value) { } get x() { return 0; } } +__decorate([ + dec1 +], C.prototype, "x", null); class D { set x(value) { } - @dec2 get x() { return 0; } } +__decorate([ + dec2 +], D.prototype, "x", null); class E { - @dec1 get x() { return 0; } - @dec2 set x(value) { } } +__decorate([ + dec1 +], E.prototype, "x", null); class F { - @dec1 set x(value) { } - @dec2 get x() { return 0; } } +__decorate([ + dec1 +], F.prototype, "x", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor7.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor7.js.diff deleted file mode 100644 index f0cfcf409..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor7.js.diff +++ /dev/null @@ -1,62 +0,0 @@ ---- old.decoratorOnClassAccessor7.js -+++ new.decoratorOnClassAccessor7.js -@@= skipped -34, +34 lines =@@ - } - - //// [decoratorOnClassAccessor7.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - class A { -+ @dec1 - get x() { return 0; } - set x(value) { } - } --__decorate([ -- dec1 --], A.prototype, "x", null); - class B { - get x() { return 0; } -+ @dec2 - set x(value) { } - } --__decorate([ -- dec2 --], B.prototype, "x", null); - class C { -+ @dec1 - set x(value) { } - get x() { return 0; } - } --__decorate([ -- dec1 --], C.prototype, "x", null); - class D { - set x(value) { } -+ @dec2 - get x() { return 0; } - } --__decorate([ -- dec2 --], D.prototype, "x", null); - class E { -+ @dec1 - get x() { return 0; } -+ @dec2 - set x(value) { } - } --__decorate([ -- dec1 --], E.prototype, "x", null); - class F { -+ @dec1 - set x(value) { } -+ @dec2 - get x() { return 0; } - } --__decorate([ -- dec1 --], F.prototype, "x", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor8.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor8.js index 77e7e1974..6ca4a9e28 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor8.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor8.js @@ -32,31 +32,64 @@ class F { } //// [decoratorOnClassAccessor8.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; class A { - @dec get x() { return 0; } set x(value) { } } +__decorate([ + dec, + __metadata("design:type", Number), + __metadata("design:paramtypes", [Number]) +], A.prototype, "x", null); class B { get x() { return 0; } - @dec set x(value) { } } +__decorate([ + dec, + __metadata("design:type", Number), + __metadata("design:paramtypes", [Number]) +], B.prototype, "x", null); class C { - @dec set x(value) { } get x() { return 0; } } +__decorate([ + dec, + __metadata("design:type", Number), + __metadata("design:paramtypes", [Number]) +], C.prototype, "x", null); class D { set x(value) { } - @dec get x() { return 0; } } +__decorate([ + dec, + __metadata("design:type", Number), + __metadata("design:paramtypes", [Number]) +], D.prototype, "x", null); class E { - @dec get x() { return 0; } } +__decorate([ + dec, + __metadata("design:type", Object), + __metadata("design:paramtypes", []) +], E.prototype, "x", null); class F { - @dec set x(value) { } } +__decorate([ + dec, + __metadata("design:type", Number), + __metadata("design:paramtypes", [Number]) +], F.prototype, "x", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor8.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor8.js.diff deleted file mode 100644 index 71968ac8f..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor8.js.diff +++ /dev/null @@ -1,73 +0,0 @@ ---- old.decoratorOnClassAccessor8.js -+++ new.decoratorOnClassAccessor8.js -@@= skipped -31, +31 lines =@@ - } - - //// [decoratorOnClassAccessor8.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; - class A { -+ @dec - get x() { return 0; } - set x(value) { } - } --__decorate([ -- dec, -- __metadata("design:type", Number), -- __metadata("design:paramtypes", [Number]) --], A.prototype, "x", null); - class B { - get x() { return 0; } -+ @dec - set x(value) { } - } --__decorate([ -- dec, -- __metadata("design:type", Number), -- __metadata("design:paramtypes", [Number]) --], B.prototype, "x", null); - class C { -+ @dec - set x(value) { } - get x() { return 0; } - } --__decorate([ -- dec, -- __metadata("design:type", Number), -- __metadata("design:paramtypes", [Number]) --], C.prototype, "x", null); - class D { - set x(value) { } -+ @dec - get x() { return 0; } - } --__decorate([ -- dec, -- __metadata("design:type", Number), -- __metadata("design:paramtypes", [Number]) --], D.prototype, "x", null); - class E { -+ @dec - get x() { return 0; } - } --__decorate([ -- dec, -- __metadata("design:type", Object), -- __metadata("design:paramtypes", []) --], E.prototype, "x", null); - class F { -+ @dec - set x(value) { } - } --__decorate([ -- dec, -- __metadata("design:type", Number), -- __metadata("design:paramtypes", [Number]) --], F.prototype, "x", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor2.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor2.js index 1f43ca369..e147604ad 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor2.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor2.js @@ -24,13 +24,25 @@ exports.base = base; function foo(target, propertyKey, parameterIndex) { } //// [2.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.C = void 0; const _0_ts_1 = require("./0.ts"); const _0_ts_2 = require("./0.ts"); -class C extends _0_ts_1.base { +let C = class C extends _0_ts_1.base { constructor(prop) { super(); } -} +}; exports.C = C; +exports.C = C = __decorate([ + __param(0, _0_ts_2.foo) +], C); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor2.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor2.js.diff deleted file mode 100644 index 7ef0e732d..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor2.js.diff +++ /dev/null @@ -1,30 +0,0 @@ ---- old.decoratorOnClassConstructor2.js -+++ new.decoratorOnClassConstructor2.js -@@= skipped -23, +23 lines =@@ - function foo(target, propertyKey, parameterIndex) { } - //// [2.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __param = (this && this.__param) || function (paramIndex, decorator) { -- return function (target, key) { decorator(target, key, paramIndex); } --}; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.C = void 0; - const _0_ts_1 = require("./0.ts"); - const _0_ts_2 = require("./0.ts"); --let C = class C extends _0_ts_1.base { -+class C extends _0_ts_1.base { - constructor(prop) { - super(); - } --}; -+} - exports.C = C; --exports.C = C = __decorate([ -- __param(0, _0_ts_2.foo) --], C); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor3.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor3.js index 8f3a16edd..4007ee3f9 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor3.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor3.js @@ -26,14 +26,26 @@ exports.base = base; function foo(target, propertyKey, parameterIndex) { } //// [2.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; Object.defineProperty(exports, "__esModule", { value: true }); exports.C = void 0; const _0_1 = require("./0"); const _0_2 = require("./0"); /* Comment on the Class Declaration */ -class C extends _0_1.base { +let C = class C extends _0_1.base { constructor(prop) { super(); } -} +}; exports.C = C; +exports.C = C = __decorate([ + __param(0, _0_2.foo) +], C); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor3.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor3.js.diff deleted file mode 100644 index 1c016adbb..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor3.js.diff +++ /dev/null @@ -1,31 +0,0 @@ ---- old.decoratorOnClassConstructor3.js -+++ new.decoratorOnClassConstructor3.js -@@= skipped -25, +25 lines =@@ - function foo(target, propertyKey, parameterIndex) { } - //// [2.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __param = (this && this.__param) || function (paramIndex, decorator) { -- return function (target, key) { decorator(target, key, paramIndex); } --}; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.C = void 0; - const _0_1 = require("./0"); - const _0_2 = require("./0"); - /* Comment on the Class Declaration */ --let C = class C extends _0_1.base { -+class C extends _0_1.base { - constructor(prop) { - super(); - } --}; -+} - exports.C = C; --exports.C = C = __decorate([ -- __param(0, _0_2.foo) --], C); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor4.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor4.js index 811c2b249..a47b9b0cf 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor4.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor4.js @@ -17,13 +17,29 @@ class C extends A { } //// [decoratorOnClassConstructor4.js] -@dec -class A { -} -@dec -class B { +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +let A = class A { +}; +A = __decorate([ + dec +], A); +let B = class B { constructor(x) { } -} -@dec -class C extends A { -} +}; +B = __decorate([ + dec, + __metadata("design:paramtypes", [Number]) +], B); +let C = class C extends A { +}; +C = __decorate([ + dec +], C); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor4.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor4.js.diff deleted file mode 100644 index 0eacc39df..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor4.js.diff +++ /dev/null @@ -1,41 +0,0 @@ ---- old.decoratorOnClassConstructor4.js -+++ new.decoratorOnClassConstructor4.js -@@= skipped -16, +16 lines =@@ - } - - //// [decoratorOnClassConstructor4.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; --let A = class A { --}; --A = __decorate([ -- dec --], A); --let B = class B { -+@dec -+class A { -+} -+@dec -+class B { - constructor(x) { } --}; --B = __decorate([ -- dec, -- __metadata("design:paramtypes", [Number]) --], B); --let C = class C extends A { --}; --C = __decorate([ -- dec --], C); -+} -+@dec -+class C extends A { -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructorParameter1.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructorParameter1.js index 647285ed6..8da70f859 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructorParameter1.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructorParameter1.js @@ -8,6 +8,18 @@ class C { } //// [decoratorOnClassConstructorParameter1.js] -class C { +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; +let C = class C { constructor(p) { } -} +}; +C = __decorate([ + __param(0, dec) +], C); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructorParameter1.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructorParameter1.js.diff deleted file mode 100644 index afcd3a66b..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructorParameter1.js.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- old.decoratorOnClassConstructorParameter1.js -+++ new.decoratorOnClassConstructorParameter1.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassConstructorParameter1.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __param = (this && this.__param) || function (paramIndex, decorator) { -- return function (target, key) { decorator(target, key, paramIndex); } --}; --let C = class C { -+class C { - constructor(p) { } --}; --C = __decorate([ -- __param(0, dec) --], C); -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructorParameter4.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructorParameter4.js index 7be06411b..d91c86a33 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructorParameter4.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructorParameter4.js @@ -8,6 +8,18 @@ class C { } //// [decoratorOnClassConstructorParameter4.js] -class C { +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; +let C = class C { constructor(public, p) { } -} +}; +C = __decorate([ + __param(1, dec) +], C); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructorParameter4.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructorParameter4.js.diff deleted file mode 100644 index 88a98dece..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructorParameter4.js.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- old.decoratorOnClassConstructorParameter4.js -+++ new.decoratorOnClassConstructorParameter4.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassConstructorParameter4.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __param = (this && this.__param) || function (paramIndex, decorator) { -- return function (target, key) { decorator(target, key, paramIndex); } --}; --let C = class C { -+class C { - constructor(public, p) { } --}; --C = __decorate([ -- __param(1, dec) --], C); -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructorParameter5.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructorParameter5.js index d5cba37e7..942f7d9f4 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructorParameter5.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructorParameter5.js @@ -13,11 +13,14 @@ class BulkEditPreviewProvider { } //// [decoratorOnClassConstructorParameter5.js] -class BulkEditPreviewProvider { +let BulkEditPreviewProvider = class BulkEditPreviewProvider { _modeService; static Schema = 'vscode-bulkeditpreview'; static emptyPreview = { scheme: BulkEditPreviewProvider.Schema }; constructor(_modeService) { this._modeService = _modeService; } -} +}; +BulkEditPreviewProvider = __decorate([ + __param(0, IFoo) +], BulkEditPreviewProvider); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructorParameter5.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructorParameter5.js.diff index 41853b476..e0ac8c170 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructorParameter5.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructorParameter5.js.diff @@ -6,17 +6,17 @@ //// [decoratorOnClassConstructorParameter5.js] -var BulkEditPreviewProvider_1; -let BulkEditPreviewProvider = BulkEditPreviewProvider_1 = class BulkEditPreviewProvider { -+class BulkEditPreviewProvider { ++let BulkEditPreviewProvider = class BulkEditPreviewProvider { + _modeService; + static Schema = 'vscode-bulkeditpreview'; + static emptyPreview = { scheme: BulkEditPreviewProvider.Schema }; constructor(_modeService) { this._modeService = _modeService; } --}; + }; -BulkEditPreviewProvider.Schema = 'vscode-bulkeditpreview'; -BulkEditPreviewProvider.emptyPreview = { scheme: BulkEditPreviewProvider_1.Schema }; -BulkEditPreviewProvider = BulkEditPreviewProvider_1 = __decorate([ -- __param(0, IFoo) --], BulkEditPreviewProvider); -+} \ No newline at end of file ++BulkEditPreviewProvider = __decorate([ + __param(0, IFoo) + ], BulkEditPreviewProvider); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod1.es6.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod1.es6.js index c3af2fffc..9b7ee48ed 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod1.es6.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod1.es6.js @@ -8,7 +8,15 @@ export default class { } //// [decoratorOnClassMethod1.es6.js] -export default class { - @dec +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +export default class default_1 { method() { } } +__decorate([ + dec +], default_1.prototype, "method", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod1.es6.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod1.es6.js.diff deleted file mode 100644 index 5f10bb597..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod1.es6.js.diff +++ /dev/null @@ -1,20 +0,0 @@ ---- old.decoratorOnClassMethod1.es6.js -+++ new.decoratorOnClassMethod1.es6.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassMethod1.es6.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --export default class default_1 { -+export default class { -+ @dec - method() { } - } --__decorate([ -- dec --], default_1.prototype, "method", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod1.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod1.js index b8b828e61..7d095980e 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod1.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod1.js @@ -8,7 +8,15 @@ class C { } //// [decoratorOnClassMethod1.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class C { - @dec method() { } } +__decorate([ + dec +], C.prototype, "method", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod1.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod1.js.diff deleted file mode 100644 index 08ece11d2..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod1.js.diff +++ /dev/null @@ -1,19 +0,0 @@ ---- old.decoratorOnClassMethod1.js -+++ new.decoratorOnClassMethod1.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassMethod1.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - class C { -+ @dec - method() { } - } --__decorate([ -- dec --], C.prototype, "method", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod10.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod10.js index 1946dd7b8..7cbcb02ae 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod10.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod10.js @@ -8,7 +8,15 @@ class C { } //// [decoratorOnClassMethod10.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class C { - @dec method() { } } +__decorate([ + dec +], C.prototype, "method", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod10.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod10.js.diff deleted file mode 100644 index 04a8e3112..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod10.js.diff +++ /dev/null @@ -1,19 +0,0 @@ ---- old.decoratorOnClassMethod10.js -+++ new.decoratorOnClassMethod10.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassMethod10.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - class C { -+ @dec - method() { } - } --__decorate([ -- dec --], C.prototype, "method", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod11.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod11.js index 2467816b4..ebab6e2e9 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod11.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod11.js @@ -11,11 +11,19 @@ module M { } //// [decoratorOnClassMethod11.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; var M; (function (M) { class C { decorator(target, key) { } - @(this.decorator) method() { } } + __decorate([ + (this.decorator) + ], C.prototype, "method", null); })(M || (M = {})); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod11.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod11.js.diff deleted file mode 100644 index 7e3ed70f9..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod11.js.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- old.decoratorOnClassMethod11.js -+++ new.decoratorOnClassMethod11.js -@@= skipped -10, +10 lines =@@ - } - - //// [decoratorOnClassMethod11.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - var M; - (function (M) { - class C { - decorator(target, key) { } -+ @(this.decorator) - method() { } - } -- __decorate([ -- (this.decorator) -- ], C.prototype, "method", null); - })(M || (M = {})); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod12.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod12.js index 907ea545c..2a85787b4 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod12.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod12.js @@ -12,13 +12,21 @@ module M { } //// [decoratorOnClassMethod12.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; var M; (function (M) { class S { decorator(target, key) { } } class C extends S { - @(super.decorator) method() { } } + __decorate([ + (super.decorator) + ], C.prototype, "method", null); })(M || (M = {})); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod12.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod12.js.diff deleted file mode 100644 index 51aa8f8d9..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod12.js.diff +++ /dev/null @@ -1,25 +0,0 @@ ---- old.decoratorOnClassMethod12.js -+++ new.decoratorOnClassMethod12.js -@@= skipped -11, +11 lines =@@ - } - - //// [decoratorOnClassMethod12.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - var M; - (function (M) { - class S { - decorator(target, key) { } - } - class C extends S { -+ @(super.decorator) - method() { } - } -- __decorate([ -- (super.decorator) -- ], C.prototype, "method", null); - })(M || (M = {})); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod13.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod13.js index a6a189e92..41a434374 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod13.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod13.js @@ -9,9 +9,19 @@ class C { } //// [decoratorOnClassMethod13.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class C { - @dec ["1"]() { } - @dec ["b"]() { } } +__decorate([ + dec +], C.prototype, "1", null); +__decorate([ + dec +], C.prototype, "b", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod13.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod13.js.diff deleted file mode 100644 index 0f04508e1..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod13.js.diff +++ /dev/null @@ -1,24 +0,0 @@ ---- old.decoratorOnClassMethod13.js -+++ new.decoratorOnClassMethod13.js -@@= skipped -8, +8 lines =@@ - } - - //// [decoratorOnClassMethod13.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - class C { -+ @dec - ["1"]() { } -+ @dec - ["b"]() { } - } --__decorate([ -- dec --], C.prototype, "1", null); --__decorate([ -- dec --], C.prototype, "b", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod14.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod14.js index f0e3b4c40..6f0a8fa90 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod14.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod14.js @@ -15,12 +15,26 @@ class Foo { //// [decoratorOnClassMethod14.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; class Foo { prop = () => { return 0; }; - @decorator foo() { return 0; } } +__decorate([ + decorator, + __metadata("design:type", Function), + __metadata("design:paramtypes", []), + __metadata("design:returntype", void 0) +], Foo.prototype, "foo", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod14.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod14.js.diff deleted file mode 100644 index 085e2201c..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod14.js.diff +++ /dev/null @@ -1,30 +0,0 @@ ---- old.decoratorOnClassMethod14.js -+++ new.decoratorOnClassMethod14.js -@@= skipped -14, +14 lines =@@ - - - //// [decoratorOnClassMethod14.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; - class Foo { - prop = () => { - return 0; - }; -+ @decorator - foo() { - return 0; - } - } --__decorate([ -- decorator, -- __metadata("design:type", Function), -- __metadata("design:paramtypes", []), -- __metadata("design:returntype", void 0) --], Foo.prototype, "foo", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod15.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod15.js index 4a88f5aa9..4a4df4eb8 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod15.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod15.js @@ -13,10 +13,24 @@ class Foo { //// [decoratorOnClassMethod15.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; class Foo { prop = 1; - @decorator foo() { return 0; } } +__decorate([ + decorator, + __metadata("design:type", Function), + __metadata("design:paramtypes", []), + __metadata("design:returntype", void 0) +], Foo.prototype, "foo", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod15.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod15.js.diff deleted file mode 100644 index 0b85923cf..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod15.js.diff +++ /dev/null @@ -1,28 +0,0 @@ ---- old.decoratorOnClassMethod15.js -+++ new.decoratorOnClassMethod15.js -@@= skipped -12, +12 lines =@@ - - - //// [decoratorOnClassMethod15.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; - class Foo { - prop = 1; -+ @decorator - foo() { - return 0; - } - } --__decorate([ -- decorator, -- __metadata("design:type", Function), -- __metadata("design:paramtypes", []), -- __metadata("design:returntype", void 0) --], Foo.prototype, "foo", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod16.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod16.js index e8584f450..18281f9c3 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod16.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod16.js @@ -13,10 +13,24 @@ class Foo { //// [decoratorOnClassMethod16.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; class Foo { prop; - @decorator foo() { return 0; } } +__decorate([ + decorator, + __metadata("design:type", Function), + __metadata("design:paramtypes", []), + __metadata("design:returntype", void 0) +], Foo.prototype, "foo", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod16.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod16.js.diff deleted file mode 100644 index ef0112275..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod16.js.diff +++ /dev/null @@ -1,28 +0,0 @@ ---- old.decoratorOnClassMethod16.js -+++ new.decoratorOnClassMethod16.js -@@= skipped -12, +12 lines =@@ - - - //// [decoratorOnClassMethod16.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; - class Foo { - prop; -+ @decorator - foo() { - return 0; - } - } --__decorate([ -- decorator, -- __metadata("design:type", Function), -- __metadata("design:paramtypes", []), -- __metadata("design:returntype", void 0) --], Foo.prototype, "foo", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod17.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod17.js index 345004e60..af2ded642 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod17.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod17.js @@ -12,10 +12,24 @@ class Foo { //// [decoratorOnClassMethod17.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; class Foo { prop; - @decorator foo() { return 0; } } +__decorate([ + decorator, + __metadata("design:type", Function), + __metadata("design:paramtypes", []), + __metadata("design:returntype", void 0) +], Foo.prototype, "foo", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod17.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod17.js.diff deleted file mode 100644 index 78cc4c1e0..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod17.js.diff +++ /dev/null @@ -1,28 +0,0 @@ ---- old.decoratorOnClassMethod17.js -+++ new.decoratorOnClassMethod17.js -@@= skipped -11, +11 lines =@@ - - - //// [decoratorOnClassMethod17.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; - class Foo { - prop; -+ @decorator - foo() { - return 0; - } - } --__decorate([ -- decorator, -- __metadata("design:type", Function), -- __metadata("design:paramtypes", []), -- __metadata("design:returntype", void 0) --], Foo.prototype, "foo", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod18.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod18.js index 6175b455a..8e2f974c9 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod18.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod18.js @@ -12,8 +12,20 @@ class Foo { //// [decoratorOnClassMethod18.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; class Foo { p1; - @decorator() p2; } +__decorate([ + decorator(), + __metadata("design:type", Object) +], Foo.prototype, "p2", void 0); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod18.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod18.js.diff deleted file mode 100644 index 57105258c..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod18.js.diff +++ /dev/null @@ -1,24 +0,0 @@ ---- old.decoratorOnClassMethod18.js -+++ new.decoratorOnClassMethod18.js -@@= skipped -11, +11 lines =@@ - - - //// [decoratorOnClassMethod18.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; - class Foo { - p1; -+ @decorator() - p2; - } --__decorate([ -- decorator(), -- __metadata("design:type", Object) --], Foo.prototype, "p2", void 0); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod19(target=es2015).js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod19(target=es2015).js index 72e2fa663..e74282afb 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod19(target=es2015).js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod19(target=es2015).js @@ -19,12 +19,39 @@ class C2 { //// [decoratorOnClassMethod19.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; class C1 { #x; - @decorator((x) => x.#x) y() { } + static { + __decorate([ + decorator((x) => x.#x), + __metadata("design:type", Function), + __metadata("design:paramtypes", []), + __metadata("design:returntype", void 0) + ], C1.prototype, "y", null); + } } class C2 { #x; y(p) { } + static { + __decorate([ + __param(0, decorator((x) => x.#x)), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Object]), + __metadata("design:returntype", void 0) + ], C2.prototype, "y", null); + } } diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod19(target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod19(target=es2015).js.diff index 98c43eb2f..92b886ff3 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod19(target=es2015).js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod19(target=es2015).js.diff @@ -1,21 +1,9 @@ --- old.decoratorOnClassMethod19(target=es2015).js +++ new.decoratorOnClassMethod19(target=es2015).js -@@= skipped -18, +18 lines =@@ - - - //// [decoratorOnClassMethod19.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; --var __param = (this && this.__param) || function (paramIndex, decorator) { -- return function (target, key) { decorator(target, key, paramIndex); } --}; +@@= skipped -30, +30 lines =@@ + var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } + }; -var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); @@ -27,8 +15,15 @@ - _C1_x.set(this, void 0); - } + #x; -+ @decorator((x) => x.#x) y() { } ++ static { ++ __decorate([ ++ decorator((x) => x.#x), ++ __metadata("design:type", Function), ++ __metadata("design:paramtypes", []), ++ __metadata("design:returntype", void 0) ++ ], C1.prototype, "y", null); ++ } } -_C1_x = new WeakMap(); -(() => { @@ -45,6 +40,14 @@ - } + #x; y(p) { } ++ static { ++ __decorate([ ++ __param(0, decorator((x) => x.#x)), ++ __metadata("design:type", Function), ++ __metadata("design:paramtypes", [Object]), ++ __metadata("design:returntype", void 0) ++ ], C2.prototype, "y", null); ++ } } -_C2_x = new WeakMap(); -(() => { diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod19(target=es2022).js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod19(target=es2022).js index 72e2fa663..e74282afb 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod19(target=es2022).js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod19(target=es2022).js @@ -19,12 +19,39 @@ class C2 { //// [decoratorOnClassMethod19.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; class C1 { #x; - @decorator((x) => x.#x) y() { } + static { + __decorate([ + decorator((x) => x.#x), + __metadata("design:type", Function), + __metadata("design:paramtypes", []), + __metadata("design:returntype", void 0) + ], C1.prototype, "y", null); + } } class C2 { #x; y(p) { } + static { + __decorate([ + __param(0, decorator((x) => x.#x)), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Object]), + __metadata("design:returntype", void 0) + ], C2.prototype, "y", null); + } } diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod19(target=es2022).js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod19(target=es2022).js.diff deleted file mode 100644 index 69d51466b..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod19(target=es2022).js.diff +++ /dev/null @@ -1,43 +0,0 @@ ---- old.decoratorOnClassMethod19(target=es2022).js -+++ new.decoratorOnClassMethod19(target=es2022).js -@@= skipped -18, +18 lines =@@ - - - //// [decoratorOnClassMethod19.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; --var __param = (this && this.__param) || function (paramIndex, decorator) { -- return function (target, key) { decorator(target, key, paramIndex); } --}; - class C1 { - #x; -+ @decorator((x) => x.#x) - y() { } -- static { -- __decorate([ -- decorator((x) => x.#x), -- __metadata("design:type", Function), -- __metadata("design:paramtypes", []), -- __metadata("design:returntype", void 0) -- ], C1.prototype, "y", null); -- } - } - class C2 { - #x; - y(p) { } -- static { -- __decorate([ -- __param(0, decorator((x) => x.#x)), -- __metadata("design:type", Function), -- __metadata("design:paramtypes", [Object]), -- __metadata("design:returntype", void 0) -- ], C2.prototype, "y", null); -- } - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod19(target=esnext).js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod19(target=esnext).js index 72e2fa663..e74282afb 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod19(target=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod19(target=esnext).js @@ -19,12 +19,39 @@ class C2 { //// [decoratorOnClassMethod19.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; class C1 { #x; - @decorator((x) => x.#x) y() { } + static { + __decorate([ + decorator((x) => x.#x), + __metadata("design:type", Function), + __metadata("design:paramtypes", []), + __metadata("design:returntype", void 0) + ], C1.prototype, "y", null); + } } class C2 { #x; y(p) { } + static { + __decorate([ + __param(0, decorator((x) => x.#x)), + __metadata("design:type", Function), + __metadata("design:paramtypes", [Object]), + __metadata("design:returntype", void 0) + ], C2.prototype, "y", null); + } } diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod19(target=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod19(target=esnext).js.diff deleted file mode 100644 index 72bfdf9bc..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod19(target=esnext).js.diff +++ /dev/null @@ -1,43 +0,0 @@ ---- old.decoratorOnClassMethod19(target=esnext).js -+++ new.decoratorOnClassMethod19(target=esnext).js -@@= skipped -18, +18 lines =@@ - - - //// [decoratorOnClassMethod19.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; --var __param = (this && this.__param) || function (paramIndex, decorator) { -- return function (target, key) { decorator(target, key, paramIndex); } --}; - class C1 { - #x; -+ @decorator((x) => x.#x) - y() { } -- static { -- __decorate([ -- decorator((x) => x.#x), -- __metadata("design:type", Function), -- __metadata("design:paramtypes", []), -- __metadata("design:returntype", void 0) -- ], C1.prototype, "y", null); -- } - } - class C2 { - #x; - y(p) { } -- static { -- __decorate([ -- __param(0, decorator((x) => x.#x)), -- __metadata("design:type", Function), -- __metadata("design:paramtypes", [Object]), -- __metadata("design:returntype", void 0) -- ], C2.prototype, "y", null); -- } - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod2.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod2.js index d3c796348..b5e8f8eb9 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod2.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod2.js @@ -8,7 +8,15 @@ class C { } //// [decoratorOnClassMethod2.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class C { - @dec method() { } } +__decorate([ + dec +], C.prototype, "method", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod2.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod2.js.diff deleted file mode 100644 index 31cc2d9a4..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod2.js.diff +++ /dev/null @@ -1,19 +0,0 @@ ---- old.decoratorOnClassMethod2.js -+++ new.decoratorOnClassMethod2.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassMethod2.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - class C { -+ @dec - method() { } - } --__decorate([ -- dec --], C.prototype, "method", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod3.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod3.js index 1e1f60c60..7fa0b7de3 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod3.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod3.js @@ -8,8 +8,16 @@ class C { } //// [decoratorOnClassMethod3.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class C { public; - @dec method() { } } +__decorate([ + dec +], C.prototype, "method", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod3.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod3.js.diff index b15836bff..7546a1f08 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod3.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod3.js.diff @@ -1,20 +1,10 @@ --- old.decoratorOnClassMethod3.js +++ new.decoratorOnClassMethod3.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassMethod3.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; +@@= skipped -14, +14 lines =@@ + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; class C { + public; -+ @dec method() { } } --__decorate([ -- dec --], C.prototype, "method", null); \ No newline at end of file + __decorate([ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod4.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod4.js index 23d546f75..94c2cb480 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod4.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod4.js @@ -8,7 +8,15 @@ class C { } //// [decoratorOnClassMethod4.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class C { - @dec ["method"]() { } } +__decorate([ + dec +], C.prototype, "method", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod4.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod4.js.diff deleted file mode 100644 index 57d5282a4..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod4.js.diff +++ /dev/null @@ -1,19 +0,0 @@ ---- old.decoratorOnClassMethod4.js -+++ new.decoratorOnClassMethod4.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassMethod4.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - class C { -+ @dec - ["method"]() { } - } --__decorate([ -- dec --], C.prototype, "method", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod5.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod5.js index 94e2ced5d..395510348 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod5.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod5.js @@ -8,7 +8,15 @@ class C { } //// [decoratorOnClassMethod5.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class C { - @dec() ["method"]() { } } +__decorate([ + dec() +], C.prototype, "method", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod5.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod5.js.diff deleted file mode 100644 index 1d004748f..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod5.js.diff +++ /dev/null @@ -1,19 +0,0 @@ ---- old.decoratorOnClassMethod5.js -+++ new.decoratorOnClassMethod5.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassMethod5.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - class C { -+ @dec() - ["method"]() { } - } --__decorate([ -- dec() --], C.prototype, "method", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod6.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod6.js index beebd2040..9d2c4948f 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod6.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod6.js @@ -8,7 +8,15 @@ class C { } //// [decoratorOnClassMethod6.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class C { - @dec ["method"]() { } } +__decorate([ + dec +], C.prototype, "method", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod6.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod6.js.diff deleted file mode 100644 index 811a3a5cc..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod6.js.diff +++ /dev/null @@ -1,19 +0,0 @@ ---- old.decoratorOnClassMethod6.js -+++ new.decoratorOnClassMethod6.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassMethod6.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - class C { -+ @dec - ["method"]() { } - } --__decorate([ -- dec --], C.prototype, "method", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod7.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod7.js index 8ea48b37a..0431ec335 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod7.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod7.js @@ -8,7 +8,15 @@ class C { } //// [decoratorOnClassMethod7.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class C { - @dec ["method"]() { } } +__decorate([ + dec +], C.prototype, "method", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod7.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod7.js.diff deleted file mode 100644 index 2c3f95e62..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod7.js.diff +++ /dev/null @@ -1,19 +0,0 @@ ---- old.decoratorOnClassMethod7.js -+++ new.decoratorOnClassMethod7.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassMethod7.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - class C { -+ @dec - ["method"]() { } - } --__decorate([ -- dec --], C.prototype, "method", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod8.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod8.js index 3b674366e..ee0877f07 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod8.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod8.js @@ -8,7 +8,15 @@ class C { } //// [decoratorOnClassMethod8.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class C { - @dec method() { } } +__decorate([ + dec +], C.prototype, "method", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod8.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod8.js.diff deleted file mode 100644 index 88f81bd6f..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod8.js.diff +++ /dev/null @@ -1,19 +0,0 @@ ---- old.decoratorOnClassMethod8.js -+++ new.decoratorOnClassMethod8.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassMethod8.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - class C { -+ @dec - method() { } - } --__decorate([ -- dec --], C.prototype, "method", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodOverload2.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodOverload2.js index 0cab4ea7b..325875d3e 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodOverload2.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodOverload2.js @@ -10,7 +10,15 @@ class C { } //// [decoratorOnClassMethodOverload2.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class C { - @dec method() { } } +__decorate([ + dec +], C.prototype, "method", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodOverload2.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodOverload2.js.diff deleted file mode 100644 index 5ba85df62..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodOverload2.js.diff +++ /dev/null @@ -1,19 +0,0 @@ ---- old.decoratorOnClassMethodOverload2.js -+++ new.decoratorOnClassMethodOverload2.js -@@= skipped -9, +9 lines =@@ - } - - //// [decoratorOnClassMethodOverload2.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - class C { -+ @dec - method() { } - } --__decorate([ -- dec --], C.prototype, "method", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter1.es6.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter1.es6.js index fe2c9263b..4db2a8114 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter1.es6.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter1.es6.js @@ -8,6 +8,18 @@ export default class { } //// [decoratorOnClassMethodParameter1.es6.js] -export default class { +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; +export default class default_1 { method(p) { } } +__decorate([ + __param(0, dec) +], default_1.prototype, "method", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter1.es6.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter1.es6.js.diff deleted file mode 100644 index 95ac91182..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter1.es6.js.diff +++ /dev/null @@ -1,22 +0,0 @@ ---- old.decoratorOnClassMethodParameter1.es6.js -+++ new.decoratorOnClassMethodParameter1.es6.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassMethodParameter1.es6.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __param = (this && this.__param) || function (paramIndex, decorator) { -- return function (target, key) { decorator(target, key, paramIndex); } --}; --export default class default_1 { -+export default class { - method(p) { } - } --__decorate([ -- __param(0, dec) --], default_1.prototype, "method", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter1.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter1.js index 2878fc6f2..67af2e93a 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter1.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter1.js @@ -8,6 +8,18 @@ class C { } //// [decoratorOnClassMethodParameter1.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; class C { method(p) { } } +__decorate([ + __param(0, dec) +], C.prototype, "method", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter1.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter1.js.diff deleted file mode 100644 index 4e2f3f7d6..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter1.js.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- old.decoratorOnClassMethodParameter1.js -+++ new.decoratorOnClassMethodParameter1.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassMethodParameter1.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __param = (this && this.__param) || function (paramIndex, decorator) { -- return function (target, key) { decorator(target, key, paramIndex); } --}; - class C { - method(p) { } - } --__decorate([ -- __param(0, dec) --], C.prototype, "method", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter2.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter2.js index ff1e4329e..dd6ed290e 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter2.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter2.js @@ -8,6 +8,18 @@ class C { } //// [decoratorOnClassMethodParameter2.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; class C { method(p) { } } +__decorate([ + __param(0, dec) +], C.prototype, "method", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter2.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter2.js.diff deleted file mode 100644 index 4c211acff..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter2.js.diff +++ /dev/null @@ -1,21 +0,0 @@ ---- old.decoratorOnClassMethodParameter2.js -+++ new.decoratorOnClassMethodParameter2.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassMethodParameter2.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __param = (this && this.__param) || function (paramIndex, decorator) { -- return function (target, key) { decorator(target, key, paramIndex); } --}; - class C { - method(p) { } - } --__decorate([ -- __param(0, dec) --], C.prototype, "method", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter3.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter3.js index 99dfbc27a..e6a9ff885 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter3.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter3.js @@ -12,9 +12,21 @@ function fn(value: Promise): any { //// [decoratorOnClassMethodParameter3.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; function fn(value) { class Class { async method(arg) { } } + __decorate([ + __param(0, dec(await value)) + ], Class.prototype, "method", null); return Class; } diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter3.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter3.js.diff index 51ed3a233..ce4626ec4 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter3.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter3.js.diff @@ -1,18 +1,9 @@ --- old.decoratorOnClassMethodParameter3.js +++ new.decoratorOnClassMethodParameter3.js -@@= skipped -11, +11 lines =@@ - - - //// [decoratorOnClassMethodParameter3.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __param = (this && this.__param) || function (paramIndex, decorator) { -- return function (target, key) { decorator(target, key, paramIndex); } --}; +@@= skipped -20, +20 lines =@@ + var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } + }; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { @@ -29,8 +20,9 @@ - } + async method(arg) { } } -- __decorate([ + __decorate([ - __param(0, dec(yield value)) -- ], Class.prototype, "method", null); ++ __param(0, dec(await value)) + ], Class.prototype, "method", null); return Class; } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodThisParameter.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodThisParameter.js index e63d8d6eb..3101bf64f 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodThisParameter.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodThisParameter.js @@ -12,9 +12,21 @@ class C2 { } //// [decoratorOnClassMethodThisParameter.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; class C { method() { } } class C2 { method(allowed) { } } +__decorate([ + __param(0, dec) +], C2.prototype, "method", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodThisParameter.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodThisParameter.js.diff deleted file mode 100644 index f4ed3ff3b..000000000 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodThisParameter.js.diff +++ /dev/null @@ -1,24 +0,0 @@ ---- old.decoratorOnClassMethodThisParameter.js -+++ new.decoratorOnClassMethodThisParameter.js -@@= skipped -11, +11 lines =@@ - } - - //// [decoratorOnClassMethodThisParameter.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __param = (this && this.__param) || function (paramIndex, decorator) { -- return function (target, key) { decorator(target, key, paramIndex); } --}; - class C { - method() { } - } - class C2 { - method(allowed) { } - } --__decorate([ -- __param(0, dec) --], C2.prototype, "method", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty1.es6.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty1.es6.js index 2cc994f5b..655d3b385 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty1.es6.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty1.es6.js @@ -8,7 +8,15 @@ export default class { } //// [decoratorOnClassProperty1.es6.js] -export default class { - @dec +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +export default class default_1 { prop; } +__decorate([ + dec +], default_1.prototype, "prop", void 0); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty1.es6.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty1.es6.js.diff index 563f45e9a..be3781ad3 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty1.es6.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty1.es6.js.diff @@ -1,20 +1,10 @@ --- old.decoratorOnClassProperty1.es6.js +++ new.decoratorOnClassProperty1.es6.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassProperty1.es6.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --export default class default_1 { -+export default class { -+ @dec +@@= skipped -14, +14 lines =@@ + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + export default class default_1 { + prop; } --__decorate([ -- dec --], default_1.prototype, "prop", void 0); \ No newline at end of file + __decorate([ + dec \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty1.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty1.js index b581bfde1..1999a73ff 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty1.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty1.js @@ -8,7 +8,15 @@ class C { } //// [decoratorOnClassProperty1.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class C { - @dec prop; } +__decorate([ + dec +], C.prototype, "prop", void 0); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty1.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty1.js.diff index 488ed54f9..2faf79e4d 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty1.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty1.js.diff @@ -1,19 +1,10 @@ --- old.decoratorOnClassProperty1.js +++ new.decoratorOnClassProperty1.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassProperty1.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; +@@= skipped -14, +14 lines =@@ + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; class C { -+ @dec + prop; } --__decorate([ -- dec --], C.prototype, "prop", void 0); \ No newline at end of file + __decorate([ + dec \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty10.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty10.js index 2b7dcb24d..be03cce48 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty10.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty10.js @@ -8,7 +8,15 @@ class C { } //// [decoratorOnClassProperty10.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class C { - @dec() prop; } +__decorate([ + dec() +], C.prototype, "prop", void 0); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty10.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty10.js.diff index 5acca3027..7e892ad95 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty10.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty10.js.diff @@ -1,19 +1,10 @@ --- old.decoratorOnClassProperty10.js +++ new.decoratorOnClassProperty10.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassProperty10.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; +@@= skipped -14, +14 lines =@@ + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; class C { -+ @dec() + prop; } --__decorate([ -- dec() --], C.prototype, "prop", void 0); \ No newline at end of file + __decorate([ + dec() \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty11.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty11.js index f8454fc20..318507239 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty11.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty11.js @@ -8,7 +8,15 @@ class C { } //// [decoratorOnClassProperty11.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class C { - @dec prop; } +__decorate([ + dec +], C.prototype, "prop", void 0); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty11.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty11.js.diff index a4293943b..8fd6d8757 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty11.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty11.js.diff @@ -1,19 +1,10 @@ --- old.decoratorOnClassProperty11.js +++ new.decoratorOnClassProperty11.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassProperty11.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; +@@= skipped -14, +14 lines =@@ + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; class C { -+ @dec + prop; } --__decorate([ -- dec --], C.prototype, "prop", void 0); \ No newline at end of file + __decorate([ + dec \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty12.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty12.js index 2f4eab4ce..bbbb4a9d3 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty12.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty12.js @@ -10,7 +10,19 @@ class A { //// [decoratorOnClassProperty12.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; class A { - @dec() foo; } +__decorate([ + dec(), + __metadata("design:type", String) +], A.prototype, "foo", void 0); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty12.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty12.js.diff index 3997cf7a3..d255dea85 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty12.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty12.js.diff @@ -1,23 +1,10 @@ --- old.decoratorOnClassProperty12.js +++ new.decoratorOnClassProperty12.js -@@= skipped -9, +9 lines =@@ - - - //// [decoratorOnClassProperty12.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; +@@= skipped -19, +19 lines =@@ + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); + }; class A { -+ @dec() + foo; } --__decorate([ -- dec(), -- __metadata("design:type", String) --], A.prototype, "foo", void 0); \ No newline at end of file + __decorate([ + dec(), \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty13.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty13.js index 8027ce57b..9c505ec8b 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty13.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty13.js @@ -8,7 +8,15 @@ class C { } //// [decoratorOnClassProperty13.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class C { - @dec accessor prop; } +__decorate([ + dec +], C.prototype, "prop", null); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty13.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty13.js.diff index d08616ecb..e401f11f2 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty13.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty13.js.diff @@ -1,15 +1,9 @@ --- old.decoratorOnClassProperty13.js +++ new.decoratorOnClassProperty13.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassProperty13.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; +@@= skipped -13, +13 lines =@@ + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; -var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); @@ -28,10 +22,9 @@ - } - get prop() { return __classPrivateFieldGet(this, _C_prop_accessor_storage, "f"); } - set prop(value) { __classPrivateFieldSet(this, _C_prop_accessor_storage, value, "f"); } -+ @dec + accessor prop; } -_C_prop_accessor_storage = new WeakMap(); --__decorate([ -- dec --], C.prototype, "prop", null); \ No newline at end of file + __decorate([ + dec + ], C.prototype, "prop", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty2.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty2.js index 173c69ca7..60187ccfa 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty2.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty2.js @@ -8,7 +8,15 @@ class C { } //// [decoratorOnClassProperty2.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class C { - @dec prop; } +__decorate([ + dec +], C.prototype, "prop", void 0); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty2.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty2.js.diff index 85a5313c9..25a5a8c78 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty2.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty2.js.diff @@ -1,19 +1,10 @@ --- old.decoratorOnClassProperty2.js +++ new.decoratorOnClassProperty2.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassProperty2.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; +@@= skipped -14, +14 lines =@@ + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; class C { -+ @dec + prop; } --__decorate([ -- dec --], C.prototype, "prop", void 0); \ No newline at end of file + __decorate([ + dec \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty3.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty3.js index f38c703bd..79d0ac8d5 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty3.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty3.js @@ -8,8 +8,16 @@ class C { } //// [decoratorOnClassProperty3.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class C { public; - @dec prop; } +__decorate([ + dec +], C.prototype, "prop", void 0); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty3.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty3.js.diff index f01ee4833..7691cb8b6 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty3.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty3.js.diff @@ -1,20 +1,11 @@ --- old.decoratorOnClassProperty3.js +++ new.decoratorOnClassProperty3.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassProperty3.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; +@@= skipped -14, +14 lines =@@ + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; class C { + public; -+ @dec + prop; } --__decorate([ -- dec --], C.prototype, "prop", void 0); \ No newline at end of file + __decorate([ + dec \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty6.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty6.js index 13965fc56..a488e2fa9 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty6.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty6.js @@ -8,7 +8,15 @@ class C { } //// [decoratorOnClassProperty6.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class C { - @dec prop; } +__decorate([ + dec +], C.prototype, "prop", void 0); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty6.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty6.js.diff index 02a0067d1..d467fcd47 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty6.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty6.js.diff @@ -1,19 +1,10 @@ --- old.decoratorOnClassProperty6.js +++ new.decoratorOnClassProperty6.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassProperty6.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; +@@= skipped -14, +14 lines =@@ + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; class C { -+ @dec + prop; } --__decorate([ -- dec --], C.prototype, "prop", void 0); \ No newline at end of file + __decorate([ + dec \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty7.js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty7.js index eaa0996f2..eb0f3a707 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty7.js +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty7.js @@ -8,7 +8,15 @@ class C { } //// [decoratorOnClassProperty7.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class C { - @dec prop; } +__decorate([ + dec +], C.prototype, "prop", void 0); diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty7.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty7.js.diff index 3576a2a76..ef3448ea2 100644 --- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty7.js.diff +++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty7.js.diff @@ -1,19 +1,10 @@ --- old.decoratorOnClassProperty7.js +++ new.decoratorOnClassProperty7.js -@@= skipped -7, +7 lines =@@ - } - - //// [decoratorOnClassProperty7.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; +@@= skipped -14, +14 lines =@@ + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; class C { -+ @dec + prop; } --__decorate([ -- dec --], C.prototype, "prop", void 0); \ No newline at end of file + __decorate([ + dec \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/derivedClassSuperProperties.js b/testdata/baselines/reference/submodule/conformance/derivedClassSuperProperties.js index b5c2fc563..f29100007 100644 --- a/testdata/baselines/reference/submodule/conformance/derivedClassSuperProperties.js +++ b/testdata/baselines/reference/submodule/conformance/derivedClassSuperProperties.js @@ -404,6 +404,12 @@ const DerivedWithLoops = [ //// [derivedClassSuperProperties.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class Base { constructor(a) { } receivesAnything(param) { } @@ -481,9 +487,11 @@ class DerivedWithArrowFunctionParameter extends Base { class DerivedWithDecoratorOnClass extends Base { prop = true; constructor() { - @decorate(this) - class InnerClass { - } + let InnerClass = class InnerClass { + }; + InnerClass = __decorate([ + decorate(this) + ], InnerClass); super(); } } @@ -491,9 +499,11 @@ class DerivedWithDecoratorOnClassMethod extends Base { prop = true; constructor() { class InnerClass { - @decorate(this) innerMethod() { } } + __decorate([ + decorate(this) + ], InnerClass.prototype, "innerMethod", null); super(); } } @@ -501,9 +511,11 @@ class DerivedWithDecoratorOnClassProperty extends Base { prop = true; constructor() { class InnerClass { - @decorate(this) innerProp = true; } + __decorate([ + decorate(this) + ], InnerClass.prototype, "innerProp", void 0); super(); } } diff --git a/testdata/baselines/reference/submodule/conformance/derivedClassSuperProperties.js.diff b/testdata/baselines/reference/submodule/conformance/derivedClassSuperProperties.js.diff index d9a651cfe..0f3ec7cd1 100644 --- a/testdata/baselines/reference/submodule/conformance/derivedClassSuperProperties.js.diff +++ b/testdata/baselines/reference/submodule/conformance/derivedClassSuperProperties.js.diff @@ -1,17 +1,6 @@ --- old.derivedClassSuperProperties.js +++ new.derivedClassSuperProperties.js -@@= skipped -403, +403 lines =@@ - - - //// [derivedClassSuperProperties.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - class Base { - constructor(a) { } +@@= skipped -414, +414 lines =@@ receivesAnything(param) { } } class Derived1 extends Base { @@ -97,14 +86,11 @@ class DerivedWithDecoratorOnClass extends Base { + prop = true; constructor() { -- let InnerClass = class InnerClass { -- }; -- InnerClass = __decorate([ -- decorate(this) -- ], InnerClass); -+ @decorate(this) -+ class InnerClass { -+ } + let InnerClass = class InnerClass { + }; +@@= skipped -77, +78 lines =@@ + decorate(this) + ], InnerClass); super(); - this.prop = true; } @@ -113,12 +99,10 @@ + prop = true; constructor() { class InnerClass { -+ @decorate(this) innerMethod() { } - } -- __decorate([ -- decorate(this) -- ], InnerClass.prototype, "innerMethod", null); +@@= skipped -12, +12 lines =@@ + decorate(this) + ], InnerClass.prototype, "innerMethod", null); super(); - this.prop = true; } @@ -130,12 +114,11 @@ - constructor() { - this.innerProp = true; - } -+ @decorate(this) + innerProp = true; } -- __decorate([ -- decorate(this) -- ], InnerClass.prototype, "innerProp", void 0); + __decorate([ + decorate(this) + ], InnerClass.prototype, "innerProp", void 0); super(); - this.prop = true; } @@ -283,7 +266,7 @@ constructor() { console.log(new class extends Base { constructor() { -@@= skipped -246, +233 lines =@@ +@@= skipped -146, +144 lines =@@ } }()); super(); diff --git a/testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target.js b/testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target.js index 588a1f9cb..4535a654b 100644 --- a/testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target.js +++ b/testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target.js @@ -22,18 +22,27 @@ export {E}; //// [es6modulekindWithES5Target.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; export class C { static s = 0; p = 1; method() { } } export { C as C2 }; -@foo -export class D { +let D = class D { static s = 0; p = 1; method() { } -} +}; +D = __decorate([ + foo +], D); +export { D }; export { D as D2 }; class E { } diff --git a/testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target.js.diff b/testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target.js.diff index 8a7afb572..c4a2a883c 100644 --- a/testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target.js.diff +++ b/testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target.js.diff @@ -1,15 +1,8 @@ --- old.es6modulekindWithES5Target.js +++ new.es6modulekindWithES5Target.js -@@= skipped -21, +21 lines =@@ - - - //// [es6modulekindWithES5Target.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; +@@= skipped -28, +28 lines =@@ + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; export class C { - constructor() { - this.p = 1; @@ -20,22 +13,15 @@ } -C.s = 0; export { C as C2 }; --let D = class D { + let D = class D { - constructor() { - this.p = 1; - } -+@foo -+export class D { + static s = 0; + p = 1; method() { } --}; + }; -D.s = 0; --D = __decorate([ -- foo --], D); --export { D }; -+} - export { D as D2 }; - class E { - } \ No newline at end of file + D = __decorate([ + foo + ], D); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target11.js b/testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target11.js index 638d7b651..adb5c62d5 100644 --- a/testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target11.js +++ b/testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target11.js @@ -11,10 +11,20 @@ export default class C { } //// [es6modulekindWithES5Target11.js] -@foo -export default class C { - static x() { return C.y; } +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var C_1; +let C = C_1 = class C { + static x() { return C_1.y; } static y = 1; p = 1; method() { } -} +}; +C = C_1 = __decorate([ + foo +], C); +export default C; diff --git a/testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target11.js.diff b/testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target11.js.diff index 4119daa59..a2c2aa041 100644 --- a/testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target11.js.diff +++ b/testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target11.js.diff @@ -1,31 +1,18 @@ --- old.es6modulekindWithES5Target11.js +++ new.es6modulekindWithES5Target11.js -@@= skipped -10, +10 lines =@@ - } - - //// [es6modulekindWithES5Target11.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var C_1; --let C = C_1 = class C { +@@= skipped -18, +18 lines =@@ + }; + var C_1; + let C = C_1 = class C { - constructor() { - this.p = 1; - } -- static x() { return C_1.y; } -+@foo -+export default class C { -+ static x() { return C.y; } + static x() { return C_1.y; } + static y = 1; + p = 1; method() { } --}; + }; -C.y = 1; --C = C_1 = __decorate([ -- foo --], C); --export default C; -+} \ No newline at end of file + C = C_1 = __decorate([ + foo + ], C); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target3.js b/testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target3.js index b9147bbe5..dac698928 100644 --- a/testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target3.js +++ b/testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target3.js @@ -10,9 +10,18 @@ export default class D { } //// [es6modulekindWithES5Target3.js] -@foo -export default class D { +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let D = class D { static s = 0; p = 1; method() { } -} +}; +D = __decorate([ + foo +], D); +export default D; diff --git a/testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target3.js.diff b/testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target3.js.diff index b715f0647..f4ddc7176 100644 --- a/testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target3.js.diff +++ b/testdata/baselines/reference/submodule/conformance/es6modulekindWithES5Target3.js.diff @@ -1,28 +1,17 @@ --- old.es6modulekindWithES5Target3.js +++ new.es6modulekindWithES5Target3.js -@@= skipped -9, +9 lines =@@ - } - - //// [es6modulekindWithES5Target3.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --let D = class D { +@@= skipped -16, +16 lines =@@ + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + let D = class D { - constructor() { - this.p = 1; - } -+@foo -+export default class D { + static s = 0; + p = 1; method() { } --}; + }; -D.s = 0; --D = __decorate([ -- foo --], D); --export default D; -+} \ No newline at end of file + D = __decorate([ + foo + ], D); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-parameterDecorators(target=es2015).js b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-parameterDecorators(target=es2015).js index 4b38c99e8..e77651611 100644 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-parameterDecorators(target=es2015).js +++ b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-parameterDecorators(target=es2015).js @@ -21,16 +21,36 @@ class C { //// [esDecorators-classDeclaration-parameterDecorators.js] class C { - constructor(x) { } - method(x) { } - set x(x) { } - static method(x) { } - static set x(x) { } + constructor( + @dec + x) { } + method( + @dec + x) { } + set x( + @dec + x) { } + static method( + @dec + x) { } + static set x( + @dec + x) { } } (class C { - constructor(x) { } - method(x) { } - set x(x) { } - static method(x) { } - static set x(x) { } + constructor( + @dec + x) { } + method( + @dec + x) { } + set x( + @dec + x) { } + static method( + @dec + x) { } + static set x( + @dec + x) { } }); diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-parameterDecorators(target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-parameterDecorators(target=es2015).js.diff new file mode 100644 index 000000000..124daa7f5 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-parameterDecorators(target=es2015).js.diff @@ -0,0 +1,49 @@ +--- old.esDecorators-classDeclaration-parameterDecorators(target=es2015).js ++++ new.esDecorators-classDeclaration-parameterDecorators(target=es2015).js +@@= skipped -20, +20 lines =@@ + + //// [esDecorators-classDeclaration-parameterDecorators.js] + class C { +- constructor(x) { } +- method(x) { } +- set x(x) { } +- static method(x) { } +- static set x(x) { } ++ constructor( ++ @dec ++ x) { } ++ method( ++ @dec ++ x) { } ++ set x( ++ @dec ++ x) { } ++ static method( ++ @dec ++ x) { } ++ static set x( ++ @dec ++ x) { } + } + (class C { +- constructor(x) { } +- method(x) { } +- set x(x) { } +- static method(x) { } +- static set x(x) { } ++ constructor( ++ @dec ++ x) { } ++ method( ++ @dec ++ x) { } ++ set x( ++ @dec ++ x) { } ++ static method( ++ @dec ++ x) { } ++ static set x( ++ @dec ++ x) { } + }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-parameterDecorators(target=es2022).js b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-parameterDecorators(target=es2022).js index 4b38c99e8..e77651611 100644 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-parameterDecorators(target=es2022).js +++ b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-parameterDecorators(target=es2022).js @@ -21,16 +21,36 @@ class C { //// [esDecorators-classDeclaration-parameterDecorators.js] class C { - constructor(x) { } - method(x) { } - set x(x) { } - static method(x) { } - static set x(x) { } + constructor( + @dec + x) { } + method( + @dec + x) { } + set x( + @dec + x) { } + static method( + @dec + x) { } + static set x( + @dec + x) { } } (class C { - constructor(x) { } - method(x) { } - set x(x) { } - static method(x) { } - static set x(x) { } + constructor( + @dec + x) { } + method( + @dec + x) { } + set x( + @dec + x) { } + static method( + @dec + x) { } + static set x( + @dec + x) { } }); diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-parameterDecorators(target=es2022).js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-parameterDecorators(target=es2022).js.diff new file mode 100644 index 000000000..2d042d752 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-parameterDecorators(target=es2022).js.diff @@ -0,0 +1,49 @@ +--- old.esDecorators-classDeclaration-parameterDecorators(target=es2022).js ++++ new.esDecorators-classDeclaration-parameterDecorators(target=es2022).js +@@= skipped -20, +20 lines =@@ + + //// [esDecorators-classDeclaration-parameterDecorators.js] + class C { +- constructor(x) { } +- method(x) { } +- set x(x) { } +- static method(x) { } +- static set x(x) { } ++ constructor( ++ @dec ++ x) { } ++ method( ++ @dec ++ x) { } ++ set x( ++ @dec ++ x) { } ++ static method( ++ @dec ++ x) { } ++ static set x( ++ @dec ++ x) { } + } + (class C { +- constructor(x) { } +- method(x) { } +- set x(x) { } +- static method(x) { } +- static set x(x) { } ++ constructor( ++ @dec ++ x) { } ++ method( ++ @dec ++ x) { } ++ set x( ++ @dec ++ x) { } ++ static method( ++ @dec ++ x) { } ++ static set x( ++ @dec ++ x) { } + }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-parameterDecorators(target=es5).js b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-parameterDecorators(target=es5).js index 4b38c99e8..e77651611 100644 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-parameterDecorators(target=es5).js +++ b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-parameterDecorators(target=es5).js @@ -21,16 +21,36 @@ class C { //// [esDecorators-classDeclaration-parameterDecorators.js] class C { - constructor(x) { } - method(x) { } - set x(x) { } - static method(x) { } - static set x(x) { } + constructor( + @dec + x) { } + method( + @dec + x) { } + set x( + @dec + x) { } + static method( + @dec + x) { } + static set x( + @dec + x) { } } (class C { - constructor(x) { } - method(x) { } - set x(x) { } - static method(x) { } - static set x(x) { } + constructor( + @dec + x) { } + method( + @dec + x) { } + set x( + @dec + x) { } + static method( + @dec + x) { } + static set x( + @dec + x) { } }); diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-parameterDecorators(target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-parameterDecorators(target=es5).js.diff new file mode 100644 index 000000000..88eb7ff10 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-parameterDecorators(target=es5).js.diff @@ -0,0 +1,49 @@ +--- old.esDecorators-classDeclaration-parameterDecorators(target=es5).js ++++ new.esDecorators-classDeclaration-parameterDecorators(target=es5).js +@@= skipped -20, +20 lines =@@ + + //// [esDecorators-classDeclaration-parameterDecorators.js] + class C { +- constructor(x) { } +- method(x) { } +- set x(x) { } +- static method(x) { } +- static set x(x) { } ++ constructor( ++ @dec ++ x) { } ++ method( ++ @dec ++ x) { } ++ set x( ++ @dec ++ x) { } ++ static method( ++ @dec ++ x) { } ++ static set x( ++ @dec ++ x) { } + } + (class C { +- constructor(x) { } +- method(x) { } +- set x(x) { } +- static method(x) { } +- static set x(x) { } ++ constructor( ++ @dec ++ x) { } ++ method( ++ @dec ++ x) { } ++ set x( ++ @dec ++ x) { } ++ static method( ++ @dec ++ x) { } ++ static set x( ++ @dec ++ x) { } + }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-parameterDecorators(target=esnext).js b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-parameterDecorators(target=esnext).js index 4b38c99e8..e77651611 100644 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-parameterDecorators(target=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-parameterDecorators(target=esnext).js @@ -21,16 +21,36 @@ class C { //// [esDecorators-classDeclaration-parameterDecorators.js] class C { - constructor(x) { } - method(x) { } - set x(x) { } - static method(x) { } - static set x(x) { } + constructor( + @dec + x) { } + method( + @dec + x) { } + set x( + @dec + x) { } + static method( + @dec + x) { } + static set x( + @dec + x) { } } (class C { - constructor(x) { } - method(x) { } - set x(x) { } - static method(x) { } - static set x(x) { } + constructor( + @dec + x) { } + method( + @dec + x) { } + set x( + @dec + x) { } + static method( + @dec + x) { } + static set x( + @dec + x) { } }); diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-parameterDecorators(target=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-parameterDecorators(target=esnext).js.diff deleted file mode 100644 index c5a65dc0e..000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-parameterDecorators(target=esnext).js.diff +++ /dev/null @@ -1,49 +0,0 @@ ---- old.esDecorators-classDeclaration-parameterDecorators(target=esnext).js -+++ new.esDecorators-classDeclaration-parameterDecorators(target=esnext).js -@@= skipped -20, +20 lines =@@ - - //// [esDecorators-classDeclaration-parameterDecorators.js] - class C { -- constructor( -- @dec -- x) { } -- method( -- @dec -- x) { } -- set x( -- @dec -- x) { } -- static method( -- @dec -- x) { } -- static set x( -- @dec -- x) { } -+ constructor(x) { } -+ method(x) { } -+ set x(x) { } -+ static method(x) { } -+ static set x(x) { } - } - (class C { -- constructor( -- @dec -- x) { } -- method( -- @dec -- x) { } -- set x( -- @dec -- x) { } -- static method( -- @dec -- x) { } -- static set x( -- @dec -- x) { } -+ constructor(x) { } -+ method(x) { } -+ set x(x) { } -+ static method(x) { } -+ static set x(x) { } - }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-decoratorExpression.1(experimentaldecorators=true).js b/testdata/baselines/reference/submodule/conformance/esDecorators-decoratorExpression.1(experimentaldecorators=true).js index e18cf8fa9..2e16e0449 100644 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-decoratorExpression.1(experimentaldecorators=true).js +++ b/testdata/baselines/reference/submodule/conformance/esDecorators-decoratorExpression.1(experimentaldecorators=true).js @@ -50,123 +50,167 @@ declare let x: any; //// [esDecorators-decoratorExpression.1.js] { - @x().y - class C { - } + let C = class C { + }; + C = __decorate([ + x().y + ], C); } { - @(new x) - class C { - } + let C = class C { + }; + C = __decorate([ + new x + ], C); } { - @x().y() - class C { - } + let C = class C { + }; + C = __decorate([ + x().y() + ], C); } { - @(x?.y) - class C { - } + let C = class C { + }; + C = __decorate([ + x?.y + ], C); } { - @(x?.y()) - class C { - } + let C = class C { + }; + C = __decorate([ + x?.y() + ], C); } { - @(x?.["y"]) - class C { - } + let C = class C { + }; + C = __decorate([ + x?.["y"] + ], C); } { - @(x?.()) - class C { - } + let C = class C { + }; + C = __decorate([ + x?.() + ], C); } { - @x `` - class C { - } + let C = class C { + }; + C = __decorate([ + x `` + ], C); } { - @x ``() - class C { - } + let C = class C { + }; + C = __decorate([ + x ``() + ], C); } { - @x.y `` - class C { - } + let C = class C { + }; + C = __decorate([ + x.y `` + ], C); } { - @x.y ``() - class C { - } + let C = class C { + }; + C = __decorate([ + x.y ``() + ], C); } { class C { - @x().y m() { } } + __decorate([ + x().y + ], C.prototype, "m", null); } { class C { - @(new x) m() { } } + __decorate([ + new x + ], C.prototype, "m", null); } { class C { - @x().y() m() { } } + __decorate([ + x().y() + ], C.prototype, "m", null); } { class C { - @(x?.y) m() { } } + __decorate([ + x?.y + ], C.prototype, "m", null); } { class C { - @(x?.y()) m() { } } + __decorate([ + x?.y() + ], C.prototype, "m", null); } { class C { - @(x?.["y"]) m() { } } + __decorate([ + x?.["y"] + ], C.prototype, "m", null); } { class C { - @(x?.()) m() { } } + __decorate([ + x?.() + ], C.prototype, "m", null); } { class C { - @x `` m() { } } + __decorate([ + x `` + ], C.prototype, "m", null); } { class C { - @x ``() m() { } } + __decorate([ + x ``() + ], C.prototype, "m", null); } { class C { - @x.y `` m() { } } + __decorate([ + x.y `` + ], C.prototype, "m", null); } { class C { - @x.y ``() m() { } } + __decorate([ + x.y ``() + ], C.prototype, "m", null); } diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-decoratorExpression.1(experimentaldecorators=true).js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-decoratorExpression.1(experimentaldecorators=true).js.diff deleted file mode 100644 index b9f938b8f..000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-decoratorExpression.1(experimentaldecorators=true).js.diff +++ /dev/null @@ -1,289 +0,0 @@ ---- old.esDecorators-decoratorExpression.1(experimentaldecorators=true).js -+++ new.esDecorators-decoratorExpression.1(experimentaldecorators=true).js -@@= skipped -49, +49 lines =@@ - - //// [esDecorators-decoratorExpression.1.js] - { -- let C = class C { -- }; -- C = __decorate([ -- x().y -- ], C); --} --{ -- let C = class C { -- }; -- C = __decorate([ -- new x -- ], C); --} --{ -- let C = class C { -- }; -- C = __decorate([ -- x().y() -- ], C); --} --{ -- let C = class C { -- }; -- C = __decorate([ -- x?.y -- ], C); --} --{ -- let C = class C { -- }; -- C = __decorate([ -- x?.y() -- ], C); --} --{ -- let C = class C { -- }; -- C = __decorate([ -- x?.["y"] -- ], C); --} --{ -- let C = class C { -- }; -- C = __decorate([ -- x?.() -- ], C); --} --{ -- let C = class C { -- }; -- C = __decorate([ -- x `` -- ], C); --} --{ -- let C = class C { -- }; -- C = __decorate([ -- x ``() -- ], C); --} --{ -- let C = class C { -- }; -- C = __decorate([ -- x.y `` -- ], C); --} --{ -- let C = class C { -- }; -- C = __decorate([ -- x.y ``() -- ], C); --} --{ -- class C { -- m() { } -- } -- __decorate([ -- x().y -- ], C.prototype, "m", null); --} --{ -- class C { -- m() { } -- } -- __decorate([ -- new x -- ], C.prototype, "m", null); --} --{ -- class C { -- m() { } -- } -- __decorate([ -- x().y() -- ], C.prototype, "m", null); --} --{ -- class C { -- m() { } -- } -- __decorate([ -- x?.y -- ], C.prototype, "m", null); --} --{ -- class C { -- m() { } -- } -- __decorate([ -- x?.y() -- ], C.prototype, "m", null); --} --{ -- class C { -- m() { } -- } -- __decorate([ -- x?.["y"] -- ], C.prototype, "m", null); --} --{ -- class C { -- m() { } -- } -- __decorate([ -- x?.() -- ], C.prototype, "m", null); --} --{ -- class C { -- m() { } -- } -- __decorate([ -- x `` -- ], C.prototype, "m", null); --} --{ -- class C { -- m() { } -- } -- __decorate([ -- x ``() -- ], C.prototype, "m", null); --} --{ -- class C { -- m() { } -- } -- __decorate([ -- x.y `` -- ], C.prototype, "m", null); --} --{ -- class C { -- m() { } -- } -- __decorate([ -- x.y ``() -- ], C.prototype, "m", null); -+ @x().y -+ class C { -+ } -+} -+{ -+ @(new x) -+ class C { -+ } -+} -+{ -+ @x().y() -+ class C { -+ } -+} -+{ -+ @(x?.y) -+ class C { -+ } -+} -+{ -+ @(x?.y()) -+ class C { -+ } -+} -+{ -+ @(x?.["y"]) -+ class C { -+ } -+} -+{ -+ @(x?.()) -+ class C { -+ } -+} -+{ -+ @x `` -+ class C { -+ } -+} -+{ -+ @x ``() -+ class C { -+ } -+} -+{ -+ @x.y `` -+ class C { -+ } -+} -+{ -+ @x.y ``() -+ class C { -+ } -+} -+{ -+ class C { -+ @x().y -+ m() { } -+ } -+} -+{ -+ class C { -+ @(new x) -+ m() { } -+ } -+} -+{ -+ class C { -+ @x().y() -+ m() { } -+ } -+} -+{ -+ class C { -+ @(x?.y) -+ m() { } -+ } -+} -+{ -+ class C { -+ @(x?.y()) -+ m() { } -+ } -+} -+{ -+ class C { -+ @(x?.["y"]) -+ m() { } -+ } -+} -+{ -+ class C { -+ @(x?.()) -+ m() { } -+ } -+} -+{ -+ class C { -+ @x `` -+ m() { } -+ } -+} -+{ -+ class C { -+ @x ``() -+ m() { } -+ } -+} -+{ -+ class C { -+ @x.y `` -+ m() { } -+ } -+} -+{ -+ class C { -+ @x.y ``() -+ m() { } -+ } - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-decoratorExpression.2(experimentaldecorators=true).js b/testdata/baselines/reference/submodule/conformance/esDecorators-decoratorExpression.2(experimentaldecorators=true).js index 5fa5c99b0..d82dde020 100644 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-decoratorExpression.2(experimentaldecorators=true).js +++ b/testdata/baselines/reference/submodule/conformance/esDecorators-decoratorExpression.2(experimentaldecorators=true).js @@ -60,145 +60,197 @@ declare let h: () => (...args: any) => any; //// [esDecorators-decoratorExpression.2.js] { - @x - class C { - } + let C = class C { + }; + C = __decorate([ + x + ], C); } { - @x.y - class C { - } + let C = class C { + }; + C = __decorate([ + x.y + ], C); } { - @x.y - class C { - } + let C = class C { + }; + C = __decorate([ + x.y + ], C); } { - @g() - class C { - } + let C = class C { + }; + C = __decorate([ + g() + ], C); } { - @(g) - class C { - } + let C = class C { + }; + C = __decorate([ + (g) + ], C); } { - @(h()) - class C { - } + let C = class C { + }; + C = __decorate([ + (h()) + ], C); } { - @(x().y) - class C { - } + let C = class C { + }; + C = __decorate([ + (x().y) + ], C); } { - @(x().y()) - class C { - } + let C = class C { + }; + C = __decorate([ + (x().y()) + ], C); } { - @(x ``) - class C { - } + let C = class C { + }; + C = __decorate([ + (x ``) + ], C); } { - @(x.y ``) - class C { - } + let C = class C { + }; + C = __decorate([ + (x.y ``) + ], C); } { - @(x?.y) - class C { - } + let C = class C { + }; + C = __decorate([ + (x?.y) + ], C); } { - @(x["y"]) - class C { - } + let C = class C { + }; + C = __decorate([ + (x["y"]) + ], C); } { - @(x?.["y"]) - class C { - } + let C = class C { + }; + C = __decorate([ + (x?.["y"]) + ], C); } { class C { - @x m() { } } + __decorate([ + x + ], C.prototype, "m", null); } { class C { - @x.y m() { } } + __decorate([ + x.y + ], C.prototype, "m", null); } { class C { - @x.y m() { } } + __decorate([ + x.y + ], C.prototype, "m", null); } { class C { - @g() m() { } } + __decorate([ + g() + ], C.prototype, "m", null); } { class C { - @(g) m() { } } + __decorate([ + (g) + ], C.prototype, "m", null); } { class C { - @(h()) m() { } } + __decorate([ + (h()) + ], C.prototype, "m", null); } { class C { - @(x().y) m() { } } + __decorate([ + (x().y) + ], C.prototype, "m", null); } { class C { - @(x().y()) m() { } } + __decorate([ + (x().y()) + ], C.prototype, "m", null); } { class C { - @(x ``) m() { } } + __decorate([ + (x ``) + ], C.prototype, "m", null); } { class C { - @(x.y ``) m() { } } + __decorate([ + (x.y ``) + ], C.prototype, "m", null); } { class C { - @(x?.y) m() { } } + __decorate([ + (x?.y) + ], C.prototype, "m", null); } { class C { - @(x["y"]) m() { } } + __decorate([ + (x["y"]) + ], C.prototype, "m", null); } { class C { - @(x?.["y"]) m() { } } + __decorate([ + (x?.["y"]) + ], C.prototype, "m", null); } diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-decoratorExpression.2(experimentaldecorators=true).js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-decoratorExpression.2(experimentaldecorators=true).js.diff deleted file mode 100644 index 9ce3ae0dd..000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-decoratorExpression.2(experimentaldecorators=true).js.diff +++ /dev/null @@ -1,341 +0,0 @@ ---- old.esDecorators-decoratorExpression.2(experimentaldecorators=true).js -+++ new.esDecorators-decoratorExpression.2(experimentaldecorators=true).js -@@= skipped -59, +59 lines =@@ - - //// [esDecorators-decoratorExpression.2.js] - { -- let C = class C { -- }; -- C = __decorate([ -- x -- ], C); --} --{ -- let C = class C { -- }; -- C = __decorate([ -- x.y -- ], C); --} --{ -- let C = class C { -- }; -- C = __decorate([ -- x.y -- ], C); --} --{ -- let C = class C { -- }; -- C = __decorate([ -- g() -- ], C); --} --{ -- let C = class C { -- }; -- C = __decorate([ -- (g) -- ], C); --} --{ -- let C = class C { -- }; -- C = __decorate([ -- (h()) -- ], C); --} --{ -- let C = class C { -- }; -- C = __decorate([ -- (x().y) -- ], C); --} --{ -- let C = class C { -- }; -- C = __decorate([ -- (x().y()) -- ], C); --} --{ -- let C = class C { -- }; -- C = __decorate([ -- (x ``) -- ], C); --} --{ -- let C = class C { -- }; -- C = __decorate([ -- (x.y ``) -- ], C); --} --{ -- let C = class C { -- }; -- C = __decorate([ -- (x?.y) -- ], C); --} --{ -- let C = class C { -- }; -- C = __decorate([ -- (x["y"]) -- ], C); --} --{ -- let C = class C { -- }; -- C = __decorate([ -- (x?.["y"]) -- ], C); --} --{ -- class C { -- m() { } -- } -- __decorate([ -- x -- ], C.prototype, "m", null); --} --{ -- class C { -- m() { } -- } -- __decorate([ -- x.y -- ], C.prototype, "m", null); --} --{ -- class C { -- m() { } -- } -- __decorate([ -- x.y -- ], C.prototype, "m", null); --} --{ -- class C { -- m() { } -- } -- __decorate([ -- g() -- ], C.prototype, "m", null); --} --{ -- class C { -- m() { } -- } -- __decorate([ -- (g) -- ], C.prototype, "m", null); --} --{ -- class C { -- m() { } -- } -- __decorate([ -- (h()) -- ], C.prototype, "m", null); --} --{ -- class C { -- m() { } -- } -- __decorate([ -- (x().y) -- ], C.prototype, "m", null); --} --{ -- class C { -- m() { } -- } -- __decorate([ -- (x().y()) -- ], C.prototype, "m", null); --} --{ -- class C { -- m() { } -- } -- __decorate([ -- (x ``) -- ], C.prototype, "m", null); --} --{ -- class C { -- m() { } -- } -- __decorate([ -- (x.y ``) -- ], C.prototype, "m", null); --} --{ -- class C { -- m() { } -- } -- __decorate([ -- (x?.y) -- ], C.prototype, "m", null); --} --{ -- class C { -- m() { } -- } -- __decorate([ -- (x["y"]) -- ], C.prototype, "m", null); --} --{ -- class C { -- m() { } -- } -- __decorate([ -- (x?.["y"]) -- ], C.prototype, "m", null); -+ @x -+ class C { -+ } -+} -+{ -+ @x.y -+ class C { -+ } -+} -+{ -+ @x.y -+ class C { -+ } -+} -+{ -+ @g() -+ class C { -+ } -+} -+{ -+ @(g) -+ class C { -+ } -+} -+{ -+ @(h()) -+ class C { -+ } -+} -+{ -+ @(x().y) -+ class C { -+ } -+} -+{ -+ @(x().y()) -+ class C { -+ } -+} -+{ -+ @(x ``) -+ class C { -+ } -+} -+{ -+ @(x.y ``) -+ class C { -+ } -+} -+{ -+ @(x?.y) -+ class C { -+ } -+} -+{ -+ @(x["y"]) -+ class C { -+ } -+} -+{ -+ @(x?.["y"]) -+ class C { -+ } -+} -+{ -+ class C { -+ @x -+ m() { } -+ } -+} -+{ -+ class C { -+ @x.y -+ m() { } -+ } -+} -+{ -+ class C { -+ @x.y -+ m() { } -+ } -+} -+{ -+ class C { -+ @g() -+ m() { } -+ } -+} -+{ -+ class C { -+ @(g) -+ m() { } -+ } -+} -+{ -+ class C { -+ @(h()) -+ m() { } -+ } -+} -+{ -+ class C { -+ @(x().y) -+ m() { } -+ } -+} -+{ -+ class C { -+ @(x().y()) -+ m() { } -+ } -+} -+{ -+ class C { -+ @(x ``) -+ m() { } -+ } -+} -+{ -+ class C { -+ @(x.y ``) -+ m() { } -+ } -+} -+{ -+ class C { -+ @(x?.y) -+ m() { } -+ } -+} -+{ -+ class C { -+ @(x["y"]) -+ m() { } -+ } -+} -+{ -+ class C { -+ @(x?.["y"]) -+ m() { } -+ } - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-decoratorExpression.3(experimentaldecorators=false).js b/testdata/baselines/reference/submodule/conformance/esDecorators-decoratorExpression.3(experimentaldecorators=false).js index 5f6b46e37..bab184302 100644 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-decoratorExpression.3(experimentaldecorators=false).js +++ b/testdata/baselines/reference/submodule/conformance/esDecorators-decoratorExpression.3(experimentaldecorators=false).js @@ -13,10 +13,10 @@ declare let g: (...args: any) => any; //// [esDecorators-decoratorExpression.3.js] // existing errors { - ((class C { - })); + (class C { + }); } { - ((class C { - })); + (class C { + }); } diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-decoratorExpression.3(experimentaldecorators=false).js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-decoratorExpression.3(experimentaldecorators=false).js.diff index 433ac96c9..1f0f63cae 100644 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-decoratorExpression.3(experimentaldecorators=false).js.diff +++ b/testdata/baselines/reference/submodule/conformance/esDecorators-decoratorExpression.3(experimentaldecorators=false).js.diff @@ -6,12 +6,12 @@ { - class C { - }; -+ ((class C { -+ })); ++ (class C { ++ }); } { - class C { - }; -+ ((class C { -+ })); ++ (class C { ++ }); } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-decoratorExpression.3(experimentaldecorators=true).js b/testdata/baselines/reference/submodule/conformance/esDecorators-decoratorExpression.3(experimentaldecorators=true).js index 5f6b46e37..bab184302 100644 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-decoratorExpression.3(experimentaldecorators=true).js +++ b/testdata/baselines/reference/submodule/conformance/esDecorators-decoratorExpression.3(experimentaldecorators=true).js @@ -13,10 +13,10 @@ declare let g: (...args: any) => any; //// [esDecorators-decoratorExpression.3.js] // existing errors { - ((class C { - })); + (class C { + }); } { - ((class C { - })); + (class C { + }); } diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-decoratorExpression.3(experimentaldecorators=true).js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-decoratorExpression.3(experimentaldecorators=true).js.diff index 9ade1a2fb..655e1ab7b 100644 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-decoratorExpression.3(experimentaldecorators=true).js.diff +++ b/testdata/baselines/reference/submodule/conformance/esDecorators-decoratorExpression.3(experimentaldecorators=true).js.diff @@ -6,12 +6,12 @@ { - class C { - }; -+ ((class C { -+ })); ++ (class C { ++ }); } { - class C { - }; -+ ((class C { -+ })); ++ (class C { ++ }); } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-emitDecoratorMetadata(target=es2015).errors.txt b/testdata/baselines/reference/submodule/conformance/esDecorators-emitDecoratorMetadata(target=es2015).errors.txt new file mode 100644 index 000000000..34100c7c3 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/esDecorators-emitDecoratorMetadata(target=es2015).errors.txt @@ -0,0 +1,51 @@ +error TS5052: Option 'emitDecoratorMetadata' cannot be specified without specifying option 'experimentalDecorators'. + + +!!! error TS5052: Option 'emitDecoratorMetadata' cannot be specified without specifying option 'experimentalDecorators'. +==== esDecorators-emitDecoratorMetadata.ts (0 errors) ==== + declare let dec: any; + + @dec + class C { + constructor(x: number) {} + + @dec + method(x: number) {} + + @dec + set x(x: number) {} + + @dec + y: number; + + @dec + static method(x: number) {} + + @dec + static set x(x: number) {} + + @dec + static y: number; + } + + (@dec class C { + constructor(x: number) {} + + @dec + method(x: number) {} + + @dec + set x(x: number) {} + + @dec + y: number; + + @dec + static method(x: number) {} + + @dec + static set x(x: number) {} + + @dec + static y: number; + }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-emitDecoratorMetadata(target=es2015).errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-emitDecoratorMetadata(target=es2015).errors.txt.diff deleted file mode 100644 index 3f6e2ba72..000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-emitDecoratorMetadata(target=es2015).errors.txt.diff +++ /dev/null @@ -1,55 +0,0 @@ ---- old.esDecorators-emitDecoratorMetadata(target=es2015).errors.txt -+++ new.esDecorators-emitDecoratorMetadata(target=es2015).errors.txt -@@= skipped -0, +0 lines =@@ --error TS5052: Option 'emitDecoratorMetadata' cannot be specified without specifying option 'experimentalDecorators'. -- -- --!!! error TS5052: Option 'emitDecoratorMetadata' cannot be specified without specifying option 'experimentalDecorators'. --==== esDecorators-emitDecoratorMetadata.ts (0 errors) ==== -- declare let dec: any; -- -- @dec -- class C { -- constructor(x: number) {} -- -- @dec -- method(x: number) {} -- -- @dec -- set x(x: number) {} -- -- @dec -- y: number; -- -- @dec -- static method(x: number) {} -- -- @dec -- static set x(x: number) {} -- -- @dec -- static y: number; -- } -- -- (@dec class C { -- constructor(x: number) {} -- -- @dec -- method(x: number) {} -- -- @dec -- set x(x: number) {} -- -- @dec -- y: number; -- -- @dec -- static method(x: number) {} -- -- @dec -- static set x(x: number) {} -- -- @dec -- static y: number; -- }); -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-emitDecoratorMetadata(target=es2022).errors.txt b/testdata/baselines/reference/submodule/conformance/esDecorators-emitDecoratorMetadata(target=es2022).errors.txt new file mode 100644 index 000000000..34100c7c3 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/esDecorators-emitDecoratorMetadata(target=es2022).errors.txt @@ -0,0 +1,51 @@ +error TS5052: Option 'emitDecoratorMetadata' cannot be specified without specifying option 'experimentalDecorators'. + + +!!! error TS5052: Option 'emitDecoratorMetadata' cannot be specified without specifying option 'experimentalDecorators'. +==== esDecorators-emitDecoratorMetadata.ts (0 errors) ==== + declare let dec: any; + + @dec + class C { + constructor(x: number) {} + + @dec + method(x: number) {} + + @dec + set x(x: number) {} + + @dec + y: number; + + @dec + static method(x: number) {} + + @dec + static set x(x: number) {} + + @dec + static y: number; + } + + (@dec class C { + constructor(x: number) {} + + @dec + method(x: number) {} + + @dec + set x(x: number) {} + + @dec + y: number; + + @dec + static method(x: number) {} + + @dec + static set x(x: number) {} + + @dec + static y: number; + }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-emitDecoratorMetadata(target=es2022).errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-emitDecoratorMetadata(target=es2022).errors.txt.diff deleted file mode 100644 index cffcac15a..000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-emitDecoratorMetadata(target=es2022).errors.txt.diff +++ /dev/null @@ -1,55 +0,0 @@ ---- old.esDecorators-emitDecoratorMetadata(target=es2022).errors.txt -+++ new.esDecorators-emitDecoratorMetadata(target=es2022).errors.txt -@@= skipped -0, +0 lines =@@ --error TS5052: Option 'emitDecoratorMetadata' cannot be specified without specifying option 'experimentalDecorators'. -- -- --!!! error TS5052: Option 'emitDecoratorMetadata' cannot be specified without specifying option 'experimentalDecorators'. --==== esDecorators-emitDecoratorMetadata.ts (0 errors) ==== -- declare let dec: any; -- -- @dec -- class C { -- constructor(x: number) {} -- -- @dec -- method(x: number) {} -- -- @dec -- set x(x: number) {} -- -- @dec -- y: number; -- -- @dec -- static method(x: number) {} -- -- @dec -- static set x(x: number) {} -- -- @dec -- static y: number; -- } -- -- (@dec class C { -- constructor(x: number) {} -- -- @dec -- method(x: number) {} -- -- @dec -- set x(x: number) {} -- -- @dec -- y: number; -- -- @dec -- static method(x: number) {} -- -- @dec -- static set x(x: number) {} -- -- @dec -- static y: number; -- }); -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-emitDecoratorMetadata(target=es5).errors.txt b/testdata/baselines/reference/submodule/conformance/esDecorators-emitDecoratorMetadata(target=es5).errors.txt new file mode 100644 index 000000000..34100c7c3 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/esDecorators-emitDecoratorMetadata(target=es5).errors.txt @@ -0,0 +1,51 @@ +error TS5052: Option 'emitDecoratorMetadata' cannot be specified without specifying option 'experimentalDecorators'. + + +!!! error TS5052: Option 'emitDecoratorMetadata' cannot be specified without specifying option 'experimentalDecorators'. +==== esDecorators-emitDecoratorMetadata.ts (0 errors) ==== + declare let dec: any; + + @dec + class C { + constructor(x: number) {} + + @dec + method(x: number) {} + + @dec + set x(x: number) {} + + @dec + y: number; + + @dec + static method(x: number) {} + + @dec + static set x(x: number) {} + + @dec + static y: number; + } + + (@dec class C { + constructor(x: number) {} + + @dec + method(x: number) {} + + @dec + set x(x: number) {} + + @dec + y: number; + + @dec + static method(x: number) {} + + @dec + static set x(x: number) {} + + @dec + static y: number; + }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-emitDecoratorMetadata(target=es5).errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-emitDecoratorMetadata(target=es5).errors.txt.diff deleted file mode 100644 index 0f593ba1d..000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-emitDecoratorMetadata(target=es5).errors.txt.diff +++ /dev/null @@ -1,55 +0,0 @@ ---- old.esDecorators-emitDecoratorMetadata(target=es5).errors.txt -+++ new.esDecorators-emitDecoratorMetadata(target=es5).errors.txt -@@= skipped -0, +0 lines =@@ --error TS5052: Option 'emitDecoratorMetadata' cannot be specified without specifying option 'experimentalDecorators'. -- -- --!!! error TS5052: Option 'emitDecoratorMetadata' cannot be specified without specifying option 'experimentalDecorators'. --==== esDecorators-emitDecoratorMetadata.ts (0 errors) ==== -- declare let dec: any; -- -- @dec -- class C { -- constructor(x: number) {} -- -- @dec -- method(x: number) {} -- -- @dec -- set x(x: number) {} -- -- @dec -- y: number; -- -- @dec -- static method(x: number) {} -- -- @dec -- static set x(x: number) {} -- -- @dec -- static y: number; -- } -- -- (@dec class C { -- constructor(x: number) {} -- -- @dec -- method(x: number) {} -- -- @dec -- set x(x: number) {} -- -- @dec -- y: number; -- -- @dec -- static method(x: number) {} -- -- @dec -- static set x(x: number) {} -- -- @dec -- static y: number; -- }); -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-emitDecoratorMetadata(target=esnext).errors.txt b/testdata/baselines/reference/submodule/conformance/esDecorators-emitDecoratorMetadata(target=esnext).errors.txt new file mode 100644 index 000000000..34100c7c3 --- /dev/null +++ b/testdata/baselines/reference/submodule/conformance/esDecorators-emitDecoratorMetadata(target=esnext).errors.txt @@ -0,0 +1,51 @@ +error TS5052: Option 'emitDecoratorMetadata' cannot be specified without specifying option 'experimentalDecorators'. + + +!!! error TS5052: Option 'emitDecoratorMetadata' cannot be specified without specifying option 'experimentalDecorators'. +==== esDecorators-emitDecoratorMetadata.ts (0 errors) ==== + declare let dec: any; + + @dec + class C { + constructor(x: number) {} + + @dec + method(x: number) {} + + @dec + set x(x: number) {} + + @dec + y: number; + + @dec + static method(x: number) {} + + @dec + static set x(x: number) {} + + @dec + static y: number; + } + + (@dec class C { + constructor(x: number) {} + + @dec + method(x: number) {} + + @dec + set x(x: number) {} + + @dec + y: number; + + @dec + static method(x: number) {} + + @dec + static set x(x: number) {} + + @dec + static y: number; + }); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-emitDecoratorMetadata(target=esnext).errors.txt.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-emitDecoratorMetadata(target=esnext).errors.txt.diff deleted file mode 100644 index fa218a981..000000000 --- a/testdata/baselines/reference/submodule/conformance/esDecorators-emitDecoratorMetadata(target=esnext).errors.txt.diff +++ /dev/null @@ -1,55 +0,0 @@ ---- old.esDecorators-emitDecoratorMetadata(target=esnext).errors.txt -+++ new.esDecorators-emitDecoratorMetadata(target=esnext).errors.txt -@@= skipped -0, +0 lines =@@ --error TS5052: Option 'emitDecoratorMetadata' cannot be specified without specifying option 'experimentalDecorators'. -- -- --!!! error TS5052: Option 'emitDecoratorMetadata' cannot be specified without specifying option 'experimentalDecorators'. --==== esDecorators-emitDecoratorMetadata.ts (0 errors) ==== -- declare let dec: any; -- -- @dec -- class C { -- constructor(x: number) {} -- -- @dec -- method(x: number) {} -- -- @dec -- set x(x: number) {} -- -- @dec -- y: number; -- -- @dec -- static method(x: number) {} -- -- @dec -- static set x(x: number) {} -- -- @dec -- static y: number; -- } -- -- (@dec class C { -- constructor(x: number) {} -- -- @dec -- method(x: number) {} -- -- @dec -- set x(x: number) {} -- -- @dec -- y: number; -- -- @dec -- static method(x: number) {} -- -- @dec -- static set x(x: number) {} -- -- @dec -- static y: number; -- }); -+ \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target.js b/testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target.js index b02dc057d..dcd6f620d 100644 --- a/testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target.js +++ b/testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target.js @@ -22,18 +22,27 @@ export {E}; //// [esnextmodulekindWithES5Target.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; export class C { static s = 0; p = 1; method() { } } export { C as C2 }; -@foo -export class D { +let D = class D { static s = 0; p = 1; method() { } -} +}; +D = __decorate([ + foo +], D); +export { D }; export { D as D2 }; class E { } diff --git a/testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target.js.diff b/testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target.js.diff index f1ce292fd..86fefcf24 100644 --- a/testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target.js.diff +++ b/testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target.js.diff @@ -1,15 +1,8 @@ --- old.esnextmodulekindWithES5Target.js +++ new.esnextmodulekindWithES5Target.js -@@= skipped -21, +21 lines =@@ - - - //// [esnextmodulekindWithES5Target.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; +@@= skipped -28, +28 lines =@@ + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; export class C { - constructor() { - this.p = 1; @@ -20,22 +13,15 @@ } -C.s = 0; export { C as C2 }; --let D = class D { + let D = class D { - constructor() { - this.p = 1; - } -+@foo -+export class D { + static s = 0; + p = 1; method() { } --}; + }; -D.s = 0; --D = __decorate([ -- foo --], D); --export { D }; -+} - export { D as D2 }; - class E { - } \ No newline at end of file + D = __decorate([ + foo + ], D); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target11.js b/testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target11.js index 75afe8b80..4c6cba6c0 100644 --- a/testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target11.js +++ b/testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target11.js @@ -11,10 +11,20 @@ export default class C { } //// [esnextmodulekindWithES5Target11.js] -@foo -export default class C { - static x() { return C.y; } +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var C_1; +let C = C_1 = class C { + static x() { return C_1.y; } static y = 1; p = 1; method() { } -} +}; +C = C_1 = __decorate([ + foo +], C); +export default C; diff --git a/testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target11.js.diff b/testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target11.js.diff index 5aefda0a7..1efe4409b 100644 --- a/testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target11.js.diff +++ b/testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target11.js.diff @@ -1,31 +1,18 @@ --- old.esnextmodulekindWithES5Target11.js +++ new.esnextmodulekindWithES5Target11.js -@@= skipped -10, +10 lines =@@ - } - - //// [esnextmodulekindWithES5Target11.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var C_1; --let C = C_1 = class C { +@@= skipped -18, +18 lines =@@ + }; + var C_1; + let C = C_1 = class C { - constructor() { - this.p = 1; - } -- static x() { return C_1.y; } -+@foo -+export default class C { -+ static x() { return C.y; } + static x() { return C_1.y; } + static y = 1; + p = 1; method() { } --}; + }; -C.y = 1; --C = C_1 = __decorate([ -- foo --], C); --export default C; -+} \ No newline at end of file + C = C_1 = __decorate([ + foo + ], C); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target3.js b/testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target3.js index d401c6c7c..f92b42f62 100644 --- a/testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target3.js +++ b/testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target3.js @@ -10,9 +10,18 @@ export default class D { } //// [esnextmodulekindWithES5Target3.js] -@foo -export default class D { +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let D = class D { static s = 0; p = 1; method() { } -} +}; +D = __decorate([ + foo +], D); +export default D; diff --git a/testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target3.js.diff b/testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target3.js.diff index cd02568cd..6698b4d82 100644 --- a/testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target3.js.diff +++ b/testdata/baselines/reference/submodule/conformance/esnextmodulekindWithES5Target3.js.diff @@ -1,28 +1,17 @@ --- old.esnextmodulekindWithES5Target3.js +++ new.esnextmodulekindWithES5Target3.js -@@= skipped -9, +9 lines =@@ - } - - //// [esnextmodulekindWithES5Target3.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --let D = class D { +@@= skipped -16, +16 lines =@@ + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + let D = class D { - constructor() { - this.p = 1; - } -+@foo -+export default class D { + static s = 0; + p = 1; method() { } --}; + }; -D.s = 0; --D = __decorate([ -- foo --], D); --export default D; -+} \ No newline at end of file + D = __decorate([ + foo + ], D); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/generatorTypeCheck39.js b/testdata/baselines/reference/submodule/conformance/generatorTypeCheck39.js index 0c3b240cc..98436c99e 100644 --- a/testdata/baselines/reference/submodule/conformance/generatorTypeCheck39.js +++ b/testdata/baselines/reference/submodule/conformance/generatorTypeCheck39.js @@ -12,12 +12,20 @@ function* g() { } //// [generatorTypeCheck39.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; function decorator(x) { return y => { }; } function* g() { - @decorator(yield 0) - class C { + let C = class C { x = yield 0; - } + }; + C = __decorate([ + decorator(yield 0) + ], C); } diff --git a/testdata/baselines/reference/submodule/conformance/generatorTypeCheck39.js.diff b/testdata/baselines/reference/submodule/conformance/generatorTypeCheck39.js.diff index 9c233498c..839269b4a 100644 --- a/testdata/baselines/reference/submodule/conformance/generatorTypeCheck39.js.diff +++ b/testdata/baselines/reference/submodule/conformance/generatorTypeCheck39.js.diff @@ -1,29 +1,13 @@ --- old.generatorTypeCheck39.js +++ new.generatorTypeCheck39.js -@@= skipped -11, +11 lines =@@ - } - - //// [generatorTypeCheck39.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - function decorator(x) { - return y => { }; +@@= skipped -22, +22 lines =@@ } function* g() { -- let C = class C { + let C = class C { - constructor() { - this.x = yield 0; - } -- }; -- C = __decorate([ -- decorator(yield 0) -- ], C); -+ @decorator(yield 0) -+ class C { + x = yield 0; -+ } - } \ No newline at end of file + }; + C = __decorate([ + decorator(yield 0) \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/generatorTypeCheck59.js b/testdata/baselines/reference/submodule/conformance/generatorTypeCheck59.js index 6b6fa4cb5..e93345f62 100644 --- a/testdata/baselines/reference/submodule/conformance/generatorTypeCheck59.js +++ b/testdata/baselines/reference/submodule/conformance/generatorTypeCheck59.js @@ -9,10 +9,18 @@ function* g() { } //// [generatorTypeCheck59.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; function* g() { class C { - @(yield "") m() { } } + __decorate([ + (yield "") + ], C.prototype, "m", null); ; } diff --git a/testdata/baselines/reference/submodule/conformance/generatorTypeCheck59.js.diff b/testdata/baselines/reference/submodule/conformance/generatorTypeCheck59.js.diff deleted file mode 100644 index 1b719d6d6..000000000 --- a/testdata/baselines/reference/submodule/conformance/generatorTypeCheck59.js.diff +++ /dev/null @@ -1,22 +0,0 @@ ---- old.generatorTypeCheck59.js -+++ new.generatorTypeCheck59.js -@@= skipped -8, +8 lines =@@ - } - - //// [generatorTypeCheck59.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - function* g() { - class C { -+ @(yield "") - m() { } - } -- __decorate([ -- (yield "") -- ], C.prototype, "m", null); - ; - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/generatorTypeCheck61.js b/testdata/baselines/reference/submodule/conformance/generatorTypeCheck61.js index bfa4a57d6..698777d67 100644 --- a/testdata/baselines/reference/submodule/conformance/generatorTypeCheck61.js +++ b/testdata/baselines/reference/submodule/conformance/generatorTypeCheck61.js @@ -7,9 +7,17 @@ function * g() { } //// [generatorTypeCheck61.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; function* g() { - @(yield 0) - class C { - } + let C = class C { + }; + C = __decorate([ + (yield 0) + ], C); ; } diff --git a/testdata/baselines/reference/submodule/conformance/generatorTypeCheck61.js.diff b/testdata/baselines/reference/submodule/conformance/generatorTypeCheck61.js.diff deleted file mode 100644 index cd76dda92..000000000 --- a/testdata/baselines/reference/submodule/conformance/generatorTypeCheck61.js.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- old.generatorTypeCheck61.js -+++ new.generatorTypeCheck61.js -@@= skipped -6, +6 lines =@@ - } - - //// [generatorTypeCheck61.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - function* g() { -- let C = class C { -- }; -- C = __decorate([ -- (yield 0) -- ], C); -+ @(yield 0) -+ class C { -+ } - ; - } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/legacyDecorators-contextualTypes.js b/testdata/baselines/reference/submodule/conformance/legacyDecorators-contextualTypes.js index 130c52cb0..da2bf590c 100644 --- a/testdata/baselines/reference/submodule/conformance/legacyDecorators-contextualTypes.js +++ b/testdata/baselines/reference/submodule/conformance/legacyDecorators-contextualTypes.js @@ -36,27 +36,61 @@ class C { } //// [legacyDecorators-contextualTypes.js] -@((t) => { }) -class C { +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __param = (this && this.__param) || function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } +}; +let C = class C { constructor(p) { } - @((t, k, d) => { }) static f() { } - @((t, k, d) => { }) static get x() { return 1; } static set x(value) { } - @((t, k, d) => { }) static accessor y = 1; - @((t, k) => { }) static z = 1; - @((t, k, d) => { }) g() { } - @((t, k, d) => { }) get a() { return 1; } set a(value) { } - @((t, k, d) => { }) accessor b = 1; - @((t, k) => { }) c = 1; static h(p) { } h(p) { } -} +}; +__decorate([ + ((t, k, d) => { }) +], C.prototype, "g", null); +__decorate([ + ((t, k, d) => { }) +], C.prototype, "a", null); +__decorate([ + ((t, k, d) => { }) +], C.prototype, "b", null); +__decorate([ + ((t, k) => { }) +], C.prototype, "c", void 0); +__decorate([ + __param(0, ((t, k, i) => { })) +], C.prototype, "h", null); +__decorate([ + ((t, k, d) => { }) +], C, "f", null); +__decorate([ + ((t, k, d) => { }) +], C, "x", null); +__decorate([ + ((t, k, d) => { }) +], C, "y", null); +__decorate([ + ((t, k) => { }) +], C, "z", void 0); +__decorate([ + __param(0, ((t, k, i) => { })) +], C, "h", null); +C = __decorate([ + ((t) => { }), + __param(0, ((t, k, i) => { })) +], C); diff --git a/testdata/baselines/reference/submodule/conformance/legacyDecorators-contextualTypes.js.diff b/testdata/baselines/reference/submodule/conformance/legacyDecorators-contextualTypes.js.diff deleted file mode 100644 index 62e9f510d..000000000 --- a/testdata/baselines/reference/submodule/conformance/legacyDecorators-contextualTypes.js.diff +++ /dev/null @@ -1,75 +0,0 @@ ---- old.legacyDecorators-contextualTypes.js -+++ new.legacyDecorators-contextualTypes.js -@@= skipped -35, +35 lines =@@ - } - - //// [legacyDecorators-contextualTypes.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __param = (this && this.__param) || function (paramIndex, decorator) { -- return function (target, key) { decorator(target, key, paramIndex); } --}; --let C = class C { -+@((t) => { }) -+class C { - constructor(p) { } -+ @((t, k, d) => { }) - static f() { } -+ @((t, k, d) => { }) - static get x() { return 1; } - static set x(value) { } -+ @((t, k, d) => { }) - static accessor y = 1; -+ @((t, k) => { }) - static z = 1; -+ @((t, k, d) => { }) - g() { } -+ @((t, k, d) => { }) - get a() { return 1; } - set a(value) { } -+ @((t, k, d) => { }) - accessor b = 1; -+ @((t, k) => { }) - c = 1; - static h(p) { } - h(p) { } --}; --__decorate([ -- ((t, k, d) => { }) --], C.prototype, "g", null); --__decorate([ -- ((t, k, d) => { }) --], C.prototype, "a", null); --__decorate([ -- ((t, k, d) => { }) --], C.prototype, "b", null); --__decorate([ -- ((t, k) => { }) --], C.prototype, "c", void 0); --__decorate([ -- __param(0, ((t, k, i) => { })) --], C.prototype, "h", null); --__decorate([ -- ((t, k, d) => { }) --], C, "f", null); --__decorate([ -- ((t, k, d) => { }) --], C, "x", null); --__decorate([ -- ((t, k, d) => { }) --], C, "y", null); --__decorate([ -- ((t, k) => { }) --], C, "z", void 0); --__decorate([ -- __param(0, ((t, k, i) => { })) --], C, "h", null); --C = __decorate([ -- ((t) => { }), -- __param(0, ((t, k, i) => { })) --], C); -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/missingDecoratorType.js b/testdata/baselines/reference/submodule/conformance/missingDecoratorType.js index b223aa9fc..4987fdd54 100644 --- a/testdata/baselines/reference/submodule/conformance/missingDecoratorType.js +++ b/testdata/baselines/reference/submodule/conformance/missingDecoratorType.js @@ -22,7 +22,15 @@ class C { //// [a.js] //// [b.js] +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; class C { - @dec method() { } } +__decorate([ + dec +], C.prototype, "method", null); diff --git a/testdata/baselines/reference/submodule/conformance/missingDecoratorType.js.diff b/testdata/baselines/reference/submodule/conformance/missingDecoratorType.js.diff deleted file mode 100644 index ecf9fcc93..000000000 --- a/testdata/baselines/reference/submodule/conformance/missingDecoratorType.js.diff +++ /dev/null @@ -1,19 +0,0 @@ ---- old.missingDecoratorType.js -+++ new.missingDecoratorType.js -@@= skipped -21, +21 lines =@@ - - //// [a.js] - //// [b.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; - class C { -+ @dec - method() { } - } --__decorate([ -- dec --], C.prototype, "method", null); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/optionalChainingInTypeAssertions(target=es2015).js b/testdata/baselines/reference/submodule/conformance/optionalChainingInTypeAssertions(target=es2015).js index 5fff69287..42d057834 100644 --- a/testdata/baselines/reference/submodule/conformance/optionalChainingInTypeAssertions(target=es2015).js +++ b/testdata/baselines/reference/submodule/conformance/optionalChainingInTypeAssertions(target=es2015).js @@ -30,7 +30,7 @@ const foo = new Foo(); /*a1*/ (_c = foo.m /*a3*/ /*a4*/) === null || _c === void 0 ? void 0 : _c.call(/*a2*/ foo); /*b1*/ (_d = foo.m /*b3*/ /*b4*/) === null || _d === void 0 ? void 0 : _d.call(foo); // https://github.com/microsoft/TypeScript/issues/50148 -((foo === null || foo === void 0 ? void 0 : foo.m)).length; -((foo === null || foo === void 0 ? void 0 : foo.m)).length; -((foo === null || foo === void 0 ? void 0 : foo["m"])).length; -((foo === null || foo === void 0 ? void 0 : foo["m"])).length; +(foo === null || foo === void 0 ? void 0 : foo.m).length; +(foo === null || foo === void 0 ? void 0 : foo.m).length; +(foo === null || foo === void 0 ? void 0 : foo["m"]).length; +(foo === null || foo === void 0 ? void 0 : foo["m"]).length; diff --git a/testdata/baselines/reference/submodule/conformance/optionalChainingInTypeAssertions(target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/optionalChainingInTypeAssertions(target=es2015).js.diff index 0498705a1..05704e29a 100644 --- a/testdata/baselines/reference/submodule/conformance/optionalChainingInTypeAssertions(target=es2015).js.diff +++ b/testdata/baselines/reference/submodule/conformance/optionalChainingInTypeAssertions(target=es2015).js.diff @@ -9,11 +9,5 @@ +/*a1*/ (_c = foo.m /*a3*/ /*a4*/) === null || _c === void 0 ? void 0 : _c.call(/*a2*/ foo); +/*b1*/ (_d = foo.m /*b3*/ /*b4*/) === null || _d === void 0 ? void 0 : _d.call(foo); // https://github.com/microsoft/TypeScript/issues/50148 --(foo === null || foo === void 0 ? void 0 : foo.m).length; --(foo === null || foo === void 0 ? void 0 : foo.m).length; --(foo === null || foo === void 0 ? void 0 : foo["m"]).length; --(foo === null || foo === void 0 ? void 0 : foo["m"]).length; -+((foo === null || foo === void 0 ? void 0 : foo.m)).length; -+((foo === null || foo === void 0 ? void 0 : foo.m)).length; -+((foo === null || foo === void 0 ? void 0 : foo["m"])).length; -+((foo === null || foo === void 0 ? void 0 : foo["m"])).length; \ No newline at end of file + (foo === null || foo === void 0 ? void 0 : foo.m).length; + (foo === null || foo === void 0 ? void 0 : foo.m).length; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/optionalChainingInTypeAssertions(target=esnext).js b/testdata/baselines/reference/submodule/conformance/optionalChainingInTypeAssertions(target=esnext).js index 8f59b77d3..ca9c6d1ec 100644 --- a/testdata/baselines/reference/submodule/conformance/optionalChainingInTypeAssertions(target=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/optionalChainingInTypeAssertions(target=esnext).js @@ -29,7 +29,7 @@ foo.m?.(); /*a1*/ foo.m /*a3*/ /*a4*/?.(); /*b1*/ foo.m /*b3*/ /*b4*/?.(); // https://github.com/microsoft/TypeScript/issues/50148 -((foo?.m)).length; -((foo?.m)).length; -((foo?.["m"])).length; -((foo?.["m"])).length; +(foo?.m).length; +(foo?.m).length; +(foo?.["m"]).length; +(foo?.["m"]).length; diff --git a/testdata/baselines/reference/submodule/conformance/optionalChainingInTypeAssertions(target=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/optionalChainingInTypeAssertions(target=esnext).js.diff index f0519f907..a42a67de0 100644 --- a/testdata/baselines/reference/submodule/conformance/optionalChainingInTypeAssertions(target=esnext).js.diff +++ b/testdata/baselines/reference/submodule/conformance/optionalChainingInTypeAssertions(target=esnext).js.diff @@ -9,11 +9,5 @@ +/*a1*/ foo.m /*a3*/ /*a4*/?.(); +/*b1*/ foo.m /*b3*/ /*b4*/?.(); // https://github.com/microsoft/TypeScript/issues/50148 --(foo?.m).length; --(foo?.m).length; --(foo?.["m"]).length; --(foo?.["m"]).length; -+((foo?.m)).length; -+((foo?.m)).length; -+((foo?.["m"])).length; -+((foo?.["m"])).length; \ No newline at end of file + (foo?.m).length; + (foo?.m).length; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/optionalProperties02.js b/testdata/baselines/reference/submodule/conformance/optionalProperties02.js index 62c996db9..a559caf8e 100644 --- a/testdata/baselines/reference/submodule/conformance/optionalProperties02.js +++ b/testdata/baselines/reference/submodule/conformance/optionalProperties02.js @@ -9,7 +9,7 @@ interface Foo { { a: undefined }; //// [optionalProperties02.js] -(({ a: undefined })); +({ a: undefined }); //// [optionalProperties02.d.ts] diff --git a/testdata/baselines/reference/submodule/conformance/optionalProperties02.js.diff b/testdata/baselines/reference/submodule/conformance/optionalProperties02.js.diff deleted file mode 100644 index 046eed3e1..000000000 --- a/testdata/baselines/reference/submodule/conformance/optionalProperties02.js.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- old.optionalProperties02.js -+++ new.optionalProperties02.js -@@= skipped -8, +8 lines =@@ - { a: undefined }; - - //// [optionalProperties02.js] --({ a: undefined }); -+(({ a: undefined })); - - - //// [optionalProperties02.d.ts] \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.binary.js b/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.binary.js index 6b432c864..ed9bfeb23 100644 --- a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.binary.js +++ b/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.binary.js @@ -8,7 +8,7 @@ //// [parser.numericSeparators.binary.js] -0b00_11; -0B0_1; -0b1100_0011; -0B0_11_0101; +3; +1; +195; +53; diff --git a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.binary.js.diff b/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.binary.js.diff deleted file mode 100644 index 74788c841..000000000 --- a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.binary.js.diff +++ /dev/null @@ -1,14 +0,0 @@ ---- old.parser.numericSeparators.binary.js -+++ new.parser.numericSeparators.binary.js -@@= skipped -7, +7 lines =@@ - - - //// [parser.numericSeparators.binary.js] --3; --1; --195; --53; -+0b00_11; -+0B0_1; -+0b1100_0011; -+0B0_11_0101; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.binaryNegative.js b/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.binaryNegative.js index bf04ef60b..6056e3541 100644 --- a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.binaryNegative.js +++ b/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.binaryNegative.js @@ -20,15 +20,15 @@ //// [1.js] -0b00_; +0; //// [2.js] -0b_110; +6; //// [3.js] 0; B0101; //// [4.js] -0b01__11; +7; //// [5.js] -0B0110_0110__; +102; //// [6.js] -0b___0111010_0101_1; +1867; diff --git a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.binaryNegative.js.diff b/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.binaryNegative.js.diff deleted file mode 100644 index f357b911c..000000000 --- a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.binaryNegative.js.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- old.parser.numericSeparators.binaryNegative.js -+++ new.parser.numericSeparators.binaryNegative.js -@@= skipped -19, +19 lines =@@ - - - //// [1.js] --0; -+0b00_; - //// [2.js] --6; -+0b_110; - //// [3.js] - 0; - B0101; - //// [4.js] --7; -+0b01__11; - //// [5.js] --102; -+0B0110_0110__; - //// [6.js] --1867; -+0b___0111010_0101_1; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.decimal(target=es2020).js b/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.decimal(target=es2020).js index 969341f4d..ad02bc7c6 100644 --- a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.decimal(target=es2020).js +++ b/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.decimal(target=es2020).js @@ -18,17 +18,17 @@ //// [parser.numericSeparators.decimal.js] -1_000_000_000; -1.1_00_01; -1e1_0; -1e+1_0; -1e-1_0; -1.1e10_0; -1.1e+10_0; -1.1e-10_0; -12_34_56; -1_22_333; -1_2.3_4; -1_2.3_4e5_6; -1_2.3_4e+5_6; -1_2.3_4e-5_6; +1000000000; +1.10001; +10000000000; +10000000000; +1e-10; +1.1e+100; +1.1e+100; +1.1e-100; +123456; +122333; +12.34; +1.234e+57; +1.234e+57; +1.234e-55; diff --git a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.decimal(target=es2020).js.diff b/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.decimal(target=es2020).js.diff deleted file mode 100644 index d3be241eb..000000000 --- a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.decimal(target=es2020).js.diff +++ /dev/null @@ -1,34 +0,0 @@ ---- old.parser.numericSeparators.decimal(target=es2020).js -+++ new.parser.numericSeparators.decimal(target=es2020).js -@@= skipped -17, +17 lines =@@ - - - //// [parser.numericSeparators.decimal.js] --1000000000; --1.10001; --10000000000; --10000000000; --1e-10; --1.1e+100; --1.1e+100; --1.1e-100; --123456; --122333; --12.34; --1.234e+57; --1.234e+57; --1.234e-55; -+1_000_000_000; -+1.1_00_01; -+1e1_0; -+1e+1_0; -+1e-1_0; -+1.1e10_0; -+1.1e+10_0; -+1.1e-10_0; -+12_34_56; -+1_22_333; -+1_2.3_4; -+1_2.3_4e5_6; -+1_2.3_4e+5_6; -+1_2.3_4e-5_6; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.decimal(target=es5).js b/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.decimal(target=es5).js index 969341f4d..ad02bc7c6 100644 --- a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.decimal(target=es5).js +++ b/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.decimal(target=es5).js @@ -18,17 +18,17 @@ //// [parser.numericSeparators.decimal.js] -1_000_000_000; -1.1_00_01; -1e1_0; -1e+1_0; -1e-1_0; -1.1e10_0; -1.1e+10_0; -1.1e-10_0; -12_34_56; -1_22_333; -1_2.3_4; -1_2.3_4e5_6; -1_2.3_4e+5_6; -1_2.3_4e-5_6; +1000000000; +1.10001; +10000000000; +10000000000; +1e-10; +1.1e+100; +1.1e+100; +1.1e-100; +123456; +122333; +12.34; +1.234e+57; +1.234e+57; +1.234e-55; diff --git a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.decimal(target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.decimal(target=es5).js.diff deleted file mode 100644 index 6539db4ab..000000000 --- a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.decimal(target=es5).js.diff +++ /dev/null @@ -1,34 +0,0 @@ ---- old.parser.numericSeparators.decimal(target=es5).js -+++ new.parser.numericSeparators.decimal(target=es5).js -@@= skipped -17, +17 lines =@@ - - - //// [parser.numericSeparators.decimal.js] --1000000000; --1.10001; --10000000000; --10000000000; --1e-10; --1.1e+100; --1.1e+100; --1.1e-100; --123456; --122333; --12.34; --1.234e+57; --1.234e+57; --1.234e-55; -+1_000_000_000; -+1.1_00_01; -+1e1_0; -+1e+1_0; -+1e-1_0; -+1.1e10_0; -+1.1e+10_0; -+1.1e-10_0; -+12_34_56; -+1_22_333; -+1_2.3_4; -+1_2.3_4e5_6; -+1_2.3_4e+5_6; -+1_2.3_4e-5_6; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.hex.js b/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.hex.js index bb245d3c5..fa04dd6c8 100644 --- a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.hex.js +++ b/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.hex.js @@ -8,7 +8,7 @@ //// [parser.numericSeparators.hex.js] -0x00_11; -0X0_1; -0x1100_0011; -0X0_11_0101; +17; +1; +285212689; +1114369; diff --git a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.hex.js.diff b/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.hex.js.diff deleted file mode 100644 index cc4151456..000000000 --- a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.hex.js.diff +++ /dev/null @@ -1,14 +0,0 @@ ---- old.parser.numericSeparators.hex.js -+++ new.parser.numericSeparators.hex.js -@@= skipped -7, +7 lines =@@ - - - //// [parser.numericSeparators.hex.js] --17; --1; --285212689; --1114369; -+0x00_11; -+0X0_1; -+0x1100_0011; -+0X0_11_0101; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.hexNegative.js b/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.hexNegative.js index ec14065c2..450b1ac40 100644 --- a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.hexNegative.js +++ b/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.hexNegative.js @@ -20,15 +20,15 @@ //// [1.js] -0x00_; +0; //// [2.js] -0x_110; +272; //// [3.js] 0; X0101; //// [4.js] -0x01__11; +273; //// [5.js] -0X0110_0110__; +17826064; //// [6.js] -0x___0111010_0101_1; +1172542853137; diff --git a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.hexNegative.js.diff b/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.hexNegative.js.diff deleted file mode 100644 index d714ea83b..000000000 --- a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.hexNegative.js.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- old.parser.numericSeparators.hexNegative.js -+++ new.parser.numericSeparators.hexNegative.js -@@= skipped -19, +19 lines =@@ - - - //// [1.js] --0; -+0x00_; - //// [2.js] --272; -+0x_110; - //// [3.js] - 0; - X0101; - //// [4.js] --273; -+0x01__11; - //// [5.js] --17826064; -+0X0110_0110__; - //// [6.js] --1172542853137; -+0x___0111010_0101_1; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.octal.js b/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.octal.js index aa7284a98..09df4d3a4 100644 --- a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.octal.js +++ b/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.octal.js @@ -8,7 +8,7 @@ //// [parser.numericSeparators.octal.js] -0o00_11; -0O0_1; -0o1100_0011; -0O0_11_0101; +9; +1; +2359305; +36929; diff --git a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.octal.js.diff b/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.octal.js.diff deleted file mode 100644 index 91bc03bbd..000000000 --- a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.octal.js.diff +++ /dev/null @@ -1,14 +0,0 @@ ---- old.parser.numericSeparators.octal.js -+++ new.parser.numericSeparators.octal.js -@@= skipped -7, +7 lines =@@ - - - //// [parser.numericSeparators.octal.js] --9; --1; --2359305; --36929; -+0o00_11; -+0O0_1; -+0o1100_0011; -+0O0_11_0101; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.octalNegative.js b/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.octalNegative.js index 00c1553da..34c729aee 100644 --- a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.octalNegative.js +++ b/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.octalNegative.js @@ -20,15 +20,15 @@ //// [1.js] -0o00_; +0; //// [2.js] -0o_110; +72; //// [3.js] 0; O0101; //// [4.js] -0o01__11; +73; //// [5.js] -0O0110_0110__; +294984; //// [6.js] -0o___0111010_0101_1; +1224999433; diff --git a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.octalNegative.js.diff b/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.octalNegative.js.diff deleted file mode 100644 index 5cbefc8be..000000000 --- a/testdata/baselines/reference/submodule/conformance/parser.numericSeparators.octalNegative.js.diff +++ /dev/null @@ -1,23 +0,0 @@ ---- old.parser.numericSeparators.octalNegative.js -+++ new.parser.numericSeparators.octalNegative.js -@@= skipped -19, +19 lines =@@ - - - //// [1.js] --0; -+0o00_; - //// [2.js] --72; -+0o_110; - //// [3.js] - 0; - O0101; - //// [4.js] --73; -+0o01__11; - //// [5.js] --294984; -+0O0110_0110__; - //// [6.js] --1224999433; -+0o___0111010_0101_1; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesAndDecorators.js b/testdata/baselines/reference/submodule/conformance/privateNamesAndDecorators.js index a4b71d545..dceff5b2a 100644 --- a/testdata/baselines/reference/submodule/conformance/privateNamesAndDecorators.js +++ b/testdata/baselines/reference/submodule/conformance/privateNamesAndDecorators.js @@ -13,8 +13,6 @@ class A { //// [privateNamesAndDecorators.js] class A { - @dec // Error #foo = 1; - @dec // Error #bar() { } } diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesAndDecorators.js.diff b/testdata/baselines/reference/submodule/conformance/privateNamesAndDecorators.js.diff index 28d66e630..3832bb448 100644 --- a/testdata/baselines/reference/submodule/conformance/privateNamesAndDecorators.js.diff +++ b/testdata/baselines/reference/submodule/conformance/privateNamesAndDecorators.js.diff @@ -10,9 +10,7 @@ - _A_instances.add(this); - _A_foo.set(this, 1); - } -+ @dec // Error + #foo = 1; -+ @dec // Error + #bar() { } } -_A_foo = new WeakMap(), _A_instances = new WeakSet(), _A_bar = function _A_bar() { }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/propertyAccessNumericLiterals.js b/testdata/baselines/reference/submodule/conformance/propertyAccessNumericLiterals.js index abdb94504..6e832dccb 100644 --- a/testdata/baselines/reference/submodule/conformance/propertyAccessNumericLiterals.js +++ b/testdata/baselines/reference/submodule/conformance/propertyAccessNumericLiterals.js @@ -28,4 +28,4 @@ 880000..toString(); 880000..toString(); 88e4.toString(); -8_8e4..toString(); +880000..toString(); diff --git a/testdata/baselines/reference/submodule/conformance/propertyAccessNumericLiterals.js.diff b/testdata/baselines/reference/submodule/conformance/propertyAccessNumericLiterals.js.diff deleted file mode 100644 index a221d85e6..000000000 --- a/testdata/baselines/reference/submodule/conformance/propertyAccessNumericLiterals.js.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- old.propertyAccessNumericLiterals.js -+++ new.propertyAccessNumericLiterals.js -@@= skipped -27, +27 lines =@@ - 880000..toString(); - 880000..toString(); - 88e4.toString(); --880000..toString(); -+8_8e4..toString(); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/readonlyArraysAndTuples2.js b/testdata/baselines/reference/submodule/conformance/readonlyArraysAndTuples2.js index a5139717d..6ed251579 100644 --- a/testdata/baselines/reference/submodule/conformance/readonlyArraysAndTuples2.js +++ b/testdata/baselines/reference/submodule/conformance/readonlyArraysAndTuples2.js @@ -23,12 +23,27 @@ class A { //// [readonlyArraysAndTuples2.js] "use strict"; +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +var __metadata = (this && this.__metadata) || function (k, v) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); +}; class A { - @someDec j = []; - @someDec k = ['foo', 42]; } +__decorate([ + someDec, + __metadata("design:type", Array) +], A.prototype, "j", void 0); +__decorate([ + someDec, + __metadata("design:type", Array) +], A.prototype, "k", void 0); //// [readonlyArraysAndTuples2.d.ts] diff --git a/testdata/baselines/reference/submodule/conformance/readonlyArraysAndTuples2.js.diff b/testdata/baselines/reference/submodule/conformance/readonlyArraysAndTuples2.js.diff index e8df89c12..7a1fa756f 100644 --- a/testdata/baselines/reference/submodule/conformance/readonlyArraysAndTuples2.js.diff +++ b/testdata/baselines/reference/submodule/conformance/readonlyArraysAndTuples2.js.diff @@ -1,36 +1,15 @@ --- old.readonlyArraysAndTuples2.js +++ new.readonlyArraysAndTuples2.js -@@= skipped -22, +22 lines =@@ - - //// [readonlyArraysAndTuples2.js] - "use strict"; --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --var __metadata = (this && this.__metadata) || function (k, v) { -- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); --}; +@@= skipped -32, +32 lines =@@ + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); + }; class A { - constructor() { - this.j = []; - this.k = ['foo', 42]; - } -+ @someDec + j = []; -+ @someDec + k = ['foo', 42]; } --__decorate([ -- someDec, -- __metadata("design:type", Array) --], A.prototype, "j", void 0); --__decorate([ -- someDec, -- __metadata("design:type", Array) --], A.prototype, "k", void 0); - - - //// [readonlyArraysAndTuples2.d.ts] \ No newline at end of file + __decorate([ + someDec, \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=es2022,target=es2015).js b/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=es2022,target=es2015).js index 7aaa60ffa..1a43f1e2c 100644 --- a/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=es2022,target=es2015).js +++ b/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=es2022,target=es2015).js @@ -125,9 +125,11 @@ class C3 { }); // property access name should be ok C1.prototype.await; -@(await dec) -class C { -} +let C = class C { +}; +C = __decorate([ + (await dec) +], C); // newlines // await in throw throw await 1; diff --git a/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=es2022,target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=es2022,target=es2015).js.diff index 1fed3ce38..b70213494 100644 --- a/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=es2022,target=es2015).js.diff +++ b/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=es2022,target=es2015).js.diff @@ -39,19 +39,4 @@ + await = 1; } ({ - await() { } -@@= skipped -16, +14 lines =@@ - }); - // property access name should be ok - C1.prototype.await; --let C = class C { --}; --C = __decorate([ -- (await dec) --], C); -+@(await dec) -+class C { -+} - // newlines - // await in throw - throw await 1; \ No newline at end of file + await() { } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=es2022,target=es2017).js b/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=es2022,target=es2017).js index 7aaa60ffa..1a43f1e2c 100644 --- a/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=es2022,target=es2017).js +++ b/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=es2022,target=es2017).js @@ -125,9 +125,11 @@ class C3 { }); // property access name should be ok C1.prototype.await; -@(await dec) -class C { -} +let C = class C { +}; +C = __decorate([ + (await dec) +], C); // newlines // await in throw throw await 1; diff --git a/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=es2022,target=es2017).js.diff b/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=es2022,target=es2017).js.diff index b014ac391..bf5390f0b 100644 --- a/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=es2022,target=es2017).js.diff +++ b/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=es2022,target=es2017).js.diff @@ -39,19 +39,4 @@ + await = 1; } ({ - await() { } -@@= skipped -16, +14 lines =@@ - }); - // property access name should be ok - C1.prototype.await; --let C = class C { --}; --C = __decorate([ -- (await dec) --], C); -+@(await dec) -+class C { -+} - // newlines - // await in throw - throw await 1; \ No newline at end of file + await() { } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=esnext,target=es2015).js b/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=esnext,target=es2015).js index 7aaa60ffa..1a43f1e2c 100644 --- a/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=esnext,target=es2015).js +++ b/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=esnext,target=es2015).js @@ -125,9 +125,11 @@ class C3 { }); // property access name should be ok C1.prototype.await; -@(await dec) -class C { -} +let C = class C { +}; +C = __decorate([ + (await dec) +], C); // newlines // await in throw throw await 1; diff --git a/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=esnext,target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=esnext,target=es2015).js.diff index 0ba477f2d..01cca05f1 100644 --- a/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=esnext,target=es2015).js.diff +++ b/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=esnext,target=es2015).js.diff @@ -39,19 +39,4 @@ + await = 1; } ({ - await() { } -@@= skipped -16, +14 lines =@@ - }); - // property access name should be ok - C1.prototype.await; --let C = class C { --}; --C = __decorate([ -- (await dec) --], C); -+@(await dec) -+class C { -+} - // newlines - // await in throw - throw await 1; \ No newline at end of file + await() { } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=esnext,target=es2017).js b/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=esnext,target=es2017).js index 7aaa60ffa..1a43f1e2c 100644 --- a/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=esnext,target=es2017).js +++ b/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=esnext,target=es2017).js @@ -125,9 +125,11 @@ class C3 { }); // property access name should be ok C1.prototype.await; -@(await dec) -class C { -} +let C = class C { +}; +C = __decorate([ + (await dec) +], C); // newlines // await in throw throw await 1; diff --git a/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=esnext,target=es2017).js.diff b/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=esnext,target=es2017).js.diff index d4761c734..363d6bf1d 100644 --- a/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=esnext,target=es2017).js.diff +++ b/testdata/baselines/reference/submodule/conformance/topLevelAwait.1(module=esnext,target=es2017).js.diff @@ -39,19 +39,4 @@ + await = 1; } ({ - await() { } -@@= skipped -16, +14 lines =@@ - }); - // property access name should be ok - C1.prototype.await; --let C = class C { --}; --C = __decorate([ -- (await dec) --], C); -+@(await dec) -+class C { -+} - // newlines - // await in throw - throw await 1; \ No newline at end of file + await() { } \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/topLevelAwaitErrors.1(module=es2022).js b/testdata/baselines/reference/submodule/conformance/topLevelAwaitErrors.1(module=es2022).js index 273599cdb..2a6246e49 100644 --- a/testdata/baselines/reference/submodule/conformance/topLevelAwaitErrors.1(module=es2022).js +++ b/testdata/baselines/reference/submodule/conformance/topLevelAwaitErrors.1(module=es2022).js @@ -56,32 +56,51 @@ await , string > ``; class C extends string { } // await in class decorators should fail -@(await ) -class C1 { -} -@(x) -class C2 { -} -@ -class C3 { -} +let C1 = class C1 { +}; +C1 = __decorate([ + (await ) +], C1); +let C2 = class C2 { +}; +C2 = __decorate([ + (x) +], C2); +let C3 = class C3 { +}; +C3 = __decorate([ +], C3); // await in member decorators should fail class C4 { - @ ["foo"]() { } } +__decorate([ +], C4.prototype, "foo", null); class C5 { - @(1) ["foo"]() { } } +__decorate([ + (1) +], C5.prototype, "foo", null); class C6 { - @(await ) ["foo"]() { } } +__decorate([ + (await ) +], C6.prototype, "foo", null); // await in parameter decorators should fail class C7 { method1([x]) { } method2([x]) { } method3([x]) { } } +__decorate([ + __param(0, ) +], C7.prototype, "method1", null); +__decorate([ + __param(0, (1)) +], C7.prototype, "method2", null); +__decorate([ + __param(0, (await )) +], C7.prototype, "method3", null); export {}; diff --git a/testdata/baselines/reference/submodule/conformance/topLevelAwaitErrors.1(module=es2022).js.diff b/testdata/baselines/reference/submodule/conformance/topLevelAwaitErrors.1(module=es2022).js.diff deleted file mode 100644 index e46b4c20f..000000000 --- a/testdata/baselines/reference/submodule/conformance/topLevelAwaitErrors.1(module=es2022).js.diff +++ /dev/null @@ -1,66 +0,0 @@ ---- old.topLevelAwaitErrors.1(module=es2022).js -+++ new.topLevelAwaitErrors.1(module=es2022).js -@@= skipped -55, +55 lines =@@ - class C extends string { - } - // await in class decorators should fail --let C1 = class C1 { --}; --C1 = __decorate([ -- (await ) --], C1); --let C2 = class C2 { --}; --C2 = __decorate([ -- (x) --], C2); --let C3 = class C3 { --}; --C3 = __decorate([ --], C3); -+@(await ) -+class C1 { -+} -+@(x) -+class C2 { -+} -+@ -+class C3 { -+} - // await in member decorators should fail - class C4 { -+ @ - ["foo"]() { } - } --__decorate([ --], C4.prototype, "foo", null); - class C5 { -+ @(1) - ["foo"]() { } - } --__decorate([ -- (1) --], C5.prototype, "foo", null); - class C6 { -+ @(await ) - ["foo"]() { } - } --__decorate([ -- (await ) --], C6.prototype, "foo", null); - // await in parameter decorators should fail - class C7 { - method1([x]) { } - method2([x]) { } - method3([x]) { } - } --__decorate([ -- __param(0, ) --], C7.prototype, "method1", null); --__decorate([ -- __param(0, (1)) --], C7.prototype, "method2", null); --__decorate([ -- __param(0, (await )) --], C7.prototype, "method3", null); - export {}; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/topLevelAwaitErrors.1(module=esnext).js b/testdata/baselines/reference/submodule/conformance/topLevelAwaitErrors.1(module=esnext).js index 273599cdb..2a6246e49 100644 --- a/testdata/baselines/reference/submodule/conformance/topLevelAwaitErrors.1(module=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/topLevelAwaitErrors.1(module=esnext).js @@ -56,32 +56,51 @@ await , string > ``; class C extends string { } // await in class decorators should fail -@(await ) -class C1 { -} -@(x) -class C2 { -} -@ -class C3 { -} +let C1 = class C1 { +}; +C1 = __decorate([ + (await ) +], C1); +let C2 = class C2 { +}; +C2 = __decorate([ + (x) +], C2); +let C3 = class C3 { +}; +C3 = __decorate([ +], C3); // await in member decorators should fail class C4 { - @ ["foo"]() { } } +__decorate([ +], C4.prototype, "foo", null); class C5 { - @(1) ["foo"]() { } } +__decorate([ + (1) +], C5.prototype, "foo", null); class C6 { - @(await ) ["foo"]() { } } +__decorate([ + (await ) +], C6.prototype, "foo", null); // await in parameter decorators should fail class C7 { method1([x]) { } method2([x]) { } method3([x]) { } } +__decorate([ + __param(0, ) +], C7.prototype, "method1", null); +__decorate([ + __param(0, (1)) +], C7.prototype, "method2", null); +__decorate([ + __param(0, (await )) +], C7.prototype, "method3", null); export {}; diff --git a/testdata/baselines/reference/submodule/conformance/topLevelAwaitErrors.1(module=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/topLevelAwaitErrors.1(module=esnext).js.diff deleted file mode 100644 index 5c46f921c..000000000 --- a/testdata/baselines/reference/submodule/conformance/topLevelAwaitErrors.1(module=esnext).js.diff +++ /dev/null @@ -1,66 +0,0 @@ ---- old.topLevelAwaitErrors.1(module=esnext).js -+++ new.topLevelAwaitErrors.1(module=esnext).js -@@= skipped -55, +55 lines =@@ - class C extends string { - } - // await in class decorators should fail --let C1 = class C1 { --}; --C1 = __decorate([ -- (await ) --], C1); --let C2 = class C2 { --}; --C2 = __decorate([ -- (x) --], C2); --let C3 = class C3 { --}; --C3 = __decorate([ --], C3); -+@(await ) -+class C1 { -+} -+@(x) -+class C2 { -+} -+@ -+class C3 { -+} - // await in member decorators should fail - class C4 { -+ @ - ["foo"]() { } - } --__decorate([ --], C4.prototype, "foo", null); - class C5 { -+ @(1) - ["foo"]() { } - } --__decorate([ -- (1) --], C5.prototype, "foo", null); - class C6 { -+ @(await ) - ["foo"]() { } - } --__decorate([ -- (await ) --], C6.prototype, "foo", null); - // await in parameter decorators should fail - class C7 { - method1([x]) { } - method2([x]) { } - method3([x]) { } - } --__decorate([ -- __param(0, ) --], C7.prototype, "method1", null); --__decorate([ -- __param(0, (1)) --], C7.prototype, "method2", null); --__decorate([ -- __param(0, (await )) --], C7.prototype, "method3", null); - export {}; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/typeFromPropertyAssignment29.js b/testdata/baselines/reference/submodule/conformance/typeFromPropertyAssignment29.js index b31808bd2..6df324502 100644 --- a/testdata/baselines/reference/submodule/conformance/typeFromPropertyAssignment29.js +++ b/testdata/baselines/reference/submodule/conformance/typeFromPropertyAssignment29.js @@ -115,7 +115,7 @@ function ExpandoNested(n) { const nested = function (m) { return n + m; }; - nested.total = n + 1_000_000; + nested.total = n + 1000000; return nested; } ExpandoNested.also = -1; diff --git a/testdata/baselines/reference/submodule/conformance/typeFromPropertyAssignment29.js.diff b/testdata/baselines/reference/submodule/conformance/typeFromPropertyAssignment29.js.diff index c3bef5520..ee408f8c7 100644 --- a/testdata/baselines/reference/submodule/conformance/typeFromPropertyAssignment29.js.diff +++ b/testdata/baselines/reference/submodule/conformance/typeFromPropertyAssignment29.js.diff @@ -1,15 +1,6 @@ --- old.typeFromPropertyAssignment29.js +++ new.typeFromPropertyAssignment29.js -@@= skipped -114, +114 lines =@@ - const nested = function (m) { - return n + m; - }; -- nested.total = n + 1000000; -+ nested.total = n + 1_000_000; - return nested; - } - ExpandoNested.also = -1; -@@= skipped -35, +35 lines =@@ +@@= skipped -149, +149 lines =@@ var n = ExpandoExpr2.prop + ExpandoExpr2.m(12) + ExpandoExpr2(101).length; // Should not work in typescript -- classes already have statics class ExpandoClass { diff --git a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=es2022).js b/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=es2022).js index 1f15663b3..4f2168019 100644 --- a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=es2022).js +++ b/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=es2022).js @@ -51,13 +51,20 @@ class DD extends CC { //// [typeOfThisInStaticMembers10.js] -@foo -class C { +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let C = class C { static a = 1; static b = this.a + 1; -} -@foo -class D extends C { +}; +C = __decorate([ + foo +], C); +let D = class D extends C { static c = 2; static d = this.c + 1; static e = super.a + this.c + 1; @@ -72,7 +79,10 @@ class D extends C { static set fa(v) { this.c = v + 1; } -} +}; +D = __decorate([ + foo +], D); class CC { static a = 1; static b = this.a + 1; diff --git a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=es2022).js.diff b/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=es2022).js.diff index 7ebc8824a..a532ef567 100644 --- a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=es2022).js.diff +++ b/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=es2022).js.diff @@ -1,35 +1,23 @@ --- old.typeOfThisInStaticMembers10(target=es2022).js +++ new.typeOfThisInStaticMembers10(target=es2022).js -@@= skipped -50, +50 lines =@@ - - - //// [typeOfThisInStaticMembers10.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --let C = class C { +@@= skipped -57, +57 lines =@@ + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + let C = class C { - static { this.a = 1; } - static { this.b = this.a + 1; } --}; --C = __decorate([ -- foo --], C); --let D = class D extends C { ++ static a = 1; ++ static b = this.a + 1; + }; + C = __decorate([ + foo + ], C); + let D = class D extends C { - static { this.c = 2; } - static { this.d = this.c + 1; } - static { this.e = super.a + this.c + 1; } - static { this.f = () => this.c + 1; } - static { this.ff = function () { this.c + 1; }; } -+@foo -+class C { -+ static a = 1; -+ static b = this.a + 1; -+} -+@foo -+class D extends C { + static c = 2; + static d = this.c + 1; + static e = super.a + this.c + 1; @@ -38,15 +26,9 @@ static foo() { return this.c + 1; } -@@= skipped -28, +21 lines =@@ - static set fa(v) { - this.c = v + 1; - } --}; --D = __decorate([ -- foo --], D); -+} +@@= skipped -26, +26 lines =@@ + foo + ], D); class CC { - static { this.a = 1; } - static { this.b = this.a + 1; } diff --git a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=es5).js b/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=es5).js index 1f15663b3..4f2168019 100644 --- a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=es5).js +++ b/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=es5).js @@ -51,13 +51,20 @@ class DD extends CC { //// [typeOfThisInStaticMembers10.js] -@foo -class C { +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let C = class C { static a = 1; static b = this.a + 1; -} -@foo -class D extends C { +}; +C = __decorate([ + foo +], C); +let D = class D extends C { static c = 2; static d = this.c + 1; static e = super.a + this.c + 1; @@ -72,7 +79,10 @@ class D extends C { static set fa(v) { this.c = v + 1; } -} +}; +D = __decorate([ + foo +], D); class CC { static a = 1; static b = this.a + 1; diff --git a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=es5).js.diff index e7b5e10b6..df9a5fa5e 100644 --- a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=es5).js.diff +++ b/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=es5).js.diff @@ -1,31 +1,20 @@ --- old.typeOfThisInStaticMembers10(target=es5).js +++ new.typeOfThisInStaticMembers10(target=es5).js -@@= skipped -50, +50 lines =@@ - - - //// [typeOfThisInStaticMembers10.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; +@@= skipped -56, +56 lines =@@ + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; -var _a, _b, _c; --let C = class C { --}; --C.a = 1; --C.b = (void 0).a + 1; --C = __decorate([ -- foo --], C); --let D = class D extends C { -+@foo -+class C { + let C = class C { + static a = 1; + static b = this.a + 1; -+} -+@foo -+class D extends C { + }; +-C.a = 1; +-C.b = (void 0).a + 1; + C = __decorate([ + foo + ], C); + let D = class D extends C { + static c = 2; + static d = this.c + 1; + static e = super.a + this.c + 1; @@ -34,20 +23,18 @@ static foo() { return this.c + 1; } -@@= skipped -24, +21 lines =@@ - static set fa(v) { +@@= skipped -19, +23 lines =@@ this.c = v + 1; } --}; + }; -D.c = 2; -D.d = (void 0).c + 1; -D.e = (void 0).a + (void 0).c + 1; -D.f = () => (void 0).c + 1; -D.ff = function () { this.c + 1; }; --D = __decorate([ -- foo --], D); -+} + D = __decorate([ + foo + ], D); class CC { + static a = 1; + static b = this.a + 1; @@ -65,7 +52,7 @@ static foo() { return this.c + 1; } -@@= skipped -25, +21 lines =@@ +@@= skipped -24, +23 lines =@@ this.c = v + 1; } } diff --git a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=es6).js b/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=es6).js index 1f15663b3..4f2168019 100644 --- a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=es6).js +++ b/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=es6).js @@ -51,13 +51,20 @@ class DD extends CC { //// [typeOfThisInStaticMembers10.js] -@foo -class C { +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let C = class C { static a = 1; static b = this.a + 1; -} -@foo -class D extends C { +}; +C = __decorate([ + foo +], C); +let D = class D extends C { static c = 2; static d = this.c + 1; static e = super.a + this.c + 1; @@ -72,7 +79,10 @@ class D extends C { static set fa(v) { this.c = v + 1; } -} +}; +D = __decorate([ + foo +], D); class CC { static a = 1; static b = this.a + 1; diff --git a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=es6).js.diff b/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=es6).js.diff index 869f31bfd..7a5777a08 100644 --- a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=es6).js.diff +++ b/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=es6).js.diff @@ -1,31 +1,20 @@ --- old.typeOfThisInStaticMembers10(target=es6).js +++ new.typeOfThisInStaticMembers10(target=es6).js -@@= skipped -50, +50 lines =@@ - - - //// [typeOfThisInStaticMembers10.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; +@@= skipped -56, +56 lines =@@ + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; -var _a, _b, _c; --let C = class C { --}; --C.a = 1; --C.b = (void 0).a + 1; --C = __decorate([ -- foo --], C); --let D = class D extends C { -+@foo -+class C { + let C = class C { + static a = 1; + static b = this.a + 1; -+} -+@foo -+class D extends C { + }; +-C.a = 1; +-C.b = (void 0).a + 1; + C = __decorate([ + foo + ], C); + let D = class D extends C { + static c = 2; + static d = this.c + 1; + static e = super.a + this.c + 1; @@ -34,20 +23,18 @@ static foo() { return this.c + 1; } -@@= skipped -24, +21 lines =@@ - static set fa(v) { +@@= skipped -19, +23 lines =@@ this.c = v + 1; } --}; + }; -D.c = 2; -D.d = (void 0).c + 1; -D.e = (void 0).a + (void 0).c + 1; -D.f = () => (void 0).c + 1; -D.ff = function () { this.c + 1; }; --D = __decorate([ -- foo --], D); -+} + D = __decorate([ + foo + ], D); class CC { + static a = 1; + static b = this.a + 1; @@ -65,7 +52,7 @@ static foo() { return this.c + 1; } -@@= skipped -25, +21 lines =@@ +@@= skipped -24, +23 lines =@@ this.c = v + 1; } } diff --git a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=esnext).js b/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=esnext).js index 1f15663b3..4f2168019 100644 --- a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=esnext).js @@ -51,13 +51,20 @@ class DD extends CC { //// [typeOfThisInStaticMembers10.js] -@foo -class C { +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let C = class C { static a = 1; static b = this.a + 1; -} -@foo -class D extends C { +}; +C = __decorate([ + foo +], C); +let D = class D extends C { static c = 2; static d = this.c + 1; static e = super.a + this.c + 1; @@ -72,7 +79,10 @@ class D extends C { static set fa(v) { this.c = v + 1; } -} +}; +D = __decorate([ + foo +], D); class CC { static a = 1; static b = this.a + 1; diff --git a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=esnext).js.diff index b12ed70e3..0c37e1b91 100644 --- a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=esnext).js.diff +++ b/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers10(target=esnext).js.diff @@ -1,35 +1,23 @@ --- old.typeOfThisInStaticMembers10(target=esnext).js +++ new.typeOfThisInStaticMembers10(target=esnext).js -@@= skipped -50, +50 lines =@@ - - - //// [typeOfThisInStaticMembers10.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --let C = class C { +@@= skipped -57, +57 lines =@@ + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + let C = class C { - static { this.a = 1; } - static { this.b = this.a + 1; } --}; --C = __decorate([ -- foo --], C); --let D = class D extends C { ++ static a = 1; ++ static b = this.a + 1; + }; + C = __decorate([ + foo + ], C); + let D = class D extends C { - static { this.c = 2; } - static { this.d = this.c + 1; } - static { this.e = super.a + this.c + 1; } - static { this.f = () => this.c + 1; } - static { this.ff = function () { this.c + 1; }; } -+@foo -+class C { -+ static a = 1; -+ static b = this.a + 1; -+} -+@foo -+class D extends C { + static c = 2; + static d = this.c + 1; + static e = super.a + this.c + 1; @@ -38,15 +26,9 @@ static foo() { return this.c + 1; } -@@= skipped -28, +21 lines =@@ - static set fa(v) { - this.c = v + 1; - } --}; --D = __decorate([ -- foo --], D); -+} +@@= skipped -26, +26 lines =@@ + foo + ], D); class CC { - static { this.a = 1; } - static { this.b = this.a + 1; } diff --git a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers11(target=es2022).js b/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers11(target=es2022).js index a8e4e56be..01f750311 100644 --- a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers11(target=es2022).js +++ b/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers11(target=es2022).js @@ -51,13 +51,20 @@ class DD extends CC { //// [typeOfThisInStaticMembers11.js] -@foo -class C { +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let C = class C { static a = 1; static b = this.a + 1; -} -@foo -class D extends C { +}; +C = __decorate([ + foo +], C); +let D = class D extends C { static c = 2; static d = this.c + 1; static e = super.a + this.c + 1; @@ -72,7 +79,10 @@ class D extends C { static set fa(v) { this.c = v + 1; } -} +}; +D = __decorate([ + foo +], D); class CC { static a = 1; static b = this.a + 1; diff --git a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers11(target=es2022).js.diff b/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers11(target=es2022).js.diff deleted file mode 100644 index 7f52e8fbe..000000000 --- a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers11(target=es2022).js.diff +++ /dev/null @@ -1,40 +0,0 @@ ---- old.typeOfThisInStaticMembers11(target=es2022).js -+++ new.typeOfThisInStaticMembers11(target=es2022).js -@@= skipped -50, +50 lines =@@ - - - //// [typeOfThisInStaticMembers11.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --let C = class C { -+@foo -+class C { - static a = 1; - static b = this.a + 1; --}; --C = __decorate([ -- foo --], C); --let D = class D extends C { -+} -+@foo -+class D extends C { - static c = 2; - static d = this.c + 1; - static e = super.a + this.c + 1; -@@= skipped -28, +21 lines =@@ - static set fa(v) { - this.c = v + 1; - } --}; --D = __decorate([ -- foo --], D); -+} - class CC { - static a = 1; - static b = this.a + 1; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers11(target=es5).js b/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers11(target=es5).js index a8e4e56be..01f750311 100644 --- a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers11(target=es5).js +++ b/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers11(target=es5).js @@ -51,13 +51,20 @@ class DD extends CC { //// [typeOfThisInStaticMembers11.js] -@foo -class C { +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let C = class C { static a = 1; static b = this.a + 1; -} -@foo -class D extends C { +}; +C = __decorate([ + foo +], C); +let D = class D extends C { static c = 2; static d = this.c + 1; static e = super.a + this.c + 1; @@ -72,7 +79,10 @@ class D extends C { static set fa(v) { this.c = v + 1; } -} +}; +D = __decorate([ + foo +], D); class CC { static a = 1; static b = this.a + 1; diff --git a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers11(target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers11(target=es5).js.diff index 65d40cb69..c1e806f49 100644 --- a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers11(target=es5).js.diff +++ b/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers11(target=es5).js.diff @@ -1,18 +1,14 @@ --- old.typeOfThisInStaticMembers11(target=es5).js +++ new.typeOfThisInStaticMembers11(target=es5).js -@@= skipped -50, +50 lines =@@ - - - //// [typeOfThisInStaticMembers11.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; +@@= skipped -56, +56 lines =@@ + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; -var _a, _b, _c; --let C = class C { --}; + let C = class C { ++ static a = 1; ++ static b = this.a + 1; + }; -Object.defineProperty(C, "a", { - enumerable: true, - configurable: true, @@ -25,17 +21,10 @@ - writable: true, - value: (void 0).a + 1 -}); --C = __decorate([ -- foo --], C); --let D = class D extends C { -+@foo -+class C { -+ static a = 1; -+ static b = this.a + 1; -+} -+@foo -+class D extends C { + C = __decorate([ + foo + ], C); + let D = class D extends C { + static c = 2; + static d = this.c + 1; + static e = super.a + this.c + 1; @@ -44,11 +33,10 @@ static foo() { return this.c + 1; } -@@= skipped -34, +21 lines =@@ - static set fa(v) { +@@= skipped -29, +23 lines =@@ this.c = v + 1; } --}; + }; -Object.defineProperty(D, "c", { - enumerable: true, - configurable: true, @@ -79,10 +67,9 @@ - writable: true, - value: function () { this.c + 1; } -}); --D = __decorate([ -- foo --], D); -+} + D = __decorate([ + foo + ], D); class CC { + static a = 1; + static b = this.a + 1; @@ -110,7 +97,7 @@ static foo() { return this.c + 1; } -@@= skipped -60, +21 lines =@@ +@@= skipped -59, +23 lines =@@ this.c = v + 1; } } diff --git a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers11(target=es6).js b/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers11(target=es6).js index a8e4e56be..01f750311 100644 --- a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers11(target=es6).js +++ b/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers11(target=es6).js @@ -51,13 +51,20 @@ class DD extends CC { //// [typeOfThisInStaticMembers11.js] -@foo -class C { +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let C = class C { static a = 1; static b = this.a + 1; -} -@foo -class D extends C { +}; +C = __decorate([ + foo +], C); +let D = class D extends C { static c = 2; static d = this.c + 1; static e = super.a + this.c + 1; @@ -72,7 +79,10 @@ class D extends C { static set fa(v) { this.c = v + 1; } -} +}; +D = __decorate([ + foo +], D); class CC { static a = 1; static b = this.a + 1; diff --git a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers11(target=es6).js.diff b/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers11(target=es6).js.diff index 70050e12b..3250da096 100644 --- a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers11(target=es6).js.diff +++ b/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers11(target=es6).js.diff @@ -1,18 +1,14 @@ --- old.typeOfThisInStaticMembers11(target=es6).js +++ new.typeOfThisInStaticMembers11(target=es6).js -@@= skipped -50, +50 lines =@@ - - - //// [typeOfThisInStaticMembers11.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; +@@= skipped -56, +56 lines =@@ + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; -var _a, _b, _c; --let C = class C { --}; + let C = class C { ++ static a = 1; ++ static b = this.a + 1; + }; -Object.defineProperty(C, "a", { - enumerable: true, - configurable: true, @@ -25,17 +21,10 @@ - writable: true, - value: (void 0).a + 1 -}); --C = __decorate([ -- foo --], C); --let D = class D extends C { -+@foo -+class C { -+ static a = 1; -+ static b = this.a + 1; -+} -+@foo -+class D extends C { + C = __decorate([ + foo + ], C); + let D = class D extends C { + static c = 2; + static d = this.c + 1; + static e = super.a + this.c + 1; @@ -44,11 +33,10 @@ static foo() { return this.c + 1; } -@@= skipped -34, +21 lines =@@ - static set fa(v) { +@@= skipped -29, +23 lines =@@ this.c = v + 1; } --}; + }; -Object.defineProperty(D, "c", { - enumerable: true, - configurable: true, @@ -79,10 +67,9 @@ - writable: true, - value: function () { this.c + 1; } -}); --D = __decorate([ -- foo --], D); -+} + D = __decorate([ + foo + ], D); class CC { + static a = 1; + static b = this.a + 1; @@ -110,7 +97,7 @@ static foo() { return this.c + 1; } -@@= skipped -60, +21 lines =@@ +@@= skipped -59, +23 lines =@@ this.c = v + 1; } } diff --git a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers11(target=esnext).js b/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers11(target=esnext).js index a8e4e56be..01f750311 100644 --- a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers11(target=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers11(target=esnext).js @@ -51,13 +51,20 @@ class DD extends CC { //// [typeOfThisInStaticMembers11.js] -@foo -class C { +var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; +}; +let C = class C { static a = 1; static b = this.a + 1; -} -@foo -class D extends C { +}; +C = __decorate([ + foo +], C); +let D = class D extends C { static c = 2; static d = this.c + 1; static e = super.a + this.c + 1; @@ -72,7 +79,10 @@ class D extends C { static set fa(v) { this.c = v + 1; } -} +}; +D = __decorate([ + foo +], D); class CC { static a = 1; static b = this.a + 1; diff --git a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers11(target=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers11(target=esnext).js.diff deleted file mode 100644 index 920aa75eb..000000000 --- a/testdata/baselines/reference/submodule/conformance/typeOfThisInStaticMembers11(target=esnext).js.diff +++ /dev/null @@ -1,40 +0,0 @@ ---- old.typeOfThisInStaticMembers11(target=esnext).js -+++ new.typeOfThisInStaticMembers11(target=esnext).js -@@= skipped -50, +50 lines =@@ - - - //// [typeOfThisInStaticMembers11.js] --var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { -- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; -- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); -- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; -- return c > 3 && r && Object.defineProperty(target, key, r), r; --}; --let C = class C { -+@foo -+class C { - static a = 1; - static b = this.a + 1; --}; --C = __decorate([ -- foo --], C); --let D = class D extends C { -+} -+@foo -+class D extends C { - static c = 2; - static d = this.c + 1; - static e = super.a + this.c + 1; -@@= skipped -28, +21 lines =@@ - static set fa(v) { - this.c = v + 1; - } --}; --D = __decorate([ -- foo --], D); -+} - class CC { - static a = 1; - static b = this.a + 1; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=es2015).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=es2015).js index 653fcc844..0faebf252 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=es2015).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=es2015).js @@ -19,10 +19,11 @@ Object.defineProperty(exports, "__esModule", { value: true }); const env_1 = { stack: [], error: void 0, hasError: false }; try { before = __addDisposableResource(env_1, null, false); - C = - @dec - class C { + C = class C { }; + C = __decorate([ + dec + ], C); } catch (e_1) { env_1.error = e_1; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=es2015).js.diff index 37334453f..39673b7ec 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=es2015).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=es2015).js.diff @@ -9,15 +9,4 @@ +Object.defineProperty(exports, "__esModule", { value: true }); const env_1 = { stack: [], error: void 0, hasError: false }; try { - before = __addDisposableResource(env_1, null, false); -- C = class C { -+ C = -+ @dec -+ class C { - }; -- C = __decorate([ -- dec -- ], C); - } - catch (e_1) { - env_1.error = e_1; \ No newline at end of file + before = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=es5).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=es5).js index 653fcc844..0faebf252 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=es5).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=es5).js @@ -19,10 +19,11 @@ Object.defineProperty(exports, "__esModule", { value: true }); const env_1 = { stack: [], error: void 0, hasError: false }; try { before = __addDisposableResource(env_1, null, false); - C = - @dec - class C { + C = class C { }; + C = __decorate([ + dec + ], C); } catch (e_1) { env_1.error = e_1; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=es5).js.diff index 734a7e5a3..f924b4a86 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=es5).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=es5).js.diff @@ -9,15 +9,4 @@ +Object.defineProperty(exports, "__esModule", { value: true }); const env_1 = { stack: [], error: void 0, hasError: false }; try { - before = __addDisposableResource(env_1, null, false); -- C = class C { -+ C = -+ @dec -+ class C { - }; -- C = __decorate([ -- dec -- ], C); - } - catch (e_1) { - env_1.error = e_1; \ No newline at end of file + before = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=esnext).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=esnext).js index 858abc28e..1d134f939 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=esnext).js @@ -16,6 +16,8 @@ class C { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); using before = null; -@dec -class C { -} +let C = class C { +}; +C = __decorate([ + dec +], C); diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=esnext).js.diff deleted file mode 100644 index 94a22fc93..000000000 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=esnext).js.diff +++ /dev/null @@ -1,14 +0,0 @@ ---- old.usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=esnext).js -+++ new.usingDeclarationsWithLegacyClassDecorators.1(module=commonjs,target=esnext).js -@@= skipped -15, +15 lines =@@ - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - using before = null; --let C = class C { --}; --C = __decorate([ -- dec --], C); -+@dec -+class C { -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=esnext,target=es2015).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=esnext,target=es2015).js index 09655c2eb..b0cfcf206 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=esnext,target=es2015).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=esnext,target=es2015).js @@ -17,10 +17,11 @@ var before, C; const env_1 = { stack: [], error: void 0, hasError: false }; try { before = __addDisposableResource(env_1, null, false); - C = - @dec - class C { + C = class C { }; + C = __decorate([ + dec + ], C); } catch (e_1) { env_1.error = e_1; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=esnext,target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=esnext,target=es2015).js.diff deleted file mode 100644 index 0d4d60f27..000000000 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=esnext,target=es2015).js.diff +++ /dev/null @@ -1,17 +0,0 @@ ---- old.usingDeclarationsWithLegacyClassDecorators.1(module=esnext,target=es2015).js -+++ new.usingDeclarationsWithLegacyClassDecorators.1(module=esnext,target=es2015).js -@@= skipped -16, +16 lines =@@ - const env_1 = { stack: [], error: void 0, hasError: false }; - try { - before = __addDisposableResource(env_1, null, false); -- C = class C { -+ C = -+ @dec -+ class C { - }; -- C = __decorate([ -- dec -- ], C); - } - catch (e_1) { - env_1.error = e_1; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=esnext,target=es5).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=esnext,target=es5).js index 09655c2eb..b0cfcf206 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=esnext,target=es5).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=esnext,target=es5).js @@ -17,10 +17,11 @@ var before, C; const env_1 = { stack: [], error: void 0, hasError: false }; try { before = __addDisposableResource(env_1, null, false); - C = - @dec - class C { + C = class C { }; + C = __decorate([ + dec + ], C); } catch (e_1) { env_1.error = e_1; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=esnext,target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=esnext,target=es5).js.diff deleted file mode 100644 index f3d0a1e53..000000000 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=esnext,target=es5).js.diff +++ /dev/null @@ -1,17 +0,0 @@ ---- old.usingDeclarationsWithLegacyClassDecorators.1(module=esnext,target=es5).js -+++ new.usingDeclarationsWithLegacyClassDecorators.1(module=esnext,target=es5).js -@@= skipped -16, +16 lines =@@ - const env_1 = { stack: [], error: void 0, hasError: false }; - try { - before = __addDisposableResource(env_1, null, false); -- C = class C { -+ C = -+ @dec -+ class C { - }; -- C = __decorate([ -- dec -- ], C); - } - catch (e_1) { - env_1.error = e_1; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=esnext,target=esnext).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=esnext,target=esnext).js index 7497a93df..bcd661c59 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=esnext,target=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=esnext,target=esnext).js @@ -14,7 +14,9 @@ class C { //// [usingDeclarationsWithLegacyClassDecorators.1.js] using before = null; -@dec -class C { -} +let C = class C { +}; +C = __decorate([ + dec +], C); export {}; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=esnext,target=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=esnext,target=esnext).js.diff deleted file mode 100644 index 8b2e32a0b..000000000 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.1(module=esnext,target=esnext).js.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.usingDeclarationsWithLegacyClassDecorators.1(module=esnext,target=esnext).js -+++ new.usingDeclarationsWithLegacyClassDecorators.1(module=esnext,target=esnext).js -@@= skipped -13, +13 lines =@@ - - //// [usingDeclarationsWithLegacyClassDecorators.1.js] - using before = null; --let C = class C { --}; --C = __decorate([ -- dec --], C); -+@dec -+class C { -+} - export {}; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=es2015).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=es2015).js index 824ec7a6d..e4d86bb61 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=es2015).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=es2015).js @@ -16,9 +16,11 @@ using after = null; "use strict"; var after; Object.defineProperty(exports, "__esModule", { value: true }); -@dec -class default_1 { -} +let default_1 = class { +}; +default_1 = __decorate([ + dec +], default_1); exports.default = default_1; const env_1 = { stack: [], error: void 0, hasError: false }; try { diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=es2015).js.diff index c7bd66a56..bf126d22a 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=es2015).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=es2015).js.diff @@ -6,14 +6,11 @@ "use strict"; +var after; Object.defineProperty(exports, "__esModule", { value: true }); --let default_1 = class { --}; --default_1 = __decorate([ -- dec --], default_1); -+@dec -+class default_1 { -+} + let default_1 = class { + }; +@@= skipped -7, +8 lines =@@ + dec + ], default_1); exports.default = default_1; -var after; const env_1 = { stack: [], error: void 0, hasError: false }; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=es5).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=es5).js index 824ec7a6d..e4d86bb61 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=es5).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=es5).js @@ -16,9 +16,11 @@ using after = null; "use strict"; var after; Object.defineProperty(exports, "__esModule", { value: true }); -@dec -class default_1 { -} +let default_1 = class { +}; +default_1 = __decorate([ + dec +], default_1); exports.default = default_1; const env_1 = { stack: [], error: void 0, hasError: false }; try { diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=es5).js.diff index 27300ce7b..ab483b0e5 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=es5).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=es5).js.diff @@ -6,14 +6,11 @@ "use strict"; +var after; Object.defineProperty(exports, "__esModule", { value: true }); --let default_1 = class { --}; --default_1 = __decorate([ -- dec --], default_1); -+@dec -+class default_1 { -+} + let default_1 = class { + }; +@@= skipped -7, +8 lines =@@ + dec + ], default_1); exports.default = default_1; -var after; const env_1 = { stack: [], error: void 0, hasError: false }; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=esnext).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=esnext).js index 96581e42c..1300e8055 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=esnext).js @@ -15,8 +15,10 @@ using after = null; //// [usingDeclarationsWithLegacyClassDecorators.10.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -@dec -class default_1 { -} +let default_1 = class { +}; +default_1 = __decorate([ + dec +], default_1); exports.default = default_1; using after = null; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=esnext).js.diff deleted file mode 100644 index 615151aea..000000000 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=esnext).js.diff +++ /dev/null @@ -1,16 +0,0 @@ ---- old.usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=esnext).js -+++ new.usingDeclarationsWithLegacyClassDecorators.10(module=commonjs,target=esnext).js -@@= skipped -14, +14 lines =@@ - //// [usingDeclarationsWithLegacyClassDecorators.10.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --let default_1 = class { --}; --default_1 = __decorate([ -- dec --], default_1); -+@dec -+class default_1 { -+} - exports.default = default_1; - using after = null; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=esnext,target=es2015).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=esnext,target=es2015).js index 6d0f3cb16..ceeaae8dd 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=esnext,target=es2015).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=esnext,target=es2015).js @@ -14,9 +14,12 @@ using after = null; //// [usingDeclarationsWithLegacyClassDecorators.10.js] var after; -@dec -export default class { -} +let default_1 = class { +}; +default_1 = __decorate([ + dec +], default_1); +export default default_1; const env_1 = { stack: [], error: void 0, hasError: false }; try { after = __addDisposableResource(env_1, null, false); diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=esnext,target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=esnext,target=es2015).js.diff index 1fd91a401..b018c19cc 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=esnext,target=es2015).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=esnext,target=es2015).js.diff @@ -4,16 +4,14 @@ //// [usingDeclarationsWithLegacyClassDecorators.10.js] --let default_1 = class { --}; --default_1 = __decorate([ -- dec --], default_1); --export default default_1; - var after; -+@dec -+export default class { -+} ++var after; + let default_1 = class { + }; + default_1 = __decorate([ + dec + ], default_1); + export default default_1; +-var after; const env_1 = { stack: [], error: void 0, hasError: false }; try { after = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=esnext,target=es5).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=esnext,target=es5).js index 6d0f3cb16..ceeaae8dd 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=esnext,target=es5).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=esnext,target=es5).js @@ -14,9 +14,12 @@ using after = null; //// [usingDeclarationsWithLegacyClassDecorators.10.js] var after; -@dec -export default class { -} +let default_1 = class { +}; +default_1 = __decorate([ + dec +], default_1); +export default default_1; const env_1 = { stack: [], error: void 0, hasError: false }; try { after = __addDisposableResource(env_1, null, false); diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=esnext,target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=esnext,target=es5).js.diff index 53c553dc8..63bc3cf74 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=esnext,target=es5).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=esnext,target=es5).js.diff @@ -4,16 +4,14 @@ //// [usingDeclarationsWithLegacyClassDecorators.10.js] --let default_1 = class { --}; --default_1 = __decorate([ -- dec --], default_1); --export default default_1; - var after; -+@dec -+export default class { -+} ++var after; + let default_1 = class { + }; + default_1 = __decorate([ + dec + ], default_1); + export default default_1; +-var after; const env_1 = { stack: [], error: void 0, hasError: false }; try { after = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=esnext,target=esnext).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=esnext,target=esnext).js index 786dcde98..50db75c3f 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=esnext,target=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=esnext,target=esnext).js @@ -13,7 +13,10 @@ using after = null; //// [usingDeclarationsWithLegacyClassDecorators.10.js] -@dec -export default class { -} +let default_1 = class { +}; +default_1 = __decorate([ + dec +], default_1); +export default default_1; using after = null; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=esnext,target=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=esnext,target=esnext).js.diff deleted file mode 100644 index a6e799f18..000000000 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.10(module=esnext,target=esnext).js.diff +++ /dev/null @@ -1,16 +0,0 @@ ---- old.usingDeclarationsWithLegacyClassDecorators.10(module=esnext,target=esnext).js -+++ new.usingDeclarationsWithLegacyClassDecorators.10(module=esnext,target=esnext).js -@@= skipped -12, +12 lines =@@ - - - //// [usingDeclarationsWithLegacyClassDecorators.10.js] --let default_1 = class { --}; --default_1 = __decorate([ -- dec --], default_1); --export default default_1; -+@dec -+export default class { -+} - using after = null; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=es2015).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=es2015).js index d2c1f88c7..40416e84a 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=es2015).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=es2015).js @@ -19,10 +19,12 @@ using after = null; var after; Object.defineProperty(exports, "__esModule", { value: true }); exports.C = void 0; -@dec -class C { -} +let C = class C { +}; exports.C = C; +exports.C = C = __decorate([ + dec +], C); const env_1 = { stack: [], error: void 0, hasError: false }; try { after = __addDisposableResource(env_1, null, false); diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=es2015).js.diff index 6616fd26a..c7eaccba6 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=es2015).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=es2015).js.diff @@ -7,15 +7,11 @@ +var after; Object.defineProperty(exports, "__esModule", { value: true }); exports.C = void 0; --let C = class C { --}; -+@dec -+class C { -+} - exports.C = C; --exports.C = C = __decorate([ -- dec --], C); + let C = class C { +@@= skipped -8, +9 lines =@@ + exports.C = C = __decorate([ + dec + ], C); -var after; const env_1 = { stack: [], error: void 0, hasError: false }; try { diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=es5).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=es5).js index d2c1f88c7..40416e84a 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=es5).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=es5).js @@ -19,10 +19,12 @@ using after = null; var after; Object.defineProperty(exports, "__esModule", { value: true }); exports.C = void 0; -@dec -class C { -} +let C = class C { +}; exports.C = C; +exports.C = C = __decorate([ + dec +], C); const env_1 = { stack: [], error: void 0, hasError: false }; try { after = __addDisposableResource(env_1, null, false); diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=es5).js.diff index 3af0369d0..1ae673029 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=es5).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=es5).js.diff @@ -7,15 +7,11 @@ +var after; Object.defineProperty(exports, "__esModule", { value: true }); exports.C = void 0; --let C = class C { --}; -+@dec -+class C { -+} - exports.C = C; --exports.C = C = __decorate([ -- dec --], C); + let C = class C { +@@= skipped -8, +9 lines =@@ + exports.C = C = __decorate([ + dec + ], C); -var after; const env_1 = { stack: [], error: void 0, hasError: false }; try { diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=esnext).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=esnext).js index 1a4f67f13..b278c5165 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=esnext).js @@ -18,8 +18,10 @@ using after = null; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.C = void 0; -@dec -class C { -} +let C = class C { +}; exports.C = C; +exports.C = C = __decorate([ + dec +], C); using after = null; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=esnext).js.diff deleted file mode 100644 index 570a38cd3..000000000 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=esnext).js.diff +++ /dev/null @@ -1,16 +0,0 @@ ---- old.usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=esnext).js -+++ new.usingDeclarationsWithLegacyClassDecorators.11(module=commonjs,target=esnext).js -@@= skipped -17, +17 lines =@@ - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.C = void 0; --let C = class C { --}; -+@dec -+class C { -+} - exports.C = C; --exports.C = C = __decorate([ -- dec --], C); - using after = null; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=esnext,target=es2015).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=esnext,target=es2015).js index 245a60b8c..0feac4721 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=esnext,target=es2015).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=esnext,target=es2015).js @@ -16,9 +16,11 @@ using after = null; //// [usingDeclarationsWithLegacyClassDecorators.11.js] var after; -@dec -class C { -} +let C = class C { +}; +C = __decorate([ + dec +], C); export { C }; const env_1 = { stack: [], error: void 0, hasError: false }; try { diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=esnext,target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=esnext,target=es2015).js.diff index 5f9a3d29c..59587d287 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=esnext,target=es2015).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=esnext,target=es2015).js.diff @@ -4,17 +4,14 @@ //// [usingDeclarationsWithLegacyClassDecorators.11.js] --let C = class C { --}; --C = __decorate([ -- dec --], C); --export { C }; - var after; -+@dec -+class C { -+} -+export { C }; ++var after; + let C = class C { + }; + C = __decorate([ + dec + ], C); + export { C }; +-var after; const env_1 = { stack: [], error: void 0, hasError: false }; try { after = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=esnext,target=es5).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=esnext,target=es5).js index 245a60b8c..0feac4721 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=esnext,target=es5).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=esnext,target=es5).js @@ -16,9 +16,11 @@ using after = null; //// [usingDeclarationsWithLegacyClassDecorators.11.js] var after; -@dec -class C { -} +let C = class C { +}; +C = __decorate([ + dec +], C); export { C }; const env_1 = { stack: [], error: void 0, hasError: false }; try { diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=esnext,target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=esnext,target=es5).js.diff index dd68277d4..627985bc6 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=esnext,target=es5).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=esnext,target=es5).js.diff @@ -4,17 +4,14 @@ //// [usingDeclarationsWithLegacyClassDecorators.11.js] --let C = class C { --}; --C = __decorate([ -- dec --], C); --export { C }; - var after; -+@dec -+class C { -+} -+export { C }; ++var after; + let C = class C { + }; + C = __decorate([ + dec + ], C); + export { C }; +-var after; const env_1 = { stack: [], error: void 0, hasError: false }; try { after = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=esnext,target=esnext).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=esnext,target=esnext).js index c9144664a..9082a184d 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=esnext,target=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=esnext,target=esnext).js @@ -15,8 +15,10 @@ using after = null; //// [usingDeclarationsWithLegacyClassDecorators.11.js] -@dec -class C { -} +let C = class C { +}; +C = __decorate([ + dec +], C); export { C }; using after = null; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=esnext,target=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=esnext,target=esnext).js.diff deleted file mode 100644 index 5eb344448..000000000 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.11(module=esnext,target=esnext).js.diff +++ /dev/null @@ -1,16 +0,0 @@ ---- old.usingDeclarationsWithLegacyClassDecorators.11(module=esnext,target=esnext).js -+++ new.usingDeclarationsWithLegacyClassDecorators.11(module=esnext,target=esnext).js -@@= skipped -14, +14 lines =@@ - - - //// [usingDeclarationsWithLegacyClassDecorators.11.js] --let C = class C { --}; --C = __decorate([ -- dec --], C); -+@dec -+class C { -+} - export { C }; - using after = null; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=es2015).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=es2015).js index 716cdbf98..93480e672 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=es2015).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=es2015).js @@ -19,10 +19,12 @@ using after = null; var after; Object.defineProperty(exports, "__esModule", { value: true }); exports.D = void 0; -@dec -class C { -} +let C = class C { +}; exports.D = C; +exports.D = C = __decorate([ + dec +], C); const env_1 = { stack: [], error: void 0, hasError: false }; try { after = __addDisposableResource(env_1, null, false); diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=es2015).js.diff index 916279ffe..1d6a751f2 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=es2015).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=es2015).js.diff @@ -7,15 +7,11 @@ +var after; Object.defineProperty(exports, "__esModule", { value: true }); exports.D = void 0; --let C = class C { --}; -+@dec -+class C { -+} - exports.D = C; --exports.D = C = __decorate([ -- dec --], C); + let C = class C { +@@= skipped -8, +9 lines =@@ + exports.D = C = __decorate([ + dec + ], C); -var after; const env_1 = { stack: [], error: void 0, hasError: false }; try { diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=es5).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=es5).js index 716cdbf98..93480e672 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=es5).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=es5).js @@ -19,10 +19,12 @@ using after = null; var after; Object.defineProperty(exports, "__esModule", { value: true }); exports.D = void 0; -@dec -class C { -} +let C = class C { +}; exports.D = C; +exports.D = C = __decorate([ + dec +], C); const env_1 = { stack: [], error: void 0, hasError: false }; try { after = __addDisposableResource(env_1, null, false); diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=es5).js.diff index 50462f57a..9231c51cd 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=es5).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=es5).js.diff @@ -7,15 +7,11 @@ +var after; Object.defineProperty(exports, "__esModule", { value: true }); exports.D = void 0; --let C = class C { --}; -+@dec -+class C { -+} - exports.D = C; --exports.D = C = __decorate([ -- dec --], C); + let C = class C { +@@= skipped -8, +9 lines =@@ + exports.D = C = __decorate([ + dec + ], C); -var after; const env_1 = { stack: [], error: void 0, hasError: false }; try { diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=esnext).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=esnext).js index da719db69..75dce8b79 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=esnext).js @@ -18,8 +18,10 @@ using after = null; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.D = void 0; -@dec -class C { -} +let C = class C { +}; exports.D = C; +exports.D = C = __decorate([ + dec +], C); using after = null; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=esnext).js.diff deleted file mode 100644 index 252a3451f..000000000 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=esnext).js.diff +++ /dev/null @@ -1,16 +0,0 @@ ---- old.usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=esnext).js -+++ new.usingDeclarationsWithLegacyClassDecorators.12(module=commonjs,target=esnext).js -@@= skipped -17, +17 lines =@@ - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.D = void 0; --let C = class C { --}; -+@dec -+class C { -+} - exports.D = C; --exports.D = C = __decorate([ -- dec --], C); - using after = null; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=esnext,target=es2015).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=esnext,target=es2015).js index 5f85f0428..8a2237522 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=esnext,target=es2015).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=esnext,target=es2015).js @@ -16,9 +16,11 @@ using after = null; //// [usingDeclarationsWithLegacyClassDecorators.12.js] var after; -@dec -class C { -} +let C = class C { +}; +C = __decorate([ + dec +], C); export { C as D }; const env_1 = { stack: [], error: void 0, hasError: false }; try { diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=esnext,target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=esnext,target=es2015).js.diff index 95c1fb19a..dec21dfc5 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=esnext,target=es2015).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=esnext,target=es2015).js.diff @@ -4,17 +4,14 @@ //// [usingDeclarationsWithLegacyClassDecorators.12.js] --let C = class C { --}; --C = __decorate([ -- dec --], C); --export { C as D }; - var after; -+@dec -+class C { -+} -+export { C as D }; ++var after; + let C = class C { + }; + C = __decorate([ + dec + ], C); + export { C as D }; +-var after; const env_1 = { stack: [], error: void 0, hasError: false }; try { after = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=esnext,target=es5).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=esnext,target=es5).js index 5f85f0428..8a2237522 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=esnext,target=es5).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=esnext,target=es5).js @@ -16,9 +16,11 @@ using after = null; //// [usingDeclarationsWithLegacyClassDecorators.12.js] var after; -@dec -class C { -} +let C = class C { +}; +C = __decorate([ + dec +], C); export { C as D }; const env_1 = { stack: [], error: void 0, hasError: false }; try { diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=esnext,target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=esnext,target=es5).js.diff index 0e6dbc01c..973dac252 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=esnext,target=es5).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=esnext,target=es5).js.diff @@ -4,17 +4,14 @@ //// [usingDeclarationsWithLegacyClassDecorators.12.js] --let C = class C { --}; --C = __decorate([ -- dec --], C); --export { C as D }; - var after; -+@dec -+class C { -+} -+export { C as D }; ++var after; + let C = class C { + }; + C = __decorate([ + dec + ], C); + export { C as D }; +-var after; const env_1 = { stack: [], error: void 0, hasError: false }; try { after = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=esnext,target=esnext).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=esnext,target=esnext).js index edb56a5e6..0cd3ea7c8 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=esnext,target=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=esnext,target=esnext).js @@ -15,8 +15,10 @@ using after = null; //// [usingDeclarationsWithLegacyClassDecorators.12.js] -@dec -class C { -} +let C = class C { +}; +C = __decorate([ + dec +], C); export { C as D }; using after = null; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=esnext,target=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=esnext,target=esnext).js.diff deleted file mode 100644 index 685bf1d5a..000000000 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.12(module=esnext,target=esnext).js.diff +++ /dev/null @@ -1,16 +0,0 @@ ---- old.usingDeclarationsWithLegacyClassDecorators.12(module=esnext,target=esnext).js -+++ new.usingDeclarationsWithLegacyClassDecorators.12(module=esnext,target=esnext).js -@@= skipped -14, +14 lines =@@ - - - //// [usingDeclarationsWithLegacyClassDecorators.12.js] --let C = class C { --}; --C = __decorate([ -- dec --], C); -+@dec -+class C { -+} - export { C as D }; - using after = null; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=es2015).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=es2015).js index 857e8de4c..de306d25f 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=es2015).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=es2015).js @@ -20,10 +20,11 @@ exports.C = void 0; const env_1 = { stack: [], error: void 0, hasError: false }; try { before = __addDisposableResource(env_1, null, false); - exports.C = C = - @dec - class C { + exports.C = C = class C { }; + exports.C = C = __decorate([ + dec + ], C); } catch (e_1) { env_1.error = e_1; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=es2015).js.diff index 45357713a..159c2aa46 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=es2015).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=es2015).js.diff @@ -10,15 +10,4 @@ -var before, C; const env_1 = { stack: [], error: void 0, hasError: false }; try { - before = __addDisposableResource(env_1, null, false); -- exports.C = C = class C { -+ exports.C = C = -+ @dec -+ class C { - }; -- exports.C = C = __decorate([ -- dec -- ], C); - } - catch (e_1) { - env_1.error = e_1; \ No newline at end of file + before = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=es5).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=es5).js index 857e8de4c..de306d25f 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=es5).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=es5).js @@ -20,10 +20,11 @@ exports.C = void 0; const env_1 = { stack: [], error: void 0, hasError: false }; try { before = __addDisposableResource(env_1, null, false); - exports.C = C = - @dec - class C { + exports.C = C = class C { }; + exports.C = C = __decorate([ + dec + ], C); } catch (e_1) { env_1.error = e_1; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=es5).js.diff index ff3081697..700e0d2e3 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=es5).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=es5).js.diff @@ -10,15 +10,4 @@ -var before, C; const env_1 = { stack: [], error: void 0, hasError: false }; try { - before = __addDisposableResource(env_1, null, false); -- exports.C = C = class C { -+ exports.C = C = -+ @dec -+ class C { - }; -- exports.C = C = __decorate([ -- dec -- ], C); - } - catch (e_1) { - env_1.error = e_1; \ No newline at end of file + before = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=esnext).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=esnext).js index f3fa78df2..f0cbe114e 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=esnext).js @@ -17,7 +17,9 @@ export class C { Object.defineProperty(exports, "__esModule", { value: true }); exports.C = void 0; using before = null; -@dec -class C { -} +let C = class C { +}; exports.C = C; +exports.C = C = __decorate([ + dec +], C); diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=esnext).js.diff deleted file mode 100644 index d3b64cb93..000000000 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=esnext).js.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=esnext).js -+++ new.usingDeclarationsWithLegacyClassDecorators.2(module=commonjs,target=esnext).js -@@= skipped -16, +16 lines =@@ - Object.defineProperty(exports, "__esModule", { value: true }); - exports.C = void 0; - using before = null; --let C = class C { --}; -+@dec -+class C { -+} - exports.C = C; --exports.C = C = __decorate([ -- dec --], C); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=esnext,target=es2015).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=esnext,target=es2015).js index 8b0ad1f25..f2d7ff2b3 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=esnext,target=es2015).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=esnext,target=es2015).js @@ -18,10 +18,11 @@ export { C }; const env_1 = { stack: [], error: void 0, hasError: false }; try { before = __addDisposableResource(env_1, null, false); - C = - @dec - class C { + C = class C { }; + C = __decorate([ + dec + ], C); } catch (e_1) { env_1.error = e_1; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=esnext,target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=esnext,target=es2015).js.diff index 8cd5c8e72..b71b69ad4 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=esnext,target=es2015).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=esnext,target=es2015).js.diff @@ -9,15 +9,4 @@ +export { C }; const env_1 = { stack: [], error: void 0, hasError: false }; try { - before = __addDisposableResource(env_1, null, false); -- C = class C { -+ C = -+ @dec -+ class C { - }; -- C = __decorate([ -- dec -- ], C); - } - catch (e_1) { - env_1.error = e_1; \ No newline at end of file + before = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=esnext,target=es5).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=esnext,target=es5).js index 8b0ad1f25..f2d7ff2b3 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=esnext,target=es5).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=esnext,target=es5).js @@ -18,10 +18,11 @@ export { C }; const env_1 = { stack: [], error: void 0, hasError: false }; try { before = __addDisposableResource(env_1, null, false); - C = - @dec - class C { + C = class C { }; + C = __decorate([ + dec + ], C); } catch (e_1) { env_1.error = e_1; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=esnext,target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=esnext,target=es5).js.diff index d3bdcc84d..ad6a32b4a 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=esnext,target=es5).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=esnext,target=es5).js.diff @@ -9,15 +9,4 @@ +export { C }; const env_1 = { stack: [], error: void 0, hasError: false }; try { - before = __addDisposableResource(env_1, null, false); -- C = class C { -+ C = -+ @dec -+ class C { - }; -- C = __decorate([ -- dec -- ], C); - } - catch (e_1) { - env_1.error = e_1; \ No newline at end of file + before = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=esnext,target=esnext).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=esnext,target=esnext).js index 6e4bc8192..8d3fe7c20 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=esnext,target=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=esnext,target=esnext).js @@ -14,6 +14,9 @@ export class C { //// [usingDeclarationsWithLegacyClassDecorators.2.js] using before = null; -@dec -export class C { -} +let C = class C { +}; +C = __decorate([ + dec +], C); +export { C }; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=esnext,target=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=esnext,target=esnext).js.diff deleted file mode 100644 index b7bd292c3..000000000 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.2(module=esnext,target=esnext).js.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.usingDeclarationsWithLegacyClassDecorators.2(module=esnext,target=esnext).js -+++ new.usingDeclarationsWithLegacyClassDecorators.2(module=esnext,target=esnext).js -@@= skipped -13, +13 lines =@@ - - //// [usingDeclarationsWithLegacyClassDecorators.2.js] - using before = null; --let C = class C { --}; --C = __decorate([ -- dec --], C); --export { C }; -+@dec -+export class C { -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=es2015).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=es2015).js index 1a6c95dc3..db74be041 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=es2015).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=es2015).js @@ -20,10 +20,12 @@ exports.default = void 0; const env_1 = { stack: [], error: void 0, hasError: false }; try { before = __addDisposableResource(env_1, null, false); - exports.default = _default = C = - @dec - class C { + C = class C { }; + C = __decorate([ + dec + ], C); + exports.default = _default = C; } catch (e_1) { env_1.error = e_1; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=es2015).js.diff index c3f4b54ce..10d71f724 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=es2015).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=es2015).js.diff @@ -10,16 +10,4 @@ -var before, C, _default; const env_1 = { stack: [], error: void 0, hasError: false }; try { - before = __addDisposableResource(env_1, null, false); -- C = class C { -+ exports.default = _default = C = -+ @dec -+ class C { - }; -- C = __decorate([ -- dec -- ], C); -- exports.default = _default = C; - } - catch (e_1) { - env_1.error = e_1; \ No newline at end of file + before = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=es5).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=es5).js index 1a6c95dc3..db74be041 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=es5).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=es5).js @@ -20,10 +20,12 @@ exports.default = void 0; const env_1 = { stack: [], error: void 0, hasError: false }; try { before = __addDisposableResource(env_1, null, false); - exports.default = _default = C = - @dec - class C { + C = class C { }; + C = __decorate([ + dec + ], C); + exports.default = _default = C; } catch (e_1) { env_1.error = e_1; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=es5).js.diff index a60a83e30..1a170b93d 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=es5).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=es5).js.diff @@ -10,16 +10,4 @@ -var before, C, _default; const env_1 = { stack: [], error: void 0, hasError: false }; try { - before = __addDisposableResource(env_1, null, false); -- C = class C { -+ exports.default = _default = C = -+ @dec -+ class C { - }; -- C = __decorate([ -- dec -- ], C); -- exports.default = _default = C; - } - catch (e_1) { - env_1.error = e_1; \ No newline at end of file + before = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=esnext).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=esnext).js index 1dfe3a024..8f18c7d48 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=esnext).js @@ -16,7 +16,9 @@ export default class C { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); using before = null; -@dec -class C { -} +let C = class C { +}; +C = __decorate([ + dec +], C); exports.default = C; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=esnext).js.diff deleted file mode 100644 index a239d9f5e..000000000 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=esnext).js.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=esnext).js -+++ new.usingDeclarationsWithLegacyClassDecorators.3(module=commonjs,target=esnext).js -@@= skipped -15, +15 lines =@@ - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - using before = null; --let C = class C { --}; --C = __decorate([ -- dec --], C); -+@dec -+class C { -+} - exports.default = C; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=esnext,target=es2015).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=esnext,target=es2015).js index ecf150325..811543d4b 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=esnext,target=es2015).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=esnext,target=es2015).js @@ -18,10 +18,12 @@ export { _default as default }; const env_1 = { stack: [], error: void 0, hasError: false }; try { before = __addDisposableResource(env_1, null, false); - _default = C = - @dec - class C { + C = class C { }; + C = __decorate([ + dec + ], C); + _default = C; } catch (e_1) { env_1.error = e_1; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=esnext,target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=esnext,target=es2015).js.diff index da169d844..702debafc 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=esnext,target=es2015).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=esnext,target=es2015).js.diff @@ -9,16 +9,4 @@ +export { _default as default }; const env_1 = { stack: [], error: void 0, hasError: false }; try { - before = __addDisposableResource(env_1, null, false); -- C = class C { -+ _default = C = -+ @dec -+ class C { - }; -- C = __decorate([ -- dec -- ], C); -- _default = C; - } - catch (e_1) { - env_1.error = e_1; \ No newline at end of file + before = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=esnext,target=es5).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=esnext,target=es5).js index ecf150325..811543d4b 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=esnext,target=es5).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=esnext,target=es5).js @@ -18,10 +18,12 @@ export { _default as default }; const env_1 = { stack: [], error: void 0, hasError: false }; try { before = __addDisposableResource(env_1, null, false); - _default = C = - @dec - class C { + C = class C { }; + C = __decorate([ + dec + ], C); + _default = C; } catch (e_1) { env_1.error = e_1; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=esnext,target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=esnext,target=es5).js.diff index b1ec50fc2..c13747ab8 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=esnext,target=es5).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=esnext,target=es5).js.diff @@ -9,16 +9,4 @@ +export { _default as default }; const env_1 = { stack: [], error: void 0, hasError: false }; try { - before = __addDisposableResource(env_1, null, false); -- C = class C { -+ _default = C = -+ @dec -+ class C { - }; -- C = __decorate([ -- dec -- ], C); -- _default = C; - } - catch (e_1) { - env_1.error = e_1; \ No newline at end of file + before = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=esnext,target=esnext).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=esnext,target=esnext).js index f8fad5b4e..3d51ccac1 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=esnext,target=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=esnext,target=esnext).js @@ -14,6 +14,9 @@ export default class C { //// [usingDeclarationsWithLegacyClassDecorators.3.js] using before = null; -@dec -export default class C { -} +let C = class C { +}; +C = __decorate([ + dec +], C); +export default C; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=esnext,target=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=esnext,target=esnext).js.diff deleted file mode 100644 index 21d638eb2..000000000 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.3(module=esnext,target=esnext).js.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.usingDeclarationsWithLegacyClassDecorators.3(module=esnext,target=esnext).js -+++ new.usingDeclarationsWithLegacyClassDecorators.3(module=esnext,target=esnext).js -@@= skipped -13, +13 lines =@@ - - //// [usingDeclarationsWithLegacyClassDecorators.3.js] - using before = null; --let C = class C { --}; --C = __decorate([ -- dec --], C); --export default C; -+@dec -+export default class C { -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=es2015).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=es2015).js index 8d65f9765..b196c7555 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=es2015).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=es2015).js @@ -14,17 +14,18 @@ export default class { //// [usingDeclarationsWithLegacyClassDecorators.4.js] "use strict"; -var before, _default; +var before, default_1, _default; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; const env_1 = { stack: [], error: void 0, hasError: false }; try { before = __addDisposableResource(env_1, null, false); - exports.default = _default = - @dec - class { - static { __setFunctionName(this, "default"); } + default_1 = class { }; + default_1 = __decorate([ + dec + ], default_1); + exports.default = _default = default_1; } catch (e_1) { env_1.error = e_1; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=es2015).js.diff index 664a4a531..9f2d5a7ff 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=es2015).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=es2015).js.diff @@ -4,23 +4,10 @@ //// [usingDeclarationsWithLegacyClassDecorators.4.js] "use strict"; -+var before, _default; ++var before, default_1, _default; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; -var before, default_1, _default; const env_1 = { stack: [], error: void 0, hasError: false }; try { - before = __addDisposableResource(env_1, null, false); -- default_1 = class { -+ exports.default = _default = -+ @dec -+ class { -+ static { __setFunctionName(this, "default"); } - }; -- default_1 = __decorate([ -- dec -- ], default_1); -- exports.default = _default = default_1; - } - catch (e_1) { - env_1.error = e_1; \ No newline at end of file + before = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=es5).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=es5).js index 8d65f9765..b196c7555 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=es5).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=es5).js @@ -14,17 +14,18 @@ export default class { //// [usingDeclarationsWithLegacyClassDecorators.4.js] "use strict"; -var before, _default; +var before, default_1, _default; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; const env_1 = { stack: [], error: void 0, hasError: false }; try { before = __addDisposableResource(env_1, null, false); - exports.default = _default = - @dec - class { - static { __setFunctionName(this, "default"); } + default_1 = class { }; + default_1 = __decorate([ + dec + ], default_1); + exports.default = _default = default_1; } catch (e_1) { env_1.error = e_1; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=es5).js.diff index a514da349..85c372406 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=es5).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=es5).js.diff @@ -4,23 +4,10 @@ //// [usingDeclarationsWithLegacyClassDecorators.4.js] "use strict"; -+var before, _default; ++var before, default_1, _default; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; -var before, default_1, _default; const env_1 = { stack: [], error: void 0, hasError: false }; try { - before = __addDisposableResource(env_1, null, false); -- default_1 = class { -+ exports.default = _default = -+ @dec -+ class { -+ static { __setFunctionName(this, "default"); } - }; -- default_1 = __decorate([ -- dec -- ], default_1); -- exports.default = _default = default_1; - } - catch (e_1) { - env_1.error = e_1; \ No newline at end of file + before = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=esnext).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=esnext).js index 2cf3fa946..09e23b6ac 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=esnext).js @@ -16,7 +16,9 @@ export default class { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); using before = null; -@dec -class default_1 { -} +let default_1 = class { +}; +default_1 = __decorate([ + dec +], default_1); exports.default = default_1; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=esnext).js.diff deleted file mode 100644 index 5458ea0b1..000000000 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=esnext).js.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=esnext).js -+++ new.usingDeclarationsWithLegacyClassDecorators.4(module=commonjs,target=esnext).js -@@= skipped -15, +15 lines =@@ - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - using before = null; --let default_1 = class { --}; --default_1 = __decorate([ -- dec --], default_1); -+@dec -+class default_1 { -+} - exports.default = default_1; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=esnext,target=es2015).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=esnext,target=es2015).js index 34ed78684..52667c358 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=esnext,target=es2015).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=esnext,target=es2015).js @@ -13,16 +13,17 @@ export default class { //// [usingDeclarationsWithLegacyClassDecorators.4.js] -var before, _default; +var before, default_1, _default; export { _default as default }; const env_1 = { stack: [], error: void 0, hasError: false }; try { before = __addDisposableResource(env_1, null, false); - _default = - @dec - class { - static { __setFunctionName(this, "default"); } + default_1 = class { }; + default_1 = __decorate([ + dec + ], default_1); + _default = default_1; } catch (e_1) { env_1.error = e_1; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=esnext,target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=esnext,target=es2015).js.diff index cadb61e9a..41e974555 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=esnext,target=es2015).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=esnext,target=es2015).js.diff @@ -4,22 +4,9 @@ //// [usingDeclarationsWithLegacyClassDecorators.4.js] -+var before, _default; - export { _default as default }; --var before, default_1, _default; +-export { _default as default }; + var before, default_1, _default; ++export { _default as default }; const env_1 = { stack: [], error: void 0, hasError: false }; try { - before = __addDisposableResource(env_1, null, false); -- default_1 = class { -+ _default = -+ @dec -+ class { -+ static { __setFunctionName(this, "default"); } - }; -- default_1 = __decorate([ -- dec -- ], default_1); -- _default = default_1; - } - catch (e_1) { - env_1.error = e_1; \ No newline at end of file + before = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=esnext,target=es5).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=esnext,target=es5).js index 34ed78684..52667c358 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=esnext,target=es5).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=esnext,target=es5).js @@ -13,16 +13,17 @@ export default class { //// [usingDeclarationsWithLegacyClassDecorators.4.js] -var before, _default; +var before, default_1, _default; export { _default as default }; const env_1 = { stack: [], error: void 0, hasError: false }; try { before = __addDisposableResource(env_1, null, false); - _default = - @dec - class { - static { __setFunctionName(this, "default"); } + default_1 = class { }; + default_1 = __decorate([ + dec + ], default_1); + _default = default_1; } catch (e_1) { env_1.error = e_1; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=esnext,target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=esnext,target=es5).js.diff index 545733897..02d9da96f 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=esnext,target=es5).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=esnext,target=es5).js.diff @@ -4,22 +4,9 @@ //// [usingDeclarationsWithLegacyClassDecorators.4.js] -+var before, _default; - export { _default as default }; --var before, default_1, _default; +-export { _default as default }; + var before, default_1, _default; ++export { _default as default }; const env_1 = { stack: [], error: void 0, hasError: false }; try { - before = __addDisposableResource(env_1, null, false); -- default_1 = class { -+ _default = -+ @dec -+ class { -+ static { __setFunctionName(this, "default"); } - }; -- default_1 = __decorate([ -- dec -- ], default_1); -- _default = default_1; - } - catch (e_1) { - env_1.error = e_1; \ No newline at end of file + before = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=esnext,target=esnext).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=esnext,target=esnext).js index 57a548404..4aa174e2f 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=esnext,target=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=esnext,target=esnext).js @@ -14,6 +14,9 @@ export default class { //// [usingDeclarationsWithLegacyClassDecorators.4.js] using before = null; -@dec -export default class { -} +let default_1 = class { +}; +default_1 = __decorate([ + dec +], default_1); +export default default_1; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=esnext,target=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=esnext,target=esnext).js.diff deleted file mode 100644 index fdd672920..000000000 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.4(module=esnext,target=esnext).js.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.usingDeclarationsWithLegacyClassDecorators.4(module=esnext,target=esnext).js -+++ new.usingDeclarationsWithLegacyClassDecorators.4(module=esnext,target=esnext).js -@@= skipped -13, +13 lines =@@ - - //// [usingDeclarationsWithLegacyClassDecorators.4.js] - using before = null; --let default_1 = class { --}; --default_1 = __decorate([ -- dec --], default_1); --export default default_1; -+@dec -+export default class { -+} \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=es2015).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=es2015).js index 6b8536c75..8fb694669 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=es2015).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=es2015).js @@ -21,10 +21,11 @@ exports.C = void 0; const env_1 = { stack: [], error: void 0, hasError: false }; try { before = __addDisposableResource(env_1, null, false); - exports.C = C = - @dec - class C { + exports.C = C = class C { }; + exports.C = C = __decorate([ + dec + ], C); } catch (e_1) { env_1.error = e_1; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=es2015).js.diff index 0dacacb88..fa5fd35c2 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=es2015).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=es2015).js.diff @@ -10,15 +10,4 @@ -var before, C; const env_1 = { stack: [], error: void 0, hasError: false }; try { - before = __addDisposableResource(env_1, null, false); -- exports.C = C = class C { -+ exports.C = C = -+ @dec -+ class C { - }; -- exports.C = C = __decorate([ -- dec -- ], C); - } - catch (e_1) { - env_1.error = e_1; \ No newline at end of file + before = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=es5).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=es5).js index 6b8536c75..8fb694669 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=es5).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=es5).js @@ -21,10 +21,11 @@ exports.C = void 0; const env_1 = { stack: [], error: void 0, hasError: false }; try { before = __addDisposableResource(env_1, null, false); - exports.C = C = - @dec - class C { + exports.C = C = class C { }; + exports.C = C = __decorate([ + dec + ], C); } catch (e_1) { env_1.error = e_1; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=es5).js.diff index 06f937580..d2be080d6 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=es5).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=es5).js.diff @@ -10,15 +10,4 @@ -var before, C; const env_1 = { stack: [], error: void 0, hasError: false }; try { - before = __addDisposableResource(env_1, null, false); -- exports.C = C = class C { -+ exports.C = C = -+ @dec -+ class C { - }; -- exports.C = C = __decorate([ -- dec -- ], C); - } - catch (e_1) { - env_1.error = e_1; \ No newline at end of file + before = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=esnext).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=esnext).js index abb3dc415..3199317d1 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=esnext).js @@ -18,7 +18,9 @@ export { C }; Object.defineProperty(exports, "__esModule", { value: true }); exports.C = void 0; using before = null; -@dec -class C { -} +let C = class C { +}; exports.C = C; +exports.C = C = __decorate([ + dec +], C); diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=esnext).js.diff deleted file mode 100644 index 2bead4857..000000000 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=esnext).js.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=esnext).js -+++ new.usingDeclarationsWithLegacyClassDecorators.5(module=commonjs,target=esnext).js -@@= skipped -17, +17 lines =@@ - Object.defineProperty(exports, "__esModule", { value: true }); - exports.C = void 0; - using before = null; --let C = class C { --}; -+@dec -+class C { -+} - exports.C = C; --exports.C = C = __decorate([ -- dec --], C); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=esnext,target=es2015).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=esnext,target=es2015).js index 1392f9d9e..3ff5b13a1 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=esnext,target=es2015).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=esnext,target=es2015).js @@ -19,10 +19,11 @@ export { C }; const env_1 = { stack: [], error: void 0, hasError: false }; try { before = __addDisposableResource(env_1, null, false); - C = - @dec - class C { + C = class C { }; + C = __decorate([ + dec + ], C); } catch (e_1) { env_1.error = e_1; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=esnext,target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=esnext,target=es2015).js.diff index dcd55cc2d..637ac72bf 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=esnext,target=es2015).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=esnext,target=es2015).js.diff @@ -9,15 +9,4 @@ +export { C }; const env_1 = { stack: [], error: void 0, hasError: false }; try { - before = __addDisposableResource(env_1, null, false); -- C = class C { -+ C = -+ @dec -+ class C { - }; -- C = __decorate([ -- dec -- ], C); - } - catch (e_1) { - env_1.error = e_1; \ No newline at end of file + before = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=esnext,target=es5).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=esnext,target=es5).js index 1392f9d9e..3ff5b13a1 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=esnext,target=es5).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=esnext,target=es5).js @@ -19,10 +19,11 @@ export { C }; const env_1 = { stack: [], error: void 0, hasError: false }; try { before = __addDisposableResource(env_1, null, false); - C = - @dec - class C { + C = class C { }; + C = __decorate([ + dec + ], C); } catch (e_1) { env_1.error = e_1; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=esnext,target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=esnext,target=es5).js.diff index 408ccf054..f785247df 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=esnext,target=es5).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=esnext,target=es5).js.diff @@ -9,15 +9,4 @@ +export { C }; const env_1 = { stack: [], error: void 0, hasError: false }; try { - before = __addDisposableResource(env_1, null, false); -- C = class C { -+ C = -+ @dec -+ class C { - }; -- C = __decorate([ -- dec -- ], C); - } - catch (e_1) { - env_1.error = e_1; \ No newline at end of file + before = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=esnext,target=esnext).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=esnext,target=esnext).js index f20496102..f490f0b61 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=esnext,target=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=esnext,target=esnext).js @@ -15,7 +15,9 @@ export { C }; //// [usingDeclarationsWithLegacyClassDecorators.5.js] using before = null; -@dec -class C { -} +let C = class C { +}; +C = __decorate([ + dec +], C); export { C }; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=esnext,target=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=esnext,target=esnext).js.diff deleted file mode 100644 index 43666f52a..000000000 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.5(module=esnext,target=esnext).js.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.usingDeclarationsWithLegacyClassDecorators.5(module=esnext,target=esnext).js -+++ new.usingDeclarationsWithLegacyClassDecorators.5(module=esnext,target=esnext).js -@@= skipped -14, +14 lines =@@ - - //// [usingDeclarationsWithLegacyClassDecorators.5.js] - using before = null; --let C = class C { --}; --C = __decorate([ -- dec --], C); -+@dec -+class C { -+} - export { C }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=es2015).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=es2015).js index b3c5a067f..f59ce0c95 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=es2015).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=es2015).js @@ -21,10 +21,11 @@ exports.D = void 0; const env_1 = { stack: [], error: void 0, hasError: false }; try { before = __addDisposableResource(env_1, null, false); - exports.D = C = - @dec - class C { + exports.D = C = class C { }; + exports.D = C = __decorate([ + dec + ], C); } catch (e_1) { env_1.error = e_1; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=es2015).js.diff index a327750a5..7a9d38779 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=es2015).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=es2015).js.diff @@ -10,15 +10,4 @@ -var before, C; const env_1 = { stack: [], error: void 0, hasError: false }; try { - before = __addDisposableResource(env_1, null, false); -- exports.D = C = class C { -+ exports.D = C = -+ @dec -+ class C { - }; -- exports.D = C = __decorate([ -- dec -- ], C); - } - catch (e_1) { - env_1.error = e_1; \ No newline at end of file + before = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=es5).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=es5).js index b3c5a067f..f59ce0c95 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=es5).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=es5).js @@ -21,10 +21,11 @@ exports.D = void 0; const env_1 = { stack: [], error: void 0, hasError: false }; try { before = __addDisposableResource(env_1, null, false); - exports.D = C = - @dec - class C { + exports.D = C = class C { }; + exports.D = C = __decorate([ + dec + ], C); } catch (e_1) { env_1.error = e_1; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=es5).js.diff index d32ebbe2b..2694e41b3 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=es5).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=es5).js.diff @@ -10,15 +10,4 @@ -var before, C; const env_1 = { stack: [], error: void 0, hasError: false }; try { - before = __addDisposableResource(env_1, null, false); -- exports.D = C = class C { -+ exports.D = C = -+ @dec -+ class C { - }; -- exports.D = C = __decorate([ -- dec -- ], C); - } - catch (e_1) { - env_1.error = e_1; \ No newline at end of file + before = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=esnext).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=esnext).js index 5791e604b..f16c4772a 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=esnext).js @@ -18,7 +18,9 @@ export { C as D }; Object.defineProperty(exports, "__esModule", { value: true }); exports.D = void 0; using before = null; -@dec -class C { -} +let C = class C { +}; exports.D = C; +exports.D = C = __decorate([ + dec +], C); diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=esnext).js.diff deleted file mode 100644 index ca5a4a22a..000000000 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=esnext).js.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=esnext).js -+++ new.usingDeclarationsWithLegacyClassDecorators.6(module=commonjs,target=esnext).js -@@= skipped -17, +17 lines =@@ - Object.defineProperty(exports, "__esModule", { value: true }); - exports.D = void 0; - using before = null; --let C = class C { --}; -+@dec -+class C { -+} - exports.D = C; --exports.D = C = __decorate([ -- dec --], C); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=esnext,target=es2015).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=esnext,target=es2015).js index e6866e949..a2fb4535c 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=esnext,target=es2015).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=esnext,target=es2015).js @@ -19,10 +19,11 @@ export { C as D }; const env_1 = { stack: [], error: void 0, hasError: false }; try { before = __addDisposableResource(env_1, null, false); - C = - @dec - class C { + C = class C { }; + C = __decorate([ + dec + ], C); } catch (e_1) { env_1.error = e_1; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=esnext,target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=esnext,target=es2015).js.diff index c6ff636a6..cd9822a49 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=esnext,target=es2015).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=esnext,target=es2015).js.diff @@ -9,15 +9,4 @@ +export { C as D }; const env_1 = { stack: [], error: void 0, hasError: false }; try { - before = __addDisposableResource(env_1, null, false); -- C = class C { -+ C = -+ @dec -+ class C { - }; -- C = __decorate([ -- dec -- ], C); - } - catch (e_1) { - env_1.error = e_1; \ No newline at end of file + before = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=esnext,target=es5).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=esnext,target=es5).js index e6866e949..a2fb4535c 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=esnext,target=es5).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=esnext,target=es5).js @@ -19,10 +19,11 @@ export { C as D }; const env_1 = { stack: [], error: void 0, hasError: false }; try { before = __addDisposableResource(env_1, null, false); - C = - @dec - class C { + C = class C { }; + C = __decorate([ + dec + ], C); } catch (e_1) { env_1.error = e_1; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=esnext,target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=esnext,target=es5).js.diff index 755e60738..192db918c 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=esnext,target=es5).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=esnext,target=es5).js.diff @@ -9,15 +9,4 @@ +export { C as D }; const env_1 = { stack: [], error: void 0, hasError: false }; try { - before = __addDisposableResource(env_1, null, false); -- C = class C { -+ C = -+ @dec -+ class C { - }; -- C = __decorate([ -- dec -- ], C); - } - catch (e_1) { - env_1.error = e_1; \ No newline at end of file + before = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=esnext,target=esnext).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=esnext,target=esnext).js index 1f0c2ed56..ed1f2c80d 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=esnext,target=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=esnext,target=esnext).js @@ -15,7 +15,9 @@ export { C as D }; //// [usingDeclarationsWithLegacyClassDecorators.6.js] using before = null; -@dec -class C { -} +let C = class C { +}; +C = __decorate([ + dec +], C); export { C as D }; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=esnext,target=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=esnext,target=esnext).js.diff deleted file mode 100644 index aec8a8607..000000000 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.6(module=esnext,target=esnext).js.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.usingDeclarationsWithLegacyClassDecorators.6(module=esnext,target=esnext).js -+++ new.usingDeclarationsWithLegacyClassDecorators.6(module=esnext,target=esnext).js -@@= skipped -14, +14 lines =@@ - - //// [usingDeclarationsWithLegacyClassDecorators.6.js] - using before = null; --let C = class C { --}; --C = __decorate([ -- dec --], C); -+@dec -+class C { -+} - export { C as D }; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=es2015).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=es2015).js index 6c16da1e4..c5cbc5694 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=es2015).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=es2015).js @@ -16,9 +16,11 @@ using after = null; "use strict"; var after; Object.defineProperty(exports, "__esModule", { value: true }); -@dec -class C { -} +let C = class C { +}; +C = __decorate([ + dec +], C); const env_1 = { stack: [], error: void 0, hasError: false }; try { after = __addDisposableResource(env_1, null, false); diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=es2015).js.diff index 7a89e7bc1..925d761b4 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=es2015).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=es2015).js.diff @@ -4,17 +4,14 @@ //// [usingDeclarationsWithLegacyClassDecorators.7.js] "use strict"; --Object.defineProperty(exports, "__esModule", { value: true }); --let C = class C { --}; --C = __decorate([ -- dec --], C); - var after; -+Object.defineProperty(exports, "__esModule", { value: true }); -+@dec -+class C { -+} ++var after; + Object.defineProperty(exports, "__esModule", { value: true }); + let C = class C { + }; + C = __decorate([ + dec + ], C); +-var after; const env_1 = { stack: [], error: void 0, hasError: false }; try { after = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=es5).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=es5).js index 6c16da1e4..c5cbc5694 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=es5).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=es5).js @@ -16,9 +16,11 @@ using after = null; "use strict"; var after; Object.defineProperty(exports, "__esModule", { value: true }); -@dec -class C { -} +let C = class C { +}; +C = __decorate([ + dec +], C); const env_1 = { stack: [], error: void 0, hasError: false }; try { after = __addDisposableResource(env_1, null, false); diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=es5).js.diff index 9c7b19950..f2a142a24 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=es5).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=es5).js.diff @@ -4,17 +4,14 @@ //// [usingDeclarationsWithLegacyClassDecorators.7.js] "use strict"; --Object.defineProperty(exports, "__esModule", { value: true }); --let C = class C { --}; --C = __decorate([ -- dec --], C); - var after; -+Object.defineProperty(exports, "__esModule", { value: true }); -+@dec -+class C { -+} ++var after; + Object.defineProperty(exports, "__esModule", { value: true }); + let C = class C { + }; + C = __decorate([ + dec + ], C); +-var after; const env_1 = { stack: [], error: void 0, hasError: false }; try { after = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=esnext).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=esnext).js index d579fb33a..1acfe3baf 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=esnext).js @@ -15,7 +15,9 @@ using after = null; //// [usingDeclarationsWithLegacyClassDecorators.7.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -@dec -class C { -} +let C = class C { +}; +C = __decorate([ + dec +], C); using after = null; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=esnext).js.diff deleted file mode 100644 index e0d3dd44e..000000000 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=esnext).js.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- old.usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=esnext).js -+++ new.usingDeclarationsWithLegacyClassDecorators.7(module=commonjs,target=esnext).js -@@= skipped -14, +14 lines =@@ - //// [usingDeclarationsWithLegacyClassDecorators.7.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --let C = class C { --}; --C = __decorate([ -- dec --], C); -+@dec -+class C { -+} - using after = null; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=esnext,target=es2015).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=esnext,target=es2015).js index 3eda51205..5d943897a 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=esnext,target=es2015).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=esnext,target=es2015).js @@ -14,9 +14,11 @@ using after = null; //// [usingDeclarationsWithLegacyClassDecorators.7.js] var after; -@dec -class C { -} +let C = class C { +}; +C = __decorate([ + dec +], C); const env_1 = { stack: [], error: void 0, hasError: false }; try { after = __addDisposableResource(env_1, null, false); diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=esnext,target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=esnext,target=es2015).js.diff index e51bf43de..dabbea0f6 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=esnext,target=es2015).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=esnext,target=es2015).js.diff @@ -4,15 +4,13 @@ //// [usingDeclarationsWithLegacyClassDecorators.7.js] --let C = class C { --}; --C = __decorate([ -- dec --], C); - var after; -+@dec -+class C { -+} ++var after; + let C = class C { + }; + C = __decorate([ + dec + ], C); +-var after; const env_1 = { stack: [], error: void 0, hasError: false }; try { after = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=esnext,target=es5).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=esnext,target=es5).js index 3eda51205..5d943897a 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=esnext,target=es5).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=esnext,target=es5).js @@ -14,9 +14,11 @@ using after = null; //// [usingDeclarationsWithLegacyClassDecorators.7.js] var after; -@dec -class C { -} +let C = class C { +}; +C = __decorate([ + dec +], C); const env_1 = { stack: [], error: void 0, hasError: false }; try { after = __addDisposableResource(env_1, null, false); diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=esnext,target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=esnext,target=es5).js.diff index d265f45df..e123b5d68 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=esnext,target=es5).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=esnext,target=es5).js.diff @@ -4,15 +4,13 @@ //// [usingDeclarationsWithLegacyClassDecorators.7.js] --let C = class C { --}; --C = __decorate([ -- dec --], C); - var after; -+@dec -+class C { -+} ++var after; + let C = class C { + }; + C = __decorate([ + dec + ], C); +-var after; const env_1 = { stack: [], error: void 0, hasError: false }; try { after = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=esnext,target=esnext).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=esnext,target=esnext).js index b91b6d24b..0456f1ea7 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=esnext,target=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=esnext,target=esnext).js @@ -13,8 +13,10 @@ using after = null; //// [usingDeclarationsWithLegacyClassDecorators.7.js] -@dec -class C { -} +let C = class C { +}; +C = __decorate([ + dec +], C); using after = null; export {}; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=esnext,target=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=esnext,target=esnext).js.diff deleted file mode 100644 index c2fa5f437..000000000 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.7(module=esnext,target=esnext).js.diff +++ /dev/null @@ -1,16 +0,0 @@ ---- old.usingDeclarationsWithLegacyClassDecorators.7(module=esnext,target=esnext).js -+++ new.usingDeclarationsWithLegacyClassDecorators.7(module=esnext,target=esnext).js -@@= skipped -12, +12 lines =@@ - - - //// [usingDeclarationsWithLegacyClassDecorators.7.js] --let C = class C { --}; --C = __decorate([ -- dec --], C); -+@dec -+class C { -+} - using after = null; - export {}; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=es2015).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=es2015).js index 9549a5c88..96030dfab 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=es2015).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=es2015).js @@ -17,10 +17,12 @@ using after = null; var after; Object.defineProperty(exports, "__esModule", { value: true }); exports.C = void 0; -@dec -class C { -} +let C = class C { +}; exports.C = C; +exports.C = C = __decorate([ + dec +], C); const env_1 = { stack: [], error: void 0, hasError: false }; try { after = __addDisposableResource(env_1, null, false); diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=es2015).js.diff index 83d8c40b9..c10bcafbd 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=es2015).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=es2015).js.diff @@ -7,15 +7,11 @@ +var after; Object.defineProperty(exports, "__esModule", { value: true }); exports.C = void 0; --let C = class C { --}; -+@dec -+class C { -+} - exports.C = C; --exports.C = C = __decorate([ -- dec --], C); + let C = class C { +@@= skipped -8, +9 lines =@@ + exports.C = C = __decorate([ + dec + ], C); -var after; const env_1 = { stack: [], error: void 0, hasError: false }; try { diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=es5).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=es5).js index 9549a5c88..96030dfab 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=es5).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=es5).js @@ -17,10 +17,12 @@ using after = null; var after; Object.defineProperty(exports, "__esModule", { value: true }); exports.C = void 0; -@dec -class C { -} +let C = class C { +}; exports.C = C; +exports.C = C = __decorate([ + dec +], C); const env_1 = { stack: [], error: void 0, hasError: false }; try { after = __addDisposableResource(env_1, null, false); diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=es5).js.diff index 85b4cb595..0857215da 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=es5).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=es5).js.diff @@ -7,15 +7,11 @@ +var after; Object.defineProperty(exports, "__esModule", { value: true }); exports.C = void 0; --let C = class C { --}; -+@dec -+class C { -+} - exports.C = C; --exports.C = C = __decorate([ -- dec --], C); + let C = class C { +@@= skipped -8, +9 lines =@@ + exports.C = C = __decorate([ + dec + ], C); -var after; const env_1 = { stack: [], error: void 0, hasError: false }; try { diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=esnext).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=esnext).js index 584c41b0a..516301c4c 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=esnext).js @@ -16,8 +16,10 @@ using after = null; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.C = void 0; -@dec -class C { -} +let C = class C { +}; exports.C = C; +exports.C = C = __decorate([ + dec +], C); using after = null; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=esnext).js.diff deleted file mode 100644 index 94f0ef882..000000000 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=esnext).js.diff +++ /dev/null @@ -1,16 +0,0 @@ ---- old.usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=esnext).js -+++ new.usingDeclarationsWithLegacyClassDecorators.8(module=commonjs,target=esnext).js -@@= skipped -15, +15 lines =@@ - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - exports.C = void 0; --let C = class C { --}; -+@dec -+class C { -+} - exports.C = C; --exports.C = C = __decorate([ -- dec --], C); - using after = null; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=esnext,target=es2015).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=esnext,target=es2015).js index f6490c825..846490db0 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=esnext,target=es2015).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=esnext,target=es2015).js @@ -14,9 +14,12 @@ using after = null; //// [usingDeclarationsWithLegacyClassDecorators.8.js] var after; -@dec -export class C { -} +let C = class C { +}; +C = __decorate([ + dec +], C); +export { C }; const env_1 = { stack: [], error: void 0, hasError: false }; try { after = __addDisposableResource(env_1, null, false); diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=esnext,target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=esnext,target=es2015).js.diff index 2ee44d216..8c9947e7c 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=esnext,target=es2015).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=esnext,target=es2015).js.diff @@ -4,16 +4,14 @@ //// [usingDeclarationsWithLegacyClassDecorators.8.js] --let C = class C { --}; --C = __decorate([ -- dec --], C); --export { C }; - var after; -+@dec -+export class C { -+} ++var after; + let C = class C { + }; + C = __decorate([ + dec + ], C); + export { C }; +-var after; const env_1 = { stack: [], error: void 0, hasError: false }; try { after = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=esnext,target=es5).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=esnext,target=es5).js index f6490c825..846490db0 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=esnext,target=es5).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=esnext,target=es5).js @@ -14,9 +14,12 @@ using after = null; //// [usingDeclarationsWithLegacyClassDecorators.8.js] var after; -@dec -export class C { -} +let C = class C { +}; +C = __decorate([ + dec +], C); +export { C }; const env_1 = { stack: [], error: void 0, hasError: false }; try { after = __addDisposableResource(env_1, null, false); diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=esnext,target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=esnext,target=es5).js.diff index d45e4f49d..c58637ada 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=esnext,target=es5).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=esnext,target=es5).js.diff @@ -4,16 +4,14 @@ //// [usingDeclarationsWithLegacyClassDecorators.8.js] --let C = class C { --}; --C = __decorate([ -- dec --], C); --export { C }; - var after; -+@dec -+export class C { -+} ++var after; + let C = class C { + }; + C = __decorate([ + dec + ], C); + export { C }; +-var after; const env_1 = { stack: [], error: void 0, hasError: false }; try { after = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=esnext,target=esnext).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=esnext,target=esnext).js index e588d20bb..aee33622d 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=esnext,target=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=esnext,target=esnext).js @@ -13,7 +13,10 @@ using after = null; //// [usingDeclarationsWithLegacyClassDecorators.8.js] -@dec -export class C { -} +let C = class C { +}; +C = __decorate([ + dec +], C); +export { C }; using after = null; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=esnext,target=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=esnext,target=esnext).js.diff deleted file mode 100644 index 3ca752e84..000000000 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.8(module=esnext,target=esnext).js.diff +++ /dev/null @@ -1,16 +0,0 @@ ---- old.usingDeclarationsWithLegacyClassDecorators.8(module=esnext,target=esnext).js -+++ new.usingDeclarationsWithLegacyClassDecorators.8(module=esnext,target=esnext).js -@@= skipped -12, +12 lines =@@ - - - //// [usingDeclarationsWithLegacyClassDecorators.8.js] --let C = class C { --}; --C = __decorate([ -- dec --], C); --export { C }; -+@dec -+export class C { -+} - using after = null; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=es2015).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=es2015).js index 1a991cff9..0f56e82e2 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=es2015).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=es2015).js @@ -16,9 +16,11 @@ using after = null; "use strict"; var after; Object.defineProperty(exports, "__esModule", { value: true }); -@dec -class C { -} +let C = class C { +}; +C = __decorate([ + dec +], C); exports.default = C; const env_1 = { stack: [], error: void 0, hasError: false }; try { diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=es2015).js.diff index b2bbc47f2..a0c43cda1 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=es2015).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=es2015).js.diff @@ -6,14 +6,11 @@ "use strict"; +var after; Object.defineProperty(exports, "__esModule", { value: true }); --let C = class C { --}; --C = __decorate([ -- dec --], C); -+@dec -+class C { -+} + let C = class C { + }; +@@= skipped -7, +8 lines =@@ + dec + ], C); exports.default = C; -var after; const env_1 = { stack: [], error: void 0, hasError: false }; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=es5).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=es5).js index 1a991cff9..0f56e82e2 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=es5).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=es5).js @@ -16,9 +16,11 @@ using after = null; "use strict"; var after; Object.defineProperty(exports, "__esModule", { value: true }); -@dec -class C { -} +let C = class C { +}; +C = __decorate([ + dec +], C); exports.default = C; const env_1 = { stack: [], error: void 0, hasError: false }; try { diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=es5).js.diff index 050dde8c4..4c5952952 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=es5).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=es5).js.diff @@ -6,14 +6,11 @@ "use strict"; +var after; Object.defineProperty(exports, "__esModule", { value: true }); --let C = class C { --}; --C = __decorate([ -- dec --], C); -+@dec -+class C { -+} + let C = class C { + }; +@@= skipped -7, +8 lines =@@ + dec + ], C); exports.default = C; -var after; const env_1 = { stack: [], error: void 0, hasError: false }; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=esnext).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=esnext).js index 08862b500..17855fd9c 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=esnext).js @@ -15,8 +15,10 @@ using after = null; //// [usingDeclarationsWithLegacyClassDecorators.9.js] "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -@dec -class C { -} +let C = class C { +}; +C = __decorate([ + dec +], C); exports.default = C; using after = null; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=esnext).js.diff deleted file mode 100644 index 94f364fa2..000000000 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=esnext).js.diff +++ /dev/null @@ -1,16 +0,0 @@ ---- old.usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=esnext).js -+++ new.usingDeclarationsWithLegacyClassDecorators.9(module=commonjs,target=esnext).js -@@= skipped -14, +14 lines =@@ - //// [usingDeclarationsWithLegacyClassDecorators.9.js] - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); --let C = class C { --}; --C = __decorate([ -- dec --], C); -+@dec -+class C { -+} - exports.default = C; - using after = null; \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=esnext,target=es2015).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=esnext,target=es2015).js index 5465a7f6a..bd3537f17 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=esnext,target=es2015).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=esnext,target=es2015).js @@ -14,9 +14,12 @@ using after = null; //// [usingDeclarationsWithLegacyClassDecorators.9.js] var after; -@dec -export default class C { -} +let C = class C { +}; +C = __decorate([ + dec +], C); +export default C; const env_1 = { stack: [], error: void 0, hasError: false }; try { after = __addDisposableResource(env_1, null, false); diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=esnext,target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=esnext,target=es2015).js.diff index c7fb25598..70fbdc989 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=esnext,target=es2015).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=esnext,target=es2015).js.diff @@ -4,16 +4,14 @@ //// [usingDeclarationsWithLegacyClassDecorators.9.js] --let C = class C { --}; --C = __decorate([ -- dec --], C); --export default C; - var after; -+@dec -+export default class C { -+} ++var after; + let C = class C { + }; + C = __decorate([ + dec + ], C); + export default C; +-var after; const env_1 = { stack: [], error: void 0, hasError: false }; try { after = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=esnext,target=es5).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=esnext,target=es5).js index 5465a7f6a..bd3537f17 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=esnext,target=es5).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=esnext,target=es5).js @@ -14,9 +14,12 @@ using after = null; //// [usingDeclarationsWithLegacyClassDecorators.9.js] var after; -@dec -export default class C { -} +let C = class C { +}; +C = __decorate([ + dec +], C); +export default C; const env_1 = { stack: [], error: void 0, hasError: false }; try { after = __addDisposableResource(env_1, null, false); diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=esnext,target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=esnext,target=es5).js.diff index 1b562bdbf..b9659459d 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=esnext,target=es5).js.diff +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=esnext,target=es5).js.diff @@ -4,16 +4,14 @@ //// [usingDeclarationsWithLegacyClassDecorators.9.js] --let C = class C { --}; --C = __decorate([ -- dec --], C); --export default C; - var after; -+@dec -+export default class C { -+} ++var after; + let C = class C { + }; + C = __decorate([ + dec + ], C); + export default C; +-var after; const env_1 = { stack: [], error: void 0, hasError: false }; try { after = __addDisposableResource(env_1, null, false); \ No newline at end of file diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=esnext,target=esnext).js b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=esnext,target=esnext).js index 2e8af6365..53806f180 100644 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=esnext,target=esnext).js +++ b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=esnext,target=esnext).js @@ -13,7 +13,10 @@ using after = null; //// [usingDeclarationsWithLegacyClassDecorators.9.js] -@dec -export default class C { -} +let C = class C { +}; +C = __decorate([ + dec +], C); +export default C; using after = null; diff --git a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=esnext,target=esnext).js.diff b/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=esnext,target=esnext).js.diff deleted file mode 100644 index 745570873..000000000 --- a/testdata/baselines/reference/submodule/conformance/usingDeclarationsWithLegacyClassDecorators.9(module=esnext,target=esnext).js.diff +++ /dev/null @@ -1,16 +0,0 @@ ---- old.usingDeclarationsWithLegacyClassDecorators.9(module=esnext,target=esnext).js -+++ new.usingDeclarationsWithLegacyClassDecorators.9(module=esnext,target=esnext).js -@@= skipped -12, +12 lines =@@ - - - //// [usingDeclarationsWithLegacyClassDecorators.9.js] --let C = class C { --}; --C = __decorate([ -- dec --], C); --export default C; -+@dec -+export default class C { -+} - using after = null; \ No newline at end of file