mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Merge branch 'master' into builderAPI
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
[](https://travis-ci.org/Microsoft/TypeScript)
|
||||
[](https://dev.azure.com/typescript/TypeScript/_build/latest?definitionId=4&view=logs)
|
||||
[](https://travis-ci.org/Microsoft/TypeScript)
|
||||
[](https://dev.azure.com/typescript/TypeScript/_build/latest?definitionId=4&view=logs)
|
||||
[](https://www.npmjs.com/package/typescript)
|
||||
[](https://www.npmjs.com/package/typescript)
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
[](https://gitter.im/Microsoft/TypeScript?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
||||
|
||||
[TypeScript](https://www.typescriptlang.org/) is a language for application-scale JavaScript. TypeScript adds optional types to JavaScript that support tools for large-scale JavaScript applications for any browser, for any host, on any OS. TypeScript compiles to readable, standards-based JavaScript. Try it out at the [playground](https://www.typescriptlang.org/play/), and stay up to date via [our blog](https://blogs.msdn.microsoft.com/typescript) and [Twitter account](https://twitter.com/typescriptlang).
|
||||
[TypeScript](https://www.typescriptlang.org/) is a language for application-scale JavaScript. TypeScript adds optional types to JavaScript that support tools for large-scale JavaScript applications for any browser, for any host, on any OS. TypeScript compiles to readable, standards-based JavaScript. Try it out at the [playground](https://www.typescriptlang.org/play/), and stay up to date via [our blog](https://blogs.msdn.microsoft.com/typescript) and [Twitter account](https://twitter.com/typescript).
|
||||
|
||||
## Installing
|
||||
|
||||
@@ -28,14 +28,14 @@ npm install -g typescript@next
|
||||
There are many ways to [contribute](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md) to TypeScript.
|
||||
* [Submit bugs](https://github.com/Microsoft/TypeScript/issues) and help us verify fixes as they are checked in.
|
||||
* Review the [source code changes](https://github.com/Microsoft/TypeScript/pulls).
|
||||
* Engage with other TypeScript users and developers on [StackOverflow](https://stackoverflow.com/questions/tagged/typescript).
|
||||
* Engage with other TypeScript users and developers on [StackOverflow](https://stackoverflow.com/questions/tagged/typescript).
|
||||
* Join the [#typescript](https://twitter.com/search?q=%23TypeScript) discussion on Twitter.
|
||||
* [Contribute bug fixes](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md).
|
||||
* Read the language specification ([docx](https://github.com/Microsoft/TypeScript/blob/master/doc/TypeScript%20Language%20Specification.docx?raw=true),
|
||||
[pdf](https://github.com/Microsoft/TypeScript/blob/master/doc/TypeScript%20Language%20Specification.pdf?raw=true), [md](https://github.com/Microsoft/TypeScript/blob/master/doc/spec.md)).
|
||||
|
||||
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see
|
||||
the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com)
|
||||
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see
|
||||
the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com)
|
||||
with any additional questions or comments.
|
||||
|
||||
## Documentation
|
||||
@@ -71,17 +71,17 @@ npm install
|
||||
Use one of the following to build and test:
|
||||
|
||||
```
|
||||
gulp local # Build the compiler into built/local
|
||||
gulp clean # Delete the built compiler
|
||||
gulp local # Build the compiler into built/local
|
||||
gulp clean # Delete the built compiler
|
||||
gulp LKG # Replace the last known good with the built one.
|
||||
# Bootstrapping step to be executed when the built compiler reaches a stable state.
|
||||
gulp tests # Build the test infrastructure using the built compiler.
|
||||
gulp runtests # Run tests using the built compiler and test infrastructure.
|
||||
# You can override the host or specify a test for this command.
|
||||
# Use --host=<hostName> or --tests=<testPath>.
|
||||
gulp tests # Build the test infrastructure using the built compiler.
|
||||
gulp runtests # Run tests using the built compiler and test infrastructure.
|
||||
# You can override the host or specify a test for this command.
|
||||
# Use --host=<hostName> or --tests=<testPath>.
|
||||
gulp baseline-accept # This replaces the baseline test results with the results obtained from gulp runtests.
|
||||
gulp lint # Runs tslint on the TypeScript source.
|
||||
gulp help # List the above commands.
|
||||
gulp help # List the above commands.
|
||||
```
|
||||
|
||||
|
||||
|
||||
+130
-47
@@ -230,10 +230,10 @@ namespace ts {
|
||||
},
|
||||
isContextSensitive,
|
||||
getFullyQualifiedName,
|
||||
getResolvedSignature: (node, candidatesOutArray, agumentCount) =>
|
||||
getResolvedSignatureWorker(node, candidatesOutArray, agumentCount, CheckMode.Normal),
|
||||
getResolvedSignatureForSignatureHelp: (node, candidatesOutArray, agumentCount) =>
|
||||
getResolvedSignatureWorker(node, candidatesOutArray, agumentCount, CheckMode.IsForSignatureHelp),
|
||||
getResolvedSignature: (node, candidatesOutArray, argumentCount) =>
|
||||
getResolvedSignatureWorker(node, candidatesOutArray, argumentCount, CheckMode.Normal),
|
||||
getResolvedSignatureForSignatureHelp: (node, candidatesOutArray, argumentCount) =>
|
||||
getResolvedSignatureWorker(node, candidatesOutArray, argumentCount, CheckMode.IsForSignatureHelp),
|
||||
getExpandedParameters,
|
||||
hasEffectiveRestParameter,
|
||||
getConstantValue: nodeIn => {
|
||||
@@ -678,6 +678,7 @@ namespace ts {
|
||||
|
||||
let _jsxNamespace: __String;
|
||||
let _jsxFactoryEntity: EntityName | undefined;
|
||||
let outofbandVarianceMarkerHandler: ((onlyUnreliable: boolean) => void) | undefined;
|
||||
|
||||
const subtypeRelation = createMap<RelationComparisonResult>();
|
||||
const assignableRelation = createMap<RelationComparisonResult>();
|
||||
@@ -3182,7 +3183,7 @@ namespace ts {
|
||||
let containers = getContainersOfSymbol(symbol, enclosingDeclaration);
|
||||
// If we're trying to reference some object literal in, eg `var a = { x: 1 }`, the symbol for the literal, `__object`, is distinct
|
||||
// from the symbol of the declaration it is being assigned to. Since we can use the declaration to refer to the literal, however,
|
||||
// we'd like to make that connection here - potentially causing us to paint the declararation's visibiility, and therefore the literal.
|
||||
// we'd like to make that connection here - potentially causing us to paint the declaration's visibility, and therefore the literal.
|
||||
const firstDecl: Node = first(symbol.declarations);
|
||||
if (!length(containers) && meaning & SymbolFlags.Value && firstDecl && isObjectLiteralExpression(firstDecl)) {
|
||||
if (firstDecl.parent && isVariableDeclaration(firstDecl.parent) && firstDecl === firstDecl.parent.initializer) {
|
||||
@@ -7731,10 +7732,10 @@ namespace ts {
|
||||
}
|
||||
}
|
||||
// If the target is a union type or if we are intersecting with types belonging to one of the
|
||||
// disjoint domans, we may end up producing a constraint that hasn't been examined before.
|
||||
// disjoint domains, we may end up producing a constraint that hasn't been examined before.
|
||||
if (constraints && (targetIsUnion || hasDisjointDomainType)) {
|
||||
if (hasDisjointDomainType) {
|
||||
// We add any types belong to one of the disjoint domans because they might cause the final
|
||||
// We add any types belong to one of the disjoint domains because they might cause the final
|
||||
// intersection operation to reduce the union constraints.
|
||||
for (const t of type.types) {
|
||||
if (t.flags & TypeFlags.DisjointDomains) {
|
||||
@@ -7784,7 +7785,7 @@ namespace ts {
|
||||
}
|
||||
if (constraintDepth >= 50) {
|
||||
// We have reached 50 recursive invocations of getImmediateBaseConstraint and there is a
|
||||
// very high likelyhood we're dealing with an infinite generic type that perpetually generates
|
||||
// very high likelihood we're dealing with an infinite generic type that perpetually generates
|
||||
// new type identities as we descend into it. We stop the recursion here and mark this type
|
||||
// and the outer types as having circular constraints.
|
||||
error(currentNode, Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite);
|
||||
@@ -10349,8 +10350,16 @@ namespace ts {
|
||||
return links.resolvedType;
|
||||
}
|
||||
|
||||
function getActualTypeVariable(type: Type) {
|
||||
return type.flags & TypeFlags.Substitution ? (<SubstitutionType>type).typeVariable : type;
|
||||
function getActualTypeVariable(type: Type): Type {
|
||||
if (type.flags & TypeFlags.Substitution) {
|
||||
return (<SubstitutionType>type).typeVariable;
|
||||
}
|
||||
if (type.flags & TypeFlags.IndexedAccess && (
|
||||
(<IndexedAccessType>type).objectType.flags & TypeFlags.Substitution ||
|
||||
(<IndexedAccessType>type).indexType.flags & TypeFlags.Substitution)) {
|
||||
return getIndexedAccessType(getActualTypeVariable((<IndexedAccessType>type).objectType), getActualTypeVariable((<IndexedAccessType>type).indexType));
|
||||
}
|
||||
return type;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -12054,12 +12063,14 @@ namespace ts {
|
||||
}
|
||||
|
||||
if (!ignoreReturnTypes) {
|
||||
const targetReturnType = (target.declaration && isJSConstructor(target.declaration)) ?
|
||||
// If a signature reolution is already in-flight, skip issuing a circularity error
|
||||
// here and just use the `any` type directly
|
||||
const targetReturnType = isResolvingReturnTypeOfSignature(target) ? anyType : (target.declaration && isJSConstructor(target.declaration)) ?
|
||||
getJSClassType(target.declaration.symbol)! : getReturnTypeOfSignature(target);
|
||||
if (targetReturnType === voidType) {
|
||||
return result;
|
||||
}
|
||||
const sourceReturnType = (source.declaration && isJSConstructor(source.declaration)) ?
|
||||
const sourceReturnType = isResolvingReturnTypeOfSignature(source) ? anyType : (source.declaration && isJSConstructor(source.declaration)) ?
|
||||
getJSClassType(source.declaration.symbol)! : getReturnTypeOfSignature(source);
|
||||
|
||||
// The following block preserves behavior forbidding boolean returning functions from being assignable to type guard returning functions
|
||||
@@ -12844,7 +12855,7 @@ namespace ts {
|
||||
return result;
|
||||
}
|
||||
|
||||
function typeArgumentsRelatedTo(sources: ReadonlyArray<Type> = emptyArray, targets: ReadonlyArray<Type> = emptyArray, variances: ReadonlyArray<Variance> = emptyArray, reportErrors: boolean): Ternary {
|
||||
function typeArgumentsRelatedTo(sources: ReadonlyArray<Type> = emptyArray, targets: ReadonlyArray<Type> = emptyArray, variances: ReadonlyArray<VarianceFlags> = emptyArray, reportErrors: boolean): Ternary {
|
||||
if (sources.length !== targets.length && relation === identityRelation) {
|
||||
return Ternary.False;
|
||||
}
|
||||
@@ -12854,19 +12865,26 @@ namespace ts {
|
||||
// When variance information isn't available we default to covariance. This happens
|
||||
// in the process of computing variance information for recursive types and when
|
||||
// comparing 'this' type arguments.
|
||||
const variance = i < variances.length ? variances[i] : Variance.Covariant;
|
||||
const varianceFlags = i < variances.length ? variances[i] : VarianceFlags.Covariant;
|
||||
const variance = varianceFlags & VarianceFlags.VarianceMask;
|
||||
// We ignore arguments for independent type parameters (because they're never witnessed).
|
||||
if (variance !== Variance.Independent) {
|
||||
if (variance !== VarianceFlags.Independent) {
|
||||
const s = sources[i];
|
||||
const t = targets[i];
|
||||
let related = Ternary.True;
|
||||
if (variance === Variance.Covariant) {
|
||||
if (varianceFlags & VarianceFlags.Unmeasurable) {
|
||||
// Even an `Unmeasurable` variance works out without a structural check if the source and target are _identical_.
|
||||
// We can't simply assume invariance, because `Unmeasurable` marks nonlinear relations, for example, a relation tained by
|
||||
// the `-?` modifier in a mapped type (where, no matter how the inputs are related, the outputs still might not be)
|
||||
related = relation === identityRelation ? isRelatedTo(s, t, /*reportErrors*/ false) : compareTypesIdentical(s, t);
|
||||
}
|
||||
else if (variance === VarianceFlags.Covariant) {
|
||||
related = isRelatedTo(s, t, reportErrors);
|
||||
}
|
||||
else if (variance === Variance.Contravariant) {
|
||||
else if (variance === VarianceFlags.Contravariant) {
|
||||
related = isRelatedTo(t, s, reportErrors);
|
||||
}
|
||||
else if (variance === Variance.Bivariant) {
|
||||
else if (variance === VarianceFlags.Bivariant) {
|
||||
// In the bivariant case we first compare contravariantly without reporting
|
||||
// errors. Then, if that doesn't succeed, we compare covariantly with error
|
||||
// reporting. Thus, error elaboration will be based on the the covariant check,
|
||||
@@ -13246,21 +13264,20 @@ namespace ts {
|
||||
}
|
||||
return Ternary.False;
|
||||
|
||||
function isNonGeneric(type: Type) {
|
||||
// If we're already in identity relationship checking, we should use `isRelatedTo`
|
||||
// to catch the `Maybe` from an excessively deep type (which we then assume means
|
||||
// that the type could possibly contain a generic)
|
||||
if (relation === identityRelation) {
|
||||
return isRelatedTo(type, getPermissiveInstantiation(type)) === Ternary.True;
|
||||
}
|
||||
return isTypeIdenticalTo(type, getPermissiveInstantiation(type));
|
||||
}
|
||||
|
||||
function relateVariances(sourceTypeArguments: ReadonlyArray<Type> | undefined, targetTypeArguments: ReadonlyArray<Type> | undefined, variances: Variance[]) {
|
||||
function relateVariances(sourceTypeArguments: ReadonlyArray<Type> | undefined, targetTypeArguments: ReadonlyArray<Type> | undefined, variances: VarianceFlags[]) {
|
||||
if (result = typeArgumentsRelatedTo(sourceTypeArguments, targetTypeArguments, variances, reportErrors)) {
|
||||
return result;
|
||||
}
|
||||
const allowStructuralFallback = (targetTypeArguments && hasCovariantVoidArgument(targetTypeArguments, variances)) || isNonGeneric(source) || isNonGeneric(target);
|
||||
if (some(variances, v => !!(v & VarianceFlags.AllowsStructuralFallback))) {
|
||||
// If some type parameter was `Unmeasurable` or `Unreliable`, and we couldn't pass by assuming it was identical, then we
|
||||
// have to allow a structural fallback check
|
||||
// We elide the variance-based error elaborations, since those might not be too helpful, since we'll potentially
|
||||
// be assuming identity of the type parameter.
|
||||
originalErrorInfo = undefined;
|
||||
errorInfo = saveErrorInfo;
|
||||
return undefined;
|
||||
}
|
||||
const allowStructuralFallback = targetTypeArguments && hasCovariantVoidArgument(targetTypeArguments, variances);
|
||||
varianceCheckFailed = !allowStructuralFallback;
|
||||
// The type arguments did not relate appropriately, but it may be because we have no variance
|
||||
// information (in which case typeArgumentsRelatedTo defaulted to covariance for all type
|
||||
@@ -13278,7 +13295,7 @@ namespace ts {
|
||||
// reveal the reason).
|
||||
// We can switch on `reportErrors` here, since varianceCheckFailed guarantees we return `False`,
|
||||
// we can return `False` early here to skip calculating the structural error message we don't need.
|
||||
if (varianceCheckFailed && !(reportErrors && some(variances, v => v === Variance.Invariant))) {
|
||||
if (varianceCheckFailed && !(reportErrors && some(variances, v => (v & VarianceFlags.VarianceMask) === VarianceFlags.Invariant))) {
|
||||
return Ternary.False;
|
||||
}
|
||||
// We remember the original error information so we can restore it in case the structural
|
||||
@@ -13290,6 +13307,20 @@ namespace ts {
|
||||
}
|
||||
}
|
||||
|
||||
function reportUnmeasurableMarkers(p: TypeParameter) {
|
||||
if (outofbandVarianceMarkerHandler && (p === markerSuperType || p === markerSubType || p === markerOtherType)) {
|
||||
outofbandVarianceMarkerHandler(/*onlyUnreliable*/ false);
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
function reportUnreliableMarkers(p: TypeParameter) {
|
||||
if (outofbandVarianceMarkerHandler && (p === markerSuperType || p === markerSubType || p === markerOtherType)) {
|
||||
outofbandVarianceMarkerHandler(/*onlyUnreliable*/ true);
|
||||
}
|
||||
return p;
|
||||
}
|
||||
|
||||
// A type [P in S]: X is related to a type [Q in T]: Y if T is related to S and X' is
|
||||
// related to Y, where X' is an instantiation of X in which P is replaced with Q. Notice
|
||||
// that S and T are contra-variant whereas X and Y are co-variant.
|
||||
@@ -13298,7 +13329,9 @@ namespace ts {
|
||||
getCombinedMappedTypeOptionality(source) <= getCombinedMappedTypeOptionality(target));
|
||||
if (modifiersRelated) {
|
||||
let result: Ternary;
|
||||
if (result = isRelatedTo(getConstraintTypeFromMappedType(target), getConstraintTypeFromMappedType(source), reportErrors)) {
|
||||
const targetConstraint = getConstraintTypeFromMappedType(target);
|
||||
const sourceConstraint = instantiateType(getConstraintTypeFromMappedType(source), getCombinedMappedTypeOptionality(source) < 0 ? reportUnmeasurableMarkers : reportUnreliableMarkers);
|
||||
if (result = isRelatedTo(targetConstraint, sourceConstraint, reportErrors)) {
|
||||
const mapper = createTypeMapper([getTypeParameterFromMappedType(source)], [getTypeParameterFromMappedType(target)]);
|
||||
return result & isRelatedTo(instantiateType(getTemplateTypeFromMappedType(source), mapper), getTemplateTypeFromMappedType(target), reportErrors);
|
||||
}
|
||||
@@ -13888,26 +13921,45 @@ namespace ts {
|
||||
// instantiations of the generic type for type arguments with known relations. The function
|
||||
// returns the emptyArray singleton if we're not in strictFunctionTypes mode or if the function
|
||||
// has been invoked recursively for the given generic type.
|
||||
function getVariancesWorker<TCache extends { variances?: Variance[] }>(typeParameters: ReadonlyArray<TypeParameter> = emptyArray, cache: TCache, createMarkerType: (input: TCache, param: TypeParameter, marker: Type) => Type): Variance[] {
|
||||
function getVariancesWorker<TCache extends { variances?: VarianceFlags[] }>(typeParameters: ReadonlyArray<TypeParameter> = emptyArray, cache: TCache, createMarkerType: (input: TCache, param: TypeParameter, marker: Type) => Type): VarianceFlags[] {
|
||||
let variances = cache.variances;
|
||||
if (!variances) {
|
||||
// The emptyArray singleton is used to signal a recursive invocation.
|
||||
cache.variances = emptyArray;
|
||||
variances = [];
|
||||
for (const tp of typeParameters) {
|
||||
let unmeasurable = false;
|
||||
let unreliable = false;
|
||||
const oldHandler = outofbandVarianceMarkerHandler;
|
||||
outofbandVarianceMarkerHandler = (onlyUnreliable) => onlyUnreliable ? unreliable = true : unmeasurable = true;
|
||||
// We first compare instantiations where the type parameter is replaced with
|
||||
// marker types that have a known subtype relationship. From this we can infer
|
||||
// invariance, covariance, contravariance or bivariance.
|
||||
const typeWithSuper = createMarkerType(cache, tp, markerSuperType);
|
||||
const typeWithSub = createMarkerType(cache, tp, markerSubType);
|
||||
let variance = (isTypeAssignableTo(typeWithSub, typeWithSuper) ? Variance.Covariant : 0) |
|
||||
(isTypeAssignableTo(typeWithSuper, typeWithSub) ? Variance.Contravariant : 0);
|
||||
let variance = (isTypeAssignableTo(typeWithSub, typeWithSuper) ? VarianceFlags.Covariant : 0) |
|
||||
(isTypeAssignableTo(typeWithSuper, typeWithSub) ? VarianceFlags.Contravariant : 0);
|
||||
// If the instantiations appear to be related bivariantly it may be because the
|
||||
// type parameter is independent (i.e. it isn't witnessed anywhere in the generic
|
||||
// type). To determine this we compare instantiations where the type parameter is
|
||||
// replaced with marker types that are known to be unrelated.
|
||||
if (variance === Variance.Bivariant && isTypeAssignableTo(createMarkerType(cache, tp, markerOtherType), typeWithSuper)) {
|
||||
variance = Variance.Independent;
|
||||
if (variance === VarianceFlags.Bivariant && isTypeAssignableTo(createMarkerType(cache, tp, markerOtherType), typeWithSuper)) {
|
||||
variance = VarianceFlags.Independent;
|
||||
}
|
||||
outofbandVarianceMarkerHandler = oldHandler;
|
||||
if (unmeasurable || unreliable) {
|
||||
if (unmeasurable) {
|
||||
variance |= VarianceFlags.Unmeasurable;
|
||||
}
|
||||
if (unreliable) {
|
||||
variance |= VarianceFlags.Unreliable;
|
||||
}
|
||||
const covariantID = getRelationKey(typeWithSub, typeWithSuper, assignableRelation);
|
||||
const contravariantID = getRelationKey(typeWithSuper, typeWithSub, assignableRelation);
|
||||
// We delete the results of these checks, as we want them to actually be run, see the `Unmeasurable` variance we cache,
|
||||
// And then fall back to a structural result.
|
||||
assignableRelation.delete(covariantID);
|
||||
assignableRelation.delete(contravariantID);
|
||||
}
|
||||
variances.push(variance);
|
||||
}
|
||||
@@ -13916,7 +13968,7 @@ namespace ts {
|
||||
return variances;
|
||||
}
|
||||
|
||||
function getVariances(type: GenericType): Variance[] {
|
||||
function getVariances(type: GenericType): VarianceFlags[] {
|
||||
// Arrays and tuples are known to be covariant, no need to spend time computing this (emptyArray implies covariance for all parameters)
|
||||
if (type === globalArrayType || type === globalReadonlyArrayType || type.objectFlags & ObjectFlags.Tuple) {
|
||||
return emptyArray;
|
||||
@@ -13926,9 +13978,9 @@ namespace ts {
|
||||
|
||||
// Return true if the given type reference has a 'void' type argument for a covariant type parameter.
|
||||
// See comment at call in recursiveTypeRelatedTo for when this case matters.
|
||||
function hasCovariantVoidArgument(typeArguments: ReadonlyArray<Type>, variances: Variance[]): boolean {
|
||||
function hasCovariantVoidArgument(typeArguments: ReadonlyArray<Type>, variances: VarianceFlags[]): boolean {
|
||||
for (let i = 0; i < variances.length; i++) {
|
||||
if (variances[i] === Variance.Covariant && typeArguments[i].flags & TypeFlags.Void) {
|
||||
if ((variances[i] & VarianceFlags.VarianceMask) === VarianceFlags.Covariant && typeArguments[i].flags & TypeFlags.Void) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -15030,6 +15082,9 @@ namespace ts {
|
||||
target = removeTypesFromUnionOrIntersection(<UnionOrIntersectionType>target, matchingTypes);
|
||||
}
|
||||
}
|
||||
else if (target.flags & (TypeFlags.IndexedAccess | TypeFlags.Substitution)) {
|
||||
target = getActualTypeVariable(target);
|
||||
}
|
||||
if (target.flags & TypeFlags.TypeVariable) {
|
||||
// If target is a type parameter, make an inference, unless the source type contains
|
||||
// the anyFunctionType (the wildcard type that's used to avoid contextually typing functions).
|
||||
@@ -15091,9 +15146,6 @@ namespace ts {
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (target.flags & TypeFlags.Substitution) {
|
||||
inferFromTypes(source, (target as SubstitutionType).typeVariable);
|
||||
}
|
||||
if (getObjectFlags(source) & ObjectFlags.Reference && getObjectFlags(target) & ObjectFlags.Reference && (<TypeReference>source).target === (<TypeReference>target).target) {
|
||||
// If source and target are references to the same generic type, infer from type arguments
|
||||
const sourceTypes = (<TypeReference>source).typeArguments || emptyArray;
|
||||
@@ -15101,7 +15153,7 @@ namespace ts {
|
||||
const count = sourceTypes.length < targetTypes.length ? sourceTypes.length : targetTypes.length;
|
||||
const variances = getVariances((<TypeReference>source).target);
|
||||
for (let i = 0; i < count; i++) {
|
||||
if (i < variances.length && variances[i] === Variance.Contravariant) {
|
||||
if (i < variances.length && (variances[i] & VarianceFlags.VarianceMask) === VarianceFlags.Contravariant) {
|
||||
inferFromContravariantTypes(sourceTypes[i], targetTypes[i]);
|
||||
}
|
||||
else {
|
||||
@@ -20952,7 +21004,7 @@ namespace ts {
|
||||
// of the argument is a tuple type, spread the tuple elements into the argument list. We can
|
||||
// call checkExpressionCached because spread expressions never have a contextual type.
|
||||
const spreadArgument = <SpreadElement>args[length - 1];
|
||||
const type = checkExpressionCached(spreadArgument.expression);
|
||||
const type = flowLoopCount ? checkExpression(spreadArgument.expression) : checkExpressionCached(spreadArgument.expression);
|
||||
if (isTupleType(type)) {
|
||||
const typeArguments = (<TypeReference>type).typeArguments || emptyArray;
|
||||
const restIndex = type.target.hasRestElement ? typeArguments.length - 1 : -1;
|
||||
@@ -23079,7 +23131,19 @@ namespace ts {
|
||||
// Grammar checking
|
||||
if (produceDiagnostics) {
|
||||
if (!(node.flags & NodeFlags.AwaitContext)) {
|
||||
grammarErrorOnFirstToken(node, Diagnostics.await_expression_is_only_allowed_within_an_async_function);
|
||||
// use of 'await' in non-async function
|
||||
const sourceFile = getSourceFileOfNode(node);
|
||||
if (!hasParseDiagnostics(sourceFile)) {
|
||||
const span = getSpanOfTokenAtPosition(sourceFile, node.pos);
|
||||
const diagnostic = createFileDiagnostic(sourceFile, span.start, span.length, Diagnostics.await_expression_is_only_allowed_within_an_async_function);
|
||||
const func = getContainingFunction(node);
|
||||
if (func && func.kind !== SyntaxKind.Constructor) {
|
||||
Debug.assert((getFunctionFlags(func) & FunctionFlags.Async) === 0, "Enclosing function should never be an async function.");
|
||||
const relatedInfo = createDiagnosticForNode(func, Diagnostics.Did_you_mean_to_mark_this_function_as_async);
|
||||
addRelatedInfo(diagnostic, relatedInfo);
|
||||
}
|
||||
diagnostics.add(diagnostic);
|
||||
}
|
||||
}
|
||||
|
||||
if (isInParameterInitializerBeforeContainingFunction(node)) {
|
||||
@@ -31577,7 +31641,20 @@ namespace ts {
|
||||
|
||||
if (forInOrOfStatement.kind === SyntaxKind.ForOfStatement && forInOrOfStatement.awaitModifier) {
|
||||
if ((forInOrOfStatement.flags & NodeFlags.AwaitContext) === NodeFlags.None) {
|
||||
return grammarErrorOnNode(forInOrOfStatement.awaitModifier, Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator);
|
||||
// use of 'for-await-of' in non-async function
|
||||
const sourceFile = getSourceFileOfNode(forInOrOfStatement);
|
||||
if (!hasParseDiagnostics(sourceFile)) {
|
||||
const diagnostic = createDiagnosticForNode(forInOrOfStatement.awaitModifier, Diagnostics.A_for_await_of_statement_is_only_allowed_within_an_async_function_or_async_generator);
|
||||
const func = getContainingFunction(forInOrOfStatement);
|
||||
if (func && func.kind !== SyntaxKind.Constructor) {
|
||||
Debug.assert((getFunctionFlags(func) & FunctionFlags.Async) === 0, "Enclosing function should never be an async function.");
|
||||
const relatedInfo = createDiagnosticForNode(func, Diagnostics.Did_you_mean_to_mark_this_function_as_async);
|
||||
addRelatedInfo(diagnostic, relatedInfo);
|
||||
}
|
||||
diagnostics.add(diagnostic);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31752,6 +31829,9 @@ namespace ts {
|
||||
return grammarErrorAtPos(node, node.end - 1, ";".length, Diagnostics._0_expected, "{");
|
||||
}
|
||||
}
|
||||
else if (isClassLike(node.parent) && isStringLiteral(node.name) && node.name.text === "constructor" && (!compilerOptions.target || compilerOptions.target < ScriptTarget.ES5)) {
|
||||
return grammarErrorOnNode(node.name, Diagnostics.Quoted_constructors_have_previously_been_interpreted_as_methods_which_is_incorrect_In_TypeScript_3_6_they_will_be_correctly_parsed_as_constructors_In_the_meantime_consider_using_constructor_to_write_a_constructor_or_constructor_to_write_a_method);
|
||||
}
|
||||
if (checkGrammarForGenerator(node)) {
|
||||
return true;
|
||||
}
|
||||
@@ -32070,6 +32150,9 @@ namespace ts {
|
||||
|
||||
function checkGrammarProperty(node: PropertyDeclaration | PropertySignature) {
|
||||
if (isClassLike(node.parent)) {
|
||||
if (isStringLiteral(node.name) && node.name.text === "constructor") {
|
||||
return grammarErrorOnNode(node.name, Diagnostics.Classes_may_not_have_a_field_named_constructor);
|
||||
}
|
||||
if (checkGrammarForInvalidDynamicName(node.name, Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1984,8 +1984,8 @@ namespace ts {
|
||||
* @param basePath A root directory to resolve relative path entries in the config
|
||||
* file to. e.g. outDir
|
||||
*/
|
||||
export function parseJsonConfigFileContent(json: any, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: ReadonlyArray<FileExtensionInfo>): ParsedCommandLine {
|
||||
return parseJsonConfigFileContentWorker(json, /*sourceFile*/ undefined, host, basePath, existingOptions, configFileName, resolutionStack, extraFileExtensions);
|
||||
export function parseJsonConfigFileContent(json: any, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: ReadonlyArray<FileExtensionInfo>, extendedConfigCache?: Map<ExtendedConfigCacheEntry>): ParsedCommandLine {
|
||||
return parseJsonConfigFileContentWorker(json, /*sourceFile*/ undefined, host, basePath, existingOptions, configFileName, resolutionStack, extraFileExtensions, extendedConfigCache);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1995,7 +1995,7 @@ namespace ts {
|
||||
* @param basePath A root directory to resolve relative path entries in the config
|
||||
* file to. e.g. outDir
|
||||
*/
|
||||
export function parseJsonSourceFileConfigFileContent(sourceFile: TsConfigSourceFile, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: ReadonlyArray<FileExtensionInfo>, /*@internal*/ extendedConfigCache?: Map<ExtendedConfigCacheEntry>): ParsedCommandLine {
|
||||
export function parseJsonSourceFileConfigFileContent(sourceFile: TsConfigSourceFile, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: ReadonlyArray<FileExtensionInfo>, extendedConfigCache?: Map<ExtendedConfigCacheEntry>): ParsedCommandLine {
|
||||
return parseJsonConfigFileContentWorker(/*json*/ undefined, sourceFile, host, basePath, existingOptions, configFileName, resolutionStack, extraFileExtensions, extendedConfigCache);
|
||||
}
|
||||
|
||||
|
||||
@@ -239,7 +239,7 @@ namespace ts {
|
||||
}
|
||||
|
||||
// When the deleted entry was the last one, we need to
|
||||
// adust the lastEntry reference.
|
||||
// adjust the lastEntry reference.
|
||||
if (this.lastEntry === entry) {
|
||||
this.lastEntry = previousEntry;
|
||||
}
|
||||
@@ -1255,7 +1255,7 @@ namespace ts {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the only element of an array if it contains only one element; otheriwse, returns the
|
||||
* Returns the only element of an array if it contains only one element; otherwise, returns the
|
||||
* array.
|
||||
*/
|
||||
export function singleOrMany<T>(array: T[]): T | T[];
|
||||
@@ -1400,8 +1400,8 @@ namespace ts {
|
||||
/** Shims `Array.from`. */
|
||||
export function arrayFrom<T, U>(iterator: Iterator<T> | IterableIterator<T>, map: (t: T) => U): U[];
|
||||
export function arrayFrom<T>(iterator: Iterator<T> | IterableIterator<T>): T[];
|
||||
export function arrayFrom(iterator: Iterator<any> | IterableIterator<any>, map?: (t: any) => any): any[] {
|
||||
const result: any[] = [];
|
||||
export function arrayFrom<T, U>(iterator: Iterator<T> | IterableIterator<T>, map?: (t: T) => U): (T | U)[] {
|
||||
const result: (T | U)[] = [];
|
||||
for (let { value, done } = iterator.next(); !done; { value, done } = iterator.next()) {
|
||||
result.push(map ? map(value) : value);
|
||||
}
|
||||
|
||||
@@ -1035,6 +1035,10 @@
|
||||
"category": "Error",
|
||||
"code": 1355
|
||||
},
|
||||
"Did you mean to mark this function as 'async'?": {
|
||||
"category": "Error",
|
||||
"code": 1356
|
||||
},
|
||||
|
||||
"Duplicate identifier '{0}'.": {
|
||||
"category": "Error",
|
||||
@@ -2959,7 +2963,7 @@
|
||||
"category": "Error",
|
||||
"code": 4104
|
||||
},
|
||||
|
||||
|
||||
"The current host does not support the '{0}' option.": {
|
||||
"category": "Error",
|
||||
"code": 5001
|
||||
@@ -4958,8 +4962,29 @@
|
||||
"category": "Message",
|
||||
"code": 95076
|
||||
},
|
||||
"Extract type": {
|
||||
"category": "Message",
|
||||
"code": 95077
|
||||
},
|
||||
"Extract to type alias": {
|
||||
"category": "Message",
|
||||
"code": 95078
|
||||
},
|
||||
"Extract to typedef": {
|
||||
"category": "Message",
|
||||
"code": 95079
|
||||
},
|
||||
|
||||
"No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer." :{
|
||||
"category": "Error",
|
||||
"code": 18004
|
||||
},
|
||||
"Quoted constructors have previously been interpreted as methods, which is incorrect. In TypeScript 3.6, they will be correctly parsed as constructors. In the meantime, consider using 'constructor()' to write a constructor, or '[\"constructor\"]()' to write a method.": {
|
||||
"category": "Error",
|
||||
"code": 18005
|
||||
},
|
||||
"Classes may not have a field named 'constructor'.": {
|
||||
"category": "Error",
|
||||
"code": 18006
|
||||
}
|
||||
}
|
||||
|
||||
@@ -222,7 +222,7 @@ namespace ts {
|
||||
|
||||
/*@internal*/
|
||||
// targetSourceFile is when users only want one file in entire project to be emitted. This is used in compileOnSave feature
|
||||
export function emitFiles(resolver: EmitResolver, host: EmitHost, targetSourceFile: SourceFile | undefined, emitOnlyDtsFiles?: boolean, transformers?: TransformerFactory<Bundle | SourceFile>[], declarationTransformers?: TransformerFactory<Bundle | SourceFile>[], onlyBuildInfo?: boolean): EmitResult {
|
||||
export function emitFiles(resolver: EmitResolver, host: EmitHost, targetSourceFile: SourceFile | undefined, { scriptTransformers, declarationTransformers }: EmitTransformers, emitOnlyDtsFiles?: boolean, onlyBuildInfo?: boolean): EmitResult {
|
||||
const compilerOptions = host.getCompilerOptions();
|
||||
const sourceMapDataList: SourceMapEmitResult[] | undefined = (compilerOptions.sourceMap || compilerOptions.inlineSourceMap || getAreDeclarationMapsEnabled(compilerOptions)) ? [] : undefined;
|
||||
const emittedFilesList: string[] | undefined = compilerOptions.listEmittedFiles ? [] : undefined;
|
||||
@@ -303,7 +303,7 @@ namespace ts {
|
||||
return;
|
||||
}
|
||||
// Transform the source files
|
||||
const transform = transformNodes(resolver, host, compilerOptions, [sourceFileOrBundle], transformers!, /*allowDtsFiles*/ false);
|
||||
const transform = transformNodes(resolver, host, compilerOptions, [sourceFileOrBundle], scriptTransformers, /*allowDtsFiles*/ false);
|
||||
|
||||
const printerOptions: PrinterOptions = {
|
||||
removeComments: compilerOptions.removeComments,
|
||||
@@ -349,7 +349,7 @@ namespace ts {
|
||||
// Do that here when emitting only dts files
|
||||
nonJsFiles.forEach(collectLinkedAliases);
|
||||
}
|
||||
const declarationTransform = transformNodes(resolver, host, compilerOptions, inputListOrBundle, concatenate([transformDeclarations], declarationTransformers), /*allowDtsFiles*/ false);
|
||||
const declarationTransform = transformNodes(resolver, host, compilerOptions, inputListOrBundle, declarationTransformers, /*allowDtsFiles*/ false);
|
||||
if (length(declarationTransform.diagnostics)) {
|
||||
for (const diagnostic of declarationTransform.diagnostics!) {
|
||||
emitterDiagnostics.add(diagnostic);
|
||||
@@ -728,7 +728,12 @@ namespace ts {
|
||||
useCaseSensitiveFileNames: () => host.useCaseSensitiveFileNames(),
|
||||
getProgramBuildInfo: returnUndefined
|
||||
};
|
||||
emitFiles(notImplementedResolver, emitHost, /*targetSourceFile*/ undefined, /*emitOnlyDtsFiles*/ false, getTransformers(config.options, customTransformers));
|
||||
emitFiles(
|
||||
notImplementedResolver,
|
||||
emitHost,
|
||||
/*targetSourceFile*/ undefined,
|
||||
getTransformers(config.options, customTransformers)
|
||||
);
|
||||
return outputFiles;
|
||||
}
|
||||
|
||||
|
||||
@@ -1004,10 +1004,10 @@ namespace ts {
|
||||
: node;
|
||||
}
|
||||
|
||||
export function createPropertyAccess(expression: Expression, name: string | Identifier | undefined) {
|
||||
export function createPropertyAccess(expression: Expression, name: string | Identifier) {
|
||||
const node = <PropertyAccessExpression>createSynthesizedNode(SyntaxKind.PropertyAccessExpression);
|
||||
node.expression = parenthesizeForAccess(expression);
|
||||
node.name = asName(name)!; // TODO: GH#18217
|
||||
node.name = asName(name);
|
||||
setEmitFlags(node, EmitFlags.NoIndentation);
|
||||
return node;
|
||||
}
|
||||
@@ -2468,7 +2468,7 @@ namespace ts {
|
||||
|
||||
export function createSpreadAssignment(expression: Expression) {
|
||||
const node = <SpreadAssignment>createSynthesizedNode(SyntaxKind.SpreadAssignment);
|
||||
node.expression = expression !== undefined ? parenthesizeExpressionForList(expression) : undefined!; // TODO: GH#18217
|
||||
node.expression = parenthesizeExpressionForList(expression);
|
||||
return node;
|
||||
}
|
||||
|
||||
@@ -2949,7 +2949,7 @@ namespace ts {
|
||||
return node;
|
||||
}
|
||||
|
||||
export function updateBundle(node: Bundle, sourceFiles: ReadonlyArray<SourceFile>, prepends: ReadonlyArray<UnparsedSource> = emptyArray) {
|
||||
export function updateBundle(node: Bundle, sourceFiles: ReadonlyArray<SourceFile>, prepends: ReadonlyArray<UnparsedSource | InputFiles> = emptyArray) {
|
||||
if (node.sourceFiles !== sourceFiles || node.prepends !== prepends) {
|
||||
return createBundle(sourceFiles, prepends);
|
||||
}
|
||||
|
||||
@@ -1328,6 +1328,8 @@ namespace ts {
|
||||
return node;
|
||||
}
|
||||
|
||||
function createMissingNode<T extends Node>(kind: T["kind"], reportAtCurrentPosition: false, diagnosticMessage?: DiagnosticMessage, arg0?: any): T;
|
||||
function createMissingNode<T extends Node>(kind: T["kind"], reportAtCurrentPosition: boolean, diagnosticMessage: DiagnosticMessage, arg0?: any): T;
|
||||
function createMissingNode<T extends Node>(kind: T["kind"], reportAtCurrentPosition: boolean, diagnosticMessage: DiagnosticMessage, arg0?: any): T {
|
||||
if (reportAtCurrentPosition) {
|
||||
parseErrorAtPosition(scanner.getStartPos(), 0, diagnosticMessage, arg0);
|
||||
@@ -3122,15 +3124,16 @@ namespace ts {
|
||||
}
|
||||
|
||||
function parseUnionOrIntersectionType(kind: SyntaxKind.UnionType | SyntaxKind.IntersectionType, parseConstituentType: () => TypeNode, operator: SyntaxKind.BarToken | SyntaxKind.AmpersandToken): TypeNode {
|
||||
parseOptional(operator);
|
||||
const start = scanner.getStartPos();
|
||||
const hasLeadingOperator = parseOptional(operator);
|
||||
let type = parseConstituentType();
|
||||
if (token() === operator) {
|
||||
if (token() === operator || hasLeadingOperator) {
|
||||
const types = [type];
|
||||
while (parseOptional(operator)) {
|
||||
types.push(parseConstituentType());
|
||||
}
|
||||
const node = <UnionOrIntersectionTypeNode>createNode(kind, type.pos);
|
||||
node.types = createNodeArray(types, type.pos);
|
||||
const node = <UnionOrIntersectionTypeNode>createNode(kind, start);
|
||||
node.types = createNodeArray(types, start);
|
||||
type = finishNode(node);
|
||||
}
|
||||
return type;
|
||||
@@ -4290,7 +4293,7 @@ namespace ts {
|
||||
badNode.end = invalidElement.end;
|
||||
badNode.left = result;
|
||||
badNode.right = invalidElement;
|
||||
badNode.operatorToken = createMissingNode(SyntaxKind.CommaToken, /*reportAtCurrentPosition*/ false, /*diagnosticMessage*/ undefined!); // TODO: GH#18217
|
||||
badNode.operatorToken = createMissingNode(SyntaxKind.CommaToken, /*reportAtCurrentPosition*/ false);
|
||||
badNode.operatorToken.pos = badNode.operatorToken.end = badNode.right.pos;
|
||||
return <JsxElement><Node>badNode;
|
||||
}
|
||||
|
||||
+9
-12
@@ -1453,9 +1453,8 @@ namespace ts {
|
||||
notImplementedResolver,
|
||||
getEmitHost(writeFileCallback),
|
||||
/*targetSourceFile*/ undefined,
|
||||
/*transformers*/ noTransformers,
|
||||
/*emitOnlyDtsFiles*/ false,
|
||||
/*transformers*/ undefined,
|
||||
/*declaraitonTransformers*/ undefined,
|
||||
/*onlyBuildInfo*/ true
|
||||
);
|
||||
|
||||
@@ -1574,14 +1573,12 @@ namespace ts {
|
||||
|
||||
performance.mark("beforeEmit");
|
||||
|
||||
const transformers = emitOnlyDtsFiles ? [] : getTransformers(options, customTransformers);
|
||||
const emitResult = emitFiles(
|
||||
emitResolver,
|
||||
getEmitHost(writeFileCallback),
|
||||
sourceFile,
|
||||
getTransformers(options, customTransformers, emitOnlyDtsFiles),
|
||||
emitOnlyDtsFiles,
|
||||
transformers,
|
||||
customTransformers && customTransformers.afterDeclarations
|
||||
);
|
||||
|
||||
performance.mark("afterEmit");
|
||||
@@ -2688,6 +2685,7 @@ namespace ts {
|
||||
return undefined;
|
||||
}
|
||||
sourceFile = Debug.assertDefined(commandLine.options.configFile);
|
||||
Debug.assert(!sourceFile.path || sourceFile.path === sourceFilePath);
|
||||
addFileToFilesByName(sourceFile, sourceFilePath, /*redirectedPath*/ undefined);
|
||||
}
|
||||
else {
|
||||
@@ -2699,11 +2697,12 @@ namespace ts {
|
||||
projectReferenceRedirects.set(sourceFilePath, false);
|
||||
return undefined;
|
||||
}
|
||||
sourceFile.path = sourceFilePath;
|
||||
sourceFile.resolvedPath = sourceFilePath;
|
||||
sourceFile.originalFileName = refPath;
|
||||
commandLine = parseJsonSourceFileConfigFileContent(sourceFile, configParsingHost, basePath, /*existingOptions*/ undefined, refPath);
|
||||
}
|
||||
sourceFile.path = sourceFilePath;
|
||||
sourceFile.resolvedPath = sourceFilePath;
|
||||
sourceFile.originalFileName = refPath;
|
||||
|
||||
const resolvedRef: ResolvedProjectReference = { commandLine, sourceFile };
|
||||
projectReferenceRedirects.set(sourceFilePath, resolvedRef);
|
||||
if (commandLine.projectReferences) {
|
||||
@@ -2768,10 +2767,8 @@ namespace ts {
|
||||
if (options.composite) {
|
||||
const rootPaths = rootNames.map(toPath);
|
||||
for (const file of files) {
|
||||
// Ignore declaration files
|
||||
if (file.isDeclarationFile) continue;
|
||||
// Ignore json file thats from project reference
|
||||
if (isJsonSourceFile(file) && getResolvedProjectReferenceToRedirect(file.fileName)) continue;
|
||||
// Ignore file that is not emitted
|
||||
if (!sourceFileMayBeEmitted(file, options, isSourceFileFromExternalLibrary, getResolvedProjectReferenceToRedirect)) continue;
|
||||
if (rootPaths.indexOf(file.path) === -1) {
|
||||
programDiagnostics.add(createCompilerDiagnostic(Diagnostics.File_0_is_not_in_project_file_list_Projects_must_list_all_files_or_use_an_include_pattern, file.fileName));
|
||||
}
|
||||
|
||||
@@ -24,13 +24,24 @@ namespace ts {
|
||||
EmitNotifications = 1 << 1,
|
||||
}
|
||||
|
||||
export function getTransformers(compilerOptions: CompilerOptions, customTransformers?: CustomTransformers) {
|
||||
export const noTransformers: EmitTransformers = { scriptTransformers: emptyArray, declarationTransformers: emptyArray };
|
||||
|
||||
export function getTransformers(compilerOptions: CompilerOptions, customTransformers?: CustomTransformers, emitOnlyDtsFiles?: boolean): EmitTransformers {
|
||||
return {
|
||||
scriptTransformers: getScriptTransformers(compilerOptions, customTransformers, emitOnlyDtsFiles),
|
||||
declarationTransformers: getDeclarationTransformers(customTransformers),
|
||||
};
|
||||
}
|
||||
|
||||
function getScriptTransformers(compilerOptions: CompilerOptions, customTransformers?: CustomTransformers, emitOnlyDtsFiles?: boolean) {
|
||||
if (emitOnlyDtsFiles) return emptyArray;
|
||||
|
||||
const jsx = compilerOptions.jsx;
|
||||
const languageVersion = getEmitScriptTarget(compilerOptions);
|
||||
const moduleKind = getEmitModuleKind(compilerOptions);
|
||||
const transformers: TransformerFactory<SourceFile | Bundle>[] = [];
|
||||
|
||||
addRange(transformers, customTransformers && customTransformers.before);
|
||||
addRange(transformers, customTransformers && map(customTransformers.before, wrapScriptTransformerFactory));
|
||||
|
||||
transformers.push(transformTypeScript);
|
||||
|
||||
@@ -71,11 +82,44 @@ namespace ts {
|
||||
transformers.push(transformES5);
|
||||
}
|
||||
|
||||
addRange(transformers, customTransformers && customTransformers.after);
|
||||
|
||||
addRange(transformers, customTransformers && map(customTransformers.after, wrapScriptTransformerFactory));
|
||||
return transformers;
|
||||
}
|
||||
|
||||
function getDeclarationTransformers(customTransformers?: CustomTransformers) {
|
||||
const transformers: TransformerFactory<SourceFile | Bundle>[] = [];
|
||||
transformers.push(transformDeclarations);
|
||||
addRange(transformers, customTransformers && map(customTransformers.afterDeclarations, wrapDeclarationTransformerFactory));
|
||||
return transformers;
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrap a custom script or declaration transformer object in a `Transformer` callback with fallback support for transforming bundles.
|
||||
*/
|
||||
function wrapCustomTransformer(transformer: CustomTransformer): Transformer<Bundle | SourceFile> {
|
||||
return node => isBundle(node) ? transformer.transformBundle(node) : transformer.transformSourceFile(node);
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrap a transformer factory that may return a custom script or declaration transformer object.
|
||||
*/
|
||||
function wrapCustomTransformerFactory<T extends SourceFile | Bundle>(transformer: TransformerFactory<T> | CustomTransformerFactory, handleDefault: (node: Transformer<T>) => Transformer<Bundle | SourceFile>): TransformerFactory<Bundle | SourceFile> {
|
||||
return context => {
|
||||
const customTransformer = transformer(context);
|
||||
return typeof customTransformer === "function"
|
||||
? handleDefault(customTransformer)
|
||||
: wrapCustomTransformer(customTransformer);
|
||||
};
|
||||
}
|
||||
|
||||
function wrapScriptTransformerFactory(transformer: TransformerFactory<SourceFile> | CustomTransformerFactory): TransformerFactory<Bundle | SourceFile> {
|
||||
return wrapCustomTransformerFactory(transformer, chainBundle);
|
||||
}
|
||||
|
||||
function wrapDeclarationTransformerFactory(transformer: TransformerFactory<Bundle | SourceFile> | CustomTransformerFactory): TransformerFactory<Bundle | SourceFile> {
|
||||
return wrapCustomTransformerFactory(transformer, identity);
|
||||
}
|
||||
|
||||
export function noEmitSubstitution(_hint: EmitHint, node: Node) {
|
||||
return node;
|
||||
}
|
||||
|
||||
@@ -521,8 +521,10 @@ namespace ts {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};`
|
||||
};
|
||||
|
||||
@@ -1639,7 +1639,7 @@ namespace ts {
|
||||
// arguments are both mapped contiguously to the accessor name.
|
||||
const target = getMutableClone(receiver);
|
||||
setEmitFlags(target, EmitFlags.NoComments | EmitFlags.NoTrailingSourceMap);
|
||||
setSourceMapRange(target, firstAccessor.name); // TODO: GH#18217
|
||||
setSourceMapRange(target, firstAccessor.name);
|
||||
|
||||
const propertyName = createExpressionForPropertyName(visitNode(firstAccessor.name, visitor, isPropertyName));
|
||||
setEmitFlags(propertyName, EmitFlags.NoComments | EmitFlags.NoLeadingSourceMap);
|
||||
|
||||
+30
-13
@@ -2614,7 +2614,7 @@ namespace ts {
|
||||
|
||||
// Incomplete types occur during control flow analysis of loops. An IncompleteType
|
||||
// is distinguished from a regular type by a flags value of zero. Incomplete type
|
||||
// objects are internal to the getFlowTypeOfRefecence function and never escape it.
|
||||
// objects are internal to the getFlowTypeOfReference function and never escape it.
|
||||
export interface IncompleteType {
|
||||
flags: TypeFlags; // No flags set
|
||||
type: Type; // The type marked incomplete
|
||||
@@ -3011,13 +3011,26 @@ namespace ts {
|
||||
Completely = 1 << 1,
|
||||
}
|
||||
|
||||
export type CustomTransformerFactory = (context: TransformationContext) => CustomTransformer;
|
||||
|
||||
export interface CustomTransformer {
|
||||
transformSourceFile(node: SourceFile): SourceFile;
|
||||
transformBundle(node: Bundle): Bundle;
|
||||
}
|
||||
|
||||
export interface CustomTransformers {
|
||||
/** Custom transformers to evaluate before built-in .js transformations. */
|
||||
before?: TransformerFactory<SourceFile>[];
|
||||
before?: (TransformerFactory<SourceFile> | CustomTransformerFactory)[];
|
||||
/** Custom transformers to evaluate after built-in .js transformations. */
|
||||
after?: TransformerFactory<SourceFile>[];
|
||||
after?: (TransformerFactory<SourceFile> | CustomTransformerFactory)[];
|
||||
/** Custom transformers to evaluate after built-in .d.ts transformations. */
|
||||
afterDeclarations?: TransformerFactory<Bundle | SourceFile>[];
|
||||
afterDeclarations?: (TransformerFactory<Bundle | SourceFile> | CustomTransformerFactory)[];
|
||||
}
|
||||
|
||||
/*@internal*/
|
||||
export interface EmitTransformers {
|
||||
scriptTransformers: readonly TransformerFactory<SourceFile | Bundle>[];
|
||||
declarationTransformers: readonly TransformerFactory<SourceFile | Bundle>[];
|
||||
}
|
||||
|
||||
export interface SourceMapSpan {
|
||||
@@ -3738,7 +3751,7 @@ namespace ts {
|
||||
specifierCache?: Map<string>; // For symbols corresponding to external modules, a cache of incoming path -> module specifier name mappings
|
||||
extendedContainers?: Symbol[]; // Containers (other than the parent) which this symbol is aliased in
|
||||
extendedContainersByFile?: Map<Symbol[]>; // Containers (other than the parent) which this symbol is aliased in
|
||||
variances?: Variance[]; // Alias symbol type argument variance cache
|
||||
variances?: VarianceFlags[]; // Alias symbol type argument variance cache
|
||||
}
|
||||
|
||||
/* @internal */
|
||||
@@ -4134,12 +4147,16 @@ namespace ts {
|
||||
}
|
||||
|
||||
/* @internal */
|
||||
export const enum Variance {
|
||||
Invariant = 0, // Neither covariant nor contravariant
|
||||
Covariant = 1, // Covariant
|
||||
Contravariant = 2, // Contravariant
|
||||
Bivariant = 3, // Both covariant and contravariant
|
||||
Independent = 4, // Unwitnessed type parameter
|
||||
export const enum VarianceFlags {
|
||||
Invariant = 0, // Neither covariant nor contravariant
|
||||
Covariant = 1 << 0, // Covariant
|
||||
Contravariant = 1 << 1, // Contravariant
|
||||
Bivariant = Covariant | Contravariant, // Both covariant and contravariant
|
||||
Independent = 1 << 2, // Unwitnessed type parameter
|
||||
VarianceMask = Invariant | Covariant | Contravariant | Independent, // Mask containing all measured variances without the unmeasurable flag
|
||||
Unmeasurable = 1 << 3, // Variance result is unusable - relationship relies on structural comparisons which are not reflected in generic relationships
|
||||
Unreliable = 1 << 4, // Variance result is unreliable - relationship relies on structural comparisons which are not reflected in generic relationships
|
||||
AllowsStructuralFallback = Unmeasurable | Unreliable,
|
||||
}
|
||||
|
||||
// Generic class and interface types
|
||||
@@ -4147,7 +4164,7 @@ namespace ts {
|
||||
/* @internal */
|
||||
instantiations: Map<TypeReference>; // Generic instantiation cache
|
||||
/* @internal */
|
||||
variances?: Variance[]; // Variance of each type parameter
|
||||
variances?: VarianceFlags[]; // Variance of each type parameter
|
||||
}
|
||||
|
||||
export interface TupleType extends GenericType {
|
||||
@@ -5136,7 +5153,7 @@ namespace ts {
|
||||
createHash?(data: string): string;
|
||||
getParsedCommandLine?(fileName: string): ParsedCommandLine | undefined;
|
||||
|
||||
// TODO: later handle this in better way in builder host instead once the api for tsbuild finalizes and doesnt use compilerHost as base
|
||||
// TODO: later handle this in better way in builder host instead once the api for tsbuild finalizes and doesn't use compilerHost as base
|
||||
/*@internal*/createDirectory?(directory: string): void;
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,147 @@
|
||||
/* @internal */
|
||||
namespace ts.refactor {
|
||||
const refactorName = "Extract type";
|
||||
const extractToTypeAlias = "Extract to type alias";
|
||||
const extractToTypeDef = "Extract to typedef";
|
||||
registerRefactor(refactorName, {
|
||||
getAvailableActions(context): ReadonlyArray<ApplicableRefactorInfo> {
|
||||
const info = getRangeToExtract(context);
|
||||
if (!info) return emptyArray;
|
||||
|
||||
return [{
|
||||
name: refactorName,
|
||||
description: getLocaleSpecificMessage(Diagnostics.Extract_type),
|
||||
actions: [info.isJS ? {
|
||||
name: extractToTypeDef, description: getLocaleSpecificMessage(Diagnostics.Extract_to_typedef)
|
||||
} : {
|
||||
name: extractToTypeAlias, description: getLocaleSpecificMessage(Diagnostics.Extract_to_type_alias)
|
||||
}]
|
||||
}];
|
||||
},
|
||||
getEditsForAction(context, actionName): RefactorEditInfo {
|
||||
Debug.assert(actionName === extractToTypeAlias || actionName === extractToTypeDef);
|
||||
const { file } = context;
|
||||
const info = Debug.assertDefined(getRangeToExtract(context));
|
||||
Debug.assert(actionName === extractToTypeAlias && !info.isJS || actionName === extractToTypeDef && info.isJS);
|
||||
|
||||
const name = getUniqueName("NewType", file);
|
||||
const edits = textChanges.ChangeTracker.with(context, changes => info.isJS ?
|
||||
doTypedefChange(changes, file, name, info.firstStatement, info.selection, info.typeParameters) :
|
||||
doTypeAliasChange(changes, file, name, info.firstStatement, info.selection, info.typeParameters));
|
||||
|
||||
const renameFilename = file.fileName;
|
||||
const renameLocation = getRenameLocation(edits, renameFilename, name, /*preferLastLocation*/ false);
|
||||
return { edits, renameFilename, renameLocation };
|
||||
}
|
||||
});
|
||||
|
||||
interface Info { isJS: boolean; selection: TypeNode; firstStatement: Statement; typeParameters: ReadonlyArray<TypeParameterDeclaration>; }
|
||||
|
||||
function getRangeToExtract(context: RefactorContext): Info | undefined {
|
||||
const { file, startPosition } = context;
|
||||
const isJS = isSourceFileJS(file);
|
||||
const current = getTokenAtPosition(file, startPosition);
|
||||
const range = createTextRangeFromSpan(getRefactorContextSpan(context));
|
||||
|
||||
const selection = findAncestor(current, (node => node.parent && rangeContainsSkipTrivia(range, node, file) && !rangeContainsSkipTrivia(range, node.parent, file)));
|
||||
if (!selection || !isTypeNode(selection)) return undefined;
|
||||
|
||||
const checker = context.program.getTypeChecker();
|
||||
const firstStatement = Debug.assertDefined(isJS ? findAncestor(selection, isStatementAndHasJSDoc) : findAncestor(selection, isStatement));
|
||||
const typeParameters = collectTypeParameters(checker, selection, firstStatement, file);
|
||||
if (!typeParameters) return undefined;
|
||||
|
||||
return { isJS, selection, firstStatement, typeParameters };
|
||||
}
|
||||
|
||||
function isStatementAndHasJSDoc(n: Node): n is (Statement & HasJSDoc) {
|
||||
return isStatement(n) && hasJSDocNodes(n);
|
||||
}
|
||||
|
||||
function rangeContainsSkipTrivia(r1: TextRange, node: Node, file: SourceFile): boolean {
|
||||
return rangeContainsStartEnd(r1, skipTrivia(file.text, node.pos), node.end);
|
||||
}
|
||||
|
||||
function collectTypeParameters(checker: TypeChecker, selection: TypeNode, statement: Statement, file: SourceFile): TypeParameterDeclaration[] | undefined {
|
||||
const result: TypeParameterDeclaration[] = [];
|
||||
return visitor(selection) ? undefined : result;
|
||||
|
||||
function visitor(node: Node): true | undefined {
|
||||
if (isTypeReferenceNode(node)) {
|
||||
if (isIdentifier(node.typeName)) {
|
||||
const symbol = checker.resolveName(node.typeName.text, node.typeName, SymbolFlags.TypeParameter, /* excludeGlobals */ true);
|
||||
if (symbol) {
|
||||
const declaration = cast(first(symbol.declarations), isTypeParameterDeclaration);
|
||||
if (rangeContainsSkipTrivia(statement, declaration, file) && !rangeContainsSkipTrivia(selection, declaration, file)) {
|
||||
result.push(declaration);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (isInferTypeNode(node)) {
|
||||
const conditionalTypeNode = findAncestor(node, n => isConditionalTypeNode(n) && rangeContainsSkipTrivia(n.extendsType, node, file));
|
||||
if (!conditionalTypeNode || !rangeContainsSkipTrivia(selection, conditionalTypeNode, file)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else if ((isTypePredicateNode(node) || isThisTypeNode(node))) {
|
||||
const functionLikeNode = findAncestor(node.parent, isFunctionLike);
|
||||
if (functionLikeNode && functionLikeNode.type && rangeContainsSkipTrivia(functionLikeNode.type, node, file) && !rangeContainsSkipTrivia(selection, functionLikeNode, file)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else if (isTypeQueryNode(node)) {
|
||||
if (isIdentifier(node.exprName)) {
|
||||
const symbol = checker.resolveName(node.exprName.text, node.exprName, SymbolFlags.Value, /* excludeGlobals */ false);
|
||||
if (symbol && rangeContainsSkipTrivia(statement, symbol.valueDeclaration, file) && !rangeContainsSkipTrivia(selection, symbol.valueDeclaration, file)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (isThisIdentifier(node.exprName.left) && !rangeContainsSkipTrivia(selection, node.parent, file)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return forEachChild(node, visitor);
|
||||
}
|
||||
}
|
||||
|
||||
function doTypeAliasChange(changes: textChanges.ChangeTracker, file: SourceFile, name: string, firstStatement: Statement, selection: TypeNode, typeParameters: ReadonlyArray<TypeParameterDeclaration>) {
|
||||
const newTypeNode = createTypeAliasDeclaration(
|
||||
/* decorators */ undefined,
|
||||
/* modifiers */ undefined,
|
||||
name,
|
||||
typeParameters.map(id => updateTypeParameterDeclaration(id, id.name, id.constraint, /* defaultType */ undefined)),
|
||||
selection
|
||||
);
|
||||
changes.insertNodeBefore(file, firstStatement, newTypeNode, /* blankLineBetween */ true);
|
||||
changes.replaceNode(file, selection, createTypeReferenceNode(name, typeParameters.map(id => createTypeReferenceNode(id.name, /* typeArguments */ undefined))));
|
||||
}
|
||||
|
||||
function doTypedefChange(changes: textChanges.ChangeTracker, file: SourceFile, name: string, firstStatement: Statement, selection: TypeNode, typeParameters: ReadonlyArray<TypeParameterDeclaration>) {
|
||||
const node = <JSDocTypedefTag>createNode(SyntaxKind.JSDocTypedefTag);
|
||||
node.tagName = createIdentifier("typedef"); // TODO: jsdoc factory https://github.com/Microsoft/TypeScript/pull/29539
|
||||
node.fullName = createIdentifier(name);
|
||||
node.name = node.fullName;
|
||||
node.typeExpression = createJSDocTypeExpression(selection);
|
||||
|
||||
const templates: JSDocTemplateTag[] = [];
|
||||
forEach(typeParameters, typeParameter => {
|
||||
const constraint = getEffectiveConstraintOfTypeParameter(typeParameter);
|
||||
|
||||
const template = <JSDocTemplateTag>createNode(SyntaxKind.JSDocTemplateTag);
|
||||
template.tagName = createIdentifier("template");
|
||||
template.constraint = constraint && cast(constraint, isJSDocTypeExpression);
|
||||
|
||||
const parameter = <TypeParameterDeclaration>createNode(SyntaxKind.TypeParameter);
|
||||
parameter.name = typeParameter.name;
|
||||
template.typeParameters = createNodeArray([parameter]);
|
||||
|
||||
templates.push(template);
|
||||
});
|
||||
|
||||
changes.insertNodeBefore(file, firstStatement, createJSDocComment(/* comment */ undefined, createNodeArray(concatenate<JSDocTag>(templates, [node]))), /* blankLineBetween */ true);
|
||||
changes.replaceNode(file, selection, createTypeReferenceNode(name, typeParameters.map(id => createTypeReferenceNode(id.name, /* typeArguments */ undefined))));
|
||||
}
|
||||
}
|
||||
@@ -171,8 +171,7 @@ namespace ts.SymbolDisplay {
|
||||
}
|
||||
|
||||
if (callExpressionLike) {
|
||||
const candidateSignatures: Signature[] = [];
|
||||
signature = typeChecker.getResolvedSignature(callExpressionLike, candidateSignatures)!; // TODO: GH#18217
|
||||
signature = typeChecker.getResolvedSignature(callExpressionLike)!; // TODO: GH#18217
|
||||
|
||||
const useConstructSignatures = callExpressionLike.kind === SyntaxKind.NewExpression || (isCallExpression(callExpressionLike) && callExpressionLike.expression.kind === SyntaxKind.SuperKeyword);
|
||||
|
||||
|
||||
@@ -80,6 +80,7 @@
|
||||
"refactors/convertExport.ts",
|
||||
"refactors/convertImport.ts",
|
||||
"refactors/extractSymbol.ts",
|
||||
"refactors/extractType.ts",
|
||||
"refactors/generateGetAccessorAndSetAccessor.ts",
|
||||
"refactors/moveToNewFile.ts",
|
||||
"refactors/addOrRemoveBracesToArrowFunction.ts",
|
||||
|
||||
@@ -140,22 +140,28 @@ namespace ts {
|
||||
],
|
||||
{
|
||||
before: [
|
||||
context => node => visitNode(node, function visitor(node: Node): Node {
|
||||
if (isIdentifier(node) && node.text === "original") {
|
||||
const newNode = createIdentifier("changed");
|
||||
setSourceMapRange(newNode, {
|
||||
pos: 0,
|
||||
end: 7,
|
||||
// Do not provide a custom skipTrivia function for `source`.
|
||||
source: createSourceMapSource("another.html", "changed;")
|
||||
});
|
||||
return newNode;
|
||||
}
|
||||
return visitEachChild(node, visitor, context);
|
||||
})
|
||||
context => {
|
||||
const transformSourceFile: Transformer<SourceFile> = node => visitNode(node, function visitor(node: Node): Node {
|
||||
if (isIdentifier(node) && node.text === "original") {
|
||||
const newNode = createIdentifier("changed");
|
||||
setSourceMapRange(newNode, {
|
||||
pos: 0,
|
||||
end: 7,
|
||||
// Do not provide a custom skipTrivia function for `source`.
|
||||
source: createSourceMapSource("another.html", "changed;")
|
||||
});
|
||||
return newNode;
|
||||
}
|
||||
return visitEachChild(node, visitor, context);
|
||||
});
|
||||
return {
|
||||
transformSourceFile,
|
||||
transformBundle: node => createBundle(map(node.sourceFiles, transformSourceFile), node.prepends),
|
||||
};
|
||||
}
|
||||
]
|
||||
},
|
||||
{ sourceMap: true }
|
||||
{ sourceMap: true, outFile: "source.js" }
|
||||
);
|
||||
|
||||
});
|
||||
|
||||
@@ -37,6 +37,8 @@ namespace ts {
|
||||
parsesCorrectly("callSignatureInRecordType", "{{(): number}}");
|
||||
parsesCorrectly("methodInRecordType", "{{foo(): number}}");
|
||||
parsesCorrectly("unionType", "{(number|string)}");
|
||||
parsesCorrectly("unionTypeWithLeadingOperator", "{( | number | string )}");
|
||||
parsesCorrectly("unionTypeWithOneElementAndLeadingOperator", "{( | number )}");
|
||||
parsesCorrectly("topLevelNoParenUnionType", "{number|string}");
|
||||
parsesCorrectly("functionType1", "{function()}");
|
||||
parsesCorrectly("functionType2", "{function(string, boolean)}");
|
||||
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"kind": "ParenthesizedType",
|
||||
"pos": 1,
|
||||
"end": 22,
|
||||
"flags": "JSDoc",
|
||||
"modifierFlagsCache": 0,
|
||||
"transformFlags": 0,
|
||||
"type": {
|
||||
"kind": "UnionType",
|
||||
"pos": 2,
|
||||
"end": 20,
|
||||
"flags": "JSDoc",
|
||||
"modifierFlagsCache": 0,
|
||||
"transformFlags": 0,
|
||||
"types": {
|
||||
"0": {
|
||||
"kind": "NumberKeyword",
|
||||
"pos": 4,
|
||||
"end": 11,
|
||||
"flags": "JSDoc",
|
||||
"modifierFlagsCache": 0,
|
||||
"transformFlags": 0
|
||||
},
|
||||
"1": {
|
||||
"kind": "StringKeyword",
|
||||
"pos": 13,
|
||||
"end": 20,
|
||||
"flags": "JSDoc",
|
||||
"modifierFlagsCache": 0,
|
||||
"transformFlags": 0
|
||||
},
|
||||
"length": 2,
|
||||
"pos": 2,
|
||||
"end": 20
|
||||
}
|
||||
}
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"kind": "ParenthesizedType",
|
||||
"pos": 1,
|
||||
"end": 13,
|
||||
"flags": "JSDoc",
|
||||
"modifierFlagsCache": 0,
|
||||
"transformFlags": 0,
|
||||
"type": {
|
||||
"kind": "UnionType",
|
||||
"pos": 2,
|
||||
"end": 11,
|
||||
"flags": "JSDoc",
|
||||
"modifierFlagsCache": 0,
|
||||
"transformFlags": 0,
|
||||
"types": {
|
||||
"0": {
|
||||
"kind": "NumberKeyword",
|
||||
"pos": 4,
|
||||
"end": 11,
|
||||
"flags": "JSDoc",
|
||||
"modifierFlagsCache": 0,
|
||||
"transformFlags": 0
|
||||
},
|
||||
"length": 1,
|
||||
"pos": 2,
|
||||
"end": 11
|
||||
}
|
||||
}
|
||||
}
|
||||
+12
-7
@@ -1879,13 +1879,18 @@ declare namespace ts {
|
||||
sourceFile: SourceFile;
|
||||
references?: ReadonlyArray<ResolvedProjectReference | undefined>;
|
||||
}
|
||||
type CustomTransformerFactory = (context: TransformationContext) => CustomTransformer;
|
||||
interface CustomTransformer {
|
||||
transformSourceFile(node: SourceFile): SourceFile;
|
||||
transformBundle(node: Bundle): Bundle;
|
||||
}
|
||||
interface CustomTransformers {
|
||||
/** Custom transformers to evaluate before built-in .js transformations. */
|
||||
before?: TransformerFactory<SourceFile>[];
|
||||
before?: (TransformerFactory<SourceFile> | CustomTransformerFactory)[];
|
||||
/** Custom transformers to evaluate after built-in .js transformations. */
|
||||
after?: TransformerFactory<SourceFile>[];
|
||||
after?: (TransformerFactory<SourceFile> | CustomTransformerFactory)[];
|
||||
/** Custom transformers to evaluate after built-in .d.ts transformations. */
|
||||
afterDeclarations?: TransformerFactory<Bundle | SourceFile>[];
|
||||
afterDeclarations?: (TransformerFactory<Bundle | SourceFile> | CustomTransformerFactory)[];
|
||||
}
|
||||
interface SourceMapSpan {
|
||||
/** Line number in the .js file. */
|
||||
@@ -3668,7 +3673,7 @@ declare namespace ts {
|
||||
* @param basePath A root directory to resolve relative path entries in the config
|
||||
* file to. e.g. outDir
|
||||
*/
|
||||
function parseJsonConfigFileContent(json: any, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: ReadonlyArray<FileExtensionInfo>): ParsedCommandLine;
|
||||
function parseJsonConfigFileContent(json: any, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: ReadonlyArray<FileExtensionInfo>, extendedConfigCache?: Map<ExtendedConfigCacheEntry>): ParsedCommandLine;
|
||||
/**
|
||||
* Parse the contents of a config file (tsconfig.json).
|
||||
* @param jsonNode The contents of the config file to parse
|
||||
@@ -3676,7 +3681,7 @@ declare namespace ts {
|
||||
* @param basePath A root directory to resolve relative path entries in the config
|
||||
* file to. e.g. outDir
|
||||
*/
|
||||
function parseJsonSourceFileConfigFileContent(sourceFile: TsConfigSourceFile, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: ReadonlyArray<FileExtensionInfo>, /*@internal*/ extendedConfigCache?: Map<ExtendedConfigCacheEntry>): ParsedCommandLine;
|
||||
function parseJsonSourceFileConfigFileContent(sourceFile: TsConfigSourceFile, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: ReadonlyArray<FileExtensionInfo>, extendedConfigCache?: Map<ExtendedConfigCacheEntry>): ParsedCommandLine;
|
||||
interface ParsedTsconfig {
|
||||
raw: any;
|
||||
options?: CompilerOptions;
|
||||
@@ -3857,7 +3862,7 @@ declare namespace ts {
|
||||
function updateArrayLiteral(node: ArrayLiteralExpression, elements: ReadonlyArray<Expression>): ArrayLiteralExpression;
|
||||
function createObjectLiteral(properties?: ReadonlyArray<ObjectLiteralElementLike>, multiLine?: boolean): ObjectLiteralExpression;
|
||||
function updateObjectLiteral(node: ObjectLiteralExpression, properties: ReadonlyArray<ObjectLiteralElementLike>): ObjectLiteralExpression;
|
||||
function createPropertyAccess(expression: Expression, name: string | Identifier | undefined): PropertyAccessExpression;
|
||||
function createPropertyAccess(expression: Expression, name: string | Identifier): PropertyAccessExpression;
|
||||
function updatePropertyAccess(node: PropertyAccessExpression, expression: Expression, name: Identifier): PropertyAccessExpression;
|
||||
function createElementAccess(expression: Expression, index: number | Expression): ElementAccessExpression;
|
||||
function updateElementAccess(node: ElementAccessExpression, expression: Expression, argumentExpression: Expression): ElementAccessExpression;
|
||||
@@ -4072,7 +4077,7 @@ declare namespace ts {
|
||||
function createInputFiles(javascriptText: string, declarationText: string): InputFiles;
|
||||
function createInputFiles(readFileText: (path: string) => string | undefined, javascriptPath: string, javascriptMapPath: string | undefined, declarationPath: string, declarationMapPath: string | undefined, buildInfoPath: string | undefined): InputFiles;
|
||||
function createInputFiles(javascriptText: string, declarationText: string, javascriptMapPath: string | undefined, javascriptMapText: string | undefined, declarationMapPath: string | undefined, declarationMapText: string | undefined): InputFiles;
|
||||
function updateBundle(node: Bundle, sourceFiles: ReadonlyArray<SourceFile>, prepends?: ReadonlyArray<UnparsedSource>): Bundle;
|
||||
function updateBundle(node: Bundle, sourceFiles: ReadonlyArray<SourceFile>, prepends?: ReadonlyArray<UnparsedSource | InputFiles>): Bundle;
|
||||
function createImmediatelyInvokedFunctionExpression(statements: ReadonlyArray<Statement>): CallExpression;
|
||||
function createImmediatelyInvokedFunctionExpression(statements: ReadonlyArray<Statement>, param: ParameterDeclaration, paramValue: Expression): CallExpression;
|
||||
function createImmediatelyInvokedArrowFunction(statements: ReadonlyArray<Statement>): CallExpression;
|
||||
|
||||
+12
-7
@@ -1879,13 +1879,18 @@ declare namespace ts {
|
||||
sourceFile: SourceFile;
|
||||
references?: ReadonlyArray<ResolvedProjectReference | undefined>;
|
||||
}
|
||||
type CustomTransformerFactory = (context: TransformationContext) => CustomTransformer;
|
||||
interface CustomTransformer {
|
||||
transformSourceFile(node: SourceFile): SourceFile;
|
||||
transformBundle(node: Bundle): Bundle;
|
||||
}
|
||||
interface CustomTransformers {
|
||||
/** Custom transformers to evaluate before built-in .js transformations. */
|
||||
before?: TransformerFactory<SourceFile>[];
|
||||
before?: (TransformerFactory<SourceFile> | CustomTransformerFactory)[];
|
||||
/** Custom transformers to evaluate after built-in .js transformations. */
|
||||
after?: TransformerFactory<SourceFile>[];
|
||||
after?: (TransformerFactory<SourceFile> | CustomTransformerFactory)[];
|
||||
/** Custom transformers to evaluate after built-in .d.ts transformations. */
|
||||
afterDeclarations?: TransformerFactory<Bundle | SourceFile>[];
|
||||
afterDeclarations?: (TransformerFactory<Bundle | SourceFile> | CustomTransformerFactory)[];
|
||||
}
|
||||
interface SourceMapSpan {
|
||||
/** Line number in the .js file. */
|
||||
@@ -3668,7 +3673,7 @@ declare namespace ts {
|
||||
* @param basePath A root directory to resolve relative path entries in the config
|
||||
* file to. e.g. outDir
|
||||
*/
|
||||
function parseJsonConfigFileContent(json: any, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: ReadonlyArray<FileExtensionInfo>): ParsedCommandLine;
|
||||
function parseJsonConfigFileContent(json: any, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: ReadonlyArray<FileExtensionInfo>, extendedConfigCache?: Map<ExtendedConfigCacheEntry>): ParsedCommandLine;
|
||||
/**
|
||||
* Parse the contents of a config file (tsconfig.json).
|
||||
* @param jsonNode The contents of the config file to parse
|
||||
@@ -3676,7 +3681,7 @@ declare namespace ts {
|
||||
* @param basePath A root directory to resolve relative path entries in the config
|
||||
* file to. e.g. outDir
|
||||
*/
|
||||
function parseJsonSourceFileConfigFileContent(sourceFile: TsConfigSourceFile, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: ReadonlyArray<FileExtensionInfo>, /*@internal*/ extendedConfigCache?: Map<ExtendedConfigCacheEntry>): ParsedCommandLine;
|
||||
function parseJsonSourceFileConfigFileContent(sourceFile: TsConfigSourceFile, host: ParseConfigHost, basePath: string, existingOptions?: CompilerOptions, configFileName?: string, resolutionStack?: Path[], extraFileExtensions?: ReadonlyArray<FileExtensionInfo>, extendedConfigCache?: Map<ExtendedConfigCacheEntry>): ParsedCommandLine;
|
||||
interface ParsedTsconfig {
|
||||
raw: any;
|
||||
options?: CompilerOptions;
|
||||
@@ -3857,7 +3862,7 @@ declare namespace ts {
|
||||
function updateArrayLiteral(node: ArrayLiteralExpression, elements: ReadonlyArray<Expression>): ArrayLiteralExpression;
|
||||
function createObjectLiteral(properties?: ReadonlyArray<ObjectLiteralElementLike>, multiLine?: boolean): ObjectLiteralExpression;
|
||||
function updateObjectLiteral(node: ObjectLiteralExpression, properties: ReadonlyArray<ObjectLiteralElementLike>): ObjectLiteralExpression;
|
||||
function createPropertyAccess(expression: Expression, name: string | Identifier | undefined): PropertyAccessExpression;
|
||||
function createPropertyAccess(expression: Expression, name: string | Identifier): PropertyAccessExpression;
|
||||
function updatePropertyAccess(node: PropertyAccessExpression, expression: Expression, name: Identifier): PropertyAccessExpression;
|
||||
function createElementAccess(expression: Expression, index: number | Expression): ElementAccessExpression;
|
||||
function updateElementAccess(node: ElementAccessExpression, expression: Expression, argumentExpression: Expression): ElementAccessExpression;
|
||||
@@ -4072,7 +4077,7 @@ declare namespace ts {
|
||||
function createInputFiles(javascriptText: string, declarationText: string): InputFiles;
|
||||
function createInputFiles(readFileText: (path: string) => string | undefined, javascriptPath: string, javascriptMapPath: string | undefined, declarationPath: string, declarationMapPath: string | undefined, buildInfoPath: string | undefined): InputFiles;
|
||||
function createInputFiles(javascriptText: string, declarationText: string, javascriptMapPath: string | undefined, javascriptMapText: string | undefined, declarationMapPath: string | undefined, declarationMapText: string | undefined): InputFiles;
|
||||
function updateBundle(node: Bundle, sourceFiles: ReadonlyArray<SourceFile>, prepends?: ReadonlyArray<UnparsedSource>): Bundle;
|
||||
function updateBundle(node: Bundle, sourceFiles: ReadonlyArray<SourceFile>, prepends?: ReadonlyArray<UnparsedSource | InputFiles>): Bundle;
|
||||
function createImmediatelyInvokedFunctionExpression(statements: ReadonlyArray<Statement>): CallExpression;
|
||||
function createImmediatelyInvokedFunctionExpression(statements: ReadonlyArray<Statement>, param: ParameterDeclaration, paramValue: Expression): CallExpression;
|
||||
function createImmediatelyInvokedArrowFunction(statements: ReadonlyArray<Statement>): CallExpression;
|
||||
|
||||
@@ -45,8 +45,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
var _this = this;
|
||||
|
||||
@@ -0,0 +1,103 @@
|
||||
tests/cases/compiler/awaitInNonAsyncFunction.ts(4,7): error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
tests/cases/compiler/awaitInNonAsyncFunction.ts(5,10): error TS1308: 'await' expression is only allowed within an async function.
|
||||
tests/cases/compiler/awaitInNonAsyncFunction.ts(9,7): error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
tests/cases/compiler/awaitInNonAsyncFunction.ts(10,10): error TS1308: 'await' expression is only allowed within an async function.
|
||||
tests/cases/compiler/awaitInNonAsyncFunction.ts(14,7): error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
tests/cases/compiler/awaitInNonAsyncFunction.ts(15,3): error TS1308: 'await' expression is only allowed within an async function.
|
||||
tests/cases/compiler/awaitInNonAsyncFunction.ts(19,7): error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
tests/cases/compiler/awaitInNonAsyncFunction.ts(20,10): error TS1308: 'await' expression is only allowed within an async function.
|
||||
tests/cases/compiler/awaitInNonAsyncFunction.ts(24,7): error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
tests/cases/compiler/awaitInNonAsyncFunction.ts(25,9): error TS1308: 'await' expression is only allowed within an async function.
|
||||
tests/cases/compiler/awaitInNonAsyncFunction.ts(30,9): error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
tests/cases/compiler/awaitInNonAsyncFunction.ts(31,5): error TS1308: 'await' expression is only allowed within an async function.
|
||||
tests/cases/compiler/awaitInNonAsyncFunction.ts(34,7): error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
tests/cases/compiler/awaitInNonAsyncFunction.ts(35,5): error TS1308: 'await' expression is only allowed within an async function.
|
||||
tests/cases/compiler/awaitInNonAsyncFunction.ts(39,5): error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
tests/cases/compiler/awaitInNonAsyncFunction.ts(40,1): error TS1308: 'await' expression is only allowed within an async function.
|
||||
|
||||
|
||||
==== tests/cases/compiler/awaitInNonAsyncFunction.ts (16 errors) ====
|
||||
// https://github.com/Microsoft/TypeScript/issues/26586
|
||||
|
||||
function normalFunc(p: Promise<number>) {
|
||||
for await (const _ of []);
|
||||
~~~~~
|
||||
!!! error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
!!! related TS1356 tests/cases/compiler/awaitInNonAsyncFunction.ts:3:10: Did you mean to mark this function as 'async'?
|
||||
return await p;
|
||||
~~~~~
|
||||
!!! error TS1308: 'await' expression is only allowed within an async function.
|
||||
!!! related TS1356 tests/cases/compiler/awaitInNonAsyncFunction.ts:3:10: Did you mean to mark this function as 'async'?
|
||||
}
|
||||
|
||||
export function exportedFunc(p: Promise<number>) {
|
||||
for await (const _ of []);
|
||||
~~~~~
|
||||
!!! error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
!!! related TS1356 tests/cases/compiler/awaitInNonAsyncFunction.ts:8:17: Did you mean to mark this function as 'async'?
|
||||
return await p;
|
||||
~~~~~
|
||||
!!! error TS1308: 'await' expression is only allowed within an async function.
|
||||
!!! related TS1356 tests/cases/compiler/awaitInNonAsyncFunction.ts:8:17: Did you mean to mark this function as 'async'?
|
||||
}
|
||||
|
||||
const functionExpression = function(p: Promise<number>) {
|
||||
for await (const _ of []);
|
||||
~~~~~
|
||||
!!! error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
!!! related TS1356 tests/cases/compiler/awaitInNonAsyncFunction.ts:13:28: Did you mean to mark this function as 'async'?
|
||||
await p;
|
||||
~~~~~
|
||||
!!! error TS1308: 'await' expression is only allowed within an async function.
|
||||
!!! related TS1356 tests/cases/compiler/awaitInNonAsyncFunction.ts:13:28: Did you mean to mark this function as 'async'?
|
||||
}
|
||||
|
||||
const arrowFunc = (p: Promise<number>) => {
|
||||
for await (const _ of []);
|
||||
~~~~~
|
||||
!!! error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
!!! related TS1356 tests/cases/compiler/awaitInNonAsyncFunction.ts:18:19: Did you mean to mark this function as 'async'?
|
||||
return await p;
|
||||
~~~~~
|
||||
!!! error TS1308: 'await' expression is only allowed within an async function.
|
||||
!!! related TS1356 tests/cases/compiler/awaitInNonAsyncFunction.ts:18:19: Did you mean to mark this function as 'async'?
|
||||
};
|
||||
|
||||
function* generatorFunc(p: Promise<number>) {
|
||||
for await (const _ of []);
|
||||
~~~~~
|
||||
!!! error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
!!! related TS1356 tests/cases/compiler/awaitInNonAsyncFunction.ts:23:11: Did you mean to mark this function as 'async'?
|
||||
yield await p;
|
||||
~~~~~
|
||||
!!! error TS1308: 'await' expression is only allowed within an async function.
|
||||
!!! related TS1356 tests/cases/compiler/awaitInNonAsyncFunction.ts:23:11: Did you mean to mark this function as 'async'?
|
||||
}
|
||||
|
||||
class clazz {
|
||||
constructor(p: Promise<number>) {
|
||||
for await (const _ of []);
|
||||
~~~~~
|
||||
!!! error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
await p;
|
||||
~~~~~
|
||||
!!! error TS1308: 'await' expression is only allowed within an async function.
|
||||
}
|
||||
method(p: Promise<number>) {
|
||||
for await (const _ of []);
|
||||
~~~~~
|
||||
!!! error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
!!! related TS1356 tests/cases/compiler/awaitInNonAsyncFunction.ts:33:3: Did you mean to mark this function as 'async'?
|
||||
await p;
|
||||
~~~~~
|
||||
!!! error TS1308: 'await' expression is only allowed within an async function.
|
||||
!!! related TS1356 tests/cases/compiler/awaitInNonAsyncFunction.ts:33:3: Did you mean to mark this function as 'async'?
|
||||
}
|
||||
}
|
||||
|
||||
for await (const _ of []);
|
||||
~~~~~
|
||||
!!! error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
await null;
|
||||
~~~~~
|
||||
!!! error TS1308: 'await' expression is only allowed within an async function.
|
||||
@@ -0,0 +1,84 @@
|
||||
//// [awaitInNonAsyncFunction.ts]
|
||||
// https://github.com/Microsoft/TypeScript/issues/26586
|
||||
|
||||
function normalFunc(p: Promise<number>) {
|
||||
for await (const _ of []);
|
||||
return await p;
|
||||
}
|
||||
|
||||
export function exportedFunc(p: Promise<number>) {
|
||||
for await (const _ of []);
|
||||
return await p;
|
||||
}
|
||||
|
||||
const functionExpression = function(p: Promise<number>) {
|
||||
for await (const _ of []);
|
||||
await p;
|
||||
}
|
||||
|
||||
const arrowFunc = (p: Promise<number>) => {
|
||||
for await (const _ of []);
|
||||
return await p;
|
||||
};
|
||||
|
||||
function* generatorFunc(p: Promise<number>) {
|
||||
for await (const _ of []);
|
||||
yield await p;
|
||||
}
|
||||
|
||||
class clazz {
|
||||
constructor(p: Promise<number>) {
|
||||
for await (const _ of []);
|
||||
await p;
|
||||
}
|
||||
method(p: Promise<number>) {
|
||||
for await (const _ of []);
|
||||
await p;
|
||||
}
|
||||
}
|
||||
|
||||
for await (const _ of []);
|
||||
await null;
|
||||
|
||||
//// [awaitInNonAsyncFunction.js]
|
||||
// https://github.com/Microsoft/TypeScript/issues/26586
|
||||
function normalFunc(p) {
|
||||
for await (const _ of [])
|
||||
;
|
||||
return await p;
|
||||
}
|
||||
export function exportedFunc(p) {
|
||||
for await (const _ of [])
|
||||
;
|
||||
return await p;
|
||||
}
|
||||
const functionExpression = function (p) {
|
||||
for await (const _ of [])
|
||||
;
|
||||
await p;
|
||||
};
|
||||
const arrowFunc = (p) => {
|
||||
for await (const _ of [])
|
||||
;
|
||||
return await p;
|
||||
};
|
||||
function* generatorFunc(p) {
|
||||
for await (const _ of [])
|
||||
;
|
||||
yield await p;
|
||||
}
|
||||
class clazz {
|
||||
constructor(p) {
|
||||
for await (const _ of [])
|
||||
;
|
||||
await p;
|
||||
}
|
||||
method(p) {
|
||||
for await (const _ of [])
|
||||
;
|
||||
await p;
|
||||
}
|
||||
}
|
||||
for await (const _ of [])
|
||||
;
|
||||
await null;
|
||||
@@ -0,0 +1,94 @@
|
||||
=== tests/cases/compiler/awaitInNonAsyncFunction.ts ===
|
||||
// https://github.com/Microsoft/TypeScript/issues/26586
|
||||
|
||||
function normalFunc(p: Promise<number>) {
|
||||
>normalFunc : Symbol(normalFunc, Decl(awaitInNonAsyncFunction.ts, 0, 0))
|
||||
>p : Symbol(p, Decl(awaitInNonAsyncFunction.ts, 2, 20))
|
||||
>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --))
|
||||
|
||||
for await (const _ of []);
|
||||
>_ : Symbol(_, Decl(awaitInNonAsyncFunction.ts, 3, 18))
|
||||
|
||||
return await p;
|
||||
>p : Symbol(p, Decl(awaitInNonAsyncFunction.ts, 2, 20))
|
||||
}
|
||||
|
||||
export function exportedFunc(p: Promise<number>) {
|
||||
>exportedFunc : Symbol(exportedFunc, Decl(awaitInNonAsyncFunction.ts, 5, 1))
|
||||
>p : Symbol(p, Decl(awaitInNonAsyncFunction.ts, 7, 29))
|
||||
>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --))
|
||||
|
||||
for await (const _ of []);
|
||||
>_ : Symbol(_, Decl(awaitInNonAsyncFunction.ts, 8, 18))
|
||||
|
||||
return await p;
|
||||
>p : Symbol(p, Decl(awaitInNonAsyncFunction.ts, 7, 29))
|
||||
}
|
||||
|
||||
const functionExpression = function(p: Promise<number>) {
|
||||
>functionExpression : Symbol(functionExpression, Decl(awaitInNonAsyncFunction.ts, 12, 5))
|
||||
>p : Symbol(p, Decl(awaitInNonAsyncFunction.ts, 12, 36))
|
||||
>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --))
|
||||
|
||||
for await (const _ of []);
|
||||
>_ : Symbol(_, Decl(awaitInNonAsyncFunction.ts, 13, 18))
|
||||
|
||||
await p;
|
||||
>p : Symbol(p, Decl(awaitInNonAsyncFunction.ts, 12, 36))
|
||||
}
|
||||
|
||||
const arrowFunc = (p: Promise<number>) => {
|
||||
>arrowFunc : Symbol(arrowFunc, Decl(awaitInNonAsyncFunction.ts, 17, 5))
|
||||
>p : Symbol(p, Decl(awaitInNonAsyncFunction.ts, 17, 19))
|
||||
>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --))
|
||||
|
||||
for await (const _ of []);
|
||||
>_ : Symbol(_, Decl(awaitInNonAsyncFunction.ts, 18, 18))
|
||||
|
||||
return await p;
|
||||
>p : Symbol(p, Decl(awaitInNonAsyncFunction.ts, 17, 19))
|
||||
|
||||
};
|
||||
|
||||
function* generatorFunc(p: Promise<number>) {
|
||||
>generatorFunc : Symbol(generatorFunc, Decl(awaitInNonAsyncFunction.ts, 20, 2))
|
||||
>p : Symbol(p, Decl(awaitInNonAsyncFunction.ts, 22, 24))
|
||||
>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --))
|
||||
|
||||
for await (const _ of []);
|
||||
>_ : Symbol(_, Decl(awaitInNonAsyncFunction.ts, 23, 18))
|
||||
|
||||
yield await p;
|
||||
>p : Symbol(p, Decl(awaitInNonAsyncFunction.ts, 22, 24))
|
||||
}
|
||||
|
||||
class clazz {
|
||||
>clazz : Symbol(clazz, Decl(awaitInNonAsyncFunction.ts, 25, 1))
|
||||
|
||||
constructor(p: Promise<number>) {
|
||||
>p : Symbol(p, Decl(awaitInNonAsyncFunction.ts, 28, 14))
|
||||
>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --))
|
||||
|
||||
for await (const _ of []);
|
||||
>_ : Symbol(_, Decl(awaitInNonAsyncFunction.ts, 29, 20))
|
||||
|
||||
await p;
|
||||
>p : Symbol(p, Decl(awaitInNonAsyncFunction.ts, 28, 14))
|
||||
}
|
||||
method(p: Promise<number>) {
|
||||
>method : Symbol(clazz.method, Decl(awaitInNonAsyncFunction.ts, 31, 3))
|
||||
>p : Symbol(p, Decl(awaitInNonAsyncFunction.ts, 32, 9))
|
||||
>Promise : Symbol(Promise, Decl(lib.es5.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.promise.d.ts, --, --), Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2018.promise.d.ts, --, --))
|
||||
|
||||
for await (const _ of []);
|
||||
>_ : Symbol(_, Decl(awaitInNonAsyncFunction.ts, 33, 18))
|
||||
|
||||
await p;
|
||||
>p : Symbol(p, Decl(awaitInNonAsyncFunction.ts, 32, 9))
|
||||
}
|
||||
}
|
||||
|
||||
for await (const _ of []);
|
||||
>_ : Symbol(_, Decl(awaitInNonAsyncFunction.ts, 38, 16))
|
||||
|
||||
await null;
|
||||
@@ -0,0 +1,108 @@
|
||||
=== tests/cases/compiler/awaitInNonAsyncFunction.ts ===
|
||||
// https://github.com/Microsoft/TypeScript/issues/26586
|
||||
|
||||
function normalFunc(p: Promise<number>) {
|
||||
>normalFunc : (p: Promise<number>) => number
|
||||
>p : Promise<number>
|
||||
|
||||
for await (const _ of []);
|
||||
>_ : any
|
||||
>[] : undefined[]
|
||||
|
||||
return await p;
|
||||
>await p : number
|
||||
>p : Promise<number>
|
||||
}
|
||||
|
||||
export function exportedFunc(p: Promise<number>) {
|
||||
>exportedFunc : (p: Promise<number>) => number
|
||||
>p : Promise<number>
|
||||
|
||||
for await (const _ of []);
|
||||
>_ : any
|
||||
>[] : undefined[]
|
||||
|
||||
return await p;
|
||||
>await p : number
|
||||
>p : Promise<number>
|
||||
}
|
||||
|
||||
const functionExpression = function(p: Promise<number>) {
|
||||
>functionExpression : (p: Promise<number>) => void
|
||||
>function(p: Promise<number>) { for await (const _ of []); await p;} : (p: Promise<number>) => void
|
||||
>p : Promise<number>
|
||||
|
||||
for await (const _ of []);
|
||||
>_ : any
|
||||
>[] : undefined[]
|
||||
|
||||
await p;
|
||||
>await p : number
|
||||
>p : Promise<number>
|
||||
}
|
||||
|
||||
const arrowFunc = (p: Promise<number>) => {
|
||||
>arrowFunc : (p: Promise<number>) => number
|
||||
>(p: Promise<number>) => { for await (const _ of []); return await p;} : (p: Promise<number>) => number
|
||||
>p : Promise<number>
|
||||
|
||||
for await (const _ of []);
|
||||
>_ : any
|
||||
>[] : undefined[]
|
||||
|
||||
return await p;
|
||||
>await p : number
|
||||
>p : Promise<number>
|
||||
|
||||
};
|
||||
|
||||
function* generatorFunc(p: Promise<number>) {
|
||||
>generatorFunc : (p: Promise<number>) => IterableIterator<number>
|
||||
>p : Promise<number>
|
||||
|
||||
for await (const _ of []);
|
||||
>_ : any
|
||||
>[] : undefined[]
|
||||
|
||||
yield await p;
|
||||
>yield await p : any
|
||||
>await p : number
|
||||
>p : Promise<number>
|
||||
}
|
||||
|
||||
class clazz {
|
||||
>clazz : clazz
|
||||
|
||||
constructor(p: Promise<number>) {
|
||||
>p : Promise<number>
|
||||
|
||||
for await (const _ of []);
|
||||
>_ : any
|
||||
>[] : undefined[]
|
||||
|
||||
await p;
|
||||
>await p : number
|
||||
>p : Promise<number>
|
||||
}
|
||||
method(p: Promise<number>) {
|
||||
>method : (p: Promise<number>) => void
|
||||
>p : Promise<number>
|
||||
|
||||
for await (const _ of []);
|
||||
>_ : any
|
||||
>[] : undefined[]
|
||||
|
||||
await p;
|
||||
>await p : number
|
||||
>p : Promise<number>
|
||||
}
|
||||
}
|
||||
|
||||
for await (const _ of []);
|
||||
>_ : any
|
||||
>[] : undefined[]
|
||||
|
||||
await null;
|
||||
>await null : null
|
||||
>null : null
|
||||
|
||||
@@ -11,35 +11,41 @@ tests/cases/compiler/awaitLiteralValues.ts(22,5): error TS1308: 'await' expressi
|
||||
await 'literal';
|
||||
~~~~~
|
||||
!!! error TS1308: 'await' expression is only allowed within an async function.
|
||||
!!! related TS1356 tests/cases/compiler/awaitLiteralValues.ts:1:10: Did you mean to mark this function as 'async'?
|
||||
}
|
||||
|
||||
function awaitNumber() {
|
||||
await 1;
|
||||
~~~~~
|
||||
!!! error TS1308: 'await' expression is only allowed within an async function.
|
||||
!!! related TS1356 tests/cases/compiler/awaitLiteralValues.ts:5:10: Did you mean to mark this function as 'async'?
|
||||
}
|
||||
|
||||
function awaitTrue() {
|
||||
await true;
|
||||
~~~~~
|
||||
!!! error TS1308: 'await' expression is only allowed within an async function.
|
||||
!!! related TS1356 tests/cases/compiler/awaitLiteralValues.ts:9:10: Did you mean to mark this function as 'async'?
|
||||
}
|
||||
|
||||
function awaitFalse() {
|
||||
await false;
|
||||
~~~~~
|
||||
!!! error TS1308: 'await' expression is only allowed within an async function.
|
||||
!!! related TS1356 tests/cases/compiler/awaitLiteralValues.ts:13:10: Did you mean to mark this function as 'async'?
|
||||
}
|
||||
|
||||
function awaitNull() {
|
||||
await null;
|
||||
~~~~~
|
||||
!!! error TS1308: 'await' expression is only allowed within an async function.
|
||||
!!! related TS1356 tests/cases/compiler/awaitLiteralValues.ts:17:10: Did you mean to mark this function as 'async'?
|
||||
}
|
||||
|
||||
function awaitUndefined() {
|
||||
await undefined;
|
||||
~~~~~
|
||||
!!! error TS1308: 'await' expression is only allowed within an async function.
|
||||
!!! related TS1356 tests/cases/compiler/awaitLiteralValues.ts:21:10: Did you mean to mark this function as 'async'?
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
tests/cases/compiler/checkInfiniteExpansionTermination.ts(16,1): error TS2322: Type 'ISubject<Bar>' is not assignable to type 'IObservable<Foo>'.
|
||||
Types of property 'n' are incompatible.
|
||||
Type 'IObservable<Bar[]>' is not assignable to type 'IObservable<Foo[]>'.
|
||||
Type 'Bar[]' is not assignable to type 'Foo[]'.
|
||||
Property 'x' is missing in type 'Bar' but required in type 'Foo'.
|
||||
|
||||
|
||||
==== tests/cases/compiler/checkInfiniteExpansionTermination.ts (1 errors) ====
|
||||
// Regression test for #1002
|
||||
// Before fix this code would cause infinite loop
|
||||
|
||||
interface IObservable<T> {
|
||||
n: IObservable<T[]>; // Needed, must be T[]
|
||||
}
|
||||
|
||||
// Needed
|
||||
interface ISubject<T> extends IObservable<T> { }
|
||||
|
||||
interface Foo { x }
|
||||
interface Bar { y }
|
||||
|
||||
var values: IObservable<Foo>;
|
||||
var values2: ISubject<Bar>;
|
||||
values = values2;
|
||||
~~~~~~
|
||||
!!! error TS2322: Type 'ISubject<Bar>' is not assignable to type 'IObservable<Foo>'.
|
||||
!!! error TS2322: Types of property 'n' are incompatible.
|
||||
!!! error TS2322: Type 'IObservable<Bar[]>' is not assignable to type 'IObservable<Foo[]>'.
|
||||
!!! error TS2322: Type 'Bar[]' is not assignable to type 'Foo[]'.
|
||||
!!! error TS2322: Property 'x' is missing in type 'Bar' but required in type 'Foo'.
|
||||
!!! related TS2728 tests/cases/compiler/checkInfiniteExpansionTermination.ts:11:17: 'x' is declared here.
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
//// [tests/cases/compiler/compositeWithNodeModulesSourceFile.ts] ////
|
||||
|
||||
//// [index.ts]
|
||||
export class c { }
|
||||
|
||||
//// [test.ts]
|
||||
import myModule = require("myModule");
|
||||
new myModule.c();
|
||||
|
||||
|
||||
|
||||
//// [test.js]
|
||||
"use strict";
|
||||
exports.__esModule = true;
|
||||
var myModule = require("myModule");
|
||||
new myModule.c();
|
||||
|
||||
|
||||
//// [test.d.ts]
|
||||
export {};
|
||||
@@ -0,0 +1,14 @@
|
||||
=== /foo/test.ts ===
|
||||
import myModule = require("myModule");
|
||||
>myModule : Symbol(myModule, Decl(test.ts, 0, 0))
|
||||
|
||||
new myModule.c();
|
||||
>myModule.c : Symbol(myModule.c, Decl(index.ts, 0, 0))
|
||||
>myModule : Symbol(myModule, Decl(test.ts, 0, 0))
|
||||
>c : Symbol(myModule.c, Decl(index.ts, 0, 0))
|
||||
|
||||
|
||||
=== /foo/node_modules/myModule/index.ts ===
|
||||
export class c { }
|
||||
>c : Symbol(c, Decl(index.ts, 0, 0))
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
=== /foo/test.ts ===
|
||||
import myModule = require("myModule");
|
||||
>myModule : typeof myModule
|
||||
|
||||
new myModule.c();
|
||||
>new myModule.c() : myModule.c
|
||||
>myModule.c : typeof myModule.c
|
||||
>myModule : typeof myModule
|
||||
>c : typeof myModule.c
|
||||
|
||||
|
||||
=== /foo/node_modules/myModule/index.ts ===
|
||||
export class c { }
|
||||
>c : c
|
||||
|
||||
@@ -19,12 +19,8 @@ tests/cases/conformance/types/conditional/conditionalTypes1.ts(104,5): error TS2
|
||||
'Pick<T, { [K in keyof T]: T[K] extends Function ? never : K; }[keyof T]>' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'.
|
||||
tests/cases/conformance/types/conditional/conditionalTypes1.ts(106,5): error TS2322: Type 'Pick<T, { [K in keyof T]: T[K] extends Function ? never : K; }[keyof T]>' is not assignable to type 'Pick<T, { [K in keyof T]: T[K] extends Function ? K : never; }[keyof T]>'.
|
||||
Type 'T[keyof T] extends Function ? keyof T : never' is not assignable to type 'T[keyof T] extends Function ? never : keyof T'.
|
||||
Type 'keyof T' is not assignable to type 'never'.
|
||||
Type 'string | number | symbol' is not assignable to type 'never'.
|
||||
Type 'string' is not assignable to type 'never'.
|
||||
tests/cases/conformance/types/conditional/conditionalTypes1.ts(108,5): error TS2322: Type 'Pick<T, { [K in keyof T]: T[K] extends Function ? K : never; }[keyof T]>' is not assignable to type 'Pick<T, { [K in keyof T]: T[K] extends Function ? never : K; }[keyof T]>'.
|
||||
Type 'T[keyof T] extends Function ? never : keyof T' is not assignable to type 'T[keyof T] extends Function ? keyof T : never'.
|
||||
Type 'keyof T' is not assignable to type 'never'.
|
||||
tests/cases/conformance/types/conditional/conditionalTypes1.ts(114,5): error TS2322: Type 'keyof T' is not assignable to type 'T[keyof T] extends Function ? keyof T : never'.
|
||||
Type 'string | number | symbol' is not assignable to type 'T[keyof T] extends Function ? keyof T : never'.
|
||||
Type 'string' is not assignable to type 'T[keyof T] extends Function ? keyof T : never'.
|
||||
@@ -195,15 +191,11 @@ tests/cases/conformance/types/conditional/conditionalTypes1.ts(288,43): error TS
|
||||
~
|
||||
!!! error TS2322: Type 'Pick<T, { [K in keyof T]: T[K] extends Function ? never : K; }[keyof T]>' is not assignable to type 'Pick<T, { [K in keyof T]: T[K] extends Function ? K : never; }[keyof T]>'.
|
||||
!!! error TS2322: Type 'T[keyof T] extends Function ? keyof T : never' is not assignable to type 'T[keyof T] extends Function ? never : keyof T'.
|
||||
!!! error TS2322: Type 'keyof T' is not assignable to type 'never'.
|
||||
!!! error TS2322: Type 'string | number | symbol' is not assignable to type 'never'.
|
||||
!!! error TS2322: Type 'string' is not assignable to type 'never'.
|
||||
z = x;
|
||||
z = y; // Error
|
||||
~
|
||||
!!! error TS2322: Type 'Pick<T, { [K in keyof T]: T[K] extends Function ? K : never; }[keyof T]>' is not assignable to type 'Pick<T, { [K in keyof T]: T[K] extends Function ? never : K; }[keyof T]>'.
|
||||
!!! error TS2322: Type 'T[keyof T] extends Function ? never : keyof T' is not assignable to type 'T[keyof T] extends Function ? keyof T : never'.
|
||||
!!! error TS2322: Type 'keyof T' is not assignable to type 'never'.
|
||||
}
|
||||
|
||||
function f8<T>(x: keyof T, y: FunctionPropertyNames<T>, z: NonFunctionPropertyNames<T>) {
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
tests/cases/compiler/consistentAliasVsNonAliasRecordBehavior.ts(18,5): error TS2741: Property 'a' is missing in type 'Record<string, string>' but required in type 'Record2<"a", string>'.
|
||||
tests/cases/compiler/consistentAliasVsNonAliasRecordBehavior.ts(22,5): error TS2741: Property 'a' is missing in type 'Record2<string, string>' but required in type 'Record<"a", string>'.
|
||||
tests/cases/compiler/consistentAliasVsNonAliasRecordBehavior.ts(34,5): error TS2741: Property 'a' is missing in type 'Record<string, T>' but required in type 'Record2<"a", T>'.
|
||||
tests/cases/compiler/consistentAliasVsNonAliasRecordBehavior.ts(38,5): error TS2741: Property 'a' is missing in type 'Record2<string, T>' but required in type 'Record<"a", T>'.
|
||||
|
||||
|
||||
==== tests/cases/compiler/consistentAliasVsNonAliasRecordBehavior.ts (4 errors) ====
|
||||
// TODO: FIXME: All the below cases labeled `no error` _should be an error_, and are only prevented from so being
|
||||
// by incorrect variance-based relationships
|
||||
// Ref: https://github.com/Microsoft/TypeScript/issues/29698
|
||||
|
||||
type Record2<K extends keyof any, T> = {
|
||||
[P in K]: T;
|
||||
};
|
||||
|
||||
function defaultRecord(x: Record<'a', string>, y: Record<string, string>) {
|
||||
x = y; // no error, but error expected.
|
||||
}
|
||||
|
||||
function customRecord(x: Record2<'a', string>, y: Record2<string, string>) {
|
||||
x = y; // no error, but error expected.
|
||||
}
|
||||
|
||||
function mixed1(x: Record2<'a', string>, y: Record<string, string>) {
|
||||
x = y; // error
|
||||
~
|
||||
!!! error TS2741: Property 'a' is missing in type 'Record<string, string>' but required in type 'Record2<"a", string>'.
|
||||
}
|
||||
|
||||
function mixed2(x: Record<'a', string>, y: Record2<string, string>) {
|
||||
x = y; // error
|
||||
~
|
||||
!!! error TS2741: Property 'a' is missing in type 'Record2<string, string>' but required in type 'Record<"a", string>'.
|
||||
}
|
||||
|
||||
function defaultRecord2<T>(x: Record<'a', T>, y: Record<string, T>) {
|
||||
x = y; // no error, but error expected.
|
||||
}
|
||||
|
||||
function customRecord2<T>(x: Record2<'a', T>, y: Record2<string, T>) {
|
||||
x = y; // no error, but error expected.
|
||||
}
|
||||
|
||||
function mixed3<T>(x: Record2<'a', T>, y: Record<string, T>) {
|
||||
x = y; // error
|
||||
~
|
||||
!!! error TS2741: Property 'a' is missing in type 'Record<string, T>' but required in type 'Record2<"a", T>'.
|
||||
}
|
||||
|
||||
function mixed4<T>(x: Record<'a', T>, y: Record2<string, T>) {
|
||||
x = y; // error
|
||||
~
|
||||
!!! error TS2741: Property 'a' is missing in type 'Record2<string, T>' but required in type 'Record<"a", T>'.
|
||||
}
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
//// [consistentAliasVsNonAliasRecordBehavior.ts]
|
||||
// TODO: FIXME: All the below cases labeled `no error` _should be an error_, and are only prevented from so being
|
||||
// by incorrect variance-based relationships
|
||||
// Ref: https://github.com/Microsoft/TypeScript/issues/29698
|
||||
|
||||
type Record2<K extends keyof any, T> = {
|
||||
[P in K]: T;
|
||||
};
|
||||
|
||||
function defaultRecord(x: Record<'a', string>, y: Record<string, string>) {
|
||||
x = y; // no error, but error expected.
|
||||
}
|
||||
|
||||
function customRecord(x: Record2<'a', string>, y: Record2<string, string>) {
|
||||
x = y; // no error, but error expected.
|
||||
}
|
||||
|
||||
function mixed1(x: Record2<'a', string>, y: Record<string, string>) {
|
||||
x = y; // error
|
||||
}
|
||||
|
||||
function mixed2(x: Record<'a', string>, y: Record2<string, string>) {
|
||||
x = y; // error
|
||||
}
|
||||
|
||||
function defaultRecord2<T>(x: Record<'a', T>, y: Record<string, T>) {
|
||||
x = y; // no error, but error expected.
|
||||
}
|
||||
|
||||
function customRecord2<T>(x: Record2<'a', T>, y: Record2<string, T>) {
|
||||
x = y; // no error, but error expected.
|
||||
}
|
||||
|
||||
function mixed3<T>(x: Record2<'a', T>, y: Record<string, T>) {
|
||||
x = y; // error
|
||||
}
|
||||
|
||||
function mixed4<T>(x: Record<'a', T>, y: Record2<string, T>) {
|
||||
x = y; // error
|
||||
}
|
||||
|
||||
|
||||
//// [consistentAliasVsNonAliasRecordBehavior.js]
|
||||
// TODO: FIXME: All the below cases labeled `no error` _should be an error_, and are only prevented from so being
|
||||
// by incorrect variance-based relationships
|
||||
// Ref: https://github.com/Microsoft/TypeScript/issues/29698
|
||||
function defaultRecord(x, y) {
|
||||
x = y; // no error, but error expected.
|
||||
}
|
||||
function customRecord(x, y) {
|
||||
x = y; // no error, but error expected.
|
||||
}
|
||||
function mixed1(x, y) {
|
||||
x = y; // error
|
||||
}
|
||||
function mixed2(x, y) {
|
||||
x = y; // error
|
||||
}
|
||||
function defaultRecord2(x, y) {
|
||||
x = y; // no error, but error expected.
|
||||
}
|
||||
function customRecord2(x, y) {
|
||||
x = y; // no error, but error expected.
|
||||
}
|
||||
function mixed3(x, y) {
|
||||
x = y; // error
|
||||
}
|
||||
function mixed4(x, y) {
|
||||
x = y; // error
|
||||
}
|
||||
@@ -0,0 +1,125 @@
|
||||
=== tests/cases/compiler/consistentAliasVsNonAliasRecordBehavior.ts ===
|
||||
// TODO: FIXME: All the below cases labeled `no error` _should be an error_, and are only prevented from so being
|
||||
// by incorrect variance-based relationships
|
||||
// Ref: https://github.com/Microsoft/TypeScript/issues/29698
|
||||
|
||||
type Record2<K extends keyof any, T> = {
|
||||
>Record2 : Symbol(Record2, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 0, 0))
|
||||
>K : Symbol(K, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 4, 13))
|
||||
>T : Symbol(T, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 4, 33))
|
||||
|
||||
[P in K]: T;
|
||||
>P : Symbol(P, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 5, 5))
|
||||
>K : Symbol(K, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 4, 13))
|
||||
>T : Symbol(T, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 4, 33))
|
||||
|
||||
};
|
||||
|
||||
function defaultRecord(x: Record<'a', string>, y: Record<string, string>) {
|
||||
>defaultRecord : Symbol(defaultRecord, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 6, 2))
|
||||
>x : Symbol(x, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 8, 23))
|
||||
>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --))
|
||||
>y : Symbol(y, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 8, 46))
|
||||
>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --))
|
||||
|
||||
x = y; // no error, but error expected.
|
||||
>x : Symbol(x, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 8, 23))
|
||||
>y : Symbol(y, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 8, 46))
|
||||
}
|
||||
|
||||
function customRecord(x: Record2<'a', string>, y: Record2<string, string>) {
|
||||
>customRecord : Symbol(customRecord, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 10, 1))
|
||||
>x : Symbol(x, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 12, 22))
|
||||
>Record2 : Symbol(Record2, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 0, 0))
|
||||
>y : Symbol(y, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 12, 46))
|
||||
>Record2 : Symbol(Record2, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 0, 0))
|
||||
|
||||
x = y; // no error, but error expected.
|
||||
>x : Symbol(x, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 12, 22))
|
||||
>y : Symbol(y, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 12, 46))
|
||||
}
|
||||
|
||||
function mixed1(x: Record2<'a', string>, y: Record<string, string>) {
|
||||
>mixed1 : Symbol(mixed1, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 14, 1))
|
||||
>x : Symbol(x, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 16, 16))
|
||||
>Record2 : Symbol(Record2, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 0, 0))
|
||||
>y : Symbol(y, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 16, 40))
|
||||
>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --))
|
||||
|
||||
x = y; // error
|
||||
>x : Symbol(x, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 16, 16))
|
||||
>y : Symbol(y, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 16, 40))
|
||||
}
|
||||
|
||||
function mixed2(x: Record<'a', string>, y: Record2<string, string>) {
|
||||
>mixed2 : Symbol(mixed2, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 18, 1))
|
||||
>x : Symbol(x, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 20, 16))
|
||||
>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --))
|
||||
>y : Symbol(y, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 20, 39))
|
||||
>Record2 : Symbol(Record2, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 0, 0))
|
||||
|
||||
x = y; // error
|
||||
>x : Symbol(x, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 20, 16))
|
||||
>y : Symbol(y, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 20, 39))
|
||||
}
|
||||
|
||||
function defaultRecord2<T>(x: Record<'a', T>, y: Record<string, T>) {
|
||||
>defaultRecord2 : Symbol(defaultRecord2, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 22, 1))
|
||||
>T : Symbol(T, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 24, 24))
|
||||
>x : Symbol(x, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 24, 27))
|
||||
>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --))
|
||||
>T : Symbol(T, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 24, 24))
|
||||
>y : Symbol(y, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 24, 45))
|
||||
>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --))
|
||||
>T : Symbol(T, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 24, 24))
|
||||
|
||||
x = y; // no error, but error expected.
|
||||
>x : Symbol(x, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 24, 27))
|
||||
>y : Symbol(y, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 24, 45))
|
||||
}
|
||||
|
||||
function customRecord2<T>(x: Record2<'a', T>, y: Record2<string, T>) {
|
||||
>customRecord2 : Symbol(customRecord2, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 26, 1))
|
||||
>T : Symbol(T, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 28, 23))
|
||||
>x : Symbol(x, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 28, 26))
|
||||
>Record2 : Symbol(Record2, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 0, 0))
|
||||
>T : Symbol(T, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 28, 23))
|
||||
>y : Symbol(y, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 28, 45))
|
||||
>Record2 : Symbol(Record2, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 0, 0))
|
||||
>T : Symbol(T, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 28, 23))
|
||||
|
||||
x = y; // no error, but error expected.
|
||||
>x : Symbol(x, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 28, 26))
|
||||
>y : Symbol(y, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 28, 45))
|
||||
}
|
||||
|
||||
function mixed3<T>(x: Record2<'a', T>, y: Record<string, T>) {
|
||||
>mixed3 : Symbol(mixed3, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 30, 1))
|
||||
>T : Symbol(T, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 32, 16))
|
||||
>x : Symbol(x, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 32, 19))
|
||||
>Record2 : Symbol(Record2, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 0, 0))
|
||||
>T : Symbol(T, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 32, 16))
|
||||
>y : Symbol(y, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 32, 38))
|
||||
>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --))
|
||||
>T : Symbol(T, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 32, 16))
|
||||
|
||||
x = y; // error
|
||||
>x : Symbol(x, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 32, 19))
|
||||
>y : Symbol(y, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 32, 38))
|
||||
}
|
||||
|
||||
function mixed4<T>(x: Record<'a', T>, y: Record2<string, T>) {
|
||||
>mixed4 : Symbol(mixed4, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 34, 1))
|
||||
>T : Symbol(T, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 36, 16))
|
||||
>x : Symbol(x, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 36, 19))
|
||||
>Record : Symbol(Record, Decl(lib.es5.d.ts, --, --))
|
||||
>T : Symbol(T, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 36, 16))
|
||||
>y : Symbol(y, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 36, 37))
|
||||
>Record2 : Symbol(Record2, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 0, 0))
|
||||
>T : Symbol(T, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 36, 16))
|
||||
|
||||
x = y; // error
|
||||
>x : Symbol(x, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 36, 19))
|
||||
>y : Symbol(y, Decl(consistentAliasVsNonAliasRecordBehavior.ts, 36, 37))
|
||||
}
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
=== tests/cases/compiler/consistentAliasVsNonAliasRecordBehavior.ts ===
|
||||
// TODO: FIXME: All the below cases labeled `no error` _should be an error_, and are only prevented from so being
|
||||
// by incorrect variance-based relationships
|
||||
// Ref: https://github.com/Microsoft/TypeScript/issues/29698
|
||||
|
||||
type Record2<K extends keyof any, T> = {
|
||||
>Record2 : Record2<K, T>
|
||||
|
||||
[P in K]: T;
|
||||
};
|
||||
|
||||
function defaultRecord(x: Record<'a', string>, y: Record<string, string>) {
|
||||
>defaultRecord : (x: Record<"a", string>, y: Record<string, string>) => void
|
||||
>x : Record<"a", string>
|
||||
>y : Record<string, string>
|
||||
|
||||
x = y; // no error, but error expected.
|
||||
>x = y : Record<string, string>
|
||||
>x : Record<"a", string>
|
||||
>y : Record<string, string>
|
||||
}
|
||||
|
||||
function customRecord(x: Record2<'a', string>, y: Record2<string, string>) {
|
||||
>customRecord : (x: Record2<"a", string>, y: Record2<string, string>) => void
|
||||
>x : Record2<"a", string>
|
||||
>y : Record2<string, string>
|
||||
|
||||
x = y; // no error, but error expected.
|
||||
>x = y : Record2<string, string>
|
||||
>x : Record2<"a", string>
|
||||
>y : Record2<string, string>
|
||||
}
|
||||
|
||||
function mixed1(x: Record2<'a', string>, y: Record<string, string>) {
|
||||
>mixed1 : (x: Record2<"a", string>, y: Record<string, string>) => void
|
||||
>x : Record2<"a", string>
|
||||
>y : Record<string, string>
|
||||
|
||||
x = y; // error
|
||||
>x = y : Record<string, string>
|
||||
>x : Record2<"a", string>
|
||||
>y : Record<string, string>
|
||||
}
|
||||
|
||||
function mixed2(x: Record<'a', string>, y: Record2<string, string>) {
|
||||
>mixed2 : (x: Record<"a", string>, y: Record2<string, string>) => void
|
||||
>x : Record<"a", string>
|
||||
>y : Record2<string, string>
|
||||
|
||||
x = y; // error
|
||||
>x = y : Record2<string, string>
|
||||
>x : Record<"a", string>
|
||||
>y : Record2<string, string>
|
||||
}
|
||||
|
||||
function defaultRecord2<T>(x: Record<'a', T>, y: Record<string, T>) {
|
||||
>defaultRecord2 : <T>(x: Record<"a", T>, y: Record<string, T>) => void
|
||||
>x : Record<"a", T>
|
||||
>y : Record<string, T>
|
||||
|
||||
x = y; // no error, but error expected.
|
||||
>x = y : Record<string, T>
|
||||
>x : Record<"a", T>
|
||||
>y : Record<string, T>
|
||||
}
|
||||
|
||||
function customRecord2<T>(x: Record2<'a', T>, y: Record2<string, T>) {
|
||||
>customRecord2 : <T>(x: Record2<"a", T>, y: Record2<string, T>) => void
|
||||
>x : Record2<"a", T>
|
||||
>y : Record2<string, T>
|
||||
|
||||
x = y; // no error, but error expected.
|
||||
>x = y : Record2<string, T>
|
||||
>x : Record2<"a", T>
|
||||
>y : Record2<string, T>
|
||||
}
|
||||
|
||||
function mixed3<T>(x: Record2<'a', T>, y: Record<string, T>) {
|
||||
>mixed3 : <T>(x: Record2<"a", T>, y: Record<string, T>) => void
|
||||
>x : Record2<"a", T>
|
||||
>y : Record<string, T>
|
||||
|
||||
x = y; // error
|
||||
>x = y : Record<string, T>
|
||||
>x : Record2<"a", T>
|
||||
>y : Record<string, T>
|
||||
}
|
||||
|
||||
function mixed4<T>(x: Record<'a', T>, y: Record2<string, T>) {
|
||||
>mixed4 : <T>(x: Record<"a", T>, y: Record2<string, T>) => void
|
||||
>x : Record<"a", T>
|
||||
>y : Record2<string, T>
|
||||
|
||||
x = y; // error
|
||||
>x = y : Record2<string, T>
|
||||
>x : Record<"a", T>
|
||||
>y : Record2<string, T>
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
tests/cases/compiler/convertKeywordsYes.ts(175,12): error TS18006: Classes may not have a field named 'constructor'.
|
||||
tests/cases/compiler/convertKeywordsYes.ts(292,11): error TS1213: Identifier expected. 'implements' is a reserved word in strict mode. Class definitions are automatically in strict mode.
|
||||
tests/cases/compiler/convertKeywordsYes.ts(293,11): error TS1213: Identifier expected. 'interface' is a reserved word in strict mode. Class definitions are automatically in strict mode.
|
||||
tests/cases/compiler/convertKeywordsYes.ts(294,11): error TS1213: Identifier expected. 'let' is a reserved word in strict mode. Class definitions are automatically in strict mode.
|
||||
@@ -9,7 +10,7 @@ tests/cases/compiler/convertKeywordsYes.ts(301,11): error TS1213: Identifier exp
|
||||
tests/cases/compiler/convertKeywordsYes.ts(303,11): error TS1213: Identifier expected. 'yield' is a reserved word in strict mode. Class definitions are automatically in strict mode.
|
||||
|
||||
|
||||
==== tests/cases/compiler/convertKeywordsYes.ts (9 errors) ====
|
||||
==== tests/cases/compiler/convertKeywordsYes.ts (10 errors) ====
|
||||
// reserved ES5 future in strict mode
|
||||
|
||||
var constructor = 0;
|
||||
@@ -185,6 +186,8 @@ tests/cases/compiler/convertKeywordsYes.ts(303,11): error TS1213: Identifier exp
|
||||
|
||||
class bigClass {
|
||||
public "constructor" = 0;
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS18006: Classes may not have a field named 'constructor'.
|
||||
public any = 0;
|
||||
public boolean = 0;
|
||||
public implements = 0;
|
||||
|
||||
@@ -9,8 +9,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
var bar;
|
||||
|
||||
@@ -43,8 +43,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
var Parent = function (_a) {
|
||||
|
||||
@@ -12,8 +12,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
function a() {
|
||||
|
||||
@@ -9,8 +9,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
var array = [{ a: 0, b: 1 }];
|
||||
|
||||
@@ -29,8 +29,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
function test(obj) {
|
||||
|
||||
@@ -35,8 +35,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
const a = 'a';
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
tests/cases/compiler/invariantGenericErrorElaboration.ts(3,7): error TS2322: Type 'Num' is not assignable to type 'Runtype<any>'.
|
||||
Types of property 'constraint' are incompatible.
|
||||
Type 'Constraint<Num>' is not assignable to type 'Constraint<Runtype<any>>'.
|
||||
Types of property 'constraint' are incompatible.
|
||||
Type 'Constraint<Constraint<Num>>' is not assignable to type 'Constraint<Constraint<Runtype<any>>>'.
|
||||
Types of property 'constraint' are incompatible.
|
||||
Type 'Constraint<Constraint<Constraint<Num>>>' is not assignable to type 'Constraint<Constraint<Constraint<Runtype<any>>>>'.
|
||||
Type 'Constraint<Constraint<Runtype<any>>>' is not assignable to type 'Constraint<Constraint<Num>>'.
|
||||
Types of property 'underlying' are incompatible.
|
||||
Type 'Constraint<Runtype<any>>' is not assignable to type 'Constraint<Num>'.
|
||||
tests/cases/compiler/invariantGenericErrorElaboration.ts(4,19): error TS2322: Type 'Num' is not assignable to type 'Runtype<any>'.
|
||||
|
||||
|
||||
==== tests/cases/compiler/invariantGenericErrorElaboration.ts (2 errors) ====
|
||||
// Repro from #19746
|
||||
|
||||
const wat: Runtype<any> = Num;
|
||||
~~~
|
||||
!!! error TS2322: Type 'Num' is not assignable to type 'Runtype<any>'.
|
||||
!!! error TS2322: Types of property 'constraint' are incompatible.
|
||||
!!! error TS2322: Type 'Constraint<Num>' is not assignable to type 'Constraint<Runtype<any>>'.
|
||||
!!! error TS2322: Types of property 'constraint' are incompatible.
|
||||
!!! error TS2322: Type 'Constraint<Constraint<Num>>' is not assignable to type 'Constraint<Constraint<Runtype<any>>>'.
|
||||
!!! error TS2322: Types of property 'constraint' are incompatible.
|
||||
!!! error TS2322: Type 'Constraint<Constraint<Constraint<Num>>>' is not assignable to type 'Constraint<Constraint<Constraint<Runtype<any>>>>'.
|
||||
!!! error TS2322: Type 'Constraint<Constraint<Runtype<any>>>' is not assignable to type 'Constraint<Constraint<Num>>'.
|
||||
!!! error TS2322: Types of property 'underlying' are incompatible.
|
||||
!!! error TS2322: Type 'Constraint<Runtype<any>>' is not assignable to type 'Constraint<Num>'.
|
||||
!!! related TS2728 tests/cases/compiler/invariantGenericErrorElaboration.ts:12:3: 'tag' is declared here.
|
||||
const Foo = Obj({ foo: Num })
|
||||
~~~
|
||||
!!! error TS2322: Type 'Num' is not assignable to type 'Runtype<any>'.
|
||||
!!! related TS6501 tests/cases/compiler/invariantGenericErrorElaboration.ts:17:34: The expected type comes from this index signature.
|
||||
|
||||
interface Runtype<A> {
|
||||
constraint: Constraint<this>
|
||||
witness: A
|
||||
}
|
||||
|
||||
interface Num extends Runtype<number> {
|
||||
tag: 'number'
|
||||
}
|
||||
declare const Num: Num
|
||||
|
||||
interface Obj<O extends { [_ in string]: Runtype<any> }> extends Runtype<{[K in keyof O]: O[K]['witness'] }> {}
|
||||
declare function Obj<O extends { [_: string]: Runtype<any> }>(fields: O): Obj<O>;
|
||||
|
||||
interface Constraint<A extends Runtype<any>> extends Runtype<A['witness']> {
|
||||
underlying: A,
|
||||
check: (x: A['witness']) => void,
|
||||
}
|
||||
|
||||
@@ -6,8 +6,8 @@ const wat: Runtype<any> = Num;
|
||||
>Num : Num
|
||||
|
||||
const Foo = Obj({ foo: Num })
|
||||
>Foo : Obj<{ foo: Num; }>
|
||||
>Obj({ foo: Num }) : Obj<{ foo: Num; }>
|
||||
>Foo : any
|
||||
>Obj({ foo: Num }) : any
|
||||
>Obj : <O extends { [_: string]: Runtype<any>; }>(fields: O) => Obj<O>
|
||||
>{ foo: Num } : { foo: Num; }
|
||||
>foo : Num
|
||||
|
||||
@@ -156,8 +156,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
exports.__esModule = true;
|
||||
|
||||
@@ -42,8 +42,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
function f0(obj) {
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
tests/cases/conformance/types/mapped/mappedTypes5.ts(6,9): error TS2322: Type 'Partial<T>' is not assignable to type 'Readonly<T>'.
|
||||
tests/cases/conformance/types/mapped/mappedTypes5.ts(8,9): error TS2322: Type 'Partial<Readonly<T>>' is not assignable to type 'Readonly<T>'.
|
||||
tests/cases/conformance/types/mapped/mappedTypes5.ts(9,9): error TS2322: Type 'Readonly<Partial<T>>' is not assignable to type 'Readonly<T>'.
|
||||
Type 'Partial<T>' is not assignable to type 'T'.
|
||||
'Partial<T>' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'.
|
||||
|
||||
|
||||
==== tests/cases/conformance/types/mapped/mappedTypes5.ts (3 errors) ====
|
||||
@@ -21,8 +19,6 @@ tests/cases/conformance/types/mapped/mappedTypes5.ts(9,9): error TS2322: Type 'R
|
||||
let b4: Readonly<T> = rp; // Error
|
||||
~~
|
||||
!!! error TS2322: Type 'Readonly<Partial<T>>' is not assignable to type 'Readonly<T>'.
|
||||
!!! error TS2322: Type 'Partial<T>' is not assignable to type 'T'.
|
||||
!!! error TS2322: 'Partial<T>' is assignable to the constraint of type 'T', but 'T' could be instantiated with a different subtype of constraint '{}'.
|
||||
let c1: Partial<Readonly<T>> = p;
|
||||
let c2: Partial<Readonly<T>> = r;
|
||||
let c3: Partial<Readonly<T>> = pr;
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
tests/cases/compiler/noImplicitAnyLoopCrash.ts(4,16): error TS2556: Expected 0 arguments, but got 1 or more.
|
||||
tests/cases/compiler/noImplicitAnyLoopCrash.ts(4,19): error TS2461: Type 'number' is not an array type.
|
||||
tests/cases/compiler/noImplicitAnyLoopCrash.ts(4,19): error TS2461: Type 'undefined' is not an array type.
|
||||
|
||||
|
||||
==== tests/cases/compiler/noImplicitAnyLoopCrash.ts (3 errors) ====
|
||||
let foo = () => {};
|
||||
let bar;
|
||||
while (1) {
|
||||
bar = ~foo(...bar);
|
||||
~~~~~~
|
||||
!!! error TS2556: Expected 0 arguments, but got 1 or more.
|
||||
~~~
|
||||
!!! error TS2461: Type 'number' is not an array type.
|
||||
~~~
|
||||
!!! error TS2461: Type 'undefined' is not an array type.
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
//// [noImplicitAnyLoopCrash.ts]
|
||||
let foo = () => {};
|
||||
let bar;
|
||||
while (1) {
|
||||
bar = ~foo(...bar);
|
||||
}
|
||||
|
||||
|
||||
//// [noImplicitAnyLoopCrash.js]
|
||||
var foo = function () { };
|
||||
var bar;
|
||||
while (1) {
|
||||
bar = ~foo.apply(void 0, bar);
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
=== tests/cases/compiler/noImplicitAnyLoopCrash.ts ===
|
||||
let foo = () => {};
|
||||
>foo : Symbol(foo, Decl(noImplicitAnyLoopCrash.ts, 0, 3))
|
||||
|
||||
let bar;
|
||||
>bar : Symbol(bar, Decl(noImplicitAnyLoopCrash.ts, 1, 3))
|
||||
|
||||
while (1) {
|
||||
bar = ~foo(...bar);
|
||||
>bar : Symbol(bar, Decl(noImplicitAnyLoopCrash.ts, 1, 3))
|
||||
>foo : Symbol(foo, Decl(noImplicitAnyLoopCrash.ts, 0, 3))
|
||||
>bar : Symbol(bar, Decl(noImplicitAnyLoopCrash.ts, 1, 3))
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
=== tests/cases/compiler/noImplicitAnyLoopCrash.ts ===
|
||||
let foo = () => {};
|
||||
>foo : () => void
|
||||
>() => {} : () => void
|
||||
|
||||
let bar;
|
||||
>bar : any
|
||||
|
||||
while (1) {
|
||||
>1 : 1
|
||||
|
||||
bar = ~foo(...bar);
|
||||
>bar = ~foo(...bar) : number
|
||||
>bar : any
|
||||
>~foo(...bar) : number
|
||||
>foo(...bar) : void
|
||||
>foo : () => void
|
||||
>...bar : any
|
||||
>bar : number
|
||||
}
|
||||
|
||||
@@ -13,8 +13,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
var a;
|
||||
|
||||
@@ -8,8 +8,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
var b = __rest({}, []);
|
||||
|
||||
@@ -53,8 +53,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
var _a, _b, _c, _d, _e;
|
||||
|
||||
@@ -20,8 +20,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
var _a, _b, _c;
|
||||
|
||||
@@ -20,8 +20,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
let array;
|
||||
|
||||
@@ -24,8 +24,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
var o = { a: 1, b: 'no' };
|
||||
|
||||
@@ -27,8 +27,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
function cloneAgain(_a) {
|
||||
|
||||
@@ -27,8 +27,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
function cloneAgain(_a) {
|
||||
|
||||
@@ -23,8 +23,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
var obj = {
|
||||
|
||||
@@ -26,8 +26,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
function foobar(_a) {
|
||||
|
||||
@@ -52,6 +52,7 @@ tests/cases/conformance/parser/ecmascript2018/forAwait/topLevelWithExprIsError.t
|
||||
for await (const x of y) {
|
||||
~~~~~
|
||||
!!! error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
!!! related TS1356 tests/cases/conformance/parser/ecmascript2018/forAwait/inFunctionDeclWithDeclIsError.ts:1:10: Did you mean to mark this function as 'async'?
|
||||
}
|
||||
}
|
||||
==== tests/cases/conformance/parser/ecmascript2018/forAwait/inFunctionDeclWithExprIsError.ts (1 errors) ====
|
||||
@@ -60,6 +61,7 @@ tests/cases/conformance/parser/ecmascript2018/forAwait/topLevelWithExprIsError.t
|
||||
for await (x of y) {
|
||||
~~~~~
|
||||
!!! error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
!!! related TS1356 tests/cases/conformance/parser/ecmascript2018/forAwait/inFunctionDeclWithExprIsError.ts:1:10: Did you mean to mark this function as 'async'?
|
||||
}
|
||||
}
|
||||
==== tests/cases/conformance/parser/ecmascript2018/forAwait/inAsyncFunctionWithDeclIsOk.ts (0 errors) ====
|
||||
@@ -92,6 +94,7 @@ tests/cases/conformance/parser/ecmascript2018/forAwait/topLevelWithExprIsError.t
|
||||
for await (const x of y) {
|
||||
~~~~~
|
||||
!!! error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
!!! related TS1356 tests/cases/conformance/parser/ecmascript2018/forAwait/inGeneratorWithDeclIsError.ts:1:11: Did you mean to mark this function as 'async'?
|
||||
}
|
||||
}
|
||||
==== tests/cases/conformance/parser/ecmascript2018/forAwait/inGeneratorWithExprIsError.ts (1 errors) ====
|
||||
@@ -100,6 +103,7 @@ tests/cases/conformance/parser/ecmascript2018/forAwait/topLevelWithExprIsError.t
|
||||
for await (x of y) {
|
||||
~~~~~
|
||||
!!! error TS1103: A 'for-await-of' statement is only allowed within an async function or async generator.
|
||||
!!! related TS1356 tests/cases/conformance/parser/ecmascript2018/forAwait/inGeneratorWithExprIsError.ts:1:11: Did you mean to mark this function as 'async'?
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
tests/cases/conformance/classes/propertyMemberDeclarations/propertyNamedConstructor.ts(2,3): error TS18006: Classes may not have a field named 'constructor'.
|
||||
|
||||
|
||||
==== tests/cases/conformance/classes/propertyMemberDeclarations/propertyNamedConstructor.ts (1 errors) ====
|
||||
class X1 {
|
||||
"constructor" = 3; // Error
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS18006: Classes may not have a field named 'constructor'.
|
||||
}
|
||||
|
||||
class X2 {
|
||||
["constructor"] = 3;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
//// [propertyNamedConstructor.ts]
|
||||
class X1 {
|
||||
"constructor" = 3; // Error
|
||||
}
|
||||
|
||||
class X2 {
|
||||
["constructor"] = 3;
|
||||
}
|
||||
|
||||
|
||||
//// [propertyNamedConstructor.js]
|
||||
var X1 = /** @class */ (function () {
|
||||
function X1() {
|
||||
this["constructor"] = 3; // Error
|
||||
}
|
||||
return X1;
|
||||
}());
|
||||
var X2 = /** @class */ (function () {
|
||||
function X2() {
|
||||
this["constructor"] = 3;
|
||||
}
|
||||
return X2;
|
||||
}());
|
||||
@@ -0,0 +1,16 @@
|
||||
=== tests/cases/conformance/classes/propertyMemberDeclarations/propertyNamedConstructor.ts ===
|
||||
class X1 {
|
||||
>X1 : Symbol(X1, Decl(propertyNamedConstructor.ts, 0, 0))
|
||||
|
||||
"constructor" = 3; // Error
|
||||
>"constructor" : Symbol(X1["constructor"], Decl(propertyNamedConstructor.ts, 0, 10))
|
||||
}
|
||||
|
||||
class X2 {
|
||||
>X2 : Symbol(X2, Decl(propertyNamedConstructor.ts, 2, 1))
|
||||
|
||||
["constructor"] = 3;
|
||||
>["constructor"] : Symbol(X2["constructor"], Decl(propertyNamedConstructor.ts, 4, 10))
|
||||
>"constructor" : Symbol(X2["constructor"], Decl(propertyNamedConstructor.ts, 4, 10))
|
||||
}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
=== tests/cases/conformance/classes/propertyMemberDeclarations/propertyNamedConstructor.ts ===
|
||||
class X1 {
|
||||
>X1 : X1
|
||||
|
||||
"constructor" = 3; // Error
|
||||
>"constructor" : number
|
||||
>3 : 3
|
||||
}
|
||||
|
||||
class X2 {
|
||||
>X2 : X2
|
||||
|
||||
["constructor"] = 3;
|
||||
>["constructor"] : number
|
||||
>"constructor" : "constructor"
|
||||
>3 : 3
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
tests/cases/conformance/classes/constructorDeclarations/quotedConstructors.ts(2,5): error TS18005: Quoted constructors have previously been interpreted as methods, which is incorrect. In TypeScript 3.6, they will be correctly parsed as constructors. In the meantime, consider using 'constructor()' to write a constructor, or '["constructor"]()' to write a method.
|
||||
tests/cases/conformance/classes/constructorDeclarations/quotedConstructors.ts(6,5): error TS18005: Quoted constructors have previously been interpreted as methods, which is incorrect. In TypeScript 3.6, they will be correctly parsed as constructors. In the meantime, consider using 'constructor()' to write a constructor, or '["constructor"]()' to write a method.
|
||||
tests/cases/conformance/classes/constructorDeclarations/quotedConstructors.ts(14,5): error TS18005: Quoted constructors have previously been interpreted as methods, which is incorrect. In TypeScript 3.6, they will be correctly parsed as constructors. In the meantime, consider using 'constructor()' to write a constructor, or '["constructor"]()' to write a method.
|
||||
|
||||
|
||||
==== tests/cases/conformance/classes/constructorDeclarations/quotedConstructors.ts (3 errors) ====
|
||||
class C {
|
||||
"constructor"() {} // Error in 3.5
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS18005: Quoted constructors have previously been interpreted as methods, which is incorrect. In TypeScript 3.6, they will be correctly parsed as constructors. In the meantime, consider using 'constructor()' to write a constructor, or '["constructor"]()' to write a method.
|
||||
}
|
||||
|
||||
class D {
|
||||
'constructor'() {} // Error in 3.5
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS18005: Quoted constructors have previously been interpreted as methods, which is incorrect. In TypeScript 3.6, they will be correctly parsed as constructors. In the meantime, consider using 'constructor()' to write a constructor, or '["constructor"]()' to write a method.
|
||||
}
|
||||
|
||||
class E {
|
||||
['constructor']() {}
|
||||
}
|
||||
|
||||
new class {
|
||||
"constructor"() {} // Error in 3.5
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS18005: Quoted constructors have previously been interpreted as methods, which is incorrect. In TypeScript 3.6, they will be correctly parsed as constructors. In the meantime, consider using 'constructor()' to write a constructor, or '["constructor"]()' to write a method.
|
||||
};
|
||||
|
||||
var o = { "constructor"() {} };
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
//// [quotedConstructors.ts]
|
||||
class C {
|
||||
"constructor"() {} // Error in 3.5
|
||||
}
|
||||
|
||||
class D {
|
||||
'constructor'() {} // Error in 3.5
|
||||
}
|
||||
|
||||
class E {
|
||||
['constructor']() {}
|
||||
}
|
||||
|
||||
new class {
|
||||
"constructor"() {} // Error in 3.5
|
||||
};
|
||||
|
||||
var o = { "constructor"() {} };
|
||||
|
||||
|
||||
//// [quotedConstructors.js]
|
||||
var C = /** @class */ (function () {
|
||||
function C() {
|
||||
}
|
||||
C.prototype["constructor"] = function () { }; // Error in 3.5
|
||||
return C;
|
||||
}());
|
||||
var D = /** @class */ (function () {
|
||||
function D() {
|
||||
}
|
||||
D.prototype['constructor'] = function () { }; // Error in 3.5
|
||||
return D;
|
||||
}());
|
||||
var E = /** @class */ (function () {
|
||||
function E() {
|
||||
}
|
||||
E.prototype['constructor'] = function () { };
|
||||
return E;
|
||||
}());
|
||||
new /** @class */ (function () {
|
||||
function class_1() {
|
||||
}
|
||||
class_1.prototype["constructor"] = function () { }; // Error in 3.5
|
||||
return class_1;
|
||||
}());
|
||||
var o = { "constructor": function () { } };
|
||||
@@ -0,0 +1,33 @@
|
||||
=== tests/cases/conformance/classes/constructorDeclarations/quotedConstructors.ts ===
|
||||
class C {
|
||||
>C : Symbol(C, Decl(quotedConstructors.ts, 0, 0))
|
||||
|
||||
"constructor"() {} // Error in 3.5
|
||||
>"constructor" : Symbol(C["constructor"], Decl(quotedConstructors.ts, 0, 9))
|
||||
}
|
||||
|
||||
class D {
|
||||
>D : Symbol(D, Decl(quotedConstructors.ts, 2, 1))
|
||||
|
||||
'constructor'() {} // Error in 3.5
|
||||
>'constructor' : Symbol(D['constructor'], Decl(quotedConstructors.ts, 4, 9))
|
||||
}
|
||||
|
||||
class E {
|
||||
>E : Symbol(E, Decl(quotedConstructors.ts, 6, 1))
|
||||
|
||||
['constructor']() {}
|
||||
>['constructor'] : Symbol(E['constructor'], Decl(quotedConstructors.ts, 8, 9))
|
||||
>'constructor' : Symbol(E['constructor'], Decl(quotedConstructors.ts, 8, 9))
|
||||
}
|
||||
|
||||
new class {
|
||||
"constructor"() {} // Error in 3.5
|
||||
>"constructor" : Symbol((Anonymous class)["constructor"], Decl(quotedConstructors.ts, 12, 11))
|
||||
|
||||
};
|
||||
|
||||
var o = { "constructor"() {} };
|
||||
>o : Symbol(o, Decl(quotedConstructors.ts, 16, 3))
|
||||
>"constructor" : Symbol("constructor", Decl(quotedConstructors.ts, 16, 9))
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
=== tests/cases/conformance/classes/constructorDeclarations/quotedConstructors.ts ===
|
||||
class C {
|
||||
>C : C
|
||||
|
||||
"constructor"() {} // Error in 3.5
|
||||
>"constructor" : () => void
|
||||
}
|
||||
|
||||
class D {
|
||||
>D : D
|
||||
|
||||
'constructor'() {} // Error in 3.5
|
||||
>'constructor' : () => void
|
||||
}
|
||||
|
||||
class E {
|
||||
>E : E
|
||||
|
||||
['constructor']() {}
|
||||
>['constructor'] : () => void
|
||||
>'constructor' : "constructor"
|
||||
}
|
||||
|
||||
new class {
|
||||
>new class { "constructor"() {} // Error in 3.5} : (Anonymous class)
|
||||
>class { "constructor"() {} // Error in 3.5} : typeof (Anonymous class)
|
||||
|
||||
"constructor"() {} // Error in 3.5
|
||||
>"constructor" : () => void
|
||||
|
||||
};
|
||||
|
||||
var o = { "constructor"() {} };
|
||||
>o : { "constructor"(): void; }
|
||||
>{ "constructor"() {} } : { "constructor"(): void; }
|
||||
>"constructor" : () => void
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
tests/cases/compiler/recursiveTypeComparison.ts(14,5): error TS2322: Type 'Observable<{}>' is not assignable to type 'Property<number>'.
|
||||
Types of property 'needThisOne' are incompatible.
|
||||
Type 'Observable<{}>' is not assignable to type 'Observable<number>'.
|
||||
Type '{}' is not assignable to type 'number'.
|
||||
|
||||
|
||||
==== tests/cases/compiler/recursiveTypeComparison.ts (1 errors) ====
|
||||
// Before fix this would take an exceeding long time to complete (#1170)
|
||||
|
||||
interface Observable<T> {
|
||||
// This member can't be of type T, Property<T>, or Observable<anything but T>
|
||||
needThisOne: Observable<T>;
|
||||
// Add more to make it slower
|
||||
expo1: Property<T[]>; // 0.31 seconds in check
|
||||
expo2: Property<T[]>; // 3.11 seconds
|
||||
expo3: Property<T[]>; // 82.28 seconds
|
||||
}
|
||||
interface Property<T> extends Observable<T> { }
|
||||
|
||||
var p: Observable<{}>;
|
||||
var stuck: Property<number> = p;
|
||||
~~~~~
|
||||
!!! error TS2322: Type 'Observable<{}>' is not assignable to type 'Property<number>'.
|
||||
!!! error TS2322: Types of property 'needThisOne' are incompatible.
|
||||
!!! error TS2322: Type 'Observable<{}>' is not assignable to type 'Observable<number>'.
|
||||
!!! error TS2322: Type '{}' is not assignable to type 'number'.
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
tests/cases/compiler/requiredMappedTypeModifierTrumpsVariance.ts(5,1): error TS2741: Property 'a' is missing in type 'Required<{ b?: 1; x: 1; }>' but required in type 'Required<{ a?: 1; x: 1; }>'.
|
||||
tests/cases/compiler/requiredMappedTypeModifierTrumpsVariance.ts(6,1): error TS2741: Property 'b' is missing in type 'Required<{ a?: 1; x: 1; }>' but required in type 'Required<{ b?: 1; x: 1; }>'.
|
||||
tests/cases/compiler/requiredMappedTypeModifierTrumpsVariance.ts(8,3): error TS2339: Property 'b' does not exist on type 'Required<{ a?: 1; x: 1; }>'.
|
||||
tests/cases/compiler/requiredMappedTypeModifierTrumpsVariance.ts(9,3): error TS2339: Property 'a' does not exist on type 'Required<{ b?: 1; x: 1; }>'.
|
||||
tests/cases/compiler/requiredMappedTypeModifierTrumpsVariance.ts(18,1): error TS2322: Type 'Foo<{ b?: 1; x: 1; }>' is not assignable to type 'Foo<{ a?: 1; x: 1; }>'.
|
||||
Types of property 'a' are incompatible.
|
||||
Property 'a' is missing in type 'Required<{ b?: 1; x: 1; }>' but required in type 'Required<{ a?: 1; x: 1; }>'.
|
||||
tests/cases/compiler/requiredMappedTypeModifierTrumpsVariance.ts(19,1): error TS2322: Type 'Foo<{ a?: 1; x: 1; }>' is not assignable to type 'Foo<{ b?: 1; x: 1; }>'.
|
||||
Types of property 'a' are incompatible.
|
||||
Property 'b' is missing in type 'Required<{ a?: 1; x: 1; }>' but required in type 'Required<{ b?: 1; x: 1; }>'.
|
||||
tests/cases/compiler/requiredMappedTypeModifierTrumpsVariance.ts(21,6): error TS2339: Property 'b' does not exist on type 'Required<{ a?: 1; x: 1; }>'.
|
||||
tests/cases/compiler/requiredMappedTypeModifierTrumpsVariance.ts(22,6): error TS2339: Property 'a' does not exist on type 'Required<{ b?: 1; x: 1; }>'.
|
||||
|
||||
|
||||
==== tests/cases/compiler/requiredMappedTypeModifierTrumpsVariance.ts (8 errors) ====
|
||||
const a: Required<{ a?: 1; x: 1 }> = { a: 1, x: 1 };
|
||||
const b: Required<{ b?: 1; x: 1 }> = { b: 1, x: 1 };
|
||||
export let A = a;
|
||||
export let B = b;
|
||||
A = b; // Should Error
|
||||
~
|
||||
!!! error TS2741: Property 'a' is missing in type 'Required<{ b?: 1; x: 1; }>' but required in type 'Required<{ a?: 1; x: 1; }>'.
|
||||
!!! related TS2728 tests/cases/compiler/requiredMappedTypeModifierTrumpsVariance.ts:1:21: 'a' is declared here.
|
||||
B = a; // Should Error
|
||||
~
|
||||
!!! error TS2741: Property 'b' is missing in type 'Required<{ a?: 1; x: 1; }>' but required in type 'Required<{ b?: 1; x: 1; }>'.
|
||||
!!! related TS2728 tests/cases/compiler/requiredMappedTypeModifierTrumpsVariance.ts:2:21: 'b' is declared here.
|
||||
|
||||
a.b; // Property 'b' does not exist on type 'Required<{ a?: 1; x: 1; }>'.
|
||||
~
|
||||
!!! error TS2339: Property 'b' does not exist on type 'Required<{ a?: 1; x: 1; }>'.
|
||||
b.a; // Property 'a' does not exist on type 'Required<{ b?: 1; x: 1; }>'.
|
||||
~
|
||||
!!! error TS2339: Property 'a' does not exist on type 'Required<{ b?: 1; x: 1; }>'.
|
||||
|
||||
interface Foo<T> {
|
||||
a: Required<T>;
|
||||
}
|
||||
const aa: Foo<{ a?: 1; x: 1 }> = { a: { a: 1, x: 1 } };
|
||||
const bb: Foo<{ b?: 1; x: 1 }> = { a: { b: 1, x: 1 } };
|
||||
export let AA = aa;
|
||||
export let BB = bb;
|
||||
AA = bb; // Should Error
|
||||
~~
|
||||
!!! error TS2322: Type 'Foo<{ b?: 1; x: 1; }>' is not assignable to type 'Foo<{ a?: 1; x: 1; }>'.
|
||||
!!! error TS2322: Types of property 'a' are incompatible.
|
||||
!!! error TS2322: Property 'a' is missing in type 'Required<{ b?: 1; x: 1; }>' but required in type 'Required<{ a?: 1; x: 1; }>'.
|
||||
!!! related TS2728 tests/cases/compiler/requiredMappedTypeModifierTrumpsVariance.ts:14:17: 'a' is declared here.
|
||||
BB = aa; // Should Error
|
||||
~~
|
||||
!!! error TS2322: Type 'Foo<{ a?: 1; x: 1; }>' is not assignable to type 'Foo<{ b?: 1; x: 1; }>'.
|
||||
!!! error TS2322: Types of property 'a' are incompatible.
|
||||
!!! error TS2322: Property 'b' is missing in type 'Required<{ a?: 1; x: 1; }>' but required in type 'Required<{ b?: 1; x: 1; }>'.
|
||||
!!! related TS2728 tests/cases/compiler/requiredMappedTypeModifierTrumpsVariance.ts:15:17: 'b' is declared here.
|
||||
|
||||
aa.a.b; // Property 'b' does not exist on type 'Required<{ a?: 1; x: 1; }>'.
|
||||
~
|
||||
!!! error TS2339: Property 'b' does not exist on type 'Required<{ a?: 1; x: 1; }>'.
|
||||
bb.a.a; // Property 'a' does not exist on type 'Required<{ b?: 1; x: 1; }>'.
|
||||
~
|
||||
!!! error TS2339: Property 'a' does not exist on type 'Required<{ b?: 1; x: 1; }>'.
|
||||
@@ -0,0 +1,43 @@
|
||||
//// [requiredMappedTypeModifierTrumpsVariance.ts]
|
||||
const a: Required<{ a?: 1; x: 1 }> = { a: 1, x: 1 };
|
||||
const b: Required<{ b?: 1; x: 1 }> = { b: 1, x: 1 };
|
||||
export let A = a;
|
||||
export let B = b;
|
||||
A = b; // Should Error
|
||||
B = a; // Should Error
|
||||
|
||||
a.b; // Property 'b' does not exist on type 'Required<{ a?: 1; x: 1; }>'.
|
||||
b.a; // Property 'a' does not exist on type 'Required<{ b?: 1; x: 1; }>'.
|
||||
|
||||
interface Foo<T> {
|
||||
a: Required<T>;
|
||||
}
|
||||
const aa: Foo<{ a?: 1; x: 1 }> = { a: { a: 1, x: 1 } };
|
||||
const bb: Foo<{ b?: 1; x: 1 }> = { a: { b: 1, x: 1 } };
|
||||
export let AA = aa;
|
||||
export let BB = bb;
|
||||
AA = bb; // Should Error
|
||||
BB = aa; // Should Error
|
||||
|
||||
aa.a.b; // Property 'b' does not exist on type 'Required<{ a?: 1; x: 1; }>'.
|
||||
bb.a.a; // Property 'a' does not exist on type 'Required<{ b?: 1; x: 1; }>'.
|
||||
|
||||
//// [requiredMappedTypeModifierTrumpsVariance.js]
|
||||
"use strict";
|
||||
exports.__esModule = true;
|
||||
var a = { a: 1, x: 1 };
|
||||
var b = { b: 1, x: 1 };
|
||||
exports.A = a;
|
||||
exports.B = b;
|
||||
exports.A = b; // Should Error
|
||||
exports.B = a; // Should Error
|
||||
a.b; // Property 'b' does not exist on type 'Required<{ a?: 1; x: 1; }>'.
|
||||
b.a; // Property 'a' does not exist on type 'Required<{ b?: 1; x: 1; }>'.
|
||||
var aa = { a: { a: 1, x: 1 } };
|
||||
var bb = { a: { b: 1, x: 1 } };
|
||||
exports.AA = aa;
|
||||
exports.BB = bb;
|
||||
exports.AA = bb; // Should Error
|
||||
exports.BB = aa; // Should Error
|
||||
aa.a.b; // Property 'b' does not exist on type 'Required<{ a?: 1; x: 1; }>'.
|
||||
bb.a.a; // Property 'a' does not exist on type 'Required<{ b?: 1; x: 1; }>'.
|
||||
@@ -0,0 +1,92 @@
|
||||
=== tests/cases/compiler/requiredMappedTypeModifierTrumpsVariance.ts ===
|
||||
const a: Required<{ a?: 1; x: 1 }> = { a: 1, x: 1 };
|
||||
>a : Symbol(a, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 0, 5))
|
||||
>Required : Symbol(Required, Decl(lib.es5.d.ts, --, --))
|
||||
>a : Symbol(a, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 0, 19))
|
||||
>x : Symbol(x, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 0, 26))
|
||||
>a : Symbol(a, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 0, 38))
|
||||
>x : Symbol(x, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 0, 44))
|
||||
|
||||
const b: Required<{ b?: 1; x: 1 }> = { b: 1, x: 1 };
|
||||
>b : Symbol(b, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 1, 5))
|
||||
>Required : Symbol(Required, Decl(lib.es5.d.ts, --, --))
|
||||
>b : Symbol(b, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 1, 19))
|
||||
>x : Symbol(x, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 1, 26))
|
||||
>b : Symbol(b, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 1, 38))
|
||||
>x : Symbol(x, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 1, 44))
|
||||
|
||||
export let A = a;
|
||||
>A : Symbol(A, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 2, 10))
|
||||
>a : Symbol(a, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 0, 5))
|
||||
|
||||
export let B = b;
|
||||
>B : Symbol(B, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 3, 10))
|
||||
>b : Symbol(b, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 1, 5))
|
||||
|
||||
A = b; // Should Error
|
||||
>A : Symbol(A, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 2, 10))
|
||||
>b : Symbol(b, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 1, 5))
|
||||
|
||||
B = a; // Should Error
|
||||
>B : Symbol(B, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 3, 10))
|
||||
>a : Symbol(a, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 0, 5))
|
||||
|
||||
a.b; // Property 'b' does not exist on type 'Required<{ a?: 1; x: 1; }>'.
|
||||
>a : Symbol(a, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 0, 5))
|
||||
|
||||
b.a; // Property 'a' does not exist on type 'Required<{ b?: 1; x: 1; }>'.
|
||||
>b : Symbol(b, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 1, 5))
|
||||
|
||||
interface Foo<T> {
|
||||
>Foo : Symbol(Foo, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 8, 4))
|
||||
>T : Symbol(T, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 10, 14))
|
||||
|
||||
a: Required<T>;
|
||||
>a : Symbol(Foo.a, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 10, 18))
|
||||
>Required : Symbol(Required, Decl(lib.es5.d.ts, --, --))
|
||||
>T : Symbol(T, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 10, 14))
|
||||
}
|
||||
const aa: Foo<{ a?: 1; x: 1 }> = { a: { a: 1, x: 1 } };
|
||||
>aa : Symbol(aa, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 13, 5))
|
||||
>Foo : Symbol(Foo, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 8, 4))
|
||||
>a : Symbol(a, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 13, 15))
|
||||
>x : Symbol(x, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 13, 22))
|
||||
>a : Symbol(a, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 13, 34))
|
||||
>a : Symbol(a, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 13, 39))
|
||||
>x : Symbol(x, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 13, 45))
|
||||
|
||||
const bb: Foo<{ b?: 1; x: 1 }> = { a: { b: 1, x: 1 } };
|
||||
>bb : Symbol(bb, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 14, 5))
|
||||
>Foo : Symbol(Foo, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 8, 4))
|
||||
>b : Symbol(b, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 14, 15))
|
||||
>x : Symbol(x, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 14, 22))
|
||||
>a : Symbol(a, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 14, 34))
|
||||
>b : Symbol(b, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 14, 39))
|
||||
>x : Symbol(x, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 14, 45))
|
||||
|
||||
export let AA = aa;
|
||||
>AA : Symbol(AA, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 15, 10))
|
||||
>aa : Symbol(aa, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 13, 5))
|
||||
|
||||
export let BB = bb;
|
||||
>BB : Symbol(BB, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 16, 10))
|
||||
>bb : Symbol(bb, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 14, 5))
|
||||
|
||||
AA = bb; // Should Error
|
||||
>AA : Symbol(AA, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 15, 10))
|
||||
>bb : Symbol(bb, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 14, 5))
|
||||
|
||||
BB = aa; // Should Error
|
||||
>BB : Symbol(BB, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 16, 10))
|
||||
>aa : Symbol(aa, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 13, 5))
|
||||
|
||||
aa.a.b; // Property 'b' does not exist on type 'Required<{ a?: 1; x: 1; }>'.
|
||||
>aa.a : Symbol(Foo.a, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 10, 18))
|
||||
>aa : Symbol(aa, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 13, 5))
|
||||
>a : Symbol(Foo.a, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 10, 18))
|
||||
|
||||
bb.a.a; // Property 'a' does not exist on type 'Required<{ b?: 1; x: 1; }>'.
|
||||
>bb.a : Symbol(Foo.a, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 10, 18))
|
||||
>bb : Symbol(bb, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 14, 5))
|
||||
>a : Symbol(Foo.a, Decl(requiredMappedTypeModifierTrumpsVariance.ts, 10, 18))
|
||||
|
||||
@@ -0,0 +1,109 @@
|
||||
=== tests/cases/compiler/requiredMappedTypeModifierTrumpsVariance.ts ===
|
||||
const a: Required<{ a?: 1; x: 1 }> = { a: 1, x: 1 };
|
||||
>a : Required<{ a?: 1; x: 1; }>
|
||||
>a : 1
|
||||
>x : 1
|
||||
>{ a: 1, x: 1 } : { a: 1; x: 1; }
|
||||
>a : 1
|
||||
>1 : 1
|
||||
>x : 1
|
||||
>1 : 1
|
||||
|
||||
const b: Required<{ b?: 1; x: 1 }> = { b: 1, x: 1 };
|
||||
>b : Required<{ b?: 1; x: 1; }>
|
||||
>b : 1
|
||||
>x : 1
|
||||
>{ b: 1, x: 1 } : { b: 1; x: 1; }
|
||||
>b : 1
|
||||
>1 : 1
|
||||
>x : 1
|
||||
>1 : 1
|
||||
|
||||
export let A = a;
|
||||
>A : Required<{ a?: 1; x: 1; }>
|
||||
>a : Required<{ a?: 1; x: 1; }>
|
||||
|
||||
export let B = b;
|
||||
>B : Required<{ b?: 1; x: 1; }>
|
||||
>b : Required<{ b?: 1; x: 1; }>
|
||||
|
||||
A = b; // Should Error
|
||||
>A = b : Required<{ b?: 1; x: 1; }>
|
||||
>A : Required<{ a?: 1; x: 1; }>
|
||||
>b : Required<{ b?: 1; x: 1; }>
|
||||
|
||||
B = a; // Should Error
|
||||
>B = a : Required<{ a?: 1; x: 1; }>
|
||||
>B : Required<{ b?: 1; x: 1; }>
|
||||
>a : Required<{ a?: 1; x: 1; }>
|
||||
|
||||
a.b; // Property 'b' does not exist on type 'Required<{ a?: 1; x: 1; }>'.
|
||||
>a.b : any
|
||||
>a : Required<{ a?: 1; x: 1; }>
|
||||
>b : any
|
||||
|
||||
b.a; // Property 'a' does not exist on type 'Required<{ b?: 1; x: 1; }>'.
|
||||
>b.a : any
|
||||
>b : Required<{ b?: 1; x: 1; }>
|
||||
>a : any
|
||||
|
||||
interface Foo<T> {
|
||||
a: Required<T>;
|
||||
>a : Required<T>
|
||||
}
|
||||
const aa: Foo<{ a?: 1; x: 1 }> = { a: { a: 1, x: 1 } };
|
||||
>aa : Foo<{ a?: 1; x: 1; }>
|
||||
>a : 1
|
||||
>x : 1
|
||||
>{ a: { a: 1, x: 1 } } : { a: { a: 1; x: 1; }; }
|
||||
>a : { a: 1; x: 1; }
|
||||
>{ a: 1, x: 1 } : { a: 1; x: 1; }
|
||||
>a : 1
|
||||
>1 : 1
|
||||
>x : 1
|
||||
>1 : 1
|
||||
|
||||
const bb: Foo<{ b?: 1; x: 1 }> = { a: { b: 1, x: 1 } };
|
||||
>bb : Foo<{ b?: 1; x: 1; }>
|
||||
>b : 1
|
||||
>x : 1
|
||||
>{ a: { b: 1, x: 1 } } : { a: { b: 1; x: 1; }; }
|
||||
>a : { b: 1; x: 1; }
|
||||
>{ b: 1, x: 1 } : { b: 1; x: 1; }
|
||||
>b : 1
|
||||
>1 : 1
|
||||
>x : 1
|
||||
>1 : 1
|
||||
|
||||
export let AA = aa;
|
||||
>AA : Foo<{ a?: 1; x: 1; }>
|
||||
>aa : Foo<{ a?: 1; x: 1; }>
|
||||
|
||||
export let BB = bb;
|
||||
>BB : Foo<{ b?: 1; x: 1; }>
|
||||
>bb : Foo<{ b?: 1; x: 1; }>
|
||||
|
||||
AA = bb; // Should Error
|
||||
>AA = bb : Foo<{ b?: 1; x: 1; }>
|
||||
>AA : Foo<{ a?: 1; x: 1; }>
|
||||
>bb : Foo<{ b?: 1; x: 1; }>
|
||||
|
||||
BB = aa; // Should Error
|
||||
>BB = aa : Foo<{ a?: 1; x: 1; }>
|
||||
>BB : Foo<{ b?: 1; x: 1; }>
|
||||
>aa : Foo<{ a?: 1; x: 1; }>
|
||||
|
||||
aa.a.b; // Property 'b' does not exist on type 'Required<{ a?: 1; x: 1; }>'.
|
||||
>aa.a.b : any
|
||||
>aa.a : Required<{ a?: 1; x: 1; }>
|
||||
>aa : Foo<{ a?: 1; x: 1; }>
|
||||
>a : Required<{ a?: 1; x: 1; }>
|
||||
>b : any
|
||||
|
||||
bb.a.a; // Property 'a' does not exist on type 'Required<{ b?: 1; x: 1; }>'.
|
||||
>bb.a.a : any
|
||||
>bb.a : Required<{ b?: 1; x: 1; }>
|
||||
>bb : Foo<{ b?: 1; x: 1; }>
|
||||
>a : Required<{ b?: 1; x: 1; }>
|
||||
>a : any
|
||||
|
||||
@@ -11,8 +11,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
var intersection;
|
||||
|
||||
@@ -61,8 +61,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
var E;
|
||||
|
||||
@@ -15,8 +15,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
function a() {
|
||||
|
||||
@@ -10,8 +10,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
var _a, _b;
|
||||
|
||||
@@ -21,8 +21,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
var union;
|
||||
|
||||
@@ -15,8 +15,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
var rest2;
|
||||
|
||||
@@ -15,8 +15,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
var rest4;
|
||||
|
||||
@@ -62,9 +62,13 @@ tests/cases/compiler/strictFunctionTypesErrors.ts(84,1): error TS2322: Type 'Fun
|
||||
tests/cases/compiler/strictFunctionTypesErrors.ts(111,1): error TS2322: Type 'Comparer2<Dog>' is not assignable to type 'Comparer2<Animal>'.
|
||||
Property 'dog' is missing in type 'Animal' but required in type 'Dog'.
|
||||
tests/cases/compiler/strictFunctionTypesErrors.ts(126,1): error TS2322: Type 'Crate<Dog>' is not assignable to type 'Crate<Animal>'.
|
||||
Type 'Animal' is not assignable to type 'Dog'.
|
||||
Types of property 'onSetItem' are incompatible.
|
||||
Type '(item: Dog) => void' is not assignable to type '(item: Animal) => void'.
|
||||
Types of parameters 'item' and 'item' are incompatible.
|
||||
Type 'Animal' is not assignable to type 'Dog'.
|
||||
tests/cases/compiler/strictFunctionTypesErrors.ts(127,1): error TS2322: Type 'Crate<Animal>' is not assignable to type 'Crate<Dog>'.
|
||||
Type 'Animal' is not assignable to type 'Dog'.
|
||||
Types of property 'item' are incompatible.
|
||||
Type 'Animal' is not assignable to type 'Dog'.
|
||||
tests/cases/compiler/strictFunctionTypesErrors.ts(133,1): error TS2322: Type '(f: (x: Dog) => Dog) => void' is not assignable to type '(f: (x: Animal) => Animal) => void'.
|
||||
Types of parameters 'f' and 'f' are incompatible.
|
||||
Type 'Animal' is not assignable to type 'Dog'.
|
||||
@@ -304,11 +308,15 @@ tests/cases/compiler/strictFunctionTypesErrors.ts(155,5): error TS2322: Type '(c
|
||||
animalCrate = dogCrate; // Error
|
||||
~~~~~~~~~~~
|
||||
!!! error TS2322: Type 'Crate<Dog>' is not assignable to type 'Crate<Animal>'.
|
||||
!!! error TS2322: Type 'Animal' is not assignable to type 'Dog'.
|
||||
!!! error TS2322: Types of property 'onSetItem' are incompatible.
|
||||
!!! error TS2322: Type '(item: Dog) => void' is not assignable to type '(item: Animal) => void'.
|
||||
!!! error TS2322: Types of parameters 'item' and 'item' are incompatible.
|
||||
!!! error TS2322: Type 'Animal' is not assignable to type 'Dog'.
|
||||
dogCrate = animalCrate; // Error
|
||||
~~~~~~~~
|
||||
!!! error TS2322: Type 'Crate<Animal>' is not assignable to type 'Crate<Dog>'.
|
||||
!!! error TS2322: Type 'Animal' is not assignable to type 'Dog'.
|
||||
!!! error TS2322: Types of property 'item' are incompatible.
|
||||
!!! error TS2322: Type 'Animal' is not assignable to type 'Dog'.
|
||||
|
||||
// Verify that callback parameters are strictly checked
|
||||
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
//// [substitutionTypesInIndexedAccessTypes.ts]
|
||||
// Repro from #31086
|
||||
|
||||
type UserArgs = {
|
||||
select?: boolean
|
||||
};
|
||||
|
||||
type Subset<T, U> = { [key in keyof T]: key extends keyof U ? T[key] : never };
|
||||
|
||||
declare function withBoundary<T extends UserArgs>(args?: Subset<T, UserArgs>): T;
|
||||
declare function withoutBoundary<T extends UserArgs>(args?: T): T;
|
||||
|
||||
const boundaryResult = withBoundary({
|
||||
select: true,
|
||||
});
|
||||
|
||||
const withoutBoundaryResult = withoutBoundary({
|
||||
select: true,
|
||||
});
|
||||
|
||||
|
||||
//// [substitutionTypesInIndexedAccessTypes.js]
|
||||
"use strict";
|
||||
// Repro from #31086
|
||||
var boundaryResult = withBoundary({
|
||||
select: true
|
||||
});
|
||||
var withoutBoundaryResult = withoutBoundary({
|
||||
select: true
|
||||
});
|
||||
@@ -0,0 +1,58 @@
|
||||
=== tests/cases/compiler/substitutionTypesInIndexedAccessTypes.ts ===
|
||||
// Repro from #31086
|
||||
|
||||
type UserArgs = {
|
||||
>UserArgs : Symbol(UserArgs, Decl(substitutionTypesInIndexedAccessTypes.ts, 0, 0))
|
||||
|
||||
select?: boolean
|
||||
>select : Symbol(select, Decl(substitutionTypesInIndexedAccessTypes.ts, 2, 17))
|
||||
|
||||
};
|
||||
|
||||
type Subset<T, U> = { [key in keyof T]: key extends keyof U ? T[key] : never };
|
||||
>Subset : Symbol(Subset, Decl(substitutionTypesInIndexedAccessTypes.ts, 4, 2))
|
||||
>T : Symbol(T, Decl(substitutionTypesInIndexedAccessTypes.ts, 6, 12))
|
||||
>U : Symbol(U, Decl(substitutionTypesInIndexedAccessTypes.ts, 6, 14))
|
||||
>key : Symbol(key, Decl(substitutionTypesInIndexedAccessTypes.ts, 6, 23))
|
||||
>T : Symbol(T, Decl(substitutionTypesInIndexedAccessTypes.ts, 6, 12))
|
||||
>key : Symbol(key, Decl(substitutionTypesInIndexedAccessTypes.ts, 6, 23))
|
||||
>U : Symbol(U, Decl(substitutionTypesInIndexedAccessTypes.ts, 6, 14))
|
||||
>T : Symbol(T, Decl(substitutionTypesInIndexedAccessTypes.ts, 6, 12))
|
||||
>key : Symbol(key, Decl(substitutionTypesInIndexedAccessTypes.ts, 6, 23))
|
||||
|
||||
declare function withBoundary<T extends UserArgs>(args?: Subset<T, UserArgs>): T;
|
||||
>withBoundary : Symbol(withBoundary, Decl(substitutionTypesInIndexedAccessTypes.ts, 6, 79))
|
||||
>T : Symbol(T, Decl(substitutionTypesInIndexedAccessTypes.ts, 8, 30))
|
||||
>UserArgs : Symbol(UserArgs, Decl(substitutionTypesInIndexedAccessTypes.ts, 0, 0))
|
||||
>args : Symbol(args, Decl(substitutionTypesInIndexedAccessTypes.ts, 8, 50))
|
||||
>Subset : Symbol(Subset, Decl(substitutionTypesInIndexedAccessTypes.ts, 4, 2))
|
||||
>T : Symbol(T, Decl(substitutionTypesInIndexedAccessTypes.ts, 8, 30))
|
||||
>UserArgs : Symbol(UserArgs, Decl(substitutionTypesInIndexedAccessTypes.ts, 0, 0))
|
||||
>T : Symbol(T, Decl(substitutionTypesInIndexedAccessTypes.ts, 8, 30))
|
||||
|
||||
declare function withoutBoundary<T extends UserArgs>(args?: T): T;
|
||||
>withoutBoundary : Symbol(withoutBoundary, Decl(substitutionTypesInIndexedAccessTypes.ts, 8, 81))
|
||||
>T : Symbol(T, Decl(substitutionTypesInIndexedAccessTypes.ts, 9, 33))
|
||||
>UserArgs : Symbol(UserArgs, Decl(substitutionTypesInIndexedAccessTypes.ts, 0, 0))
|
||||
>args : Symbol(args, Decl(substitutionTypesInIndexedAccessTypes.ts, 9, 53))
|
||||
>T : Symbol(T, Decl(substitutionTypesInIndexedAccessTypes.ts, 9, 33))
|
||||
>T : Symbol(T, Decl(substitutionTypesInIndexedAccessTypes.ts, 9, 33))
|
||||
|
||||
const boundaryResult = withBoundary({
|
||||
>boundaryResult : Symbol(boundaryResult, Decl(substitutionTypesInIndexedAccessTypes.ts, 11, 5))
|
||||
>withBoundary : Symbol(withBoundary, Decl(substitutionTypesInIndexedAccessTypes.ts, 6, 79))
|
||||
|
||||
select: true,
|
||||
>select : Symbol(select, Decl(substitutionTypesInIndexedAccessTypes.ts, 11, 37))
|
||||
|
||||
});
|
||||
|
||||
const withoutBoundaryResult = withoutBoundary({
|
||||
>withoutBoundaryResult : Symbol(withoutBoundaryResult, Decl(substitutionTypesInIndexedAccessTypes.ts, 15, 5))
|
||||
>withoutBoundary : Symbol(withoutBoundary, Decl(substitutionTypesInIndexedAccessTypes.ts, 8, 81))
|
||||
|
||||
select: true,
|
||||
>select : Symbol(select, Decl(substitutionTypesInIndexedAccessTypes.ts, 15, 47))
|
||||
|
||||
});
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
=== tests/cases/compiler/substitutionTypesInIndexedAccessTypes.ts ===
|
||||
// Repro from #31086
|
||||
|
||||
type UserArgs = {
|
||||
>UserArgs : UserArgs
|
||||
|
||||
select?: boolean
|
||||
>select : boolean | undefined
|
||||
|
||||
};
|
||||
|
||||
type Subset<T, U> = { [key in keyof T]: key extends keyof U ? T[key] : never };
|
||||
>Subset : Subset<T, U>
|
||||
|
||||
declare function withBoundary<T extends UserArgs>(args?: Subset<T, UserArgs>): T;
|
||||
>withBoundary : <T extends UserArgs>(args?: Subset<T, UserArgs> | undefined) => T
|
||||
>args : Subset<T, UserArgs> | undefined
|
||||
|
||||
declare function withoutBoundary<T extends UserArgs>(args?: T): T;
|
||||
>withoutBoundary : <T extends UserArgs>(args?: T | undefined) => T
|
||||
>args : T | undefined
|
||||
|
||||
const boundaryResult = withBoundary({
|
||||
>boundaryResult : { select: true; }
|
||||
>withBoundary({ select: true,}) : { select: true; }
|
||||
>withBoundary : <T extends UserArgs>(args?: Subset<T, UserArgs> | undefined) => T
|
||||
>{ select: true,} : { select: true; }
|
||||
|
||||
select: true,
|
||||
>select : true
|
||||
>true : true
|
||||
|
||||
});
|
||||
|
||||
const withoutBoundaryResult = withoutBoundary({
|
||||
>withoutBoundaryResult : { select: true; }
|
||||
>withoutBoundary({ select: true,}) : { select: true; }
|
||||
>withoutBoundary : <T extends UserArgs>(args?: T | undefined) => T
|
||||
>{ select: true,} : { select: true; }
|
||||
|
||||
select: true,
|
||||
>select : true
|
||||
>true : true
|
||||
|
||||
});
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
//// [thisConditionalOnMethodReturnOfGenericInstance.ts]
|
||||
class A<T> {
|
||||
unmeasurableUsage!: {[K in keyof T]-?: T[K]};
|
||||
}
|
||||
|
||||
class B<T> extends A<T> {
|
||||
method(): string | (this extends C ? undefined : null) {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
class C<T = any> extends B<T> {
|
||||
marker!: string;
|
||||
}
|
||||
|
||||
const x = new C<{}>();
|
||||
|
||||
const y = x.method(); // usage flags `method` in `B` as circular and marks `y` as the error-any type
|
||||
|
||||
|
||||
//// [thisConditionalOnMethodReturnOfGenericInstance.js]
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
var A = /** @class */ (function () {
|
||||
function A() {
|
||||
}
|
||||
return A;
|
||||
}());
|
||||
var B = /** @class */ (function (_super) {
|
||||
__extends(B, _super);
|
||||
function B() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
B.prototype.method = function () {
|
||||
return "";
|
||||
};
|
||||
return B;
|
||||
}(A));
|
||||
var C = /** @class */ (function (_super) {
|
||||
__extends(C, _super);
|
||||
function C() {
|
||||
return _super !== null && _super.apply(this, arguments) || this;
|
||||
}
|
||||
return C;
|
||||
}(B));
|
||||
var x = new C();
|
||||
var y = x.method(); // usage flags `method` in `B` as circular and marks `y` as the error-any type
|
||||
@@ -0,0 +1,47 @@
|
||||
=== tests/cases/compiler/thisConditionalOnMethodReturnOfGenericInstance.ts ===
|
||||
class A<T> {
|
||||
>A : Symbol(A, Decl(thisConditionalOnMethodReturnOfGenericInstance.ts, 0, 0))
|
||||
>T : Symbol(T, Decl(thisConditionalOnMethodReturnOfGenericInstance.ts, 0, 8))
|
||||
|
||||
unmeasurableUsage!: {[K in keyof T]-?: T[K]};
|
||||
>unmeasurableUsage : Symbol(A.unmeasurableUsage, Decl(thisConditionalOnMethodReturnOfGenericInstance.ts, 0, 12))
|
||||
>K : Symbol(K, Decl(thisConditionalOnMethodReturnOfGenericInstance.ts, 1, 26))
|
||||
>T : Symbol(T, Decl(thisConditionalOnMethodReturnOfGenericInstance.ts, 0, 8))
|
||||
>T : Symbol(T, Decl(thisConditionalOnMethodReturnOfGenericInstance.ts, 0, 8))
|
||||
>K : Symbol(K, Decl(thisConditionalOnMethodReturnOfGenericInstance.ts, 1, 26))
|
||||
}
|
||||
|
||||
class B<T> extends A<T> {
|
||||
>B : Symbol(B, Decl(thisConditionalOnMethodReturnOfGenericInstance.ts, 2, 1))
|
||||
>T : Symbol(T, Decl(thisConditionalOnMethodReturnOfGenericInstance.ts, 4, 8))
|
||||
>A : Symbol(A, Decl(thisConditionalOnMethodReturnOfGenericInstance.ts, 0, 0))
|
||||
>T : Symbol(T, Decl(thisConditionalOnMethodReturnOfGenericInstance.ts, 4, 8))
|
||||
|
||||
method(): string | (this extends C ? undefined : null) {
|
||||
>method : Symbol(B.method, Decl(thisConditionalOnMethodReturnOfGenericInstance.ts, 4, 25))
|
||||
>C : Symbol(C, Decl(thisConditionalOnMethodReturnOfGenericInstance.ts, 8, 1))
|
||||
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
class C<T = any> extends B<T> {
|
||||
>C : Symbol(C, Decl(thisConditionalOnMethodReturnOfGenericInstance.ts, 8, 1))
|
||||
>T : Symbol(T, Decl(thisConditionalOnMethodReturnOfGenericInstance.ts, 10, 8))
|
||||
>B : Symbol(B, Decl(thisConditionalOnMethodReturnOfGenericInstance.ts, 2, 1))
|
||||
>T : Symbol(T, Decl(thisConditionalOnMethodReturnOfGenericInstance.ts, 10, 8))
|
||||
|
||||
marker!: string;
|
||||
>marker : Symbol(C.marker, Decl(thisConditionalOnMethodReturnOfGenericInstance.ts, 10, 31))
|
||||
}
|
||||
|
||||
const x = new C<{}>();
|
||||
>x : Symbol(x, Decl(thisConditionalOnMethodReturnOfGenericInstance.ts, 14, 5))
|
||||
>C : Symbol(C, Decl(thisConditionalOnMethodReturnOfGenericInstance.ts, 8, 1))
|
||||
|
||||
const y = x.method(); // usage flags `method` in `B` as circular and marks `y` as the error-any type
|
||||
>y : Symbol(y, Decl(thisConditionalOnMethodReturnOfGenericInstance.ts, 16, 5))
|
||||
>x.method : Symbol(B.method, Decl(thisConditionalOnMethodReturnOfGenericInstance.ts, 4, 25))
|
||||
>x : Symbol(x, Decl(thisConditionalOnMethodReturnOfGenericInstance.ts, 14, 5))
|
||||
>method : Symbol(B.method, Decl(thisConditionalOnMethodReturnOfGenericInstance.ts, 4, 25))
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
=== tests/cases/compiler/thisConditionalOnMethodReturnOfGenericInstance.ts ===
|
||||
class A<T> {
|
||||
>A : A<T>
|
||||
|
||||
unmeasurableUsage!: {[K in keyof T]-?: T[K]};
|
||||
>unmeasurableUsage : { [K in keyof T]-?: T[K]; }
|
||||
}
|
||||
|
||||
class B<T> extends A<T> {
|
||||
>B : B<T>
|
||||
>A : A<T>
|
||||
|
||||
method(): string | (this extends C ? undefined : null) {
|
||||
>method : () => string | (this extends C<any> ? undefined : null)
|
||||
>null : null
|
||||
|
||||
return "";
|
||||
>"" : ""
|
||||
}
|
||||
}
|
||||
|
||||
class C<T = any> extends B<T> {
|
||||
>C : C<T>
|
||||
>B : B<T>
|
||||
|
||||
marker!: string;
|
||||
>marker : string
|
||||
}
|
||||
|
||||
const x = new C<{}>();
|
||||
>x : C<{}>
|
||||
>new C<{}>() : C<{}>
|
||||
>C : typeof C
|
||||
|
||||
const y = x.method(); // usage flags `method` in `B` as circular and marks `y` as the error-any type
|
||||
>y : string | undefined
|
||||
>x.method() : string | undefined
|
||||
>x.method : () => string | undefined
|
||||
>x : C<{}>
|
||||
>method : () => string | undefined
|
||||
|
||||
@@ -19,8 +19,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
var a = [].slice(0);
|
||||
|
||||
+235
-223
@@ -24,8 +24,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
var myGlob = 20;
|
||||
@@ -70,7 +72,7 @@ appfile4Spread.apply(void 0, __spread([10, 20, 30]));
|
||||
//# sourceMappingURL=module.js.map
|
||||
|
||||
//// [/src/app/module.js.map]
|
||||
{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICFH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"}
|
||||
{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICFH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"}
|
||||
|
||||
//// [/src/app/module.js.map.baseline.txt]
|
||||
===================================================================
|
||||
@@ -108,8 +110,10 @@ sourceFile:../lib/file0.ts
|
||||
>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
>>> t[p] = s[p];
|
||||
>>> if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
>>> t[p[i]] = s[p[i]];
|
||||
>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
>>> t[p[i]] = s[p[i]];
|
||||
>>> }
|
||||
>>> return t;
|
||||
>>>};
|
||||
>>>var myGlob = 20;
|
||||
@@ -126,12 +130,12 @@ sourceFile:../lib/file0.ts
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1 >Emitted(30, 1) Source(1, 1) + SourceIndex(0)
|
||||
2 >Emitted(30, 5) Source(1, 7) + SourceIndex(0)
|
||||
3 >Emitted(30, 11) Source(1, 13) + SourceIndex(0)
|
||||
4 >Emitted(30, 14) Source(1, 16) + SourceIndex(0)
|
||||
5 >Emitted(30, 16) Source(1, 18) + SourceIndex(0)
|
||||
6 >Emitted(30, 17) Source(1, 19) + SourceIndex(0)
|
||||
1 >Emitted(32, 1) Source(1, 1) + SourceIndex(0)
|
||||
2 >Emitted(32, 5) Source(1, 7) + SourceIndex(0)
|
||||
3 >Emitted(32, 11) Source(1, 13) + SourceIndex(0)
|
||||
4 >Emitted(32, 14) Source(1, 16) + SourceIndex(0)
|
||||
5 >Emitted(32, 16) Source(1, 18) + SourceIndex(0)
|
||||
6 >Emitted(32, 17) Source(1, 19) + SourceIndex(0)
|
||||
---
|
||||
>>>function libfile0Spread() {
|
||||
1->
|
||||
@@ -141,9 +145,9 @@ sourceFile:../lib/file0.ts
|
||||
>
|
||||
2 >function
|
||||
3 > libfile0Spread
|
||||
1->Emitted(31, 1) Source(2, 1) + SourceIndex(0)
|
||||
2 >Emitted(31, 10) Source(2, 10) + SourceIndex(0)
|
||||
3 >Emitted(31, 24) Source(2, 24) + SourceIndex(0)
|
||||
1->Emitted(33, 1) Source(2, 1) + SourceIndex(0)
|
||||
2 >Emitted(33, 10) Source(2, 10) + SourceIndex(0)
|
||||
3 >Emitted(33, 24) Source(2, 24) + SourceIndex(0)
|
||||
---
|
||||
>>> var b = [];
|
||||
1 >^^^^
|
||||
@@ -151,8 +155,8 @@ sourceFile:../lib/file0.ts
|
||||
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >(
|
||||
2 > ...b: number[]
|
||||
1 >Emitted(32, 5) Source(2, 25) + SourceIndex(0)
|
||||
2 >Emitted(32, 16) Source(2, 39) + SourceIndex(0)
|
||||
1 >Emitted(34, 5) Source(2, 25) + SourceIndex(0)
|
||||
2 >Emitted(34, 16) Source(2, 39) + SourceIndex(0)
|
||||
---
|
||||
>>> for (var _i = 0; _i < arguments.length; _i++) {
|
||||
1->^^^^^^^^^
|
||||
@@ -167,20 +171,20 @@ sourceFile:../lib/file0.ts
|
||||
4 > ...b: number[]
|
||||
5 >
|
||||
6 > ...b: number[]
|
||||
1->Emitted(33, 10) Source(2, 25) + SourceIndex(0)
|
||||
2 >Emitted(33, 20) Source(2, 39) + SourceIndex(0)
|
||||
3 >Emitted(33, 22) Source(2, 25) + SourceIndex(0)
|
||||
4 >Emitted(33, 43) Source(2, 39) + SourceIndex(0)
|
||||
5 >Emitted(33, 45) Source(2, 25) + SourceIndex(0)
|
||||
6 >Emitted(33, 49) Source(2, 39) + SourceIndex(0)
|
||||
1->Emitted(35, 10) Source(2, 25) + SourceIndex(0)
|
||||
2 >Emitted(35, 20) Source(2, 39) + SourceIndex(0)
|
||||
3 >Emitted(35, 22) Source(2, 25) + SourceIndex(0)
|
||||
4 >Emitted(35, 43) Source(2, 39) + SourceIndex(0)
|
||||
5 >Emitted(35, 45) Source(2, 25) + SourceIndex(0)
|
||||
6 >Emitted(35, 49) Source(2, 39) + SourceIndex(0)
|
||||
---
|
||||
>>> b[_i] = arguments[_i];
|
||||
1 >^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^
|
||||
1 >
|
||||
2 > ...b: number[]
|
||||
1 >Emitted(34, 9) Source(2, 25) + SourceIndex(0)
|
||||
2 >Emitted(34, 31) Source(2, 39) + SourceIndex(0)
|
||||
1 >Emitted(36, 9) Source(2, 25) + SourceIndex(0)
|
||||
2 >Emitted(36, 31) Source(2, 39) + SourceIndex(0)
|
||||
---
|
||||
>>> }
|
||||
>>>}
|
||||
@@ -189,8 +193,8 @@ sourceFile:../lib/file0.ts
|
||||
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >) {
|
||||
2 >}
|
||||
1 >Emitted(36, 1) Source(2, 43) + SourceIndex(0)
|
||||
2 >Emitted(36, 2) Source(2, 44) + SourceIndex(0)
|
||||
1 >Emitted(38, 1) Source(2, 43) + SourceIndex(0)
|
||||
2 >Emitted(38, 2) Source(2, 44) + SourceIndex(0)
|
||||
---
|
||||
>>>libfile0Spread.apply(void 0, __spread([10, 20, 30]));
|
||||
1->
|
||||
@@ -217,17 +221,17 @@ sourceFile:../lib/file0.ts
|
||||
9 > 30
|
||||
10> ]
|
||||
11> );
|
||||
1->Emitted(37, 1) Source(3, 1) + SourceIndex(0)
|
||||
2 >Emitted(37, 15) Source(3, 15) + SourceIndex(0)
|
||||
3 >Emitted(37, 39) Source(3, 19) + SourceIndex(0)
|
||||
4 >Emitted(37, 40) Source(3, 20) + SourceIndex(0)
|
||||
5 >Emitted(37, 42) Source(3, 22) + SourceIndex(0)
|
||||
6 >Emitted(37, 44) Source(3, 24) + SourceIndex(0)
|
||||
7 >Emitted(37, 46) Source(3, 26) + SourceIndex(0)
|
||||
8 >Emitted(37, 48) Source(3, 28) + SourceIndex(0)
|
||||
9 >Emitted(37, 50) Source(3, 30) + SourceIndex(0)
|
||||
10>Emitted(37, 51) Source(3, 31) + SourceIndex(0)
|
||||
11>Emitted(37, 54) Source(3, 33) + SourceIndex(0)
|
||||
1->Emitted(39, 1) Source(3, 1) + SourceIndex(0)
|
||||
2 >Emitted(39, 15) Source(3, 15) + SourceIndex(0)
|
||||
3 >Emitted(39, 39) Source(3, 19) + SourceIndex(0)
|
||||
4 >Emitted(39, 40) Source(3, 20) + SourceIndex(0)
|
||||
5 >Emitted(39, 42) Source(3, 22) + SourceIndex(0)
|
||||
6 >Emitted(39, 44) Source(3, 24) + SourceIndex(0)
|
||||
7 >Emitted(39, 46) Source(3, 26) + SourceIndex(0)
|
||||
8 >Emitted(39, 48) Source(3, 28) + SourceIndex(0)
|
||||
9 >Emitted(39, 50) Source(3, 30) + SourceIndex(0)
|
||||
10>Emitted(39, 51) Source(3, 31) + SourceIndex(0)
|
||||
11>Emitted(39, 54) Source(3, 33) + SourceIndex(0)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
@@ -250,12 +254,12 @@ sourceFile:../lib/file1.ts
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1->Emitted(41, 5) Source(1, 14) + SourceIndex(1)
|
||||
2 >Emitted(41, 13) Source(1, 14) + SourceIndex(1)
|
||||
3 >Emitted(41, 14) Source(1, 15) + SourceIndex(1)
|
||||
4 >Emitted(41, 17) Source(1, 18) + SourceIndex(1)
|
||||
5 >Emitted(41, 19) Source(1, 20) + SourceIndex(1)
|
||||
6 >Emitted(41, 20) Source(1, 21) + SourceIndex(1)
|
||||
1->Emitted(43, 5) Source(1, 14) + SourceIndex(1)
|
||||
2 >Emitted(43, 13) Source(1, 14) + SourceIndex(1)
|
||||
3 >Emitted(43, 14) Source(1, 15) + SourceIndex(1)
|
||||
4 >Emitted(43, 17) Source(1, 18) + SourceIndex(1)
|
||||
5 >Emitted(43, 19) Source(1, 20) + SourceIndex(1)
|
||||
6 >Emitted(43, 20) Source(1, 21) + SourceIndex(1)
|
||||
---
|
||||
>>> function forlibfile1Rest() {
|
||||
1->^^^^
|
||||
@@ -265,9 +269,9 @@ sourceFile:../lib/file1.ts
|
||||
1->
|
||||
2 > function
|
||||
3 > forlibfile1Rest
|
||||
1->Emitted(42, 5) Source(1, 21) + SourceIndex(1)
|
||||
2 >Emitted(42, 14) Source(1, 30) + SourceIndex(1)
|
||||
3 >Emitted(42, 29) Source(1, 45) + SourceIndex(1)
|
||||
1->Emitted(44, 5) Source(1, 21) + SourceIndex(1)
|
||||
2 >Emitted(44, 14) Source(1, 30) + SourceIndex(1)
|
||||
3 >Emitted(44, 29) Source(1, 45) + SourceIndex(1)
|
||||
---
|
||||
>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]);
|
||||
1->^^^^^^^^
|
||||
@@ -287,14 +291,14 @@ sourceFile:../lib/file1.ts
|
||||
6 > ,
|
||||
7 > ...rest } = { a: 10, b: 30, yy: 30 }
|
||||
8 > ;
|
||||
1->Emitted(43, 9) Source(2, 1) + SourceIndex(1)
|
||||
2 >Emitted(43, 13) Source(2, 7) + SourceIndex(1)
|
||||
3 >Emitted(43, 42) Source(2, 48) + SourceIndex(1)
|
||||
4 >Emitted(43, 44) Source(2, 9) + SourceIndex(1)
|
||||
5 >Emitted(43, 52) Source(2, 10) + SourceIndex(1)
|
||||
6 >Emitted(43, 54) Source(2, 12) + SourceIndex(1)
|
||||
7 >Emitted(43, 78) Source(2, 48) + SourceIndex(1)
|
||||
8 >Emitted(43, 79) Source(2, 49) + SourceIndex(1)
|
||||
1->Emitted(45, 9) Source(2, 1) + SourceIndex(1)
|
||||
2 >Emitted(45, 13) Source(2, 7) + SourceIndex(1)
|
||||
3 >Emitted(45, 42) Source(2, 48) + SourceIndex(1)
|
||||
4 >Emitted(45, 44) Source(2, 9) + SourceIndex(1)
|
||||
5 >Emitted(45, 52) Source(2, 10) + SourceIndex(1)
|
||||
6 >Emitted(45, 54) Source(2, 12) + SourceIndex(1)
|
||||
7 >Emitted(45, 78) Source(2, 48) + SourceIndex(1)
|
||||
8 >Emitted(45, 79) Source(2, 49) + SourceIndex(1)
|
||||
---
|
||||
>>> }
|
||||
1 >^^^^
|
||||
@@ -303,8 +307,8 @@ sourceFile:../lib/file1.ts
|
||||
1 >
|
||||
>
|
||||
2 > }
|
||||
1 >Emitted(44, 5) Source(3, 1) + SourceIndex(1)
|
||||
2 >Emitted(44, 6) Source(3, 2) + SourceIndex(1)
|
||||
1 >Emitted(46, 5) Source(3, 1) + SourceIndex(1)
|
||||
2 >Emitted(46, 6) Source(3, 2) + SourceIndex(1)
|
||||
---
|
||||
>>> console.log(exports.x);
|
||||
1->^^^^
|
||||
@@ -323,14 +327,14 @@ sourceFile:../lib/file1.ts
|
||||
6 > x
|
||||
7 > )
|
||||
8 > ;
|
||||
1->Emitted(45, 5) Source(3, 2) + SourceIndex(1)
|
||||
2 >Emitted(45, 12) Source(3, 9) + SourceIndex(1)
|
||||
3 >Emitted(45, 13) Source(3, 10) + SourceIndex(1)
|
||||
4 >Emitted(45, 16) Source(3, 13) + SourceIndex(1)
|
||||
5 >Emitted(45, 17) Source(3, 14) + SourceIndex(1)
|
||||
6 >Emitted(45, 26) Source(3, 15) + SourceIndex(1)
|
||||
7 >Emitted(45, 27) Source(3, 16) + SourceIndex(1)
|
||||
8 >Emitted(45, 28) Source(3, 17) + SourceIndex(1)
|
||||
1->Emitted(47, 5) Source(3, 2) + SourceIndex(1)
|
||||
2 >Emitted(47, 12) Source(3, 9) + SourceIndex(1)
|
||||
3 >Emitted(47, 13) Source(3, 10) + SourceIndex(1)
|
||||
4 >Emitted(47, 16) Source(3, 13) + SourceIndex(1)
|
||||
5 >Emitted(47, 17) Source(3, 14) + SourceIndex(1)
|
||||
6 >Emitted(47, 26) Source(3, 15) + SourceIndex(1)
|
||||
7 >Emitted(47, 27) Source(3, 16) + SourceIndex(1)
|
||||
8 >Emitted(47, 28) Source(3, 17) + SourceIndex(1)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
@@ -353,12 +357,12 @@ sourceFile:../lib/file2.ts
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1 >Emitted(50, 5) Source(1, 14) + SourceIndex(2)
|
||||
2 >Emitted(50, 13) Source(1, 14) + SourceIndex(2)
|
||||
3 >Emitted(50, 14) Source(1, 15) + SourceIndex(2)
|
||||
4 >Emitted(50, 17) Source(1, 18) + SourceIndex(2)
|
||||
5 >Emitted(50, 19) Source(1, 20) + SourceIndex(2)
|
||||
6 >Emitted(50, 20) Source(1, 21) + SourceIndex(2)
|
||||
1 >Emitted(52, 5) Source(1, 14) + SourceIndex(2)
|
||||
2 >Emitted(52, 13) Source(1, 14) + SourceIndex(2)
|
||||
3 >Emitted(52, 14) Source(1, 15) + SourceIndex(2)
|
||||
4 >Emitted(52, 17) Source(1, 18) + SourceIndex(2)
|
||||
5 >Emitted(52, 19) Source(1, 20) + SourceIndex(2)
|
||||
6 >Emitted(52, 20) Source(1, 21) + SourceIndex(2)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
@@ -379,12 +383,12 @@ sourceFile:../lib/global.ts
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1 >Emitted(52, 1) Source(1, 1) + SourceIndex(3)
|
||||
2 >Emitted(52, 5) Source(1, 7) + SourceIndex(3)
|
||||
3 >Emitted(52, 16) Source(1, 18) + SourceIndex(3)
|
||||
4 >Emitted(52, 19) Source(1, 21) + SourceIndex(3)
|
||||
5 >Emitted(52, 21) Source(1, 23) + SourceIndex(3)
|
||||
6 >Emitted(52, 22) Source(1, 24) + SourceIndex(3)
|
||||
1 >Emitted(54, 1) Source(1, 1) + SourceIndex(3)
|
||||
2 >Emitted(54, 5) Source(1, 7) + SourceIndex(3)
|
||||
3 >Emitted(54, 16) Source(1, 18) + SourceIndex(3)
|
||||
4 >Emitted(54, 19) Source(1, 21) + SourceIndex(3)
|
||||
5 >Emitted(54, 21) Source(1, 23) + SourceIndex(3)
|
||||
6 >Emitted(54, 22) Source(1, 24) + SourceIndex(3)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
@@ -407,12 +411,12 @@ sourceFile:file3.ts
|
||||
4 > =
|
||||
5 > 30
|
||||
6 > ;
|
||||
1->Emitted(56, 5) Source(1, 14) + SourceIndex(4)
|
||||
2 >Emitted(56, 13) Source(1, 14) + SourceIndex(4)
|
||||
3 >Emitted(56, 14) Source(1, 15) + SourceIndex(4)
|
||||
4 >Emitted(56, 17) Source(1, 18) + SourceIndex(4)
|
||||
5 >Emitted(56, 19) Source(1, 20) + SourceIndex(4)
|
||||
6 >Emitted(56, 20) Source(1, 21) + SourceIndex(4)
|
||||
1->Emitted(58, 5) Source(1, 14) + SourceIndex(4)
|
||||
2 >Emitted(58, 13) Source(1, 14) + SourceIndex(4)
|
||||
3 >Emitted(58, 14) Source(1, 15) + SourceIndex(4)
|
||||
4 >Emitted(58, 17) Source(1, 18) + SourceIndex(4)
|
||||
5 >Emitted(58, 19) Source(1, 20) + SourceIndex(4)
|
||||
6 >Emitted(58, 20) Source(1, 21) + SourceIndex(4)
|
||||
---
|
||||
>>> function forappfile3Rest() {
|
||||
1->^^^^
|
||||
@@ -423,9 +427,9 @@ sourceFile:file3.ts
|
||||
>import { x } from "file1";
|
||||
2 > function
|
||||
3 > forappfile3Rest
|
||||
1->Emitted(57, 5) Source(2, 27) + SourceIndex(4)
|
||||
2 >Emitted(57, 14) Source(2, 36) + SourceIndex(4)
|
||||
3 >Emitted(57, 29) Source(2, 51) + SourceIndex(4)
|
||||
1->Emitted(59, 5) Source(2, 27) + SourceIndex(4)
|
||||
2 >Emitted(59, 14) Source(2, 36) + SourceIndex(4)
|
||||
3 >Emitted(59, 29) Source(2, 51) + SourceIndex(4)
|
||||
---
|
||||
>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]);
|
||||
1->^^^^^^^^
|
||||
@@ -445,14 +449,14 @@ sourceFile:file3.ts
|
||||
6 > ,
|
||||
7 > ...rest } = { a: 10, b: 30, yy: 30 }
|
||||
8 > ;
|
||||
1->Emitted(58, 9) Source(3, 1) + SourceIndex(4)
|
||||
2 >Emitted(58, 13) Source(3, 7) + SourceIndex(4)
|
||||
3 >Emitted(58, 42) Source(3, 48) + SourceIndex(4)
|
||||
4 >Emitted(58, 44) Source(3, 9) + SourceIndex(4)
|
||||
5 >Emitted(58, 52) Source(3, 10) + SourceIndex(4)
|
||||
6 >Emitted(58, 54) Source(3, 12) + SourceIndex(4)
|
||||
7 >Emitted(58, 78) Source(3, 48) + SourceIndex(4)
|
||||
8 >Emitted(58, 79) Source(3, 49) + SourceIndex(4)
|
||||
1->Emitted(60, 9) Source(3, 1) + SourceIndex(4)
|
||||
2 >Emitted(60, 13) Source(3, 7) + SourceIndex(4)
|
||||
3 >Emitted(60, 42) Source(3, 48) + SourceIndex(4)
|
||||
4 >Emitted(60, 44) Source(3, 9) + SourceIndex(4)
|
||||
5 >Emitted(60, 52) Source(3, 10) + SourceIndex(4)
|
||||
6 >Emitted(60, 54) Source(3, 12) + SourceIndex(4)
|
||||
7 >Emitted(60, 78) Source(3, 48) + SourceIndex(4)
|
||||
8 >Emitted(60, 79) Source(3, 49) + SourceIndex(4)
|
||||
---
|
||||
>>> }
|
||||
1 >^^^^
|
||||
@@ -460,8 +464,8 @@ sourceFile:file3.ts
|
||||
1 >
|
||||
>
|
||||
2 > }
|
||||
1 >Emitted(59, 5) Source(4, 1) + SourceIndex(4)
|
||||
2 >Emitted(59, 6) Source(4, 2) + SourceIndex(4)
|
||||
1 >Emitted(61, 5) Source(4, 1) + SourceIndex(4)
|
||||
2 >Emitted(61, 6) Source(4, 2) + SourceIndex(4)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
@@ -482,12 +486,12 @@ sourceFile:file4.ts
|
||||
4 > =
|
||||
5 > 30
|
||||
6 > ;
|
||||
1 >Emitted(61, 1) Source(1, 1) + SourceIndex(5)
|
||||
2 >Emitted(61, 5) Source(1, 7) + SourceIndex(5)
|
||||
3 >Emitted(61, 10) Source(1, 12) + SourceIndex(5)
|
||||
4 >Emitted(61, 13) Source(1, 15) + SourceIndex(5)
|
||||
5 >Emitted(61, 15) Source(1, 17) + SourceIndex(5)
|
||||
6 >Emitted(61, 16) Source(1, 18) + SourceIndex(5)
|
||||
1 >Emitted(63, 1) Source(1, 1) + SourceIndex(5)
|
||||
2 >Emitted(63, 5) Source(1, 7) + SourceIndex(5)
|
||||
3 >Emitted(63, 10) Source(1, 12) + SourceIndex(5)
|
||||
4 >Emitted(63, 13) Source(1, 15) + SourceIndex(5)
|
||||
5 >Emitted(63, 15) Source(1, 17) + SourceIndex(5)
|
||||
6 >Emitted(63, 16) Source(1, 18) + SourceIndex(5)
|
||||
---
|
||||
>>>function appfile4Spread() {
|
||||
1->
|
||||
@@ -497,9 +501,9 @@ sourceFile:file4.ts
|
||||
>
|
||||
2 >function
|
||||
3 > appfile4Spread
|
||||
1->Emitted(62, 1) Source(2, 1) + SourceIndex(5)
|
||||
2 >Emitted(62, 10) Source(2, 10) + SourceIndex(5)
|
||||
3 >Emitted(62, 24) Source(2, 24) + SourceIndex(5)
|
||||
1->Emitted(64, 1) Source(2, 1) + SourceIndex(5)
|
||||
2 >Emitted(64, 10) Source(2, 10) + SourceIndex(5)
|
||||
3 >Emitted(64, 24) Source(2, 24) + SourceIndex(5)
|
||||
---
|
||||
>>> var b = [];
|
||||
1 >^^^^
|
||||
@@ -507,8 +511,8 @@ sourceFile:file4.ts
|
||||
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >(
|
||||
2 > ...b: number[]
|
||||
1 >Emitted(63, 5) Source(2, 25) + SourceIndex(5)
|
||||
2 >Emitted(63, 16) Source(2, 39) + SourceIndex(5)
|
||||
1 >Emitted(65, 5) Source(2, 25) + SourceIndex(5)
|
||||
2 >Emitted(65, 16) Source(2, 39) + SourceIndex(5)
|
||||
---
|
||||
>>> for (var _i = 0; _i < arguments.length; _i++) {
|
||||
1->^^^^^^^^^
|
||||
@@ -523,20 +527,20 @@ sourceFile:file4.ts
|
||||
4 > ...b: number[]
|
||||
5 >
|
||||
6 > ...b: number[]
|
||||
1->Emitted(64, 10) Source(2, 25) + SourceIndex(5)
|
||||
2 >Emitted(64, 20) Source(2, 39) + SourceIndex(5)
|
||||
3 >Emitted(64, 22) Source(2, 25) + SourceIndex(5)
|
||||
4 >Emitted(64, 43) Source(2, 39) + SourceIndex(5)
|
||||
5 >Emitted(64, 45) Source(2, 25) + SourceIndex(5)
|
||||
6 >Emitted(64, 49) Source(2, 39) + SourceIndex(5)
|
||||
1->Emitted(66, 10) Source(2, 25) + SourceIndex(5)
|
||||
2 >Emitted(66, 20) Source(2, 39) + SourceIndex(5)
|
||||
3 >Emitted(66, 22) Source(2, 25) + SourceIndex(5)
|
||||
4 >Emitted(66, 43) Source(2, 39) + SourceIndex(5)
|
||||
5 >Emitted(66, 45) Source(2, 25) + SourceIndex(5)
|
||||
6 >Emitted(66, 49) Source(2, 39) + SourceIndex(5)
|
||||
---
|
||||
>>> b[_i] = arguments[_i];
|
||||
1 >^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^
|
||||
1 >
|
||||
2 > ...b: number[]
|
||||
1 >Emitted(65, 9) Source(2, 25) + SourceIndex(5)
|
||||
2 >Emitted(65, 31) Source(2, 39) + SourceIndex(5)
|
||||
1 >Emitted(67, 9) Source(2, 25) + SourceIndex(5)
|
||||
2 >Emitted(67, 31) Source(2, 39) + SourceIndex(5)
|
||||
---
|
||||
>>> }
|
||||
>>>}
|
||||
@@ -545,8 +549,8 @@ sourceFile:file4.ts
|
||||
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >) {
|
||||
2 >}
|
||||
1 >Emitted(67, 1) Source(2, 43) + SourceIndex(5)
|
||||
2 >Emitted(67, 2) Source(2, 44) + SourceIndex(5)
|
||||
1 >Emitted(69, 1) Source(2, 43) + SourceIndex(5)
|
||||
2 >Emitted(69, 2) Source(2, 44) + SourceIndex(5)
|
||||
---
|
||||
>>>appfile4Spread.apply(void 0, __spread([10, 20, 30]));
|
||||
1->
|
||||
@@ -572,17 +576,17 @@ sourceFile:file4.ts
|
||||
9 > 30
|
||||
10> ]
|
||||
11> );
|
||||
1->Emitted(68, 1) Source(3, 1) + SourceIndex(5)
|
||||
2 >Emitted(68, 15) Source(3, 15) + SourceIndex(5)
|
||||
3 >Emitted(68, 39) Source(3, 19) + SourceIndex(5)
|
||||
4 >Emitted(68, 40) Source(3, 20) + SourceIndex(5)
|
||||
5 >Emitted(68, 42) Source(3, 22) + SourceIndex(5)
|
||||
6 >Emitted(68, 44) Source(3, 24) + SourceIndex(5)
|
||||
7 >Emitted(68, 46) Source(3, 26) + SourceIndex(5)
|
||||
8 >Emitted(68, 48) Source(3, 28) + SourceIndex(5)
|
||||
9 >Emitted(68, 50) Source(3, 30) + SourceIndex(5)
|
||||
10>Emitted(68, 51) Source(3, 31) + SourceIndex(5)
|
||||
11>Emitted(68, 54) Source(3, 33) + SourceIndex(5)
|
||||
1->Emitted(70, 1) Source(3, 1) + SourceIndex(5)
|
||||
2 >Emitted(70, 15) Source(3, 15) + SourceIndex(5)
|
||||
3 >Emitted(70, 39) Source(3, 19) + SourceIndex(5)
|
||||
4 >Emitted(70, 40) Source(3, 20) + SourceIndex(5)
|
||||
5 >Emitted(70, 42) Source(3, 22) + SourceIndex(5)
|
||||
6 >Emitted(70, 44) Source(3, 24) + SourceIndex(5)
|
||||
7 >Emitted(70, 46) Source(3, 26) + SourceIndex(5)
|
||||
8 >Emitted(70, 48) Source(3, 28) + SourceIndex(5)
|
||||
9 >Emitted(70, 50) Source(3, 30) + SourceIndex(5)
|
||||
10>Emitted(70, 51) Source(3, 31) + SourceIndex(5)
|
||||
11>Emitted(70, 54) Source(3, 33) + SourceIndex(5)
|
||||
---
|
||||
>>>//# sourceMappingURL=module.js.map
|
||||
|
||||
@@ -610,26 +614,26 @@ sourceFile:file4.ts
|
||||
},
|
||||
{
|
||||
"pos": 678,
|
||||
"end": 1093,
|
||||
"end": 1178,
|
||||
"kind": "emitHelpers",
|
||||
"data": "typescript:rest"
|
||||
},
|
||||
{
|
||||
"pos": 1095,
|
||||
"end": 1850,
|
||||
"pos": 1180,
|
||||
"end": 1935,
|
||||
"kind": "prepend",
|
||||
"data": "/src/lib/module.js",
|
||||
"texts": [
|
||||
{
|
||||
"pos": 1095,
|
||||
"end": 1850,
|
||||
"pos": 1180,
|
||||
"end": 1935,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pos": 1850,
|
||||
"end": 2368,
|
||||
"pos": 1935,
|
||||
"end": 2453,
|
||||
"kind": "text"
|
||||
}
|
||||
],
|
||||
@@ -695,20 +699,22 @@ var __spread = (this && this.__spread) || function () {
|
||||
return ar;
|
||||
};
|
||||
----------------------------------------------------------------------
|
||||
emitHelpers: (678-1093):: typescript:rest
|
||||
emitHelpers: (678-1178):: typescript:rest
|
||||
var __rest = (this && this.__rest) || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
----------------------------------------------------------------------
|
||||
prepend: (1095-1850):: /src/lib/module.js texts:: 1
|
||||
prepend: (1180-1935):: /src/lib/module.js texts:: 1
|
||||
>>--------------------------------------------------------------------
|
||||
text: (1095-1850)
|
||||
text: (1180-1935)
|
||||
var myGlob = 20;
|
||||
function libfile0Spread() {
|
||||
var b = [];
|
||||
@@ -734,7 +740,7 @@ define("file2", ["require", "exports"], function (require, exports) {
|
||||
var globalConst = 10;
|
||||
|
||||
----------------------------------------------------------------------
|
||||
text: (1850-2368)
|
||||
text: (1935-2453)
|
||||
define("file3", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
@@ -810,8 +816,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
var myGlob = 20;
|
||||
@@ -840,7 +848,7 @@ var globalConst = 10;
|
||||
//# sourceMappingURL=module.js.map
|
||||
|
||||
//// [/src/lib/module.js.map]
|
||||
{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICFH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"}
|
||||
{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;IAAA,OAAO,CAAC,GAAG,CAAC,SAAC,CAAC,CAAC;;;;;ICFH,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"}
|
||||
|
||||
//// [/src/lib/module.js.map.baseline.txt]
|
||||
===================================================================
|
||||
@@ -878,8 +886,10 @@ sourceFile:file0.ts
|
||||
>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
>>> t[p] = s[p];
|
||||
>>> if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
>>> t[p[i]] = s[p[i]];
|
||||
>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
>>> t[p[i]] = s[p[i]];
|
||||
>>> }
|
||||
>>> return t;
|
||||
>>>};
|
||||
>>>var myGlob = 20;
|
||||
@@ -896,12 +906,12 @@ sourceFile:file0.ts
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1 >Emitted(30, 1) Source(1, 1) + SourceIndex(0)
|
||||
2 >Emitted(30, 5) Source(1, 7) + SourceIndex(0)
|
||||
3 >Emitted(30, 11) Source(1, 13) + SourceIndex(0)
|
||||
4 >Emitted(30, 14) Source(1, 16) + SourceIndex(0)
|
||||
5 >Emitted(30, 16) Source(1, 18) + SourceIndex(0)
|
||||
6 >Emitted(30, 17) Source(1, 19) + SourceIndex(0)
|
||||
1 >Emitted(32, 1) Source(1, 1) + SourceIndex(0)
|
||||
2 >Emitted(32, 5) Source(1, 7) + SourceIndex(0)
|
||||
3 >Emitted(32, 11) Source(1, 13) + SourceIndex(0)
|
||||
4 >Emitted(32, 14) Source(1, 16) + SourceIndex(0)
|
||||
5 >Emitted(32, 16) Source(1, 18) + SourceIndex(0)
|
||||
6 >Emitted(32, 17) Source(1, 19) + SourceIndex(0)
|
||||
---
|
||||
>>>function libfile0Spread() {
|
||||
1->
|
||||
@@ -911,9 +921,9 @@ sourceFile:file0.ts
|
||||
>
|
||||
2 >function
|
||||
3 > libfile0Spread
|
||||
1->Emitted(31, 1) Source(2, 1) + SourceIndex(0)
|
||||
2 >Emitted(31, 10) Source(2, 10) + SourceIndex(0)
|
||||
3 >Emitted(31, 24) Source(2, 24) + SourceIndex(0)
|
||||
1->Emitted(33, 1) Source(2, 1) + SourceIndex(0)
|
||||
2 >Emitted(33, 10) Source(2, 10) + SourceIndex(0)
|
||||
3 >Emitted(33, 24) Source(2, 24) + SourceIndex(0)
|
||||
---
|
||||
>>> var b = [];
|
||||
1 >^^^^
|
||||
@@ -921,8 +931,8 @@ sourceFile:file0.ts
|
||||
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >(
|
||||
2 > ...b: number[]
|
||||
1 >Emitted(32, 5) Source(2, 25) + SourceIndex(0)
|
||||
2 >Emitted(32, 16) Source(2, 39) + SourceIndex(0)
|
||||
1 >Emitted(34, 5) Source(2, 25) + SourceIndex(0)
|
||||
2 >Emitted(34, 16) Source(2, 39) + SourceIndex(0)
|
||||
---
|
||||
>>> for (var _i = 0; _i < arguments.length; _i++) {
|
||||
1->^^^^^^^^^
|
||||
@@ -937,20 +947,20 @@ sourceFile:file0.ts
|
||||
4 > ...b: number[]
|
||||
5 >
|
||||
6 > ...b: number[]
|
||||
1->Emitted(33, 10) Source(2, 25) + SourceIndex(0)
|
||||
2 >Emitted(33, 20) Source(2, 39) + SourceIndex(0)
|
||||
3 >Emitted(33, 22) Source(2, 25) + SourceIndex(0)
|
||||
4 >Emitted(33, 43) Source(2, 39) + SourceIndex(0)
|
||||
5 >Emitted(33, 45) Source(2, 25) + SourceIndex(0)
|
||||
6 >Emitted(33, 49) Source(2, 39) + SourceIndex(0)
|
||||
1->Emitted(35, 10) Source(2, 25) + SourceIndex(0)
|
||||
2 >Emitted(35, 20) Source(2, 39) + SourceIndex(0)
|
||||
3 >Emitted(35, 22) Source(2, 25) + SourceIndex(0)
|
||||
4 >Emitted(35, 43) Source(2, 39) + SourceIndex(0)
|
||||
5 >Emitted(35, 45) Source(2, 25) + SourceIndex(0)
|
||||
6 >Emitted(35, 49) Source(2, 39) + SourceIndex(0)
|
||||
---
|
||||
>>> b[_i] = arguments[_i];
|
||||
1 >^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^
|
||||
1 >
|
||||
2 > ...b: number[]
|
||||
1 >Emitted(34, 9) Source(2, 25) + SourceIndex(0)
|
||||
2 >Emitted(34, 31) Source(2, 39) + SourceIndex(0)
|
||||
1 >Emitted(36, 9) Source(2, 25) + SourceIndex(0)
|
||||
2 >Emitted(36, 31) Source(2, 39) + SourceIndex(0)
|
||||
---
|
||||
>>> }
|
||||
>>>}
|
||||
@@ -959,8 +969,8 @@ sourceFile:file0.ts
|
||||
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >) {
|
||||
2 >}
|
||||
1 >Emitted(36, 1) Source(2, 43) + SourceIndex(0)
|
||||
2 >Emitted(36, 2) Source(2, 44) + SourceIndex(0)
|
||||
1 >Emitted(38, 1) Source(2, 43) + SourceIndex(0)
|
||||
2 >Emitted(38, 2) Source(2, 44) + SourceIndex(0)
|
||||
---
|
||||
>>>libfile0Spread.apply(void 0, __spread([10, 20, 30]));
|
||||
1->
|
||||
@@ -987,17 +997,17 @@ sourceFile:file0.ts
|
||||
9 > 30
|
||||
10> ]
|
||||
11> );
|
||||
1->Emitted(37, 1) Source(3, 1) + SourceIndex(0)
|
||||
2 >Emitted(37, 15) Source(3, 15) + SourceIndex(0)
|
||||
3 >Emitted(37, 39) Source(3, 19) + SourceIndex(0)
|
||||
4 >Emitted(37, 40) Source(3, 20) + SourceIndex(0)
|
||||
5 >Emitted(37, 42) Source(3, 22) + SourceIndex(0)
|
||||
6 >Emitted(37, 44) Source(3, 24) + SourceIndex(0)
|
||||
7 >Emitted(37, 46) Source(3, 26) + SourceIndex(0)
|
||||
8 >Emitted(37, 48) Source(3, 28) + SourceIndex(0)
|
||||
9 >Emitted(37, 50) Source(3, 30) + SourceIndex(0)
|
||||
10>Emitted(37, 51) Source(3, 31) + SourceIndex(0)
|
||||
11>Emitted(37, 54) Source(3, 33) + SourceIndex(0)
|
||||
1->Emitted(39, 1) Source(3, 1) + SourceIndex(0)
|
||||
2 >Emitted(39, 15) Source(3, 15) + SourceIndex(0)
|
||||
3 >Emitted(39, 39) Source(3, 19) + SourceIndex(0)
|
||||
4 >Emitted(39, 40) Source(3, 20) + SourceIndex(0)
|
||||
5 >Emitted(39, 42) Source(3, 22) + SourceIndex(0)
|
||||
6 >Emitted(39, 44) Source(3, 24) + SourceIndex(0)
|
||||
7 >Emitted(39, 46) Source(3, 26) + SourceIndex(0)
|
||||
8 >Emitted(39, 48) Source(3, 28) + SourceIndex(0)
|
||||
9 >Emitted(39, 50) Source(3, 30) + SourceIndex(0)
|
||||
10>Emitted(39, 51) Source(3, 31) + SourceIndex(0)
|
||||
11>Emitted(39, 54) Source(3, 33) + SourceIndex(0)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.js
|
||||
@@ -1020,12 +1030,12 @@ sourceFile:file1.ts
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1->Emitted(41, 5) Source(1, 14) + SourceIndex(1)
|
||||
2 >Emitted(41, 13) Source(1, 14) + SourceIndex(1)
|
||||
3 >Emitted(41, 14) Source(1, 15) + SourceIndex(1)
|
||||
4 >Emitted(41, 17) Source(1, 18) + SourceIndex(1)
|
||||
5 >Emitted(41, 19) Source(1, 20) + SourceIndex(1)
|
||||
6 >Emitted(41, 20) Source(1, 21) + SourceIndex(1)
|
||||
1->Emitted(43, 5) Source(1, 14) + SourceIndex(1)
|
||||
2 >Emitted(43, 13) Source(1, 14) + SourceIndex(1)
|
||||
3 >Emitted(43, 14) Source(1, 15) + SourceIndex(1)
|
||||
4 >Emitted(43, 17) Source(1, 18) + SourceIndex(1)
|
||||
5 >Emitted(43, 19) Source(1, 20) + SourceIndex(1)
|
||||
6 >Emitted(43, 20) Source(1, 21) + SourceIndex(1)
|
||||
---
|
||||
>>> function forlibfile1Rest() {
|
||||
1->^^^^
|
||||
@@ -1035,9 +1045,9 @@ sourceFile:file1.ts
|
||||
1->
|
||||
2 > function
|
||||
3 > forlibfile1Rest
|
||||
1->Emitted(42, 5) Source(1, 21) + SourceIndex(1)
|
||||
2 >Emitted(42, 14) Source(1, 30) + SourceIndex(1)
|
||||
3 >Emitted(42, 29) Source(1, 45) + SourceIndex(1)
|
||||
1->Emitted(44, 5) Source(1, 21) + SourceIndex(1)
|
||||
2 >Emitted(44, 14) Source(1, 30) + SourceIndex(1)
|
||||
3 >Emitted(44, 29) Source(1, 45) + SourceIndex(1)
|
||||
---
|
||||
>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]);
|
||||
1->^^^^^^^^
|
||||
@@ -1057,14 +1067,14 @@ sourceFile:file1.ts
|
||||
6 > ,
|
||||
7 > ...rest } = { a: 10, b: 30, yy: 30 }
|
||||
8 > ;
|
||||
1->Emitted(43, 9) Source(2, 1) + SourceIndex(1)
|
||||
2 >Emitted(43, 13) Source(2, 7) + SourceIndex(1)
|
||||
3 >Emitted(43, 42) Source(2, 48) + SourceIndex(1)
|
||||
4 >Emitted(43, 44) Source(2, 9) + SourceIndex(1)
|
||||
5 >Emitted(43, 52) Source(2, 10) + SourceIndex(1)
|
||||
6 >Emitted(43, 54) Source(2, 12) + SourceIndex(1)
|
||||
7 >Emitted(43, 78) Source(2, 48) + SourceIndex(1)
|
||||
8 >Emitted(43, 79) Source(2, 49) + SourceIndex(1)
|
||||
1->Emitted(45, 9) Source(2, 1) + SourceIndex(1)
|
||||
2 >Emitted(45, 13) Source(2, 7) + SourceIndex(1)
|
||||
3 >Emitted(45, 42) Source(2, 48) + SourceIndex(1)
|
||||
4 >Emitted(45, 44) Source(2, 9) + SourceIndex(1)
|
||||
5 >Emitted(45, 52) Source(2, 10) + SourceIndex(1)
|
||||
6 >Emitted(45, 54) Source(2, 12) + SourceIndex(1)
|
||||
7 >Emitted(45, 78) Source(2, 48) + SourceIndex(1)
|
||||
8 >Emitted(45, 79) Source(2, 49) + SourceIndex(1)
|
||||
---
|
||||
>>> }
|
||||
1 >^^^^
|
||||
@@ -1073,8 +1083,8 @@ sourceFile:file1.ts
|
||||
1 >
|
||||
>
|
||||
2 > }
|
||||
1 >Emitted(44, 5) Source(3, 1) + SourceIndex(1)
|
||||
2 >Emitted(44, 6) Source(3, 2) + SourceIndex(1)
|
||||
1 >Emitted(46, 5) Source(3, 1) + SourceIndex(1)
|
||||
2 >Emitted(46, 6) Source(3, 2) + SourceIndex(1)
|
||||
---
|
||||
>>> console.log(exports.x);
|
||||
1->^^^^
|
||||
@@ -1093,14 +1103,14 @@ sourceFile:file1.ts
|
||||
6 > x
|
||||
7 > )
|
||||
8 > ;
|
||||
1->Emitted(45, 5) Source(3, 2) + SourceIndex(1)
|
||||
2 >Emitted(45, 12) Source(3, 9) + SourceIndex(1)
|
||||
3 >Emitted(45, 13) Source(3, 10) + SourceIndex(1)
|
||||
4 >Emitted(45, 16) Source(3, 13) + SourceIndex(1)
|
||||
5 >Emitted(45, 17) Source(3, 14) + SourceIndex(1)
|
||||
6 >Emitted(45, 26) Source(3, 15) + SourceIndex(1)
|
||||
7 >Emitted(45, 27) Source(3, 16) + SourceIndex(1)
|
||||
8 >Emitted(45, 28) Source(3, 17) + SourceIndex(1)
|
||||
1->Emitted(47, 5) Source(3, 2) + SourceIndex(1)
|
||||
2 >Emitted(47, 12) Source(3, 9) + SourceIndex(1)
|
||||
3 >Emitted(47, 13) Source(3, 10) + SourceIndex(1)
|
||||
4 >Emitted(47, 16) Source(3, 13) + SourceIndex(1)
|
||||
5 >Emitted(47, 17) Source(3, 14) + SourceIndex(1)
|
||||
6 >Emitted(47, 26) Source(3, 15) + SourceIndex(1)
|
||||
7 >Emitted(47, 27) Source(3, 16) + SourceIndex(1)
|
||||
8 >Emitted(47, 28) Source(3, 17) + SourceIndex(1)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.js
|
||||
@@ -1123,12 +1133,12 @@ sourceFile:file2.ts
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1 >Emitted(50, 5) Source(1, 14) + SourceIndex(2)
|
||||
2 >Emitted(50, 13) Source(1, 14) + SourceIndex(2)
|
||||
3 >Emitted(50, 14) Source(1, 15) + SourceIndex(2)
|
||||
4 >Emitted(50, 17) Source(1, 18) + SourceIndex(2)
|
||||
5 >Emitted(50, 19) Source(1, 20) + SourceIndex(2)
|
||||
6 >Emitted(50, 20) Source(1, 21) + SourceIndex(2)
|
||||
1 >Emitted(52, 5) Source(1, 14) + SourceIndex(2)
|
||||
2 >Emitted(52, 13) Source(1, 14) + SourceIndex(2)
|
||||
3 >Emitted(52, 14) Source(1, 15) + SourceIndex(2)
|
||||
4 >Emitted(52, 17) Source(1, 18) + SourceIndex(2)
|
||||
5 >Emitted(52, 19) Source(1, 20) + SourceIndex(2)
|
||||
6 >Emitted(52, 20) Source(1, 21) + SourceIndex(2)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.js
|
||||
@@ -1149,12 +1159,12 @@ sourceFile:global.ts
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1 >Emitted(52, 1) Source(1, 1) + SourceIndex(3)
|
||||
2 >Emitted(52, 5) Source(1, 7) + SourceIndex(3)
|
||||
3 >Emitted(52, 16) Source(1, 18) + SourceIndex(3)
|
||||
4 >Emitted(52, 19) Source(1, 21) + SourceIndex(3)
|
||||
5 >Emitted(52, 21) Source(1, 23) + SourceIndex(3)
|
||||
6 >Emitted(52, 22) Source(1, 24) + SourceIndex(3)
|
||||
1 >Emitted(54, 1) Source(1, 1) + SourceIndex(3)
|
||||
2 >Emitted(54, 5) Source(1, 7) + SourceIndex(3)
|
||||
3 >Emitted(54, 16) Source(1, 18) + SourceIndex(3)
|
||||
4 >Emitted(54, 19) Source(1, 21) + SourceIndex(3)
|
||||
5 >Emitted(54, 21) Source(1, 23) + SourceIndex(3)
|
||||
6 >Emitted(54, 22) Source(1, 24) + SourceIndex(3)
|
||||
---
|
||||
>>>//# sourceMappingURL=module.js.map
|
||||
|
||||
@@ -1184,13 +1194,13 @@ sourceFile:global.ts
|
||||
},
|
||||
{
|
||||
"pos": 678,
|
||||
"end": 1093,
|
||||
"end": 1178,
|
||||
"kind": "emitHelpers",
|
||||
"data": "typescript:rest"
|
||||
},
|
||||
{
|
||||
"pos": 1095,
|
||||
"end": 1850,
|
||||
"pos": 1180,
|
||||
"end": 1935,
|
||||
"kind": "text"
|
||||
}
|
||||
],
|
||||
@@ -1243,18 +1253,20 @@ var __spread = (this && this.__spread) || function () {
|
||||
return ar;
|
||||
};
|
||||
----------------------------------------------------------------------
|
||||
emitHelpers: (678-1093):: typescript:rest
|
||||
emitHelpers: (678-1178):: typescript:rest
|
||||
var __rest = (this && this.__rest) || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
----------------------------------------------------------------------
|
||||
text: (1095-1850)
|
||||
text: (1180-1935)
|
||||
var myGlob = 20;
|
||||
function libfile0Spread() {
|
||||
var b = [];
|
||||
|
||||
+130
-124
@@ -24,8 +24,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
var myGlob = 20;
|
||||
@@ -67,7 +69,7 @@ appfile4Spread.apply(void 0, __spread([10, 20, 30]));
|
||||
//# sourceMappingURL=module.js.map
|
||||
|
||||
//// [/src/app/module.js.map]
|
||||
{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe,KAAK,CAAC;;;;;ICArC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"}
|
||||
{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe,KAAK,CAAC;;;;;ICArC,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"}
|
||||
|
||||
//// [/src/app/module.js.map.baseline.txt]
|
||||
===================================================================
|
||||
@@ -105,8 +107,10 @@ sourceFile:../lib/file0.ts
|
||||
>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
>>> t[p] = s[p];
|
||||
>>> if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
>>> t[p[i]] = s[p[i]];
|
||||
>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
>>> t[p[i]] = s[p[i]];
|
||||
>>> }
|
||||
>>> return t;
|
||||
>>>};
|
||||
>>>var myGlob = 20;
|
||||
@@ -123,12 +127,12 @@ sourceFile:../lib/file0.ts
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1 >Emitted(30, 1) Source(1, 1) + SourceIndex(0)
|
||||
2 >Emitted(30, 5) Source(1, 7) + SourceIndex(0)
|
||||
3 >Emitted(30, 11) Source(1, 13) + SourceIndex(0)
|
||||
4 >Emitted(30, 14) Source(1, 16) + SourceIndex(0)
|
||||
5 >Emitted(30, 16) Source(1, 18) + SourceIndex(0)
|
||||
6 >Emitted(30, 17) Source(1, 19) + SourceIndex(0)
|
||||
1 >Emitted(32, 1) Source(1, 1) + SourceIndex(0)
|
||||
2 >Emitted(32, 5) Source(1, 7) + SourceIndex(0)
|
||||
3 >Emitted(32, 11) Source(1, 13) + SourceIndex(0)
|
||||
4 >Emitted(32, 14) Source(1, 16) + SourceIndex(0)
|
||||
5 >Emitted(32, 16) Source(1, 18) + SourceIndex(0)
|
||||
6 >Emitted(32, 17) Source(1, 19) + SourceIndex(0)
|
||||
---
|
||||
>>>function libfile0Spread() {
|
||||
1->
|
||||
@@ -138,9 +142,9 @@ sourceFile:../lib/file0.ts
|
||||
>
|
||||
2 >function
|
||||
3 > libfile0Spread
|
||||
1->Emitted(31, 1) Source(2, 1) + SourceIndex(0)
|
||||
2 >Emitted(31, 10) Source(2, 10) + SourceIndex(0)
|
||||
3 >Emitted(31, 24) Source(2, 24) + SourceIndex(0)
|
||||
1->Emitted(33, 1) Source(2, 1) + SourceIndex(0)
|
||||
2 >Emitted(33, 10) Source(2, 10) + SourceIndex(0)
|
||||
3 >Emitted(33, 24) Source(2, 24) + SourceIndex(0)
|
||||
---
|
||||
>>> var b = [];
|
||||
1 >^^^^
|
||||
@@ -148,8 +152,8 @@ sourceFile:../lib/file0.ts
|
||||
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >(
|
||||
2 > ...b: number[]
|
||||
1 >Emitted(32, 5) Source(2, 25) + SourceIndex(0)
|
||||
2 >Emitted(32, 16) Source(2, 39) + SourceIndex(0)
|
||||
1 >Emitted(34, 5) Source(2, 25) + SourceIndex(0)
|
||||
2 >Emitted(34, 16) Source(2, 39) + SourceIndex(0)
|
||||
---
|
||||
>>> for (var _i = 0; _i < arguments.length; _i++) {
|
||||
1->^^^^^^^^^
|
||||
@@ -164,20 +168,20 @@ sourceFile:../lib/file0.ts
|
||||
4 > ...b: number[]
|
||||
5 >
|
||||
6 > ...b: number[]
|
||||
1->Emitted(33, 10) Source(2, 25) + SourceIndex(0)
|
||||
2 >Emitted(33, 20) Source(2, 39) + SourceIndex(0)
|
||||
3 >Emitted(33, 22) Source(2, 25) + SourceIndex(0)
|
||||
4 >Emitted(33, 43) Source(2, 39) + SourceIndex(0)
|
||||
5 >Emitted(33, 45) Source(2, 25) + SourceIndex(0)
|
||||
6 >Emitted(33, 49) Source(2, 39) + SourceIndex(0)
|
||||
1->Emitted(35, 10) Source(2, 25) + SourceIndex(0)
|
||||
2 >Emitted(35, 20) Source(2, 39) + SourceIndex(0)
|
||||
3 >Emitted(35, 22) Source(2, 25) + SourceIndex(0)
|
||||
4 >Emitted(35, 43) Source(2, 39) + SourceIndex(0)
|
||||
5 >Emitted(35, 45) Source(2, 25) + SourceIndex(0)
|
||||
6 >Emitted(35, 49) Source(2, 39) + SourceIndex(0)
|
||||
---
|
||||
>>> b[_i] = arguments[_i];
|
||||
1 >^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^
|
||||
1 >
|
||||
2 > ...b: number[]
|
||||
1 >Emitted(34, 9) Source(2, 25) + SourceIndex(0)
|
||||
2 >Emitted(34, 31) Source(2, 39) + SourceIndex(0)
|
||||
1 >Emitted(36, 9) Source(2, 25) + SourceIndex(0)
|
||||
2 >Emitted(36, 31) Source(2, 39) + SourceIndex(0)
|
||||
---
|
||||
>>> }
|
||||
>>>}
|
||||
@@ -186,8 +190,8 @@ sourceFile:../lib/file0.ts
|
||||
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >) {
|
||||
2 >}
|
||||
1 >Emitted(36, 1) Source(2, 43) + SourceIndex(0)
|
||||
2 >Emitted(36, 2) Source(2, 44) + SourceIndex(0)
|
||||
1 >Emitted(38, 1) Source(2, 43) + SourceIndex(0)
|
||||
2 >Emitted(38, 2) Source(2, 44) + SourceIndex(0)
|
||||
---
|
||||
>>>libfile0Spread.apply(void 0, __spread([10, 20, 30]));
|
||||
1->
|
||||
@@ -214,17 +218,17 @@ sourceFile:../lib/file0.ts
|
||||
9 > 30
|
||||
10> ]
|
||||
11> );
|
||||
1->Emitted(37, 1) Source(3, 1) + SourceIndex(0)
|
||||
2 >Emitted(37, 15) Source(3, 15) + SourceIndex(0)
|
||||
3 >Emitted(37, 39) Source(3, 19) + SourceIndex(0)
|
||||
4 >Emitted(37, 40) Source(3, 20) + SourceIndex(0)
|
||||
5 >Emitted(37, 42) Source(3, 22) + SourceIndex(0)
|
||||
6 >Emitted(37, 44) Source(3, 24) + SourceIndex(0)
|
||||
7 >Emitted(37, 46) Source(3, 26) + SourceIndex(0)
|
||||
8 >Emitted(37, 48) Source(3, 28) + SourceIndex(0)
|
||||
9 >Emitted(37, 50) Source(3, 30) + SourceIndex(0)
|
||||
10>Emitted(37, 51) Source(3, 31) + SourceIndex(0)
|
||||
11>Emitted(37, 54) Source(3, 33) + SourceIndex(0)
|
||||
1->Emitted(39, 1) Source(3, 1) + SourceIndex(0)
|
||||
2 >Emitted(39, 15) Source(3, 15) + SourceIndex(0)
|
||||
3 >Emitted(39, 39) Source(3, 19) + SourceIndex(0)
|
||||
4 >Emitted(39, 40) Source(3, 20) + SourceIndex(0)
|
||||
5 >Emitted(39, 42) Source(3, 22) + SourceIndex(0)
|
||||
6 >Emitted(39, 44) Source(3, 24) + SourceIndex(0)
|
||||
7 >Emitted(39, 46) Source(3, 26) + SourceIndex(0)
|
||||
8 >Emitted(39, 48) Source(3, 28) + SourceIndex(0)
|
||||
9 >Emitted(39, 50) Source(3, 30) + SourceIndex(0)
|
||||
10>Emitted(39, 51) Source(3, 31) + SourceIndex(0)
|
||||
11>Emitted(39, 54) Source(3, 33) + SourceIndex(0)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
@@ -247,12 +251,12 @@ sourceFile:../lib/file1.ts
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1->Emitted(41, 5) Source(1, 14) + SourceIndex(1)
|
||||
2 >Emitted(41, 13) Source(1, 14) + SourceIndex(1)
|
||||
3 >Emitted(41, 14) Source(1, 15) + SourceIndex(1)
|
||||
4 >Emitted(41, 17) Source(1, 18) + SourceIndex(1)
|
||||
5 >Emitted(41, 19) Source(1, 20) + SourceIndex(1)
|
||||
6 >Emitted(41, 20) Source(1, 21) + SourceIndex(1)
|
||||
1->Emitted(43, 5) Source(1, 14) + SourceIndex(1)
|
||||
2 >Emitted(43, 13) Source(1, 14) + SourceIndex(1)
|
||||
3 >Emitted(43, 14) Source(1, 15) + SourceIndex(1)
|
||||
4 >Emitted(43, 17) Source(1, 18) + SourceIndex(1)
|
||||
5 >Emitted(43, 19) Source(1, 20) + SourceIndex(1)
|
||||
6 >Emitted(43, 20) Source(1, 21) + SourceIndex(1)
|
||||
---
|
||||
>>> function forlibfile1Rest() { }
|
||||
1->^^^^
|
||||
@@ -265,11 +269,11 @@ sourceFile:../lib/file1.ts
|
||||
3 > forlibfile1Rest
|
||||
4 > () {
|
||||
5 > }
|
||||
1->Emitted(42, 5) Source(1, 21) + SourceIndex(1)
|
||||
2 >Emitted(42, 14) Source(1, 30) + SourceIndex(1)
|
||||
3 >Emitted(42, 29) Source(1, 45) + SourceIndex(1)
|
||||
4 >Emitted(42, 34) Source(1, 50) + SourceIndex(1)
|
||||
5 >Emitted(42, 35) Source(1, 51) + SourceIndex(1)
|
||||
1->Emitted(44, 5) Source(1, 21) + SourceIndex(1)
|
||||
2 >Emitted(44, 14) Source(1, 30) + SourceIndex(1)
|
||||
3 >Emitted(44, 29) Source(1, 45) + SourceIndex(1)
|
||||
4 >Emitted(44, 34) Source(1, 50) + SourceIndex(1)
|
||||
5 >Emitted(44, 35) Source(1, 51) + SourceIndex(1)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
@@ -292,12 +296,12 @@ sourceFile:../lib/file2.ts
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1 >Emitted(47, 5) Source(1, 14) + SourceIndex(2)
|
||||
2 >Emitted(47, 13) Source(1, 14) + SourceIndex(2)
|
||||
3 >Emitted(47, 14) Source(1, 15) + SourceIndex(2)
|
||||
4 >Emitted(47, 17) Source(1, 18) + SourceIndex(2)
|
||||
5 >Emitted(47, 19) Source(1, 20) + SourceIndex(2)
|
||||
6 >Emitted(47, 20) Source(1, 21) + SourceIndex(2)
|
||||
1 >Emitted(49, 5) Source(1, 14) + SourceIndex(2)
|
||||
2 >Emitted(49, 13) Source(1, 14) + SourceIndex(2)
|
||||
3 >Emitted(49, 14) Source(1, 15) + SourceIndex(2)
|
||||
4 >Emitted(49, 17) Source(1, 18) + SourceIndex(2)
|
||||
5 >Emitted(49, 19) Source(1, 20) + SourceIndex(2)
|
||||
6 >Emitted(49, 20) Source(1, 21) + SourceIndex(2)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
@@ -318,12 +322,12 @@ sourceFile:../lib/global.ts
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1 >Emitted(49, 1) Source(1, 1) + SourceIndex(3)
|
||||
2 >Emitted(49, 5) Source(1, 7) + SourceIndex(3)
|
||||
3 >Emitted(49, 16) Source(1, 18) + SourceIndex(3)
|
||||
4 >Emitted(49, 19) Source(1, 21) + SourceIndex(3)
|
||||
5 >Emitted(49, 21) Source(1, 23) + SourceIndex(3)
|
||||
6 >Emitted(49, 22) Source(1, 24) + SourceIndex(3)
|
||||
1 >Emitted(51, 1) Source(1, 1) + SourceIndex(3)
|
||||
2 >Emitted(51, 5) Source(1, 7) + SourceIndex(3)
|
||||
3 >Emitted(51, 16) Source(1, 18) + SourceIndex(3)
|
||||
4 >Emitted(51, 19) Source(1, 21) + SourceIndex(3)
|
||||
5 >Emitted(51, 21) Source(1, 23) + SourceIndex(3)
|
||||
6 >Emitted(51, 22) Source(1, 24) + SourceIndex(3)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
@@ -346,12 +350,12 @@ sourceFile:file3.ts
|
||||
4 > =
|
||||
5 > 30
|
||||
6 > ;
|
||||
1->Emitted(53, 5) Source(1, 14) + SourceIndex(4)
|
||||
2 >Emitted(53, 13) Source(1, 14) + SourceIndex(4)
|
||||
3 >Emitted(53, 14) Source(1, 15) + SourceIndex(4)
|
||||
4 >Emitted(53, 17) Source(1, 18) + SourceIndex(4)
|
||||
5 >Emitted(53, 19) Source(1, 20) + SourceIndex(4)
|
||||
6 >Emitted(53, 20) Source(1, 21) + SourceIndex(4)
|
||||
1->Emitted(55, 5) Source(1, 14) + SourceIndex(4)
|
||||
2 >Emitted(55, 13) Source(1, 14) + SourceIndex(4)
|
||||
3 >Emitted(55, 14) Source(1, 15) + SourceIndex(4)
|
||||
4 >Emitted(55, 17) Source(1, 18) + SourceIndex(4)
|
||||
5 >Emitted(55, 19) Source(1, 20) + SourceIndex(4)
|
||||
6 >Emitted(55, 20) Source(1, 21) + SourceIndex(4)
|
||||
---
|
||||
>>> function forappfile3Rest() {
|
||||
1->^^^^
|
||||
@@ -362,9 +366,9 @@ sourceFile:file3.ts
|
||||
>import { x } from "file1";
|
||||
2 > function
|
||||
3 > forappfile3Rest
|
||||
1->Emitted(54, 5) Source(2, 27) + SourceIndex(4)
|
||||
2 >Emitted(54, 14) Source(2, 36) + SourceIndex(4)
|
||||
3 >Emitted(54, 29) Source(2, 51) + SourceIndex(4)
|
||||
1->Emitted(56, 5) Source(2, 27) + SourceIndex(4)
|
||||
2 >Emitted(56, 14) Source(2, 36) + SourceIndex(4)
|
||||
3 >Emitted(56, 29) Source(2, 51) + SourceIndex(4)
|
||||
---
|
||||
>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]);
|
||||
1->^^^^^^^^
|
||||
@@ -384,14 +388,14 @@ sourceFile:file3.ts
|
||||
6 > ,
|
||||
7 > ...rest } = { a: 10, b: 30, yy: 30 }
|
||||
8 > ;
|
||||
1->Emitted(55, 9) Source(3, 1) + SourceIndex(4)
|
||||
2 >Emitted(55, 13) Source(3, 7) + SourceIndex(4)
|
||||
3 >Emitted(55, 42) Source(3, 48) + SourceIndex(4)
|
||||
4 >Emitted(55, 44) Source(3, 9) + SourceIndex(4)
|
||||
5 >Emitted(55, 52) Source(3, 10) + SourceIndex(4)
|
||||
6 >Emitted(55, 54) Source(3, 12) + SourceIndex(4)
|
||||
7 >Emitted(55, 78) Source(3, 48) + SourceIndex(4)
|
||||
8 >Emitted(55, 79) Source(3, 49) + SourceIndex(4)
|
||||
1->Emitted(57, 9) Source(3, 1) + SourceIndex(4)
|
||||
2 >Emitted(57, 13) Source(3, 7) + SourceIndex(4)
|
||||
3 >Emitted(57, 42) Source(3, 48) + SourceIndex(4)
|
||||
4 >Emitted(57, 44) Source(3, 9) + SourceIndex(4)
|
||||
5 >Emitted(57, 52) Source(3, 10) + SourceIndex(4)
|
||||
6 >Emitted(57, 54) Source(3, 12) + SourceIndex(4)
|
||||
7 >Emitted(57, 78) Source(3, 48) + SourceIndex(4)
|
||||
8 >Emitted(57, 79) Source(3, 49) + SourceIndex(4)
|
||||
---
|
||||
>>> }
|
||||
1 >^^^^
|
||||
@@ -399,8 +403,8 @@ sourceFile:file3.ts
|
||||
1 >
|
||||
>
|
||||
2 > }
|
||||
1 >Emitted(56, 5) Source(4, 1) + SourceIndex(4)
|
||||
2 >Emitted(56, 6) Source(4, 2) + SourceIndex(4)
|
||||
1 >Emitted(58, 5) Source(4, 1) + SourceIndex(4)
|
||||
2 >Emitted(58, 6) Source(4, 2) + SourceIndex(4)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
@@ -421,12 +425,12 @@ sourceFile:file4.ts
|
||||
4 > =
|
||||
5 > 30
|
||||
6 > ;
|
||||
1 >Emitted(58, 1) Source(1, 1) + SourceIndex(5)
|
||||
2 >Emitted(58, 5) Source(1, 7) + SourceIndex(5)
|
||||
3 >Emitted(58, 10) Source(1, 12) + SourceIndex(5)
|
||||
4 >Emitted(58, 13) Source(1, 15) + SourceIndex(5)
|
||||
5 >Emitted(58, 15) Source(1, 17) + SourceIndex(5)
|
||||
6 >Emitted(58, 16) Source(1, 18) + SourceIndex(5)
|
||||
1 >Emitted(60, 1) Source(1, 1) + SourceIndex(5)
|
||||
2 >Emitted(60, 5) Source(1, 7) + SourceIndex(5)
|
||||
3 >Emitted(60, 10) Source(1, 12) + SourceIndex(5)
|
||||
4 >Emitted(60, 13) Source(1, 15) + SourceIndex(5)
|
||||
5 >Emitted(60, 15) Source(1, 17) + SourceIndex(5)
|
||||
6 >Emitted(60, 16) Source(1, 18) + SourceIndex(5)
|
||||
---
|
||||
>>>function appfile4Spread() {
|
||||
1->
|
||||
@@ -436,9 +440,9 @@ sourceFile:file4.ts
|
||||
>
|
||||
2 >function
|
||||
3 > appfile4Spread
|
||||
1->Emitted(59, 1) Source(2, 1) + SourceIndex(5)
|
||||
2 >Emitted(59, 10) Source(2, 10) + SourceIndex(5)
|
||||
3 >Emitted(59, 24) Source(2, 24) + SourceIndex(5)
|
||||
1->Emitted(61, 1) Source(2, 1) + SourceIndex(5)
|
||||
2 >Emitted(61, 10) Source(2, 10) + SourceIndex(5)
|
||||
3 >Emitted(61, 24) Source(2, 24) + SourceIndex(5)
|
||||
---
|
||||
>>> var b = [];
|
||||
1 >^^^^
|
||||
@@ -446,8 +450,8 @@ sourceFile:file4.ts
|
||||
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >(
|
||||
2 > ...b: number[]
|
||||
1 >Emitted(60, 5) Source(2, 25) + SourceIndex(5)
|
||||
2 >Emitted(60, 16) Source(2, 39) + SourceIndex(5)
|
||||
1 >Emitted(62, 5) Source(2, 25) + SourceIndex(5)
|
||||
2 >Emitted(62, 16) Source(2, 39) + SourceIndex(5)
|
||||
---
|
||||
>>> for (var _i = 0; _i < arguments.length; _i++) {
|
||||
1->^^^^^^^^^
|
||||
@@ -462,20 +466,20 @@ sourceFile:file4.ts
|
||||
4 > ...b: number[]
|
||||
5 >
|
||||
6 > ...b: number[]
|
||||
1->Emitted(61, 10) Source(2, 25) + SourceIndex(5)
|
||||
2 >Emitted(61, 20) Source(2, 39) + SourceIndex(5)
|
||||
3 >Emitted(61, 22) Source(2, 25) + SourceIndex(5)
|
||||
4 >Emitted(61, 43) Source(2, 39) + SourceIndex(5)
|
||||
5 >Emitted(61, 45) Source(2, 25) + SourceIndex(5)
|
||||
6 >Emitted(61, 49) Source(2, 39) + SourceIndex(5)
|
||||
1->Emitted(63, 10) Source(2, 25) + SourceIndex(5)
|
||||
2 >Emitted(63, 20) Source(2, 39) + SourceIndex(5)
|
||||
3 >Emitted(63, 22) Source(2, 25) + SourceIndex(5)
|
||||
4 >Emitted(63, 43) Source(2, 39) + SourceIndex(5)
|
||||
5 >Emitted(63, 45) Source(2, 25) + SourceIndex(5)
|
||||
6 >Emitted(63, 49) Source(2, 39) + SourceIndex(5)
|
||||
---
|
||||
>>> b[_i] = arguments[_i];
|
||||
1 >^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^
|
||||
1 >
|
||||
2 > ...b: number[]
|
||||
1 >Emitted(62, 9) Source(2, 25) + SourceIndex(5)
|
||||
2 >Emitted(62, 31) Source(2, 39) + SourceIndex(5)
|
||||
1 >Emitted(64, 9) Source(2, 25) + SourceIndex(5)
|
||||
2 >Emitted(64, 31) Source(2, 39) + SourceIndex(5)
|
||||
---
|
||||
>>> }
|
||||
>>>}
|
||||
@@ -484,8 +488,8 @@ sourceFile:file4.ts
|
||||
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >) {
|
||||
2 >}
|
||||
1 >Emitted(64, 1) Source(2, 43) + SourceIndex(5)
|
||||
2 >Emitted(64, 2) Source(2, 44) + SourceIndex(5)
|
||||
1 >Emitted(66, 1) Source(2, 43) + SourceIndex(5)
|
||||
2 >Emitted(66, 2) Source(2, 44) + SourceIndex(5)
|
||||
---
|
||||
>>>appfile4Spread.apply(void 0, __spread([10, 20, 30]));
|
||||
1->
|
||||
@@ -511,17 +515,17 @@ sourceFile:file4.ts
|
||||
9 > 30
|
||||
10> ]
|
||||
11> );
|
||||
1->Emitted(65, 1) Source(3, 1) + SourceIndex(5)
|
||||
2 >Emitted(65, 15) Source(3, 15) + SourceIndex(5)
|
||||
3 >Emitted(65, 39) Source(3, 19) + SourceIndex(5)
|
||||
4 >Emitted(65, 40) Source(3, 20) + SourceIndex(5)
|
||||
5 >Emitted(65, 42) Source(3, 22) + SourceIndex(5)
|
||||
6 >Emitted(65, 44) Source(3, 24) + SourceIndex(5)
|
||||
7 >Emitted(65, 46) Source(3, 26) + SourceIndex(5)
|
||||
8 >Emitted(65, 48) Source(3, 28) + SourceIndex(5)
|
||||
9 >Emitted(65, 50) Source(3, 30) + SourceIndex(5)
|
||||
10>Emitted(65, 51) Source(3, 31) + SourceIndex(5)
|
||||
11>Emitted(65, 54) Source(3, 33) + SourceIndex(5)
|
||||
1->Emitted(67, 1) Source(3, 1) + SourceIndex(5)
|
||||
2 >Emitted(67, 15) Source(3, 15) + SourceIndex(5)
|
||||
3 >Emitted(67, 39) Source(3, 19) + SourceIndex(5)
|
||||
4 >Emitted(67, 40) Source(3, 20) + SourceIndex(5)
|
||||
5 >Emitted(67, 42) Source(3, 22) + SourceIndex(5)
|
||||
6 >Emitted(67, 44) Source(3, 24) + SourceIndex(5)
|
||||
7 >Emitted(67, 46) Source(3, 26) + SourceIndex(5)
|
||||
8 >Emitted(67, 48) Source(3, 28) + SourceIndex(5)
|
||||
9 >Emitted(67, 50) Source(3, 30) + SourceIndex(5)
|
||||
10>Emitted(67, 51) Source(3, 31) + SourceIndex(5)
|
||||
11>Emitted(67, 54) Source(3, 33) + SourceIndex(5)
|
||||
---
|
||||
>>>//# sourceMappingURL=module.js.map
|
||||
|
||||
@@ -549,26 +553,26 @@ sourceFile:file4.ts
|
||||
},
|
||||
{
|
||||
"pos": 678,
|
||||
"end": 1093,
|
||||
"end": 1178,
|
||||
"kind": "emitHelpers",
|
||||
"data": "typescript:rest"
|
||||
},
|
||||
{
|
||||
"pos": 1095,
|
||||
"end": 1736,
|
||||
"pos": 1180,
|
||||
"end": 1821,
|
||||
"kind": "prepend",
|
||||
"data": "/src/lib/module.js",
|
||||
"texts": [
|
||||
{
|
||||
"pos": 1095,
|
||||
"end": 1736,
|
||||
"pos": 1180,
|
||||
"end": 1821,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pos": 1736,
|
||||
"end": 2254,
|
||||
"pos": 1821,
|
||||
"end": 2339,
|
||||
"kind": "text"
|
||||
}
|
||||
],
|
||||
@@ -634,20 +638,22 @@ var __spread = (this && this.__spread) || function () {
|
||||
return ar;
|
||||
};
|
||||
----------------------------------------------------------------------
|
||||
emitHelpers: (678-1093):: typescript:rest
|
||||
emitHelpers: (678-1178):: typescript:rest
|
||||
var __rest = (this && this.__rest) || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
----------------------------------------------------------------------
|
||||
prepend: (1095-1736):: /src/lib/module.js texts:: 1
|
||||
prepend: (1180-1821):: /src/lib/module.js texts:: 1
|
||||
>>--------------------------------------------------------------------
|
||||
text: (1095-1736)
|
||||
text: (1180-1821)
|
||||
var myGlob = 20;
|
||||
function libfile0Spread() {
|
||||
var b = [];
|
||||
@@ -670,7 +676,7 @@ define("file2", ["require", "exports"], function (require, exports) {
|
||||
var globalConst = 10;
|
||||
|
||||
----------------------------------------------------------------------
|
||||
text: (1736-2254)
|
||||
text: (1821-2339)
|
||||
define("file3", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
|
||||
+219
-207
@@ -285,8 +285,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
var myGlob = 20;
|
||||
@@ -330,7 +332,7 @@ appfile4Spread.apply(void 0, __spread([10, 20, 30]));
|
||||
//# sourceMappingURL=module.js.map
|
||||
|
||||
//// [/src/app/module.js.map]
|
||||
{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;;;;;ICFY,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"}
|
||||
{"version":3,"file":"module.js","sourceRoot":"","sources":["../lib/file0.ts","../lib/file1.ts","../lib/file2.ts","../lib/global.ts","file3.ts","file4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;;;;;ICFY,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC;;;;ICAV,QAAA,CAAC,GAAG,EAAE,CAAC;IACM,SAAS,eAAe;QAClD,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;;ACHD,IAAM,KAAK,GAAG,EAAE,CAAC;AACjB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE"}
|
||||
|
||||
//// [/src/app/module.js.map.baseline.txt]
|
||||
===================================================================
|
||||
@@ -368,8 +370,10 @@ sourceFile:../lib/file0.ts
|
||||
>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
>>> t[p] = s[p];
|
||||
>>> if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
>>> t[p[i]] = s[p[i]];
|
||||
>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
>>> t[p[i]] = s[p[i]];
|
||||
>>> }
|
||||
>>> return t;
|
||||
>>>};
|
||||
>>>var myGlob = 20;
|
||||
@@ -386,12 +390,12 @@ sourceFile:../lib/file0.ts
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1 >Emitted(30, 1) Source(1, 1) + SourceIndex(0)
|
||||
2 >Emitted(30, 5) Source(1, 7) + SourceIndex(0)
|
||||
3 >Emitted(30, 11) Source(1, 13) + SourceIndex(0)
|
||||
4 >Emitted(30, 14) Source(1, 16) + SourceIndex(0)
|
||||
5 >Emitted(30, 16) Source(1, 18) + SourceIndex(0)
|
||||
6 >Emitted(30, 17) Source(1, 19) + SourceIndex(0)
|
||||
1 >Emitted(32, 1) Source(1, 1) + SourceIndex(0)
|
||||
2 >Emitted(32, 5) Source(1, 7) + SourceIndex(0)
|
||||
3 >Emitted(32, 11) Source(1, 13) + SourceIndex(0)
|
||||
4 >Emitted(32, 14) Source(1, 16) + SourceIndex(0)
|
||||
5 >Emitted(32, 16) Source(1, 18) + SourceIndex(0)
|
||||
6 >Emitted(32, 17) Source(1, 19) + SourceIndex(0)
|
||||
---
|
||||
>>>function libfile0Spread() {
|
||||
1->
|
||||
@@ -401,9 +405,9 @@ sourceFile:../lib/file0.ts
|
||||
>
|
||||
2 >function
|
||||
3 > libfile0Spread
|
||||
1->Emitted(31, 1) Source(2, 1) + SourceIndex(0)
|
||||
2 >Emitted(31, 10) Source(2, 10) + SourceIndex(0)
|
||||
3 >Emitted(31, 24) Source(2, 24) + SourceIndex(0)
|
||||
1->Emitted(33, 1) Source(2, 1) + SourceIndex(0)
|
||||
2 >Emitted(33, 10) Source(2, 10) + SourceIndex(0)
|
||||
3 >Emitted(33, 24) Source(2, 24) + SourceIndex(0)
|
||||
---
|
||||
>>> var b = [];
|
||||
1 >^^^^
|
||||
@@ -411,8 +415,8 @@ sourceFile:../lib/file0.ts
|
||||
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >(
|
||||
2 > ...b: number[]
|
||||
1 >Emitted(32, 5) Source(2, 25) + SourceIndex(0)
|
||||
2 >Emitted(32, 16) Source(2, 39) + SourceIndex(0)
|
||||
1 >Emitted(34, 5) Source(2, 25) + SourceIndex(0)
|
||||
2 >Emitted(34, 16) Source(2, 39) + SourceIndex(0)
|
||||
---
|
||||
>>> for (var _i = 0; _i < arguments.length; _i++) {
|
||||
1->^^^^^^^^^
|
||||
@@ -427,20 +431,20 @@ sourceFile:../lib/file0.ts
|
||||
4 > ...b: number[]
|
||||
5 >
|
||||
6 > ...b: number[]
|
||||
1->Emitted(33, 10) Source(2, 25) + SourceIndex(0)
|
||||
2 >Emitted(33, 20) Source(2, 39) + SourceIndex(0)
|
||||
3 >Emitted(33, 22) Source(2, 25) + SourceIndex(0)
|
||||
4 >Emitted(33, 43) Source(2, 39) + SourceIndex(0)
|
||||
5 >Emitted(33, 45) Source(2, 25) + SourceIndex(0)
|
||||
6 >Emitted(33, 49) Source(2, 39) + SourceIndex(0)
|
||||
1->Emitted(35, 10) Source(2, 25) + SourceIndex(0)
|
||||
2 >Emitted(35, 20) Source(2, 39) + SourceIndex(0)
|
||||
3 >Emitted(35, 22) Source(2, 25) + SourceIndex(0)
|
||||
4 >Emitted(35, 43) Source(2, 39) + SourceIndex(0)
|
||||
5 >Emitted(35, 45) Source(2, 25) + SourceIndex(0)
|
||||
6 >Emitted(35, 49) Source(2, 39) + SourceIndex(0)
|
||||
---
|
||||
>>> b[_i] = arguments[_i];
|
||||
1 >^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^
|
||||
1 >
|
||||
2 > ...b: number[]
|
||||
1 >Emitted(34, 9) Source(2, 25) + SourceIndex(0)
|
||||
2 >Emitted(34, 31) Source(2, 39) + SourceIndex(0)
|
||||
1 >Emitted(36, 9) Source(2, 25) + SourceIndex(0)
|
||||
2 >Emitted(36, 31) Source(2, 39) + SourceIndex(0)
|
||||
---
|
||||
>>> }
|
||||
>>>}
|
||||
@@ -449,8 +453,8 @@ sourceFile:../lib/file0.ts
|
||||
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >) {
|
||||
2 >}
|
||||
1 >Emitted(36, 1) Source(2, 43) + SourceIndex(0)
|
||||
2 >Emitted(36, 2) Source(2, 44) + SourceIndex(0)
|
||||
1 >Emitted(38, 1) Source(2, 43) + SourceIndex(0)
|
||||
2 >Emitted(38, 2) Source(2, 44) + SourceIndex(0)
|
||||
---
|
||||
>>>libfile0Spread.apply(void 0, __spread([10, 20, 30]));
|
||||
1->
|
||||
@@ -477,17 +481,17 @@ sourceFile:../lib/file0.ts
|
||||
9 > 30
|
||||
10> ]
|
||||
11> );
|
||||
1->Emitted(37, 1) Source(3, 1) + SourceIndex(0)
|
||||
2 >Emitted(37, 15) Source(3, 15) + SourceIndex(0)
|
||||
3 >Emitted(37, 39) Source(3, 19) + SourceIndex(0)
|
||||
4 >Emitted(37, 40) Source(3, 20) + SourceIndex(0)
|
||||
5 >Emitted(37, 42) Source(3, 22) + SourceIndex(0)
|
||||
6 >Emitted(37, 44) Source(3, 24) + SourceIndex(0)
|
||||
7 >Emitted(37, 46) Source(3, 26) + SourceIndex(0)
|
||||
8 >Emitted(37, 48) Source(3, 28) + SourceIndex(0)
|
||||
9 >Emitted(37, 50) Source(3, 30) + SourceIndex(0)
|
||||
10>Emitted(37, 51) Source(3, 31) + SourceIndex(0)
|
||||
11>Emitted(37, 54) Source(3, 33) + SourceIndex(0)
|
||||
1->Emitted(39, 1) Source(3, 1) + SourceIndex(0)
|
||||
2 >Emitted(39, 15) Source(3, 15) + SourceIndex(0)
|
||||
3 >Emitted(39, 39) Source(3, 19) + SourceIndex(0)
|
||||
4 >Emitted(39, 40) Source(3, 20) + SourceIndex(0)
|
||||
5 >Emitted(39, 42) Source(3, 22) + SourceIndex(0)
|
||||
6 >Emitted(39, 44) Source(3, 24) + SourceIndex(0)
|
||||
7 >Emitted(39, 46) Source(3, 26) + SourceIndex(0)
|
||||
8 >Emitted(39, 48) Source(3, 28) + SourceIndex(0)
|
||||
9 >Emitted(39, 50) Source(3, 30) + SourceIndex(0)
|
||||
10>Emitted(39, 51) Source(3, 31) + SourceIndex(0)
|
||||
11>Emitted(39, 54) Source(3, 33) + SourceIndex(0)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
@@ -510,12 +514,12 @@ sourceFile:../lib/file1.ts
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1->Emitted(41, 5) Source(1, 14) + SourceIndex(1)
|
||||
2 >Emitted(41, 13) Source(1, 14) + SourceIndex(1)
|
||||
3 >Emitted(41, 14) Source(1, 15) + SourceIndex(1)
|
||||
4 >Emitted(41, 17) Source(1, 18) + SourceIndex(1)
|
||||
5 >Emitted(41, 19) Source(1, 20) + SourceIndex(1)
|
||||
6 >Emitted(41, 20) Source(1, 21) + SourceIndex(1)
|
||||
1->Emitted(43, 5) Source(1, 14) + SourceIndex(1)
|
||||
2 >Emitted(43, 13) Source(1, 14) + SourceIndex(1)
|
||||
3 >Emitted(43, 14) Source(1, 15) + SourceIndex(1)
|
||||
4 >Emitted(43, 17) Source(1, 18) + SourceIndex(1)
|
||||
5 >Emitted(43, 19) Source(1, 20) + SourceIndex(1)
|
||||
6 >Emitted(43, 20) Source(1, 21) + SourceIndex(1)
|
||||
---
|
||||
>>> function forlibfile1Rest() {
|
||||
1->^^^^
|
||||
@@ -525,9 +529,9 @@ sourceFile:../lib/file1.ts
|
||||
1->
|
||||
2 > function
|
||||
3 > forlibfile1Rest
|
||||
1->Emitted(42, 5) Source(1, 21) + SourceIndex(1)
|
||||
2 >Emitted(42, 14) Source(1, 30) + SourceIndex(1)
|
||||
3 >Emitted(42, 29) Source(1, 45) + SourceIndex(1)
|
||||
1->Emitted(44, 5) Source(1, 21) + SourceIndex(1)
|
||||
2 >Emitted(44, 14) Source(1, 30) + SourceIndex(1)
|
||||
3 >Emitted(44, 29) Source(1, 45) + SourceIndex(1)
|
||||
---
|
||||
>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]);
|
||||
1->^^^^^^^^
|
||||
@@ -547,14 +551,14 @@ sourceFile:../lib/file1.ts
|
||||
6 > ,
|
||||
7 > ...rest } = { a: 10, b: 30, yy: 30 }
|
||||
8 > ;
|
||||
1->Emitted(43, 9) Source(2, 1) + SourceIndex(1)
|
||||
2 >Emitted(43, 13) Source(2, 7) + SourceIndex(1)
|
||||
3 >Emitted(43, 42) Source(2, 48) + SourceIndex(1)
|
||||
4 >Emitted(43, 44) Source(2, 9) + SourceIndex(1)
|
||||
5 >Emitted(43, 52) Source(2, 10) + SourceIndex(1)
|
||||
6 >Emitted(43, 54) Source(2, 12) + SourceIndex(1)
|
||||
7 >Emitted(43, 78) Source(2, 48) + SourceIndex(1)
|
||||
8 >Emitted(43, 79) Source(2, 49) + SourceIndex(1)
|
||||
1->Emitted(45, 9) Source(2, 1) + SourceIndex(1)
|
||||
2 >Emitted(45, 13) Source(2, 7) + SourceIndex(1)
|
||||
3 >Emitted(45, 42) Source(2, 48) + SourceIndex(1)
|
||||
4 >Emitted(45, 44) Source(2, 9) + SourceIndex(1)
|
||||
5 >Emitted(45, 52) Source(2, 10) + SourceIndex(1)
|
||||
6 >Emitted(45, 54) Source(2, 12) + SourceIndex(1)
|
||||
7 >Emitted(45, 78) Source(2, 48) + SourceIndex(1)
|
||||
8 >Emitted(45, 79) Source(2, 49) + SourceIndex(1)
|
||||
---
|
||||
>>> }
|
||||
1 >^^^^
|
||||
@@ -562,8 +566,8 @@ sourceFile:../lib/file1.ts
|
||||
1 >
|
||||
>
|
||||
2 > }
|
||||
1 >Emitted(44, 5) Source(3, 1) + SourceIndex(1)
|
||||
2 >Emitted(44, 6) Source(3, 2) + SourceIndex(1)
|
||||
1 >Emitted(46, 5) Source(3, 1) + SourceIndex(1)
|
||||
2 >Emitted(46, 6) Source(3, 2) + SourceIndex(1)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
@@ -586,12 +590,12 @@ sourceFile:../lib/file2.ts
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1 >Emitted(49, 5) Source(1, 14) + SourceIndex(2)
|
||||
2 >Emitted(49, 13) Source(1, 14) + SourceIndex(2)
|
||||
3 >Emitted(49, 14) Source(1, 15) + SourceIndex(2)
|
||||
4 >Emitted(49, 17) Source(1, 18) + SourceIndex(2)
|
||||
5 >Emitted(49, 19) Source(1, 20) + SourceIndex(2)
|
||||
6 >Emitted(49, 20) Source(1, 21) + SourceIndex(2)
|
||||
1 >Emitted(51, 5) Source(1, 14) + SourceIndex(2)
|
||||
2 >Emitted(51, 13) Source(1, 14) + SourceIndex(2)
|
||||
3 >Emitted(51, 14) Source(1, 15) + SourceIndex(2)
|
||||
4 >Emitted(51, 17) Source(1, 18) + SourceIndex(2)
|
||||
5 >Emitted(51, 19) Source(1, 20) + SourceIndex(2)
|
||||
6 >Emitted(51, 20) Source(1, 21) + SourceIndex(2)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
@@ -612,12 +616,12 @@ sourceFile:../lib/global.ts
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1 >Emitted(51, 1) Source(1, 1) + SourceIndex(3)
|
||||
2 >Emitted(51, 5) Source(1, 7) + SourceIndex(3)
|
||||
3 >Emitted(51, 16) Source(1, 18) + SourceIndex(3)
|
||||
4 >Emitted(51, 19) Source(1, 21) + SourceIndex(3)
|
||||
5 >Emitted(51, 21) Source(1, 23) + SourceIndex(3)
|
||||
6 >Emitted(51, 22) Source(1, 24) + SourceIndex(3)
|
||||
1 >Emitted(53, 1) Source(1, 1) + SourceIndex(3)
|
||||
2 >Emitted(53, 5) Source(1, 7) + SourceIndex(3)
|
||||
3 >Emitted(53, 16) Source(1, 18) + SourceIndex(3)
|
||||
4 >Emitted(53, 19) Source(1, 21) + SourceIndex(3)
|
||||
5 >Emitted(53, 21) Source(1, 23) + SourceIndex(3)
|
||||
6 >Emitted(53, 22) Source(1, 24) + SourceIndex(3)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
@@ -640,12 +644,12 @@ sourceFile:file3.ts
|
||||
4 > =
|
||||
5 > 30
|
||||
6 > ;
|
||||
1->Emitted(55, 5) Source(1, 14) + SourceIndex(4)
|
||||
2 >Emitted(55, 13) Source(1, 14) + SourceIndex(4)
|
||||
3 >Emitted(55, 14) Source(1, 15) + SourceIndex(4)
|
||||
4 >Emitted(55, 17) Source(1, 18) + SourceIndex(4)
|
||||
5 >Emitted(55, 19) Source(1, 20) + SourceIndex(4)
|
||||
6 >Emitted(55, 20) Source(1, 21) + SourceIndex(4)
|
||||
1->Emitted(57, 5) Source(1, 14) + SourceIndex(4)
|
||||
2 >Emitted(57, 13) Source(1, 14) + SourceIndex(4)
|
||||
3 >Emitted(57, 14) Source(1, 15) + SourceIndex(4)
|
||||
4 >Emitted(57, 17) Source(1, 18) + SourceIndex(4)
|
||||
5 >Emitted(57, 19) Source(1, 20) + SourceIndex(4)
|
||||
6 >Emitted(57, 20) Source(1, 21) + SourceIndex(4)
|
||||
---
|
||||
>>> function forappfile3Rest() {
|
||||
1->^^^^
|
||||
@@ -656,9 +660,9 @@ sourceFile:file3.ts
|
||||
>import { x } from "file1";
|
||||
2 > function
|
||||
3 > forappfile3Rest
|
||||
1->Emitted(56, 5) Source(2, 27) + SourceIndex(4)
|
||||
2 >Emitted(56, 14) Source(2, 36) + SourceIndex(4)
|
||||
3 >Emitted(56, 29) Source(2, 51) + SourceIndex(4)
|
||||
1->Emitted(58, 5) Source(2, 27) + SourceIndex(4)
|
||||
2 >Emitted(58, 14) Source(2, 36) + SourceIndex(4)
|
||||
3 >Emitted(58, 29) Source(2, 51) + SourceIndex(4)
|
||||
---
|
||||
>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]);
|
||||
1->^^^^^^^^
|
||||
@@ -678,14 +682,14 @@ sourceFile:file3.ts
|
||||
6 > ,
|
||||
7 > ...rest } = { a: 10, b: 30, yy: 30 }
|
||||
8 > ;
|
||||
1->Emitted(57, 9) Source(3, 1) + SourceIndex(4)
|
||||
2 >Emitted(57, 13) Source(3, 7) + SourceIndex(4)
|
||||
3 >Emitted(57, 42) Source(3, 48) + SourceIndex(4)
|
||||
4 >Emitted(57, 44) Source(3, 9) + SourceIndex(4)
|
||||
5 >Emitted(57, 52) Source(3, 10) + SourceIndex(4)
|
||||
6 >Emitted(57, 54) Source(3, 12) + SourceIndex(4)
|
||||
7 >Emitted(57, 78) Source(3, 48) + SourceIndex(4)
|
||||
8 >Emitted(57, 79) Source(3, 49) + SourceIndex(4)
|
||||
1->Emitted(59, 9) Source(3, 1) + SourceIndex(4)
|
||||
2 >Emitted(59, 13) Source(3, 7) + SourceIndex(4)
|
||||
3 >Emitted(59, 42) Source(3, 48) + SourceIndex(4)
|
||||
4 >Emitted(59, 44) Source(3, 9) + SourceIndex(4)
|
||||
5 >Emitted(59, 52) Source(3, 10) + SourceIndex(4)
|
||||
6 >Emitted(59, 54) Source(3, 12) + SourceIndex(4)
|
||||
7 >Emitted(59, 78) Source(3, 48) + SourceIndex(4)
|
||||
8 >Emitted(59, 79) Source(3, 49) + SourceIndex(4)
|
||||
---
|
||||
>>> }
|
||||
1 >^^^^
|
||||
@@ -693,8 +697,8 @@ sourceFile:file3.ts
|
||||
1 >
|
||||
>
|
||||
2 > }
|
||||
1 >Emitted(58, 5) Source(4, 1) + SourceIndex(4)
|
||||
2 >Emitted(58, 6) Source(4, 2) + SourceIndex(4)
|
||||
1 >Emitted(60, 5) Source(4, 1) + SourceIndex(4)
|
||||
2 >Emitted(60, 6) Source(4, 2) + SourceIndex(4)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/app/module.js
|
||||
@@ -715,12 +719,12 @@ sourceFile:file4.ts
|
||||
4 > =
|
||||
5 > 30
|
||||
6 > ;
|
||||
1 >Emitted(60, 1) Source(1, 1) + SourceIndex(5)
|
||||
2 >Emitted(60, 5) Source(1, 7) + SourceIndex(5)
|
||||
3 >Emitted(60, 10) Source(1, 12) + SourceIndex(5)
|
||||
4 >Emitted(60, 13) Source(1, 15) + SourceIndex(5)
|
||||
5 >Emitted(60, 15) Source(1, 17) + SourceIndex(5)
|
||||
6 >Emitted(60, 16) Source(1, 18) + SourceIndex(5)
|
||||
1 >Emitted(62, 1) Source(1, 1) + SourceIndex(5)
|
||||
2 >Emitted(62, 5) Source(1, 7) + SourceIndex(5)
|
||||
3 >Emitted(62, 10) Source(1, 12) + SourceIndex(5)
|
||||
4 >Emitted(62, 13) Source(1, 15) + SourceIndex(5)
|
||||
5 >Emitted(62, 15) Source(1, 17) + SourceIndex(5)
|
||||
6 >Emitted(62, 16) Source(1, 18) + SourceIndex(5)
|
||||
---
|
||||
>>>function appfile4Spread() {
|
||||
1->
|
||||
@@ -730,9 +734,9 @@ sourceFile:file4.ts
|
||||
>
|
||||
2 >function
|
||||
3 > appfile4Spread
|
||||
1->Emitted(61, 1) Source(2, 1) + SourceIndex(5)
|
||||
2 >Emitted(61, 10) Source(2, 10) + SourceIndex(5)
|
||||
3 >Emitted(61, 24) Source(2, 24) + SourceIndex(5)
|
||||
1->Emitted(63, 1) Source(2, 1) + SourceIndex(5)
|
||||
2 >Emitted(63, 10) Source(2, 10) + SourceIndex(5)
|
||||
3 >Emitted(63, 24) Source(2, 24) + SourceIndex(5)
|
||||
---
|
||||
>>> var b = [];
|
||||
1 >^^^^
|
||||
@@ -740,8 +744,8 @@ sourceFile:file4.ts
|
||||
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >(
|
||||
2 > ...b: number[]
|
||||
1 >Emitted(62, 5) Source(2, 25) + SourceIndex(5)
|
||||
2 >Emitted(62, 16) Source(2, 39) + SourceIndex(5)
|
||||
1 >Emitted(64, 5) Source(2, 25) + SourceIndex(5)
|
||||
2 >Emitted(64, 16) Source(2, 39) + SourceIndex(5)
|
||||
---
|
||||
>>> for (var _i = 0; _i < arguments.length; _i++) {
|
||||
1->^^^^^^^^^
|
||||
@@ -756,20 +760,20 @@ sourceFile:file4.ts
|
||||
4 > ...b: number[]
|
||||
5 >
|
||||
6 > ...b: number[]
|
||||
1->Emitted(63, 10) Source(2, 25) + SourceIndex(5)
|
||||
2 >Emitted(63, 20) Source(2, 39) + SourceIndex(5)
|
||||
3 >Emitted(63, 22) Source(2, 25) + SourceIndex(5)
|
||||
4 >Emitted(63, 43) Source(2, 39) + SourceIndex(5)
|
||||
5 >Emitted(63, 45) Source(2, 25) + SourceIndex(5)
|
||||
6 >Emitted(63, 49) Source(2, 39) + SourceIndex(5)
|
||||
1->Emitted(65, 10) Source(2, 25) + SourceIndex(5)
|
||||
2 >Emitted(65, 20) Source(2, 39) + SourceIndex(5)
|
||||
3 >Emitted(65, 22) Source(2, 25) + SourceIndex(5)
|
||||
4 >Emitted(65, 43) Source(2, 39) + SourceIndex(5)
|
||||
5 >Emitted(65, 45) Source(2, 25) + SourceIndex(5)
|
||||
6 >Emitted(65, 49) Source(2, 39) + SourceIndex(5)
|
||||
---
|
||||
>>> b[_i] = arguments[_i];
|
||||
1 >^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^
|
||||
1 >
|
||||
2 > ...b: number[]
|
||||
1 >Emitted(64, 9) Source(2, 25) + SourceIndex(5)
|
||||
2 >Emitted(64, 31) Source(2, 39) + SourceIndex(5)
|
||||
1 >Emitted(66, 9) Source(2, 25) + SourceIndex(5)
|
||||
2 >Emitted(66, 31) Source(2, 39) + SourceIndex(5)
|
||||
---
|
||||
>>> }
|
||||
>>>}
|
||||
@@ -778,8 +782,8 @@ sourceFile:file4.ts
|
||||
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >) {
|
||||
2 >}
|
||||
1 >Emitted(66, 1) Source(2, 43) + SourceIndex(5)
|
||||
2 >Emitted(66, 2) Source(2, 44) + SourceIndex(5)
|
||||
1 >Emitted(68, 1) Source(2, 43) + SourceIndex(5)
|
||||
2 >Emitted(68, 2) Source(2, 44) + SourceIndex(5)
|
||||
---
|
||||
>>>appfile4Spread.apply(void 0, __spread([10, 20, 30]));
|
||||
1->
|
||||
@@ -805,17 +809,17 @@ sourceFile:file4.ts
|
||||
9 > 30
|
||||
10> ]
|
||||
11> );
|
||||
1->Emitted(67, 1) Source(3, 1) + SourceIndex(5)
|
||||
2 >Emitted(67, 15) Source(3, 15) + SourceIndex(5)
|
||||
3 >Emitted(67, 39) Source(3, 19) + SourceIndex(5)
|
||||
4 >Emitted(67, 40) Source(3, 20) + SourceIndex(5)
|
||||
5 >Emitted(67, 42) Source(3, 22) + SourceIndex(5)
|
||||
6 >Emitted(67, 44) Source(3, 24) + SourceIndex(5)
|
||||
7 >Emitted(67, 46) Source(3, 26) + SourceIndex(5)
|
||||
8 >Emitted(67, 48) Source(3, 28) + SourceIndex(5)
|
||||
9 >Emitted(67, 50) Source(3, 30) + SourceIndex(5)
|
||||
10>Emitted(67, 51) Source(3, 31) + SourceIndex(5)
|
||||
11>Emitted(67, 54) Source(3, 33) + SourceIndex(5)
|
||||
1->Emitted(69, 1) Source(3, 1) + SourceIndex(5)
|
||||
2 >Emitted(69, 15) Source(3, 15) + SourceIndex(5)
|
||||
3 >Emitted(69, 39) Source(3, 19) + SourceIndex(5)
|
||||
4 >Emitted(69, 40) Source(3, 20) + SourceIndex(5)
|
||||
5 >Emitted(69, 42) Source(3, 22) + SourceIndex(5)
|
||||
6 >Emitted(69, 44) Source(3, 24) + SourceIndex(5)
|
||||
7 >Emitted(69, 46) Source(3, 26) + SourceIndex(5)
|
||||
8 >Emitted(69, 48) Source(3, 28) + SourceIndex(5)
|
||||
9 >Emitted(69, 50) Source(3, 30) + SourceIndex(5)
|
||||
10>Emitted(69, 51) Source(3, 31) + SourceIndex(5)
|
||||
11>Emitted(69, 54) Source(3, 33) + SourceIndex(5)
|
||||
---
|
||||
>>>//# sourceMappingURL=module.js.map
|
||||
|
||||
@@ -843,26 +847,26 @@ sourceFile:file4.ts
|
||||
},
|
||||
{
|
||||
"pos": 678,
|
||||
"end": 1093,
|
||||
"end": 1178,
|
||||
"kind": "emitHelpers",
|
||||
"data": "typescript:rest"
|
||||
},
|
||||
{
|
||||
"pos": 1095,
|
||||
"end": 1821,
|
||||
"pos": 1180,
|
||||
"end": 1906,
|
||||
"kind": "prepend",
|
||||
"data": "/src/lib/module.js",
|
||||
"texts": [
|
||||
{
|
||||
"pos": 1095,
|
||||
"end": 1821,
|
||||
"pos": 1180,
|
||||
"end": 1906,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pos": 1821,
|
||||
"end": 2339,
|
||||
"pos": 1906,
|
||||
"end": 2424,
|
||||
"kind": "text"
|
||||
}
|
||||
],
|
||||
@@ -928,20 +932,22 @@ var __spread = (this && this.__spread) || function () {
|
||||
return ar;
|
||||
};
|
||||
----------------------------------------------------------------------
|
||||
emitHelpers: (678-1093):: typescript:rest
|
||||
emitHelpers: (678-1178):: typescript:rest
|
||||
var __rest = (this && this.__rest) || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
----------------------------------------------------------------------
|
||||
prepend: (1095-1821):: /src/lib/module.js texts:: 1
|
||||
prepend: (1180-1906):: /src/lib/module.js texts:: 1
|
||||
>>--------------------------------------------------------------------
|
||||
text: (1095-1821)
|
||||
text: (1180-1906)
|
||||
var myGlob = 20;
|
||||
function libfile0Spread() {
|
||||
var b = [];
|
||||
@@ -966,7 +972,7 @@ define("file2", ["require", "exports"], function (require, exports) {
|
||||
var globalConst = 10;
|
||||
|
||||
----------------------------------------------------------------------
|
||||
text: (1821-2339)
|
||||
text: (1906-2424)
|
||||
define("file3", ["require", "exports"], function (require, exports) {
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
@@ -1227,8 +1233,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
var myGlob = 20;
|
||||
@@ -1256,7 +1264,7 @@ var globalConst = 10;
|
||||
//# sourceMappingURL=module.js.map
|
||||
|
||||
//// [/src/lib/module.js.map]
|
||||
{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;;;;;ICFY,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"}
|
||||
{"version":3,"file":"module.js","sourceRoot":"","sources":["file0.ts","file1.ts","file2.ts","global.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAM,MAAM,GAAG,EAAE,CAAC;AAClB,SAAS,cAAc;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AAC3C,cAAc,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;;;;ICFnB,QAAA,CAAC,GAAG,EAAE,CAAC;IAAA,SAAS,eAAe;QAC5C,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;IAChD,CAAC;;;;;ICFY,QAAA,CAAC,GAAG,EAAE,CAAC;;ACApB,IAAM,WAAW,GAAG,EAAE,CAAC"}
|
||||
|
||||
//// [/src/lib/module.js.map.baseline.txt]
|
||||
===================================================================
|
||||
@@ -1294,8 +1302,10 @@ sourceFile:file0.ts
|
||||
>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
>>> t[p] = s[p];
|
||||
>>> if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
>>> t[p[i]] = s[p[i]];
|
||||
>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
>>> t[p[i]] = s[p[i]];
|
||||
>>> }
|
||||
>>> return t;
|
||||
>>>};
|
||||
>>>var myGlob = 20;
|
||||
@@ -1312,12 +1322,12 @@ sourceFile:file0.ts
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1 >Emitted(30, 1) Source(1, 1) + SourceIndex(0)
|
||||
2 >Emitted(30, 5) Source(1, 7) + SourceIndex(0)
|
||||
3 >Emitted(30, 11) Source(1, 13) + SourceIndex(0)
|
||||
4 >Emitted(30, 14) Source(1, 16) + SourceIndex(0)
|
||||
5 >Emitted(30, 16) Source(1, 18) + SourceIndex(0)
|
||||
6 >Emitted(30, 17) Source(1, 19) + SourceIndex(0)
|
||||
1 >Emitted(32, 1) Source(1, 1) + SourceIndex(0)
|
||||
2 >Emitted(32, 5) Source(1, 7) + SourceIndex(0)
|
||||
3 >Emitted(32, 11) Source(1, 13) + SourceIndex(0)
|
||||
4 >Emitted(32, 14) Source(1, 16) + SourceIndex(0)
|
||||
5 >Emitted(32, 16) Source(1, 18) + SourceIndex(0)
|
||||
6 >Emitted(32, 17) Source(1, 19) + SourceIndex(0)
|
||||
---
|
||||
>>>function libfile0Spread() {
|
||||
1->
|
||||
@@ -1327,9 +1337,9 @@ sourceFile:file0.ts
|
||||
>
|
||||
2 >function
|
||||
3 > libfile0Spread
|
||||
1->Emitted(31, 1) Source(2, 1) + SourceIndex(0)
|
||||
2 >Emitted(31, 10) Source(2, 10) + SourceIndex(0)
|
||||
3 >Emitted(31, 24) Source(2, 24) + SourceIndex(0)
|
||||
1->Emitted(33, 1) Source(2, 1) + SourceIndex(0)
|
||||
2 >Emitted(33, 10) Source(2, 10) + SourceIndex(0)
|
||||
3 >Emitted(33, 24) Source(2, 24) + SourceIndex(0)
|
||||
---
|
||||
>>> var b = [];
|
||||
1 >^^^^
|
||||
@@ -1337,8 +1347,8 @@ sourceFile:file0.ts
|
||||
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >(
|
||||
2 > ...b: number[]
|
||||
1 >Emitted(32, 5) Source(2, 25) + SourceIndex(0)
|
||||
2 >Emitted(32, 16) Source(2, 39) + SourceIndex(0)
|
||||
1 >Emitted(34, 5) Source(2, 25) + SourceIndex(0)
|
||||
2 >Emitted(34, 16) Source(2, 39) + SourceIndex(0)
|
||||
---
|
||||
>>> for (var _i = 0; _i < arguments.length; _i++) {
|
||||
1->^^^^^^^^^
|
||||
@@ -1353,20 +1363,20 @@ sourceFile:file0.ts
|
||||
4 > ...b: number[]
|
||||
5 >
|
||||
6 > ...b: number[]
|
||||
1->Emitted(33, 10) Source(2, 25) + SourceIndex(0)
|
||||
2 >Emitted(33, 20) Source(2, 39) + SourceIndex(0)
|
||||
3 >Emitted(33, 22) Source(2, 25) + SourceIndex(0)
|
||||
4 >Emitted(33, 43) Source(2, 39) + SourceIndex(0)
|
||||
5 >Emitted(33, 45) Source(2, 25) + SourceIndex(0)
|
||||
6 >Emitted(33, 49) Source(2, 39) + SourceIndex(0)
|
||||
1->Emitted(35, 10) Source(2, 25) + SourceIndex(0)
|
||||
2 >Emitted(35, 20) Source(2, 39) + SourceIndex(0)
|
||||
3 >Emitted(35, 22) Source(2, 25) + SourceIndex(0)
|
||||
4 >Emitted(35, 43) Source(2, 39) + SourceIndex(0)
|
||||
5 >Emitted(35, 45) Source(2, 25) + SourceIndex(0)
|
||||
6 >Emitted(35, 49) Source(2, 39) + SourceIndex(0)
|
||||
---
|
||||
>>> b[_i] = arguments[_i];
|
||||
1 >^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^
|
||||
1 >
|
||||
2 > ...b: number[]
|
||||
1 >Emitted(34, 9) Source(2, 25) + SourceIndex(0)
|
||||
2 >Emitted(34, 31) Source(2, 39) + SourceIndex(0)
|
||||
1 >Emitted(36, 9) Source(2, 25) + SourceIndex(0)
|
||||
2 >Emitted(36, 31) Source(2, 39) + SourceIndex(0)
|
||||
---
|
||||
>>> }
|
||||
>>>}
|
||||
@@ -1375,8 +1385,8 @@ sourceFile:file0.ts
|
||||
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >) {
|
||||
2 >}
|
||||
1 >Emitted(36, 1) Source(2, 43) + SourceIndex(0)
|
||||
2 >Emitted(36, 2) Source(2, 44) + SourceIndex(0)
|
||||
1 >Emitted(38, 1) Source(2, 43) + SourceIndex(0)
|
||||
2 >Emitted(38, 2) Source(2, 44) + SourceIndex(0)
|
||||
---
|
||||
>>>libfile0Spread.apply(void 0, __spread([10, 20, 30]));
|
||||
1->
|
||||
@@ -1403,17 +1413,17 @@ sourceFile:file0.ts
|
||||
9 > 30
|
||||
10> ]
|
||||
11> );
|
||||
1->Emitted(37, 1) Source(3, 1) + SourceIndex(0)
|
||||
2 >Emitted(37, 15) Source(3, 15) + SourceIndex(0)
|
||||
3 >Emitted(37, 39) Source(3, 19) + SourceIndex(0)
|
||||
4 >Emitted(37, 40) Source(3, 20) + SourceIndex(0)
|
||||
5 >Emitted(37, 42) Source(3, 22) + SourceIndex(0)
|
||||
6 >Emitted(37, 44) Source(3, 24) + SourceIndex(0)
|
||||
7 >Emitted(37, 46) Source(3, 26) + SourceIndex(0)
|
||||
8 >Emitted(37, 48) Source(3, 28) + SourceIndex(0)
|
||||
9 >Emitted(37, 50) Source(3, 30) + SourceIndex(0)
|
||||
10>Emitted(37, 51) Source(3, 31) + SourceIndex(0)
|
||||
11>Emitted(37, 54) Source(3, 33) + SourceIndex(0)
|
||||
1->Emitted(39, 1) Source(3, 1) + SourceIndex(0)
|
||||
2 >Emitted(39, 15) Source(3, 15) + SourceIndex(0)
|
||||
3 >Emitted(39, 39) Source(3, 19) + SourceIndex(0)
|
||||
4 >Emitted(39, 40) Source(3, 20) + SourceIndex(0)
|
||||
5 >Emitted(39, 42) Source(3, 22) + SourceIndex(0)
|
||||
6 >Emitted(39, 44) Source(3, 24) + SourceIndex(0)
|
||||
7 >Emitted(39, 46) Source(3, 26) + SourceIndex(0)
|
||||
8 >Emitted(39, 48) Source(3, 28) + SourceIndex(0)
|
||||
9 >Emitted(39, 50) Source(3, 30) + SourceIndex(0)
|
||||
10>Emitted(39, 51) Source(3, 31) + SourceIndex(0)
|
||||
11>Emitted(39, 54) Source(3, 33) + SourceIndex(0)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.js
|
||||
@@ -1436,12 +1446,12 @@ sourceFile:file1.ts
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1->Emitted(41, 5) Source(1, 14) + SourceIndex(1)
|
||||
2 >Emitted(41, 13) Source(1, 14) + SourceIndex(1)
|
||||
3 >Emitted(41, 14) Source(1, 15) + SourceIndex(1)
|
||||
4 >Emitted(41, 17) Source(1, 18) + SourceIndex(1)
|
||||
5 >Emitted(41, 19) Source(1, 20) + SourceIndex(1)
|
||||
6 >Emitted(41, 20) Source(1, 21) + SourceIndex(1)
|
||||
1->Emitted(43, 5) Source(1, 14) + SourceIndex(1)
|
||||
2 >Emitted(43, 13) Source(1, 14) + SourceIndex(1)
|
||||
3 >Emitted(43, 14) Source(1, 15) + SourceIndex(1)
|
||||
4 >Emitted(43, 17) Source(1, 18) + SourceIndex(1)
|
||||
5 >Emitted(43, 19) Source(1, 20) + SourceIndex(1)
|
||||
6 >Emitted(43, 20) Source(1, 21) + SourceIndex(1)
|
||||
---
|
||||
>>> function forlibfile1Rest() {
|
||||
1->^^^^
|
||||
@@ -1451,9 +1461,9 @@ sourceFile:file1.ts
|
||||
1->
|
||||
2 > function
|
||||
3 > forlibfile1Rest
|
||||
1->Emitted(42, 5) Source(1, 21) + SourceIndex(1)
|
||||
2 >Emitted(42, 14) Source(1, 30) + SourceIndex(1)
|
||||
3 >Emitted(42, 29) Source(1, 45) + SourceIndex(1)
|
||||
1->Emitted(44, 5) Source(1, 21) + SourceIndex(1)
|
||||
2 >Emitted(44, 14) Source(1, 30) + SourceIndex(1)
|
||||
3 >Emitted(44, 29) Source(1, 45) + SourceIndex(1)
|
||||
---
|
||||
>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]);
|
||||
1->^^^^^^^^
|
||||
@@ -1473,14 +1483,14 @@ sourceFile:file1.ts
|
||||
6 > ,
|
||||
7 > ...rest } = { a: 10, b: 30, yy: 30 }
|
||||
8 > ;
|
||||
1->Emitted(43, 9) Source(2, 1) + SourceIndex(1)
|
||||
2 >Emitted(43, 13) Source(2, 7) + SourceIndex(1)
|
||||
3 >Emitted(43, 42) Source(2, 48) + SourceIndex(1)
|
||||
4 >Emitted(43, 44) Source(2, 9) + SourceIndex(1)
|
||||
5 >Emitted(43, 52) Source(2, 10) + SourceIndex(1)
|
||||
6 >Emitted(43, 54) Source(2, 12) + SourceIndex(1)
|
||||
7 >Emitted(43, 78) Source(2, 48) + SourceIndex(1)
|
||||
8 >Emitted(43, 79) Source(2, 49) + SourceIndex(1)
|
||||
1->Emitted(45, 9) Source(2, 1) + SourceIndex(1)
|
||||
2 >Emitted(45, 13) Source(2, 7) + SourceIndex(1)
|
||||
3 >Emitted(45, 42) Source(2, 48) + SourceIndex(1)
|
||||
4 >Emitted(45, 44) Source(2, 9) + SourceIndex(1)
|
||||
5 >Emitted(45, 52) Source(2, 10) + SourceIndex(1)
|
||||
6 >Emitted(45, 54) Source(2, 12) + SourceIndex(1)
|
||||
7 >Emitted(45, 78) Source(2, 48) + SourceIndex(1)
|
||||
8 >Emitted(45, 79) Source(2, 49) + SourceIndex(1)
|
||||
---
|
||||
>>> }
|
||||
1 >^^^^
|
||||
@@ -1488,8 +1498,8 @@ sourceFile:file1.ts
|
||||
1 >
|
||||
>
|
||||
2 > }
|
||||
1 >Emitted(44, 5) Source(3, 1) + SourceIndex(1)
|
||||
2 >Emitted(44, 6) Source(3, 2) + SourceIndex(1)
|
||||
1 >Emitted(46, 5) Source(3, 1) + SourceIndex(1)
|
||||
2 >Emitted(46, 6) Source(3, 2) + SourceIndex(1)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.js
|
||||
@@ -1512,12 +1522,12 @@ sourceFile:file2.ts
|
||||
4 > =
|
||||
5 > 20
|
||||
6 > ;
|
||||
1 >Emitted(49, 5) Source(1, 14) + SourceIndex(2)
|
||||
2 >Emitted(49, 13) Source(1, 14) + SourceIndex(2)
|
||||
3 >Emitted(49, 14) Source(1, 15) + SourceIndex(2)
|
||||
4 >Emitted(49, 17) Source(1, 18) + SourceIndex(2)
|
||||
5 >Emitted(49, 19) Source(1, 20) + SourceIndex(2)
|
||||
6 >Emitted(49, 20) Source(1, 21) + SourceIndex(2)
|
||||
1 >Emitted(51, 5) Source(1, 14) + SourceIndex(2)
|
||||
2 >Emitted(51, 13) Source(1, 14) + SourceIndex(2)
|
||||
3 >Emitted(51, 14) Source(1, 15) + SourceIndex(2)
|
||||
4 >Emitted(51, 17) Source(1, 18) + SourceIndex(2)
|
||||
5 >Emitted(51, 19) Source(1, 20) + SourceIndex(2)
|
||||
6 >Emitted(51, 20) Source(1, 21) + SourceIndex(2)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/lib/module.js
|
||||
@@ -1538,12 +1548,12 @@ sourceFile:global.ts
|
||||
4 > =
|
||||
5 > 10
|
||||
6 > ;
|
||||
1 >Emitted(51, 1) Source(1, 1) + SourceIndex(3)
|
||||
2 >Emitted(51, 5) Source(1, 7) + SourceIndex(3)
|
||||
3 >Emitted(51, 16) Source(1, 18) + SourceIndex(3)
|
||||
4 >Emitted(51, 19) Source(1, 21) + SourceIndex(3)
|
||||
5 >Emitted(51, 21) Source(1, 23) + SourceIndex(3)
|
||||
6 >Emitted(51, 22) Source(1, 24) + SourceIndex(3)
|
||||
1 >Emitted(53, 1) Source(1, 1) + SourceIndex(3)
|
||||
2 >Emitted(53, 5) Source(1, 7) + SourceIndex(3)
|
||||
3 >Emitted(53, 16) Source(1, 18) + SourceIndex(3)
|
||||
4 >Emitted(53, 19) Source(1, 21) + SourceIndex(3)
|
||||
5 >Emitted(53, 21) Source(1, 23) + SourceIndex(3)
|
||||
6 >Emitted(53, 22) Source(1, 24) + SourceIndex(3)
|
||||
---
|
||||
>>>//# sourceMappingURL=module.js.map
|
||||
|
||||
@@ -1573,13 +1583,13 @@ sourceFile:global.ts
|
||||
},
|
||||
{
|
||||
"pos": 678,
|
||||
"end": 1093,
|
||||
"end": 1178,
|
||||
"kind": "emitHelpers",
|
||||
"data": "typescript:rest"
|
||||
},
|
||||
{
|
||||
"pos": 1095,
|
||||
"end": 1821,
|
||||
"pos": 1180,
|
||||
"end": 1906,
|
||||
"kind": "text"
|
||||
}
|
||||
],
|
||||
@@ -1632,18 +1642,20 @@ var __spread = (this && this.__spread) || function () {
|
||||
return ar;
|
||||
};
|
||||
----------------------------------------------------------------------
|
||||
emitHelpers: (678-1093):: typescript:rest
|
||||
emitHelpers: (678-1178):: typescript:rest
|
||||
var __rest = (this && this.__rest) || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
----------------------------------------------------------------------
|
||||
text: (1095-1821)
|
||||
text: (1180-1906)
|
||||
var myGlob = 20;
|
||||
function libfile0Spread() {
|
||||
var b = [];
|
||||
|
||||
+232
-220
@@ -168,8 +168,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
var s = "Hola, world";
|
||||
@@ -184,7 +186,7 @@ function f() {
|
||||
//# sourceMappingURL=first-output.js.map
|
||||
|
||||
//// [/src/first/bin/first-output.js.map]
|
||||
{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"}
|
||||
{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"}
|
||||
|
||||
//// [/src/first/bin/first-output.js.map.baseline.txt]
|
||||
===================================================================
|
||||
@@ -202,8 +204,10 @@ sourceFile:../first_PART1.ts
|
||||
>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
>>> t[p] = s[p];
|
||||
>>> if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
>>> t[p[i]] = s[p[i]];
|
||||
>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
>>> t[p[i]] = s[p[i]];
|
||||
>>> }
|
||||
>>> return t;
|
||||
>>>};
|
||||
>>>var s = "Hola, world";
|
||||
@@ -223,12 +227,12 @@ sourceFile:../first_PART1.ts
|
||||
4 > =
|
||||
5 > "Hola, world"
|
||||
6 > ;
|
||||
1 >Emitted(10, 1) Source(5, 1) + SourceIndex(0)
|
||||
2 >Emitted(10, 5) Source(5, 7) + SourceIndex(0)
|
||||
3 >Emitted(10, 6) Source(5, 8) + SourceIndex(0)
|
||||
4 >Emitted(10, 9) Source(5, 11) + SourceIndex(0)
|
||||
5 >Emitted(10, 22) Source(5, 24) + SourceIndex(0)
|
||||
6 >Emitted(10, 23) Source(5, 25) + SourceIndex(0)
|
||||
1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0)
|
||||
2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0)
|
||||
3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0)
|
||||
4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0)
|
||||
5 >Emitted(12, 22) Source(5, 24) + SourceIndex(0)
|
||||
6 >Emitted(12, 23) Source(5, 25) + SourceIndex(0)
|
||||
---
|
||||
>>>console.log(s);
|
||||
1 >
|
||||
@@ -254,14 +258,14 @@ sourceFile:../first_PART1.ts
|
||||
6 > s
|
||||
7 > )
|
||||
8 > ;
|
||||
1 >Emitted(11, 1) Source(11, 1) + SourceIndex(0)
|
||||
2 >Emitted(11, 8) Source(11, 8) + SourceIndex(0)
|
||||
3 >Emitted(11, 9) Source(11, 9) + SourceIndex(0)
|
||||
4 >Emitted(11, 12) Source(11, 12) + SourceIndex(0)
|
||||
5 >Emitted(11, 13) Source(11, 13) + SourceIndex(0)
|
||||
6 >Emitted(11, 14) Source(11, 14) + SourceIndex(0)
|
||||
7 >Emitted(11, 15) Source(11, 15) + SourceIndex(0)
|
||||
8 >Emitted(11, 16) Source(11, 16) + SourceIndex(0)
|
||||
1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0)
|
||||
2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0)
|
||||
3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0)
|
||||
4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0)
|
||||
5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0)
|
||||
6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0)
|
||||
7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0)
|
||||
8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0)
|
||||
---
|
||||
>>>function forfirstfirst_PART1Rest() {
|
||||
1->
|
||||
@@ -272,9 +276,9 @@ sourceFile:../first_PART1.ts
|
||||
>
|
||||
2 >function
|
||||
3 > forfirstfirst_PART1Rest
|
||||
1->Emitted(12, 1) Source(12, 1) + SourceIndex(0)
|
||||
2 >Emitted(12, 10) Source(12, 10) + SourceIndex(0)
|
||||
3 >Emitted(12, 33) Source(12, 33) + SourceIndex(0)
|
||||
1->Emitted(14, 1) Source(12, 1) + SourceIndex(0)
|
||||
2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0)
|
||||
3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0)
|
||||
---
|
||||
>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]);
|
||||
1->^^^^
|
||||
@@ -294,14 +298,14 @@ sourceFile:../first_PART1.ts
|
||||
6 > ,
|
||||
7 > ...rest } = { a: 10, b: 30, yy: 30 }
|
||||
8 > ;
|
||||
1->Emitted(13, 5) Source(13, 1) + SourceIndex(0)
|
||||
2 >Emitted(13, 9) Source(13, 7) + SourceIndex(0)
|
||||
3 >Emitted(13, 38) Source(13, 48) + SourceIndex(0)
|
||||
4 >Emitted(13, 40) Source(13, 9) + SourceIndex(0)
|
||||
5 >Emitted(13, 48) Source(13, 10) + SourceIndex(0)
|
||||
6 >Emitted(13, 50) Source(13, 12) + SourceIndex(0)
|
||||
7 >Emitted(13, 74) Source(13, 48) + SourceIndex(0)
|
||||
8 >Emitted(13, 75) Source(13, 49) + SourceIndex(0)
|
||||
1->Emitted(15, 5) Source(13, 1) + SourceIndex(0)
|
||||
2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0)
|
||||
3 >Emitted(15, 38) Source(13, 48) + SourceIndex(0)
|
||||
4 >Emitted(15, 40) Source(13, 9) + SourceIndex(0)
|
||||
5 >Emitted(15, 48) Source(13, 10) + SourceIndex(0)
|
||||
6 >Emitted(15, 50) Source(13, 12) + SourceIndex(0)
|
||||
7 >Emitted(15, 74) Source(13, 48) + SourceIndex(0)
|
||||
8 >Emitted(15, 75) Source(13, 49) + SourceIndex(0)
|
||||
---
|
||||
>>>}
|
||||
1 >
|
||||
@@ -310,8 +314,8 @@ sourceFile:../first_PART1.ts
|
||||
1 >
|
||||
>
|
||||
2 >}
|
||||
1 >Emitted(14, 1) Source(14, 1) + SourceIndex(0)
|
||||
2 >Emitted(14, 2) Source(14, 2) + SourceIndex(0)
|
||||
1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0)
|
||||
2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/first/bin/first-output.js
|
||||
@@ -336,15 +340,15 @@ sourceFile:../first_part2.ts
|
||||
7 > ()
|
||||
8 > )
|
||||
9 > ;
|
||||
1->Emitted(15, 1) Source(1, 1) + SourceIndex(1)
|
||||
2 >Emitted(15, 8) Source(1, 8) + SourceIndex(1)
|
||||
3 >Emitted(15, 9) Source(1, 9) + SourceIndex(1)
|
||||
4 >Emitted(15, 12) Source(1, 12) + SourceIndex(1)
|
||||
5 >Emitted(15, 13) Source(1, 13) + SourceIndex(1)
|
||||
6 >Emitted(15, 14) Source(1, 14) + SourceIndex(1)
|
||||
7 >Emitted(15, 16) Source(1, 16) + SourceIndex(1)
|
||||
8 >Emitted(15, 17) Source(1, 17) + SourceIndex(1)
|
||||
9 >Emitted(15, 18) Source(1, 18) + SourceIndex(1)
|
||||
1->Emitted(17, 1) Source(1, 1) + SourceIndex(1)
|
||||
2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1)
|
||||
3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1)
|
||||
4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1)
|
||||
5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1)
|
||||
6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1)
|
||||
7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1)
|
||||
8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1)
|
||||
9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/first/bin/first-output.js
|
||||
@@ -358,9 +362,9 @@ sourceFile:../first_part3.ts
|
||||
1 >
|
||||
2 >function
|
||||
3 > f
|
||||
1 >Emitted(16, 1) Source(1, 1) + SourceIndex(2)
|
||||
2 >Emitted(16, 10) Source(1, 10) + SourceIndex(2)
|
||||
3 >Emitted(16, 11) Source(1, 11) + SourceIndex(2)
|
||||
1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2)
|
||||
2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2)
|
||||
3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2)
|
||||
---
|
||||
>>> return "JS does hoists";
|
||||
1->^^^^
|
||||
@@ -372,10 +376,10 @@ sourceFile:../first_part3.ts
|
||||
2 > return
|
||||
3 > "JS does hoists"
|
||||
4 > ;
|
||||
1->Emitted(17, 5) Source(2, 5) + SourceIndex(2)
|
||||
2 >Emitted(17, 12) Source(2, 12) + SourceIndex(2)
|
||||
3 >Emitted(17, 28) Source(2, 28) + SourceIndex(2)
|
||||
4 >Emitted(17, 29) Source(2, 29) + SourceIndex(2)
|
||||
1->Emitted(19, 5) Source(2, 5) + SourceIndex(2)
|
||||
2 >Emitted(19, 12) Source(2, 12) + SourceIndex(2)
|
||||
3 >Emitted(19, 28) Source(2, 28) + SourceIndex(2)
|
||||
4 >Emitted(19, 29) Source(2, 29) + SourceIndex(2)
|
||||
---
|
||||
>>>}
|
||||
1 >
|
||||
@@ -384,8 +388,8 @@ sourceFile:../first_part3.ts
|
||||
1 >
|
||||
>
|
||||
2 >}
|
||||
1 >Emitted(18, 1) Source(3, 1) + SourceIndex(2)
|
||||
2 >Emitted(18, 2) Source(3, 2) + SourceIndex(2)
|
||||
1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2)
|
||||
2 >Emitted(20, 2) Source(3, 2) + SourceIndex(2)
|
||||
---
|
||||
>>>//# sourceMappingURL=first-output.js.map
|
||||
|
||||
@@ -402,13 +406,13 @@ sourceFile:../first_part3.ts
|
||||
"sections": [
|
||||
{
|
||||
"pos": 0,
|
||||
"end": 415,
|
||||
"end": 500,
|
||||
"kind": "emitHelpers",
|
||||
"data": "typescript:rest"
|
||||
},
|
||||
{
|
||||
"pos": 417,
|
||||
"end": 643,
|
||||
"pos": 502,
|
||||
"end": 728,
|
||||
"kind": "text"
|
||||
}
|
||||
],
|
||||
@@ -435,18 +439,20 @@ sourceFile:../first_part3.ts
|
||||
======================================================================
|
||||
File:: /src/first/bin/first-output.js
|
||||
----------------------------------------------------------------------
|
||||
emitHelpers: (0-415):: typescript:rest
|
||||
emitHelpers: (0-500):: typescript:rest
|
||||
var __rest = (this && this.__rest) || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
----------------------------------------------------------------------
|
||||
text: (417-643)
|
||||
text: (502-728)
|
||||
var s = "Hola, world";
|
||||
console.log(s);
|
||||
function forfirstfirst_PART1Rest() {
|
||||
@@ -817,8 +823,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
var s = "Hola, world";
|
||||
@@ -856,7 +864,7 @@ function forthirdthird_part1Rest() {
|
||||
//# sourceMappingURL=third-output.js.map
|
||||
|
||||
//// [/src/third/thirdjs/output/third-output.js.map]
|
||||
{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC"}
|
||||
{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,aAAa,CAAC;AAMxB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC"}
|
||||
|
||||
//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt]
|
||||
===================================================================
|
||||
@@ -874,8 +882,10 @@ sourceFile:../../../first/first_PART1.ts
|
||||
>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
>>> t[p] = s[p];
|
||||
>>> if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
>>> t[p[i]] = s[p[i]];
|
||||
>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
>>> t[p[i]] = s[p[i]];
|
||||
>>> }
|
||||
>>> return t;
|
||||
>>>};
|
||||
>>>var s = "Hola, world";
|
||||
@@ -895,12 +905,12 @@ sourceFile:../../../first/first_PART1.ts
|
||||
4 > =
|
||||
5 > "Hola, world"
|
||||
6 > ;
|
||||
1 >Emitted(10, 1) Source(5, 1) + SourceIndex(0)
|
||||
2 >Emitted(10, 5) Source(5, 7) + SourceIndex(0)
|
||||
3 >Emitted(10, 6) Source(5, 8) + SourceIndex(0)
|
||||
4 >Emitted(10, 9) Source(5, 11) + SourceIndex(0)
|
||||
5 >Emitted(10, 22) Source(5, 24) + SourceIndex(0)
|
||||
6 >Emitted(10, 23) Source(5, 25) + SourceIndex(0)
|
||||
1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0)
|
||||
2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0)
|
||||
3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0)
|
||||
4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0)
|
||||
5 >Emitted(12, 22) Source(5, 24) + SourceIndex(0)
|
||||
6 >Emitted(12, 23) Source(5, 25) + SourceIndex(0)
|
||||
---
|
||||
>>>console.log(s);
|
||||
1 >
|
||||
@@ -926,14 +936,14 @@ sourceFile:../../../first/first_PART1.ts
|
||||
6 > s
|
||||
7 > )
|
||||
8 > ;
|
||||
1 >Emitted(11, 1) Source(11, 1) + SourceIndex(0)
|
||||
2 >Emitted(11, 8) Source(11, 8) + SourceIndex(0)
|
||||
3 >Emitted(11, 9) Source(11, 9) + SourceIndex(0)
|
||||
4 >Emitted(11, 12) Source(11, 12) + SourceIndex(0)
|
||||
5 >Emitted(11, 13) Source(11, 13) + SourceIndex(0)
|
||||
6 >Emitted(11, 14) Source(11, 14) + SourceIndex(0)
|
||||
7 >Emitted(11, 15) Source(11, 15) + SourceIndex(0)
|
||||
8 >Emitted(11, 16) Source(11, 16) + SourceIndex(0)
|
||||
1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0)
|
||||
2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0)
|
||||
3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0)
|
||||
4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0)
|
||||
5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0)
|
||||
6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0)
|
||||
7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0)
|
||||
8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0)
|
||||
---
|
||||
>>>function forfirstfirst_PART1Rest() {
|
||||
1->
|
||||
@@ -944,9 +954,9 @@ sourceFile:../../../first/first_PART1.ts
|
||||
>
|
||||
2 >function
|
||||
3 > forfirstfirst_PART1Rest
|
||||
1->Emitted(12, 1) Source(12, 1) + SourceIndex(0)
|
||||
2 >Emitted(12, 10) Source(12, 10) + SourceIndex(0)
|
||||
3 >Emitted(12, 33) Source(12, 33) + SourceIndex(0)
|
||||
1->Emitted(14, 1) Source(12, 1) + SourceIndex(0)
|
||||
2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0)
|
||||
3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0)
|
||||
---
|
||||
>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]);
|
||||
1->^^^^
|
||||
@@ -966,14 +976,14 @@ sourceFile:../../../first/first_PART1.ts
|
||||
6 > ,
|
||||
7 > ...rest } = { a: 10, b: 30, yy: 30 }
|
||||
8 > ;
|
||||
1->Emitted(13, 5) Source(13, 1) + SourceIndex(0)
|
||||
2 >Emitted(13, 9) Source(13, 7) + SourceIndex(0)
|
||||
3 >Emitted(13, 38) Source(13, 48) + SourceIndex(0)
|
||||
4 >Emitted(13, 40) Source(13, 9) + SourceIndex(0)
|
||||
5 >Emitted(13, 48) Source(13, 10) + SourceIndex(0)
|
||||
6 >Emitted(13, 50) Source(13, 12) + SourceIndex(0)
|
||||
7 >Emitted(13, 74) Source(13, 48) + SourceIndex(0)
|
||||
8 >Emitted(13, 75) Source(13, 49) + SourceIndex(0)
|
||||
1->Emitted(15, 5) Source(13, 1) + SourceIndex(0)
|
||||
2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0)
|
||||
3 >Emitted(15, 38) Source(13, 48) + SourceIndex(0)
|
||||
4 >Emitted(15, 40) Source(13, 9) + SourceIndex(0)
|
||||
5 >Emitted(15, 48) Source(13, 10) + SourceIndex(0)
|
||||
6 >Emitted(15, 50) Source(13, 12) + SourceIndex(0)
|
||||
7 >Emitted(15, 74) Source(13, 48) + SourceIndex(0)
|
||||
8 >Emitted(15, 75) Source(13, 49) + SourceIndex(0)
|
||||
---
|
||||
>>>}
|
||||
1 >
|
||||
@@ -982,8 +992,8 @@ sourceFile:../../../first/first_PART1.ts
|
||||
1 >
|
||||
>
|
||||
2 >}
|
||||
1 >Emitted(14, 1) Source(14, 1) + SourceIndex(0)
|
||||
2 >Emitted(14, 2) Source(14, 2) + SourceIndex(0)
|
||||
1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0)
|
||||
2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/third/thirdjs/output/third-output.js
|
||||
@@ -1008,15 +1018,15 @@ sourceFile:../../../first/first_part2.ts
|
||||
7 > ()
|
||||
8 > )
|
||||
9 > ;
|
||||
1->Emitted(15, 1) Source(1, 1) + SourceIndex(1)
|
||||
2 >Emitted(15, 8) Source(1, 8) + SourceIndex(1)
|
||||
3 >Emitted(15, 9) Source(1, 9) + SourceIndex(1)
|
||||
4 >Emitted(15, 12) Source(1, 12) + SourceIndex(1)
|
||||
5 >Emitted(15, 13) Source(1, 13) + SourceIndex(1)
|
||||
6 >Emitted(15, 14) Source(1, 14) + SourceIndex(1)
|
||||
7 >Emitted(15, 16) Source(1, 16) + SourceIndex(1)
|
||||
8 >Emitted(15, 17) Source(1, 17) + SourceIndex(1)
|
||||
9 >Emitted(15, 18) Source(1, 18) + SourceIndex(1)
|
||||
1->Emitted(17, 1) Source(1, 1) + SourceIndex(1)
|
||||
2 >Emitted(17, 8) Source(1, 8) + SourceIndex(1)
|
||||
3 >Emitted(17, 9) Source(1, 9) + SourceIndex(1)
|
||||
4 >Emitted(17, 12) Source(1, 12) + SourceIndex(1)
|
||||
5 >Emitted(17, 13) Source(1, 13) + SourceIndex(1)
|
||||
6 >Emitted(17, 14) Source(1, 14) + SourceIndex(1)
|
||||
7 >Emitted(17, 16) Source(1, 16) + SourceIndex(1)
|
||||
8 >Emitted(17, 17) Source(1, 17) + SourceIndex(1)
|
||||
9 >Emitted(17, 18) Source(1, 18) + SourceIndex(1)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/third/thirdjs/output/third-output.js
|
||||
@@ -1030,9 +1040,9 @@ sourceFile:../../../first/first_part3.ts
|
||||
1 >
|
||||
2 >function
|
||||
3 > f
|
||||
1 >Emitted(16, 1) Source(1, 1) + SourceIndex(2)
|
||||
2 >Emitted(16, 10) Source(1, 10) + SourceIndex(2)
|
||||
3 >Emitted(16, 11) Source(1, 11) + SourceIndex(2)
|
||||
1 >Emitted(18, 1) Source(1, 1) + SourceIndex(2)
|
||||
2 >Emitted(18, 10) Source(1, 10) + SourceIndex(2)
|
||||
3 >Emitted(18, 11) Source(1, 11) + SourceIndex(2)
|
||||
---
|
||||
>>> return "JS does hoists";
|
||||
1->^^^^
|
||||
@@ -1044,10 +1054,10 @@ sourceFile:../../../first/first_part3.ts
|
||||
2 > return
|
||||
3 > "JS does hoists"
|
||||
4 > ;
|
||||
1->Emitted(17, 5) Source(2, 5) + SourceIndex(2)
|
||||
2 >Emitted(17, 12) Source(2, 12) + SourceIndex(2)
|
||||
3 >Emitted(17, 28) Source(2, 28) + SourceIndex(2)
|
||||
4 >Emitted(17, 29) Source(2, 29) + SourceIndex(2)
|
||||
1->Emitted(19, 5) Source(2, 5) + SourceIndex(2)
|
||||
2 >Emitted(19, 12) Source(2, 12) + SourceIndex(2)
|
||||
3 >Emitted(19, 28) Source(2, 28) + SourceIndex(2)
|
||||
4 >Emitted(19, 29) Source(2, 29) + SourceIndex(2)
|
||||
---
|
||||
>>>}
|
||||
1 >
|
||||
@@ -1056,8 +1066,8 @@ sourceFile:../../../first/first_part3.ts
|
||||
1 >
|
||||
>
|
||||
2 >}
|
||||
1 >Emitted(18, 1) Source(3, 1) + SourceIndex(2)
|
||||
2 >Emitted(18, 2) Source(3, 2) + SourceIndex(2)
|
||||
1 >Emitted(20, 1) Source(3, 1) + SourceIndex(2)
|
||||
2 >Emitted(20, 2) Source(3, 2) + SourceIndex(2)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/third/thirdjs/output/third-output.js
|
||||
@@ -1083,10 +1093,10 @@ sourceFile:../../../second/second_part1.ts
|
||||
>
|
||||
> f();
|
||||
> }
|
||||
1->Emitted(19, 1) Source(5, 1) + SourceIndex(3)
|
||||
2 >Emitted(19, 5) Source(5, 11) + SourceIndex(3)
|
||||
3 >Emitted(19, 6) Source(5, 12) + SourceIndex(3)
|
||||
4 >Emitted(19, 7) Source(11, 2) + SourceIndex(3)
|
||||
1->Emitted(21, 1) Source(5, 1) + SourceIndex(3)
|
||||
2 >Emitted(21, 5) Source(5, 11) + SourceIndex(3)
|
||||
3 >Emitted(21, 6) Source(5, 12) + SourceIndex(3)
|
||||
4 >Emitted(21, 7) Source(11, 2) + SourceIndex(3)
|
||||
---
|
||||
>>>(function (N) {
|
||||
1->
|
||||
@@ -1096,9 +1106,9 @@ sourceFile:../../../second/second_part1.ts
|
||||
1->
|
||||
2 >namespace
|
||||
3 > N
|
||||
1->Emitted(20, 1) Source(5, 1) + SourceIndex(3)
|
||||
2 >Emitted(20, 12) Source(5, 11) + SourceIndex(3)
|
||||
3 >Emitted(20, 13) Source(5, 12) + SourceIndex(3)
|
||||
1->Emitted(22, 1) Source(5, 1) + SourceIndex(3)
|
||||
2 >Emitted(22, 12) Source(5, 11) + SourceIndex(3)
|
||||
3 >Emitted(22, 13) Source(5, 12) + SourceIndex(3)
|
||||
---
|
||||
>>> function f() {
|
||||
1->^^^^
|
||||
@@ -1109,9 +1119,9 @@ sourceFile:../../../second/second_part1.ts
|
||||
>
|
||||
2 > function
|
||||
3 > f
|
||||
1->Emitted(21, 5) Source(6, 5) + SourceIndex(3)
|
||||
2 >Emitted(21, 14) Source(6, 14) + SourceIndex(3)
|
||||
3 >Emitted(21, 15) Source(6, 15) + SourceIndex(3)
|
||||
1->Emitted(23, 5) Source(6, 5) + SourceIndex(3)
|
||||
2 >Emitted(23, 14) Source(6, 14) + SourceIndex(3)
|
||||
3 >Emitted(23, 15) Source(6, 15) + SourceIndex(3)
|
||||
---
|
||||
>>> console.log('testing');
|
||||
1->^^^^^^^^
|
||||
@@ -1131,14 +1141,14 @@ sourceFile:../../../second/second_part1.ts
|
||||
6 > 'testing'
|
||||
7 > )
|
||||
8 > ;
|
||||
1->Emitted(22, 9) Source(7, 9) + SourceIndex(3)
|
||||
2 >Emitted(22, 16) Source(7, 16) + SourceIndex(3)
|
||||
3 >Emitted(22, 17) Source(7, 17) + SourceIndex(3)
|
||||
4 >Emitted(22, 20) Source(7, 20) + SourceIndex(3)
|
||||
5 >Emitted(22, 21) Source(7, 21) + SourceIndex(3)
|
||||
6 >Emitted(22, 30) Source(7, 30) + SourceIndex(3)
|
||||
7 >Emitted(22, 31) Source(7, 31) + SourceIndex(3)
|
||||
8 >Emitted(22, 32) Source(7, 32) + SourceIndex(3)
|
||||
1->Emitted(24, 9) Source(7, 9) + SourceIndex(3)
|
||||
2 >Emitted(24, 16) Source(7, 16) + SourceIndex(3)
|
||||
3 >Emitted(24, 17) Source(7, 17) + SourceIndex(3)
|
||||
4 >Emitted(24, 20) Source(7, 20) + SourceIndex(3)
|
||||
5 >Emitted(24, 21) Source(7, 21) + SourceIndex(3)
|
||||
6 >Emitted(24, 30) Source(7, 30) + SourceIndex(3)
|
||||
7 >Emitted(24, 31) Source(7, 31) + SourceIndex(3)
|
||||
8 >Emitted(24, 32) Source(7, 32) + SourceIndex(3)
|
||||
---
|
||||
>>> }
|
||||
1 >^^^^
|
||||
@@ -1147,8 +1157,8 @@ sourceFile:../../../second/second_part1.ts
|
||||
1 >
|
||||
>
|
||||
2 > }
|
||||
1 >Emitted(23, 5) Source(8, 5) + SourceIndex(3)
|
||||
2 >Emitted(23, 6) Source(8, 6) + SourceIndex(3)
|
||||
1 >Emitted(25, 5) Source(8, 5) + SourceIndex(3)
|
||||
2 >Emitted(25, 6) Source(8, 6) + SourceIndex(3)
|
||||
---
|
||||
>>> f();
|
||||
1->^^^^
|
||||
@@ -1162,10 +1172,10 @@ sourceFile:../../../second/second_part1.ts
|
||||
2 > f
|
||||
3 > ()
|
||||
4 > ;
|
||||
1->Emitted(24, 5) Source(10, 5) + SourceIndex(3)
|
||||
2 >Emitted(24, 6) Source(10, 6) + SourceIndex(3)
|
||||
3 >Emitted(24, 8) Source(10, 8) + SourceIndex(3)
|
||||
4 >Emitted(24, 9) Source(10, 9) + SourceIndex(3)
|
||||
1->Emitted(26, 5) Source(10, 5) + SourceIndex(3)
|
||||
2 >Emitted(26, 6) Source(10, 6) + SourceIndex(3)
|
||||
3 >Emitted(26, 8) Source(10, 8) + SourceIndex(3)
|
||||
4 >Emitted(26, 9) Source(10, 9) + SourceIndex(3)
|
||||
---
|
||||
>>>})(N || (N = {}));
|
||||
1->
|
||||
@@ -1190,13 +1200,13 @@ sourceFile:../../../second/second_part1.ts
|
||||
>
|
||||
> f();
|
||||
> }
|
||||
1->Emitted(25, 1) Source(11, 1) + SourceIndex(3)
|
||||
2 >Emitted(25, 2) Source(11, 2) + SourceIndex(3)
|
||||
3 >Emitted(25, 4) Source(5, 11) + SourceIndex(3)
|
||||
4 >Emitted(25, 5) Source(5, 12) + SourceIndex(3)
|
||||
5 >Emitted(25, 10) Source(5, 11) + SourceIndex(3)
|
||||
6 >Emitted(25, 11) Source(5, 12) + SourceIndex(3)
|
||||
7 >Emitted(25, 19) Source(11, 2) + SourceIndex(3)
|
||||
1->Emitted(27, 1) Source(11, 1) + SourceIndex(3)
|
||||
2 >Emitted(27, 2) Source(11, 2) + SourceIndex(3)
|
||||
3 >Emitted(27, 4) Source(5, 11) + SourceIndex(3)
|
||||
4 >Emitted(27, 5) Source(5, 12) + SourceIndex(3)
|
||||
5 >Emitted(27, 10) Source(5, 11) + SourceIndex(3)
|
||||
6 >Emitted(27, 11) Source(5, 12) + SourceIndex(3)
|
||||
7 >Emitted(27, 19) Source(11, 2) + SourceIndex(3)
|
||||
---
|
||||
>>>function forsecondsecond_part1Rest() {
|
||||
1->
|
||||
@@ -1207,9 +1217,9 @@ sourceFile:../../../second/second_part1.ts
|
||||
>
|
||||
2 >function
|
||||
3 > forsecondsecond_part1Rest
|
||||
1->Emitted(26, 1) Source(12, 1) + SourceIndex(3)
|
||||
2 >Emitted(26, 10) Source(12, 10) + SourceIndex(3)
|
||||
3 >Emitted(26, 35) Source(12, 35) + SourceIndex(3)
|
||||
1->Emitted(28, 1) Source(12, 1) + SourceIndex(3)
|
||||
2 >Emitted(28, 10) Source(12, 10) + SourceIndex(3)
|
||||
3 >Emitted(28, 35) Source(12, 35) + SourceIndex(3)
|
||||
---
|
||||
>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]);
|
||||
1->^^^^
|
||||
@@ -1229,14 +1239,14 @@ sourceFile:../../../second/second_part1.ts
|
||||
6 > ,
|
||||
7 > ...rest } = { a: 10, b: 30, yy: 30 }
|
||||
8 > ;
|
||||
1->Emitted(27, 5) Source(13, 1) + SourceIndex(3)
|
||||
2 >Emitted(27, 9) Source(13, 7) + SourceIndex(3)
|
||||
3 >Emitted(27, 38) Source(13, 48) + SourceIndex(3)
|
||||
4 >Emitted(27, 40) Source(13, 9) + SourceIndex(3)
|
||||
5 >Emitted(27, 48) Source(13, 10) + SourceIndex(3)
|
||||
6 >Emitted(27, 50) Source(13, 12) + SourceIndex(3)
|
||||
7 >Emitted(27, 74) Source(13, 48) + SourceIndex(3)
|
||||
8 >Emitted(27, 75) Source(13, 49) + SourceIndex(3)
|
||||
1->Emitted(29, 5) Source(13, 1) + SourceIndex(3)
|
||||
2 >Emitted(29, 9) Source(13, 7) + SourceIndex(3)
|
||||
3 >Emitted(29, 38) Source(13, 48) + SourceIndex(3)
|
||||
4 >Emitted(29, 40) Source(13, 9) + SourceIndex(3)
|
||||
5 >Emitted(29, 48) Source(13, 10) + SourceIndex(3)
|
||||
6 >Emitted(29, 50) Source(13, 12) + SourceIndex(3)
|
||||
7 >Emitted(29, 74) Source(13, 48) + SourceIndex(3)
|
||||
8 >Emitted(29, 75) Source(13, 49) + SourceIndex(3)
|
||||
---
|
||||
>>>}
|
||||
1 >
|
||||
@@ -1245,8 +1255,8 @@ sourceFile:../../../second/second_part1.ts
|
||||
1 >
|
||||
>
|
||||
2 >}
|
||||
1 >Emitted(28, 1) Source(14, 1) + SourceIndex(3)
|
||||
2 >Emitted(28, 2) Source(14, 2) + SourceIndex(3)
|
||||
1 >Emitted(30, 1) Source(14, 1) + SourceIndex(3)
|
||||
2 >Emitted(30, 2) Source(14, 2) + SourceIndex(3)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/third/thirdjs/output/third-output.js
|
||||
@@ -1256,13 +1266,13 @@ sourceFile:../../../second/second_part2.ts
|
||||
1->
|
||||
2 >^^^^^^^^^^^^^^^^^^^->
|
||||
1->
|
||||
1->Emitted(29, 1) Source(1, 1) + SourceIndex(4)
|
||||
1->Emitted(31, 1) Source(1, 1) + SourceIndex(4)
|
||||
---
|
||||
>>> function C() {
|
||||
1->^^^^
|
||||
2 > ^^->
|
||||
1->
|
||||
1->Emitted(30, 5) Source(1, 1) + SourceIndex(4)
|
||||
1->Emitted(32, 5) Source(1, 1) + SourceIndex(4)
|
||||
---
|
||||
>>> }
|
||||
1->^^^^
|
||||
@@ -1274,8 +1284,8 @@ sourceFile:../../../second/second_part2.ts
|
||||
> }
|
||||
>
|
||||
2 > }
|
||||
1->Emitted(31, 5) Source(5, 1) + SourceIndex(4)
|
||||
2 >Emitted(31, 6) Source(5, 2) + SourceIndex(4)
|
||||
1->Emitted(33, 5) Source(5, 1) + SourceIndex(4)
|
||||
2 >Emitted(33, 6) Source(5, 2) + SourceIndex(4)
|
||||
---
|
||||
>>> C.prototype.doSomething = function () {
|
||||
1->^^^^
|
||||
@@ -1285,9 +1295,9 @@ sourceFile:../../../second/second_part2.ts
|
||||
1->
|
||||
2 > doSomething
|
||||
3 >
|
||||
1->Emitted(32, 5) Source(2, 5) + SourceIndex(4)
|
||||
2 >Emitted(32, 28) Source(2, 16) + SourceIndex(4)
|
||||
3 >Emitted(32, 31) Source(2, 5) + SourceIndex(4)
|
||||
1->Emitted(34, 5) Source(2, 5) + SourceIndex(4)
|
||||
2 >Emitted(34, 28) Source(2, 16) + SourceIndex(4)
|
||||
3 >Emitted(34, 31) Source(2, 5) + SourceIndex(4)
|
||||
---
|
||||
>>> console.log("something got done");
|
||||
1->^^^^^^^^
|
||||
@@ -1307,14 +1317,14 @@ sourceFile:../../../second/second_part2.ts
|
||||
6 > "something got done"
|
||||
7 > )
|
||||
8 > ;
|
||||
1->Emitted(33, 9) Source(3, 9) + SourceIndex(4)
|
||||
2 >Emitted(33, 16) Source(3, 16) + SourceIndex(4)
|
||||
3 >Emitted(33, 17) Source(3, 17) + SourceIndex(4)
|
||||
4 >Emitted(33, 20) Source(3, 20) + SourceIndex(4)
|
||||
5 >Emitted(33, 21) Source(3, 21) + SourceIndex(4)
|
||||
6 >Emitted(33, 41) Source(3, 41) + SourceIndex(4)
|
||||
7 >Emitted(33, 42) Source(3, 42) + SourceIndex(4)
|
||||
8 >Emitted(33, 43) Source(3, 43) + SourceIndex(4)
|
||||
1->Emitted(35, 9) Source(3, 9) + SourceIndex(4)
|
||||
2 >Emitted(35, 16) Source(3, 16) + SourceIndex(4)
|
||||
3 >Emitted(35, 17) Source(3, 17) + SourceIndex(4)
|
||||
4 >Emitted(35, 20) Source(3, 20) + SourceIndex(4)
|
||||
5 >Emitted(35, 21) Source(3, 21) + SourceIndex(4)
|
||||
6 >Emitted(35, 41) Source(3, 41) + SourceIndex(4)
|
||||
7 >Emitted(35, 42) Source(3, 42) + SourceIndex(4)
|
||||
8 >Emitted(35, 43) Source(3, 43) + SourceIndex(4)
|
||||
---
|
||||
>>> };
|
||||
1 >^^^^
|
||||
@@ -1323,8 +1333,8 @@ sourceFile:../../../second/second_part2.ts
|
||||
1 >
|
||||
>
|
||||
2 > }
|
||||
1 >Emitted(34, 5) Source(4, 5) + SourceIndex(4)
|
||||
2 >Emitted(34, 6) Source(4, 6) + SourceIndex(4)
|
||||
1 >Emitted(36, 5) Source(4, 5) + SourceIndex(4)
|
||||
2 >Emitted(36, 6) Source(4, 6) + SourceIndex(4)
|
||||
---
|
||||
>>> return C;
|
||||
1->^^^^
|
||||
@@ -1332,8 +1342,8 @@ sourceFile:../../../second/second_part2.ts
|
||||
1->
|
||||
>
|
||||
2 > }
|
||||
1->Emitted(35, 5) Source(5, 1) + SourceIndex(4)
|
||||
2 >Emitted(35, 13) Source(5, 2) + SourceIndex(4)
|
||||
1->Emitted(37, 5) Source(5, 1) + SourceIndex(4)
|
||||
2 >Emitted(37, 13) Source(5, 2) + SourceIndex(4)
|
||||
---
|
||||
>>>}());
|
||||
1 >
|
||||
@@ -1349,10 +1359,10 @@ sourceFile:../../../second/second_part2.ts
|
||||
> console.log("something got done");
|
||||
> }
|
||||
> }
|
||||
1 >Emitted(36, 1) Source(5, 1) + SourceIndex(4)
|
||||
2 >Emitted(36, 2) Source(5, 2) + SourceIndex(4)
|
||||
3 >Emitted(36, 2) Source(1, 1) + SourceIndex(4)
|
||||
4 >Emitted(36, 6) Source(5, 2) + SourceIndex(4)
|
||||
1 >Emitted(38, 1) Source(5, 1) + SourceIndex(4)
|
||||
2 >Emitted(38, 2) Source(5, 2) + SourceIndex(4)
|
||||
3 >Emitted(38, 2) Source(1, 1) + SourceIndex(4)
|
||||
4 >Emitted(38, 6) Source(5, 2) + SourceIndex(4)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/third/thirdjs/output/third-output.js
|
||||
@@ -1376,14 +1386,14 @@ sourceFile:../../third_part1.ts
|
||||
6 > C
|
||||
7 > ()
|
||||
8 > ;
|
||||
1->Emitted(37, 1) Source(1, 1) + SourceIndex(5)
|
||||
2 >Emitted(37, 5) Source(1, 5) + SourceIndex(5)
|
||||
3 >Emitted(37, 6) Source(1, 6) + SourceIndex(5)
|
||||
4 >Emitted(37, 9) Source(1, 9) + SourceIndex(5)
|
||||
5 >Emitted(37, 13) Source(1, 13) + SourceIndex(5)
|
||||
6 >Emitted(37, 14) Source(1, 14) + SourceIndex(5)
|
||||
7 >Emitted(37, 16) Source(1, 16) + SourceIndex(5)
|
||||
8 >Emitted(37, 17) Source(1, 17) + SourceIndex(5)
|
||||
1->Emitted(39, 1) Source(1, 1) + SourceIndex(5)
|
||||
2 >Emitted(39, 5) Source(1, 5) + SourceIndex(5)
|
||||
3 >Emitted(39, 6) Source(1, 6) + SourceIndex(5)
|
||||
4 >Emitted(39, 9) Source(1, 9) + SourceIndex(5)
|
||||
5 >Emitted(39, 13) Source(1, 13) + SourceIndex(5)
|
||||
6 >Emitted(39, 14) Source(1, 14) + SourceIndex(5)
|
||||
7 >Emitted(39, 16) Source(1, 16) + SourceIndex(5)
|
||||
8 >Emitted(39, 17) Source(1, 17) + SourceIndex(5)
|
||||
---
|
||||
>>>c.doSomething();
|
||||
1->
|
||||
@@ -1400,12 +1410,12 @@ sourceFile:../../third_part1.ts
|
||||
4 > doSomething
|
||||
5 > ()
|
||||
6 > ;
|
||||
1->Emitted(38, 1) Source(2, 1) + SourceIndex(5)
|
||||
2 >Emitted(38, 2) Source(2, 2) + SourceIndex(5)
|
||||
3 >Emitted(38, 3) Source(2, 3) + SourceIndex(5)
|
||||
4 >Emitted(38, 14) Source(2, 14) + SourceIndex(5)
|
||||
5 >Emitted(38, 16) Source(2, 16) + SourceIndex(5)
|
||||
6 >Emitted(38, 17) Source(2, 17) + SourceIndex(5)
|
||||
1->Emitted(40, 1) Source(2, 1) + SourceIndex(5)
|
||||
2 >Emitted(40, 2) Source(2, 2) + SourceIndex(5)
|
||||
3 >Emitted(40, 3) Source(2, 3) + SourceIndex(5)
|
||||
4 >Emitted(40, 14) Source(2, 14) + SourceIndex(5)
|
||||
5 >Emitted(40, 16) Source(2, 16) + SourceIndex(5)
|
||||
6 >Emitted(40, 17) Source(2, 17) + SourceIndex(5)
|
||||
---
|
||||
>>>function forthirdthird_part1Rest() {
|
||||
1->
|
||||
@@ -1416,9 +1426,9 @@ sourceFile:../../third_part1.ts
|
||||
>
|
||||
2 >function
|
||||
3 > forthirdthird_part1Rest
|
||||
1->Emitted(39, 1) Source(3, 1) + SourceIndex(5)
|
||||
2 >Emitted(39, 10) Source(3, 10) + SourceIndex(5)
|
||||
3 >Emitted(39, 33) Source(3, 33) + SourceIndex(5)
|
||||
1->Emitted(41, 1) Source(3, 1) + SourceIndex(5)
|
||||
2 >Emitted(41, 10) Source(3, 10) + SourceIndex(5)
|
||||
3 >Emitted(41, 33) Source(3, 33) + SourceIndex(5)
|
||||
---
|
||||
>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]);
|
||||
1->^^^^
|
||||
@@ -1438,14 +1448,14 @@ sourceFile:../../third_part1.ts
|
||||
6 > ,
|
||||
7 > ...rest } = { a: 10, b: 30, yy: 30 }
|
||||
8 > ;
|
||||
1->Emitted(40, 5) Source(4, 1) + SourceIndex(5)
|
||||
2 >Emitted(40, 9) Source(4, 7) + SourceIndex(5)
|
||||
3 >Emitted(40, 38) Source(4, 48) + SourceIndex(5)
|
||||
4 >Emitted(40, 40) Source(4, 9) + SourceIndex(5)
|
||||
5 >Emitted(40, 48) Source(4, 10) + SourceIndex(5)
|
||||
6 >Emitted(40, 50) Source(4, 12) + SourceIndex(5)
|
||||
7 >Emitted(40, 74) Source(4, 48) + SourceIndex(5)
|
||||
8 >Emitted(40, 75) Source(4, 49) + SourceIndex(5)
|
||||
1->Emitted(42, 5) Source(4, 1) + SourceIndex(5)
|
||||
2 >Emitted(42, 9) Source(4, 7) + SourceIndex(5)
|
||||
3 >Emitted(42, 38) Source(4, 48) + SourceIndex(5)
|
||||
4 >Emitted(42, 40) Source(4, 9) + SourceIndex(5)
|
||||
5 >Emitted(42, 48) Source(4, 10) + SourceIndex(5)
|
||||
6 >Emitted(42, 50) Source(4, 12) + SourceIndex(5)
|
||||
7 >Emitted(42, 74) Source(4, 48) + SourceIndex(5)
|
||||
8 >Emitted(42, 75) Source(4, 49) + SourceIndex(5)
|
||||
---
|
||||
>>>}
|
||||
1 >
|
||||
@@ -1454,8 +1464,8 @@ sourceFile:../../third_part1.ts
|
||||
1 >
|
||||
>
|
||||
2 >}
|
||||
1 >Emitted(41, 1) Source(5, 1) + SourceIndex(5)
|
||||
2 >Emitted(41, 2) Source(5, 2) + SourceIndex(5)
|
||||
1 >Emitted(43, 1) Source(5, 1) + SourceIndex(5)
|
||||
2 >Emitted(43, 2) Source(5, 2) + SourceIndex(5)
|
||||
---
|
||||
>>>//# sourceMappingURL=third-output.js.map
|
||||
|
||||
@@ -1470,39 +1480,39 @@ sourceFile:../../third_part1.ts
|
||||
"sections": [
|
||||
{
|
||||
"pos": 0,
|
||||
"end": 415,
|
||||
"end": 500,
|
||||
"kind": "emitHelpers",
|
||||
"data": "typescript:rest"
|
||||
},
|
||||
{
|
||||
"pos": 417,
|
||||
"end": 643,
|
||||
"pos": 502,
|
||||
"end": 728,
|
||||
"kind": "prepend",
|
||||
"data": "/src/first/bin/first-output.js",
|
||||
"texts": [
|
||||
{
|
||||
"pos": 417,
|
||||
"end": 643,
|
||||
"pos": 502,
|
||||
"end": 728,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pos": 643,
|
||||
"end": 1047,
|
||||
"pos": 728,
|
||||
"end": 1132,
|
||||
"kind": "prepend",
|
||||
"data": "/src/2/second-output.js",
|
||||
"texts": [
|
||||
{
|
||||
"pos": 643,
|
||||
"end": 1047,
|
||||
"pos": 728,
|
||||
"end": 1132,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pos": 1047,
|
||||
"end": 1200,
|
||||
"pos": 1132,
|
||||
"end": 1285,
|
||||
"kind": "text"
|
||||
}
|
||||
],
|
||||
@@ -1555,20 +1565,22 @@ sourceFile:../../third_part1.ts
|
||||
======================================================================
|
||||
File:: /src/third/thirdjs/output/third-output.js
|
||||
----------------------------------------------------------------------
|
||||
emitHelpers: (0-415):: typescript:rest
|
||||
emitHelpers: (0-500):: typescript:rest
|
||||
var __rest = (this && this.__rest) || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
----------------------------------------------------------------------
|
||||
prepend: (417-643):: /src/first/bin/first-output.js texts:: 1
|
||||
prepend: (502-728):: /src/first/bin/first-output.js texts:: 1
|
||||
>>--------------------------------------------------------------------
|
||||
text: (417-643)
|
||||
text: (502-728)
|
||||
var s = "Hola, world";
|
||||
console.log(s);
|
||||
function forfirstfirst_PART1Rest() {
|
||||
@@ -1580,9 +1592,9 @@ function f() {
|
||||
}
|
||||
|
||||
----------------------------------------------------------------------
|
||||
prepend: (643-1047):: /src/2/second-output.js texts:: 1
|
||||
prepend: (728-1132):: /src/2/second-output.js texts:: 1
|
||||
>>--------------------------------------------------------------------
|
||||
text: (643-1047)
|
||||
text: (728-1132)
|
||||
var N;
|
||||
(function (N) {
|
||||
function f() {
|
||||
@@ -1603,7 +1615,7 @@ var C = (function () {
|
||||
}());
|
||||
|
||||
----------------------------------------------------------------------
|
||||
text: (1047-1200)
|
||||
text: (1132-1285)
|
||||
var c = new C();
|
||||
c.doSomething();
|
||||
function forthirdthird_part1Rest() {
|
||||
|
||||
+248
-236
@@ -4,8 +4,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
var s = "Hello, world";
|
||||
@@ -21,7 +23,7 @@ function f() {
|
||||
//# sourceMappingURL=first-output.js.map
|
||||
|
||||
//// [/src/first/bin/first-output.js.map]
|
||||
{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"}
|
||||
{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"}
|
||||
|
||||
//// [/src/first/bin/first-output.js.map.baseline.txt]
|
||||
===================================================================
|
||||
@@ -39,8 +41,10 @@ sourceFile:../first_PART1.ts
|
||||
>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
>>> t[p] = s[p];
|
||||
>>> if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
>>> t[p[i]] = s[p[i]];
|
||||
>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
>>> t[p[i]] = s[p[i]];
|
||||
>>> }
|
||||
>>> return t;
|
||||
>>>};
|
||||
>>>var s = "Hello, world";
|
||||
@@ -60,12 +64,12 @@ sourceFile:../first_PART1.ts
|
||||
4 > =
|
||||
5 > "Hello, world"
|
||||
6 > ;
|
||||
1 >Emitted(10, 1) Source(5, 1) + SourceIndex(0)
|
||||
2 >Emitted(10, 5) Source(5, 7) + SourceIndex(0)
|
||||
3 >Emitted(10, 6) Source(5, 8) + SourceIndex(0)
|
||||
4 >Emitted(10, 9) Source(5, 11) + SourceIndex(0)
|
||||
5 >Emitted(10, 23) Source(5, 25) + SourceIndex(0)
|
||||
6 >Emitted(10, 24) Source(5, 26) + SourceIndex(0)
|
||||
1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0)
|
||||
2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0)
|
||||
3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0)
|
||||
4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0)
|
||||
5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0)
|
||||
6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0)
|
||||
---
|
||||
>>>console.log(s);
|
||||
1 >
|
||||
@@ -91,14 +95,14 @@ sourceFile:../first_PART1.ts
|
||||
6 > s
|
||||
7 > )
|
||||
8 > ;
|
||||
1 >Emitted(11, 1) Source(11, 1) + SourceIndex(0)
|
||||
2 >Emitted(11, 8) Source(11, 8) + SourceIndex(0)
|
||||
3 >Emitted(11, 9) Source(11, 9) + SourceIndex(0)
|
||||
4 >Emitted(11, 12) Source(11, 12) + SourceIndex(0)
|
||||
5 >Emitted(11, 13) Source(11, 13) + SourceIndex(0)
|
||||
6 >Emitted(11, 14) Source(11, 14) + SourceIndex(0)
|
||||
7 >Emitted(11, 15) Source(11, 15) + SourceIndex(0)
|
||||
8 >Emitted(11, 16) Source(11, 16) + SourceIndex(0)
|
||||
1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0)
|
||||
2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0)
|
||||
3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0)
|
||||
4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0)
|
||||
5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0)
|
||||
6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0)
|
||||
7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0)
|
||||
8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0)
|
||||
---
|
||||
>>>function forfirstfirst_PART1Rest() {
|
||||
1->
|
||||
@@ -109,9 +113,9 @@ sourceFile:../first_PART1.ts
|
||||
>
|
||||
2 >function
|
||||
3 > forfirstfirst_PART1Rest
|
||||
1->Emitted(12, 1) Source(12, 1) + SourceIndex(0)
|
||||
2 >Emitted(12, 10) Source(12, 10) + SourceIndex(0)
|
||||
3 >Emitted(12, 33) Source(12, 33) + SourceIndex(0)
|
||||
1->Emitted(14, 1) Source(12, 1) + SourceIndex(0)
|
||||
2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0)
|
||||
3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0)
|
||||
---
|
||||
>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]);
|
||||
1->^^^^
|
||||
@@ -131,14 +135,14 @@ sourceFile:../first_PART1.ts
|
||||
6 > ,
|
||||
7 > ...rest } = { a: 10, b: 30, yy: 30 }
|
||||
8 > ;
|
||||
1->Emitted(13, 5) Source(13, 1) + SourceIndex(0)
|
||||
2 >Emitted(13, 9) Source(13, 7) + SourceIndex(0)
|
||||
3 >Emitted(13, 38) Source(13, 48) + SourceIndex(0)
|
||||
4 >Emitted(13, 40) Source(13, 9) + SourceIndex(0)
|
||||
5 >Emitted(13, 48) Source(13, 10) + SourceIndex(0)
|
||||
6 >Emitted(13, 50) Source(13, 12) + SourceIndex(0)
|
||||
7 >Emitted(13, 74) Source(13, 48) + SourceIndex(0)
|
||||
8 >Emitted(13, 75) Source(13, 49) + SourceIndex(0)
|
||||
1->Emitted(15, 5) Source(13, 1) + SourceIndex(0)
|
||||
2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0)
|
||||
3 >Emitted(15, 38) Source(13, 48) + SourceIndex(0)
|
||||
4 >Emitted(15, 40) Source(13, 9) + SourceIndex(0)
|
||||
5 >Emitted(15, 48) Source(13, 10) + SourceIndex(0)
|
||||
6 >Emitted(15, 50) Source(13, 12) + SourceIndex(0)
|
||||
7 >Emitted(15, 74) Source(13, 48) + SourceIndex(0)
|
||||
8 >Emitted(15, 75) Source(13, 49) + SourceIndex(0)
|
||||
---
|
||||
>>>}
|
||||
1 >
|
||||
@@ -147,8 +151,8 @@ sourceFile:../first_PART1.ts
|
||||
1 >
|
||||
>
|
||||
2 >}
|
||||
1 >Emitted(14, 1) Source(14, 1) + SourceIndex(0)
|
||||
2 >Emitted(14, 2) Source(14, 2) + SourceIndex(0)
|
||||
1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0)
|
||||
2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0)
|
||||
---
|
||||
>>>console.log(s);
|
||||
1->
|
||||
@@ -168,14 +172,14 @@ sourceFile:../first_PART1.ts
|
||||
6 > s
|
||||
7 > )
|
||||
8 > ;
|
||||
1->Emitted(15, 1) Source(14, 2) + SourceIndex(0)
|
||||
2 >Emitted(15, 8) Source(14, 9) + SourceIndex(0)
|
||||
3 >Emitted(15, 9) Source(14, 10) + SourceIndex(0)
|
||||
4 >Emitted(15, 12) Source(14, 13) + SourceIndex(0)
|
||||
5 >Emitted(15, 13) Source(14, 14) + SourceIndex(0)
|
||||
6 >Emitted(15, 14) Source(14, 15) + SourceIndex(0)
|
||||
7 >Emitted(15, 15) Source(14, 16) + SourceIndex(0)
|
||||
8 >Emitted(15, 16) Source(14, 17) + SourceIndex(0)
|
||||
1->Emitted(17, 1) Source(14, 2) + SourceIndex(0)
|
||||
2 >Emitted(17, 8) Source(14, 9) + SourceIndex(0)
|
||||
3 >Emitted(17, 9) Source(14, 10) + SourceIndex(0)
|
||||
4 >Emitted(17, 12) Source(14, 13) + SourceIndex(0)
|
||||
5 >Emitted(17, 13) Source(14, 14) + SourceIndex(0)
|
||||
6 >Emitted(17, 14) Source(14, 15) + SourceIndex(0)
|
||||
7 >Emitted(17, 15) Source(14, 16) + SourceIndex(0)
|
||||
8 >Emitted(17, 16) Source(14, 17) + SourceIndex(0)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/first/bin/first-output.js
|
||||
@@ -200,15 +204,15 @@ sourceFile:../first_part2.ts
|
||||
7 > ()
|
||||
8 > )
|
||||
9 > ;
|
||||
1->Emitted(16, 1) Source(1, 1) + SourceIndex(1)
|
||||
2 >Emitted(16, 8) Source(1, 8) + SourceIndex(1)
|
||||
3 >Emitted(16, 9) Source(1, 9) + SourceIndex(1)
|
||||
4 >Emitted(16, 12) Source(1, 12) + SourceIndex(1)
|
||||
5 >Emitted(16, 13) Source(1, 13) + SourceIndex(1)
|
||||
6 >Emitted(16, 14) Source(1, 14) + SourceIndex(1)
|
||||
7 >Emitted(16, 16) Source(1, 16) + SourceIndex(1)
|
||||
8 >Emitted(16, 17) Source(1, 17) + SourceIndex(1)
|
||||
9 >Emitted(16, 18) Source(1, 18) + SourceIndex(1)
|
||||
1->Emitted(18, 1) Source(1, 1) + SourceIndex(1)
|
||||
2 >Emitted(18, 8) Source(1, 8) + SourceIndex(1)
|
||||
3 >Emitted(18, 9) Source(1, 9) + SourceIndex(1)
|
||||
4 >Emitted(18, 12) Source(1, 12) + SourceIndex(1)
|
||||
5 >Emitted(18, 13) Source(1, 13) + SourceIndex(1)
|
||||
6 >Emitted(18, 14) Source(1, 14) + SourceIndex(1)
|
||||
7 >Emitted(18, 16) Source(1, 16) + SourceIndex(1)
|
||||
8 >Emitted(18, 17) Source(1, 17) + SourceIndex(1)
|
||||
9 >Emitted(18, 18) Source(1, 18) + SourceIndex(1)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/first/bin/first-output.js
|
||||
@@ -222,9 +226,9 @@ sourceFile:../first_part3.ts
|
||||
1 >
|
||||
2 >function
|
||||
3 > f
|
||||
1 >Emitted(17, 1) Source(1, 1) + SourceIndex(2)
|
||||
2 >Emitted(17, 10) Source(1, 10) + SourceIndex(2)
|
||||
3 >Emitted(17, 11) Source(1, 11) + SourceIndex(2)
|
||||
1 >Emitted(19, 1) Source(1, 1) + SourceIndex(2)
|
||||
2 >Emitted(19, 10) Source(1, 10) + SourceIndex(2)
|
||||
3 >Emitted(19, 11) Source(1, 11) + SourceIndex(2)
|
||||
---
|
||||
>>> return "JS does hoists";
|
||||
1->^^^^
|
||||
@@ -236,10 +240,10 @@ sourceFile:../first_part3.ts
|
||||
2 > return
|
||||
3 > "JS does hoists"
|
||||
4 > ;
|
||||
1->Emitted(18, 5) Source(2, 5) + SourceIndex(2)
|
||||
2 >Emitted(18, 12) Source(2, 12) + SourceIndex(2)
|
||||
3 >Emitted(18, 28) Source(2, 28) + SourceIndex(2)
|
||||
4 >Emitted(18, 29) Source(2, 29) + SourceIndex(2)
|
||||
1->Emitted(20, 5) Source(2, 5) + SourceIndex(2)
|
||||
2 >Emitted(20, 12) Source(2, 12) + SourceIndex(2)
|
||||
3 >Emitted(20, 28) Source(2, 28) + SourceIndex(2)
|
||||
4 >Emitted(20, 29) Source(2, 29) + SourceIndex(2)
|
||||
---
|
||||
>>>}
|
||||
1 >
|
||||
@@ -248,8 +252,8 @@ sourceFile:../first_part3.ts
|
||||
1 >
|
||||
>
|
||||
2 >}
|
||||
1 >Emitted(19, 1) Source(3, 1) + SourceIndex(2)
|
||||
2 >Emitted(19, 2) Source(3, 2) + SourceIndex(2)
|
||||
1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2)
|
||||
2 >Emitted(21, 2) Source(3, 2) + SourceIndex(2)
|
||||
---
|
||||
>>>//# sourceMappingURL=first-output.js.map
|
||||
|
||||
@@ -266,13 +270,13 @@ sourceFile:../first_part3.ts
|
||||
"sections": [
|
||||
{
|
||||
"pos": 0,
|
||||
"end": 415,
|
||||
"end": 500,
|
||||
"kind": "emitHelpers",
|
||||
"data": "typescript:rest"
|
||||
},
|
||||
{
|
||||
"pos": 417,
|
||||
"end": 661,
|
||||
"pos": 502,
|
||||
"end": 746,
|
||||
"kind": "text"
|
||||
}
|
||||
],
|
||||
@@ -299,18 +303,20 @@ sourceFile:../first_part3.ts
|
||||
======================================================================
|
||||
File:: /src/first/bin/first-output.js
|
||||
----------------------------------------------------------------------
|
||||
emitHelpers: (0-415):: typescript:rest
|
||||
emitHelpers: (0-500):: typescript:rest
|
||||
var __rest = (this && this.__rest) || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
----------------------------------------------------------------------
|
||||
text: (417-661)
|
||||
text: (502-746)
|
||||
var s = "Hello, world";
|
||||
console.log(s);
|
||||
function forfirstfirst_PART1Rest() {
|
||||
@@ -361,8 +367,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
var s = "Hello, world";
|
||||
@@ -401,7 +409,7 @@ function forthirdthird_part1Rest() {
|
||||
//# sourceMappingURL=third-output.js.map
|
||||
|
||||
//// [/src/third/thirdjs/output/third-output.js.map]
|
||||
{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC"}
|
||||
{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC"}
|
||||
|
||||
//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt]
|
||||
===================================================================
|
||||
@@ -419,8 +427,10 @@ sourceFile:../../../first/first_PART1.ts
|
||||
>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
>>> t[p] = s[p];
|
||||
>>> if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
>>> t[p[i]] = s[p[i]];
|
||||
>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
>>> t[p[i]] = s[p[i]];
|
||||
>>> }
|
||||
>>> return t;
|
||||
>>>};
|
||||
>>>var s = "Hello, world";
|
||||
@@ -440,12 +450,12 @@ sourceFile:../../../first/first_PART1.ts
|
||||
4 > =
|
||||
5 > "Hello, world"
|
||||
6 > ;
|
||||
1 >Emitted(10, 1) Source(5, 1) + SourceIndex(0)
|
||||
2 >Emitted(10, 5) Source(5, 7) + SourceIndex(0)
|
||||
3 >Emitted(10, 6) Source(5, 8) + SourceIndex(0)
|
||||
4 >Emitted(10, 9) Source(5, 11) + SourceIndex(0)
|
||||
5 >Emitted(10, 23) Source(5, 25) + SourceIndex(0)
|
||||
6 >Emitted(10, 24) Source(5, 26) + SourceIndex(0)
|
||||
1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0)
|
||||
2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0)
|
||||
3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0)
|
||||
4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0)
|
||||
5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0)
|
||||
6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0)
|
||||
---
|
||||
>>>console.log(s);
|
||||
1 >
|
||||
@@ -471,14 +481,14 @@ sourceFile:../../../first/first_PART1.ts
|
||||
6 > s
|
||||
7 > )
|
||||
8 > ;
|
||||
1 >Emitted(11, 1) Source(11, 1) + SourceIndex(0)
|
||||
2 >Emitted(11, 8) Source(11, 8) + SourceIndex(0)
|
||||
3 >Emitted(11, 9) Source(11, 9) + SourceIndex(0)
|
||||
4 >Emitted(11, 12) Source(11, 12) + SourceIndex(0)
|
||||
5 >Emitted(11, 13) Source(11, 13) + SourceIndex(0)
|
||||
6 >Emitted(11, 14) Source(11, 14) + SourceIndex(0)
|
||||
7 >Emitted(11, 15) Source(11, 15) + SourceIndex(0)
|
||||
8 >Emitted(11, 16) Source(11, 16) + SourceIndex(0)
|
||||
1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0)
|
||||
2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0)
|
||||
3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0)
|
||||
4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0)
|
||||
5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0)
|
||||
6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0)
|
||||
7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0)
|
||||
8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0)
|
||||
---
|
||||
>>>function forfirstfirst_PART1Rest() {
|
||||
1->
|
||||
@@ -489,9 +499,9 @@ sourceFile:../../../first/first_PART1.ts
|
||||
>
|
||||
2 >function
|
||||
3 > forfirstfirst_PART1Rest
|
||||
1->Emitted(12, 1) Source(12, 1) + SourceIndex(0)
|
||||
2 >Emitted(12, 10) Source(12, 10) + SourceIndex(0)
|
||||
3 >Emitted(12, 33) Source(12, 33) + SourceIndex(0)
|
||||
1->Emitted(14, 1) Source(12, 1) + SourceIndex(0)
|
||||
2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0)
|
||||
3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0)
|
||||
---
|
||||
>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]);
|
||||
1->^^^^
|
||||
@@ -511,14 +521,14 @@ sourceFile:../../../first/first_PART1.ts
|
||||
6 > ,
|
||||
7 > ...rest } = { a: 10, b: 30, yy: 30 }
|
||||
8 > ;
|
||||
1->Emitted(13, 5) Source(13, 1) + SourceIndex(0)
|
||||
2 >Emitted(13, 9) Source(13, 7) + SourceIndex(0)
|
||||
3 >Emitted(13, 38) Source(13, 48) + SourceIndex(0)
|
||||
4 >Emitted(13, 40) Source(13, 9) + SourceIndex(0)
|
||||
5 >Emitted(13, 48) Source(13, 10) + SourceIndex(0)
|
||||
6 >Emitted(13, 50) Source(13, 12) + SourceIndex(0)
|
||||
7 >Emitted(13, 74) Source(13, 48) + SourceIndex(0)
|
||||
8 >Emitted(13, 75) Source(13, 49) + SourceIndex(0)
|
||||
1->Emitted(15, 5) Source(13, 1) + SourceIndex(0)
|
||||
2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0)
|
||||
3 >Emitted(15, 38) Source(13, 48) + SourceIndex(0)
|
||||
4 >Emitted(15, 40) Source(13, 9) + SourceIndex(0)
|
||||
5 >Emitted(15, 48) Source(13, 10) + SourceIndex(0)
|
||||
6 >Emitted(15, 50) Source(13, 12) + SourceIndex(0)
|
||||
7 >Emitted(15, 74) Source(13, 48) + SourceIndex(0)
|
||||
8 >Emitted(15, 75) Source(13, 49) + SourceIndex(0)
|
||||
---
|
||||
>>>}
|
||||
1 >
|
||||
@@ -527,8 +537,8 @@ sourceFile:../../../first/first_PART1.ts
|
||||
1 >
|
||||
>
|
||||
2 >}
|
||||
1 >Emitted(14, 1) Source(14, 1) + SourceIndex(0)
|
||||
2 >Emitted(14, 2) Source(14, 2) + SourceIndex(0)
|
||||
1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0)
|
||||
2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0)
|
||||
---
|
||||
>>>console.log(s);
|
||||
1->
|
||||
@@ -548,14 +558,14 @@ sourceFile:../../../first/first_PART1.ts
|
||||
6 > s
|
||||
7 > )
|
||||
8 > ;
|
||||
1->Emitted(15, 1) Source(14, 2) + SourceIndex(0)
|
||||
2 >Emitted(15, 8) Source(14, 9) + SourceIndex(0)
|
||||
3 >Emitted(15, 9) Source(14, 10) + SourceIndex(0)
|
||||
4 >Emitted(15, 12) Source(14, 13) + SourceIndex(0)
|
||||
5 >Emitted(15, 13) Source(14, 14) + SourceIndex(0)
|
||||
6 >Emitted(15, 14) Source(14, 15) + SourceIndex(0)
|
||||
7 >Emitted(15, 15) Source(14, 16) + SourceIndex(0)
|
||||
8 >Emitted(15, 16) Source(14, 17) + SourceIndex(0)
|
||||
1->Emitted(17, 1) Source(14, 2) + SourceIndex(0)
|
||||
2 >Emitted(17, 8) Source(14, 9) + SourceIndex(0)
|
||||
3 >Emitted(17, 9) Source(14, 10) + SourceIndex(0)
|
||||
4 >Emitted(17, 12) Source(14, 13) + SourceIndex(0)
|
||||
5 >Emitted(17, 13) Source(14, 14) + SourceIndex(0)
|
||||
6 >Emitted(17, 14) Source(14, 15) + SourceIndex(0)
|
||||
7 >Emitted(17, 15) Source(14, 16) + SourceIndex(0)
|
||||
8 >Emitted(17, 16) Source(14, 17) + SourceIndex(0)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/third/thirdjs/output/third-output.js
|
||||
@@ -580,15 +590,15 @@ sourceFile:../../../first/first_part2.ts
|
||||
7 > ()
|
||||
8 > )
|
||||
9 > ;
|
||||
1->Emitted(16, 1) Source(1, 1) + SourceIndex(1)
|
||||
2 >Emitted(16, 8) Source(1, 8) + SourceIndex(1)
|
||||
3 >Emitted(16, 9) Source(1, 9) + SourceIndex(1)
|
||||
4 >Emitted(16, 12) Source(1, 12) + SourceIndex(1)
|
||||
5 >Emitted(16, 13) Source(1, 13) + SourceIndex(1)
|
||||
6 >Emitted(16, 14) Source(1, 14) + SourceIndex(1)
|
||||
7 >Emitted(16, 16) Source(1, 16) + SourceIndex(1)
|
||||
8 >Emitted(16, 17) Source(1, 17) + SourceIndex(1)
|
||||
9 >Emitted(16, 18) Source(1, 18) + SourceIndex(1)
|
||||
1->Emitted(18, 1) Source(1, 1) + SourceIndex(1)
|
||||
2 >Emitted(18, 8) Source(1, 8) + SourceIndex(1)
|
||||
3 >Emitted(18, 9) Source(1, 9) + SourceIndex(1)
|
||||
4 >Emitted(18, 12) Source(1, 12) + SourceIndex(1)
|
||||
5 >Emitted(18, 13) Source(1, 13) + SourceIndex(1)
|
||||
6 >Emitted(18, 14) Source(1, 14) + SourceIndex(1)
|
||||
7 >Emitted(18, 16) Source(1, 16) + SourceIndex(1)
|
||||
8 >Emitted(18, 17) Source(1, 17) + SourceIndex(1)
|
||||
9 >Emitted(18, 18) Source(1, 18) + SourceIndex(1)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/third/thirdjs/output/third-output.js
|
||||
@@ -602,9 +612,9 @@ sourceFile:../../../first/first_part3.ts
|
||||
1 >
|
||||
2 >function
|
||||
3 > f
|
||||
1 >Emitted(17, 1) Source(1, 1) + SourceIndex(2)
|
||||
2 >Emitted(17, 10) Source(1, 10) + SourceIndex(2)
|
||||
3 >Emitted(17, 11) Source(1, 11) + SourceIndex(2)
|
||||
1 >Emitted(19, 1) Source(1, 1) + SourceIndex(2)
|
||||
2 >Emitted(19, 10) Source(1, 10) + SourceIndex(2)
|
||||
3 >Emitted(19, 11) Source(1, 11) + SourceIndex(2)
|
||||
---
|
||||
>>> return "JS does hoists";
|
||||
1->^^^^
|
||||
@@ -616,10 +626,10 @@ sourceFile:../../../first/first_part3.ts
|
||||
2 > return
|
||||
3 > "JS does hoists"
|
||||
4 > ;
|
||||
1->Emitted(18, 5) Source(2, 5) + SourceIndex(2)
|
||||
2 >Emitted(18, 12) Source(2, 12) + SourceIndex(2)
|
||||
3 >Emitted(18, 28) Source(2, 28) + SourceIndex(2)
|
||||
4 >Emitted(18, 29) Source(2, 29) + SourceIndex(2)
|
||||
1->Emitted(20, 5) Source(2, 5) + SourceIndex(2)
|
||||
2 >Emitted(20, 12) Source(2, 12) + SourceIndex(2)
|
||||
3 >Emitted(20, 28) Source(2, 28) + SourceIndex(2)
|
||||
4 >Emitted(20, 29) Source(2, 29) + SourceIndex(2)
|
||||
---
|
||||
>>>}
|
||||
1 >
|
||||
@@ -628,8 +638,8 @@ sourceFile:../../../first/first_part3.ts
|
||||
1 >
|
||||
>
|
||||
2 >}
|
||||
1 >Emitted(19, 1) Source(3, 1) + SourceIndex(2)
|
||||
2 >Emitted(19, 2) Source(3, 2) + SourceIndex(2)
|
||||
1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2)
|
||||
2 >Emitted(21, 2) Source(3, 2) + SourceIndex(2)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/third/thirdjs/output/third-output.js
|
||||
@@ -655,10 +665,10 @@ sourceFile:../../../second/second_part1.ts
|
||||
>
|
||||
> f();
|
||||
> }
|
||||
1->Emitted(20, 1) Source(5, 1) + SourceIndex(3)
|
||||
2 >Emitted(20, 5) Source(5, 11) + SourceIndex(3)
|
||||
3 >Emitted(20, 6) Source(5, 12) + SourceIndex(3)
|
||||
4 >Emitted(20, 7) Source(11, 2) + SourceIndex(3)
|
||||
1->Emitted(22, 1) Source(5, 1) + SourceIndex(3)
|
||||
2 >Emitted(22, 5) Source(5, 11) + SourceIndex(3)
|
||||
3 >Emitted(22, 6) Source(5, 12) + SourceIndex(3)
|
||||
4 >Emitted(22, 7) Source(11, 2) + SourceIndex(3)
|
||||
---
|
||||
>>>(function (N) {
|
||||
1->
|
||||
@@ -668,9 +678,9 @@ sourceFile:../../../second/second_part1.ts
|
||||
1->
|
||||
2 >namespace
|
||||
3 > N
|
||||
1->Emitted(21, 1) Source(5, 1) + SourceIndex(3)
|
||||
2 >Emitted(21, 12) Source(5, 11) + SourceIndex(3)
|
||||
3 >Emitted(21, 13) Source(5, 12) + SourceIndex(3)
|
||||
1->Emitted(23, 1) Source(5, 1) + SourceIndex(3)
|
||||
2 >Emitted(23, 12) Source(5, 11) + SourceIndex(3)
|
||||
3 >Emitted(23, 13) Source(5, 12) + SourceIndex(3)
|
||||
---
|
||||
>>> function f() {
|
||||
1->^^^^
|
||||
@@ -681,9 +691,9 @@ sourceFile:../../../second/second_part1.ts
|
||||
>
|
||||
2 > function
|
||||
3 > f
|
||||
1->Emitted(22, 5) Source(6, 5) + SourceIndex(3)
|
||||
2 >Emitted(22, 14) Source(6, 14) + SourceIndex(3)
|
||||
3 >Emitted(22, 15) Source(6, 15) + SourceIndex(3)
|
||||
1->Emitted(24, 5) Source(6, 5) + SourceIndex(3)
|
||||
2 >Emitted(24, 14) Source(6, 14) + SourceIndex(3)
|
||||
3 >Emitted(24, 15) Source(6, 15) + SourceIndex(3)
|
||||
---
|
||||
>>> console.log('testing');
|
||||
1->^^^^^^^^
|
||||
@@ -703,14 +713,14 @@ sourceFile:../../../second/second_part1.ts
|
||||
6 > 'testing'
|
||||
7 > )
|
||||
8 > ;
|
||||
1->Emitted(23, 9) Source(7, 9) + SourceIndex(3)
|
||||
2 >Emitted(23, 16) Source(7, 16) + SourceIndex(3)
|
||||
3 >Emitted(23, 17) Source(7, 17) + SourceIndex(3)
|
||||
4 >Emitted(23, 20) Source(7, 20) + SourceIndex(3)
|
||||
5 >Emitted(23, 21) Source(7, 21) + SourceIndex(3)
|
||||
6 >Emitted(23, 30) Source(7, 30) + SourceIndex(3)
|
||||
7 >Emitted(23, 31) Source(7, 31) + SourceIndex(3)
|
||||
8 >Emitted(23, 32) Source(7, 32) + SourceIndex(3)
|
||||
1->Emitted(25, 9) Source(7, 9) + SourceIndex(3)
|
||||
2 >Emitted(25, 16) Source(7, 16) + SourceIndex(3)
|
||||
3 >Emitted(25, 17) Source(7, 17) + SourceIndex(3)
|
||||
4 >Emitted(25, 20) Source(7, 20) + SourceIndex(3)
|
||||
5 >Emitted(25, 21) Source(7, 21) + SourceIndex(3)
|
||||
6 >Emitted(25, 30) Source(7, 30) + SourceIndex(3)
|
||||
7 >Emitted(25, 31) Source(7, 31) + SourceIndex(3)
|
||||
8 >Emitted(25, 32) Source(7, 32) + SourceIndex(3)
|
||||
---
|
||||
>>> }
|
||||
1 >^^^^
|
||||
@@ -719,8 +729,8 @@ sourceFile:../../../second/second_part1.ts
|
||||
1 >
|
||||
>
|
||||
2 > }
|
||||
1 >Emitted(24, 5) Source(8, 5) + SourceIndex(3)
|
||||
2 >Emitted(24, 6) Source(8, 6) + SourceIndex(3)
|
||||
1 >Emitted(26, 5) Source(8, 5) + SourceIndex(3)
|
||||
2 >Emitted(26, 6) Source(8, 6) + SourceIndex(3)
|
||||
---
|
||||
>>> f();
|
||||
1->^^^^
|
||||
@@ -734,10 +744,10 @@ sourceFile:../../../second/second_part1.ts
|
||||
2 > f
|
||||
3 > ()
|
||||
4 > ;
|
||||
1->Emitted(25, 5) Source(10, 5) + SourceIndex(3)
|
||||
2 >Emitted(25, 6) Source(10, 6) + SourceIndex(3)
|
||||
3 >Emitted(25, 8) Source(10, 8) + SourceIndex(3)
|
||||
4 >Emitted(25, 9) Source(10, 9) + SourceIndex(3)
|
||||
1->Emitted(27, 5) Source(10, 5) + SourceIndex(3)
|
||||
2 >Emitted(27, 6) Source(10, 6) + SourceIndex(3)
|
||||
3 >Emitted(27, 8) Source(10, 8) + SourceIndex(3)
|
||||
4 >Emitted(27, 9) Source(10, 9) + SourceIndex(3)
|
||||
---
|
||||
>>>})(N || (N = {}));
|
||||
1->
|
||||
@@ -762,13 +772,13 @@ sourceFile:../../../second/second_part1.ts
|
||||
>
|
||||
> f();
|
||||
> }
|
||||
1->Emitted(26, 1) Source(11, 1) + SourceIndex(3)
|
||||
2 >Emitted(26, 2) Source(11, 2) + SourceIndex(3)
|
||||
3 >Emitted(26, 4) Source(5, 11) + SourceIndex(3)
|
||||
4 >Emitted(26, 5) Source(5, 12) + SourceIndex(3)
|
||||
5 >Emitted(26, 10) Source(5, 11) + SourceIndex(3)
|
||||
6 >Emitted(26, 11) Source(5, 12) + SourceIndex(3)
|
||||
7 >Emitted(26, 19) Source(11, 2) + SourceIndex(3)
|
||||
1->Emitted(28, 1) Source(11, 1) + SourceIndex(3)
|
||||
2 >Emitted(28, 2) Source(11, 2) + SourceIndex(3)
|
||||
3 >Emitted(28, 4) Source(5, 11) + SourceIndex(3)
|
||||
4 >Emitted(28, 5) Source(5, 12) + SourceIndex(3)
|
||||
5 >Emitted(28, 10) Source(5, 11) + SourceIndex(3)
|
||||
6 >Emitted(28, 11) Source(5, 12) + SourceIndex(3)
|
||||
7 >Emitted(28, 19) Source(11, 2) + SourceIndex(3)
|
||||
---
|
||||
>>>function forsecondsecond_part1Rest() {
|
||||
1->
|
||||
@@ -779,9 +789,9 @@ sourceFile:../../../second/second_part1.ts
|
||||
>
|
||||
2 >function
|
||||
3 > forsecondsecond_part1Rest
|
||||
1->Emitted(27, 1) Source(12, 1) + SourceIndex(3)
|
||||
2 >Emitted(27, 10) Source(12, 10) + SourceIndex(3)
|
||||
3 >Emitted(27, 35) Source(12, 35) + SourceIndex(3)
|
||||
1->Emitted(29, 1) Source(12, 1) + SourceIndex(3)
|
||||
2 >Emitted(29, 10) Source(12, 10) + SourceIndex(3)
|
||||
3 >Emitted(29, 35) Source(12, 35) + SourceIndex(3)
|
||||
---
|
||||
>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]);
|
||||
1->^^^^
|
||||
@@ -801,14 +811,14 @@ sourceFile:../../../second/second_part1.ts
|
||||
6 > ,
|
||||
7 > ...rest } = { a: 10, b: 30, yy: 30 }
|
||||
8 > ;
|
||||
1->Emitted(28, 5) Source(13, 1) + SourceIndex(3)
|
||||
2 >Emitted(28, 9) Source(13, 7) + SourceIndex(3)
|
||||
3 >Emitted(28, 38) Source(13, 48) + SourceIndex(3)
|
||||
4 >Emitted(28, 40) Source(13, 9) + SourceIndex(3)
|
||||
5 >Emitted(28, 48) Source(13, 10) + SourceIndex(3)
|
||||
6 >Emitted(28, 50) Source(13, 12) + SourceIndex(3)
|
||||
7 >Emitted(28, 74) Source(13, 48) + SourceIndex(3)
|
||||
8 >Emitted(28, 75) Source(13, 49) + SourceIndex(3)
|
||||
1->Emitted(30, 5) Source(13, 1) + SourceIndex(3)
|
||||
2 >Emitted(30, 9) Source(13, 7) + SourceIndex(3)
|
||||
3 >Emitted(30, 38) Source(13, 48) + SourceIndex(3)
|
||||
4 >Emitted(30, 40) Source(13, 9) + SourceIndex(3)
|
||||
5 >Emitted(30, 48) Source(13, 10) + SourceIndex(3)
|
||||
6 >Emitted(30, 50) Source(13, 12) + SourceIndex(3)
|
||||
7 >Emitted(30, 74) Source(13, 48) + SourceIndex(3)
|
||||
8 >Emitted(30, 75) Source(13, 49) + SourceIndex(3)
|
||||
---
|
||||
>>>}
|
||||
1 >
|
||||
@@ -817,8 +827,8 @@ sourceFile:../../../second/second_part1.ts
|
||||
1 >
|
||||
>
|
||||
2 >}
|
||||
1 >Emitted(29, 1) Source(14, 1) + SourceIndex(3)
|
||||
2 >Emitted(29, 2) Source(14, 2) + SourceIndex(3)
|
||||
1 >Emitted(31, 1) Source(14, 1) + SourceIndex(3)
|
||||
2 >Emitted(31, 2) Source(14, 2) + SourceIndex(3)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/third/thirdjs/output/third-output.js
|
||||
@@ -828,13 +838,13 @@ sourceFile:../../../second/second_part2.ts
|
||||
1->
|
||||
2 >^^^^^^^^^^^^^^^^^^^->
|
||||
1->
|
||||
1->Emitted(30, 1) Source(1, 1) + SourceIndex(4)
|
||||
1->Emitted(32, 1) Source(1, 1) + SourceIndex(4)
|
||||
---
|
||||
>>> function C() {
|
||||
1->^^^^
|
||||
2 > ^^->
|
||||
1->
|
||||
1->Emitted(31, 5) Source(1, 1) + SourceIndex(4)
|
||||
1->Emitted(33, 5) Source(1, 1) + SourceIndex(4)
|
||||
---
|
||||
>>> }
|
||||
1->^^^^
|
||||
@@ -846,8 +856,8 @@ sourceFile:../../../second/second_part2.ts
|
||||
> }
|
||||
>
|
||||
2 > }
|
||||
1->Emitted(32, 5) Source(5, 1) + SourceIndex(4)
|
||||
2 >Emitted(32, 6) Source(5, 2) + SourceIndex(4)
|
||||
1->Emitted(34, 5) Source(5, 1) + SourceIndex(4)
|
||||
2 >Emitted(34, 6) Source(5, 2) + SourceIndex(4)
|
||||
---
|
||||
>>> C.prototype.doSomething = function () {
|
||||
1->^^^^
|
||||
@@ -857,9 +867,9 @@ sourceFile:../../../second/second_part2.ts
|
||||
1->
|
||||
2 > doSomething
|
||||
3 >
|
||||
1->Emitted(33, 5) Source(2, 5) + SourceIndex(4)
|
||||
2 >Emitted(33, 28) Source(2, 16) + SourceIndex(4)
|
||||
3 >Emitted(33, 31) Source(2, 5) + SourceIndex(4)
|
||||
1->Emitted(35, 5) Source(2, 5) + SourceIndex(4)
|
||||
2 >Emitted(35, 28) Source(2, 16) + SourceIndex(4)
|
||||
3 >Emitted(35, 31) Source(2, 5) + SourceIndex(4)
|
||||
---
|
||||
>>> console.log("something got done");
|
||||
1->^^^^^^^^
|
||||
@@ -879,14 +889,14 @@ sourceFile:../../../second/second_part2.ts
|
||||
6 > "something got done"
|
||||
7 > )
|
||||
8 > ;
|
||||
1->Emitted(34, 9) Source(3, 9) + SourceIndex(4)
|
||||
2 >Emitted(34, 16) Source(3, 16) + SourceIndex(4)
|
||||
3 >Emitted(34, 17) Source(3, 17) + SourceIndex(4)
|
||||
4 >Emitted(34, 20) Source(3, 20) + SourceIndex(4)
|
||||
5 >Emitted(34, 21) Source(3, 21) + SourceIndex(4)
|
||||
6 >Emitted(34, 41) Source(3, 41) + SourceIndex(4)
|
||||
7 >Emitted(34, 42) Source(3, 42) + SourceIndex(4)
|
||||
8 >Emitted(34, 43) Source(3, 43) + SourceIndex(4)
|
||||
1->Emitted(36, 9) Source(3, 9) + SourceIndex(4)
|
||||
2 >Emitted(36, 16) Source(3, 16) + SourceIndex(4)
|
||||
3 >Emitted(36, 17) Source(3, 17) + SourceIndex(4)
|
||||
4 >Emitted(36, 20) Source(3, 20) + SourceIndex(4)
|
||||
5 >Emitted(36, 21) Source(3, 21) + SourceIndex(4)
|
||||
6 >Emitted(36, 41) Source(3, 41) + SourceIndex(4)
|
||||
7 >Emitted(36, 42) Source(3, 42) + SourceIndex(4)
|
||||
8 >Emitted(36, 43) Source(3, 43) + SourceIndex(4)
|
||||
---
|
||||
>>> };
|
||||
1 >^^^^
|
||||
@@ -895,8 +905,8 @@ sourceFile:../../../second/second_part2.ts
|
||||
1 >
|
||||
>
|
||||
2 > }
|
||||
1 >Emitted(35, 5) Source(4, 5) + SourceIndex(4)
|
||||
2 >Emitted(35, 6) Source(4, 6) + SourceIndex(4)
|
||||
1 >Emitted(37, 5) Source(4, 5) + SourceIndex(4)
|
||||
2 >Emitted(37, 6) Source(4, 6) + SourceIndex(4)
|
||||
---
|
||||
>>> return C;
|
||||
1->^^^^
|
||||
@@ -904,8 +914,8 @@ sourceFile:../../../second/second_part2.ts
|
||||
1->
|
||||
>
|
||||
2 > }
|
||||
1->Emitted(36, 5) Source(5, 1) + SourceIndex(4)
|
||||
2 >Emitted(36, 13) Source(5, 2) + SourceIndex(4)
|
||||
1->Emitted(38, 5) Source(5, 1) + SourceIndex(4)
|
||||
2 >Emitted(38, 13) Source(5, 2) + SourceIndex(4)
|
||||
---
|
||||
>>>}());
|
||||
1 >
|
||||
@@ -921,10 +931,10 @@ sourceFile:../../../second/second_part2.ts
|
||||
> console.log("something got done");
|
||||
> }
|
||||
> }
|
||||
1 >Emitted(37, 1) Source(5, 1) + SourceIndex(4)
|
||||
2 >Emitted(37, 2) Source(5, 2) + SourceIndex(4)
|
||||
3 >Emitted(37, 2) Source(1, 1) + SourceIndex(4)
|
||||
4 >Emitted(37, 6) Source(5, 2) + SourceIndex(4)
|
||||
1 >Emitted(39, 1) Source(5, 1) + SourceIndex(4)
|
||||
2 >Emitted(39, 2) Source(5, 2) + SourceIndex(4)
|
||||
3 >Emitted(39, 2) Source(1, 1) + SourceIndex(4)
|
||||
4 >Emitted(39, 6) Source(5, 2) + SourceIndex(4)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/third/thirdjs/output/third-output.js
|
||||
@@ -948,14 +958,14 @@ sourceFile:../../third_part1.ts
|
||||
6 > C
|
||||
7 > ()
|
||||
8 > ;
|
||||
1->Emitted(38, 1) Source(1, 1) + SourceIndex(5)
|
||||
2 >Emitted(38, 5) Source(1, 5) + SourceIndex(5)
|
||||
3 >Emitted(38, 6) Source(1, 6) + SourceIndex(5)
|
||||
4 >Emitted(38, 9) Source(1, 9) + SourceIndex(5)
|
||||
5 >Emitted(38, 13) Source(1, 13) + SourceIndex(5)
|
||||
6 >Emitted(38, 14) Source(1, 14) + SourceIndex(5)
|
||||
7 >Emitted(38, 16) Source(1, 16) + SourceIndex(5)
|
||||
8 >Emitted(38, 17) Source(1, 17) + SourceIndex(5)
|
||||
1->Emitted(40, 1) Source(1, 1) + SourceIndex(5)
|
||||
2 >Emitted(40, 5) Source(1, 5) + SourceIndex(5)
|
||||
3 >Emitted(40, 6) Source(1, 6) + SourceIndex(5)
|
||||
4 >Emitted(40, 9) Source(1, 9) + SourceIndex(5)
|
||||
5 >Emitted(40, 13) Source(1, 13) + SourceIndex(5)
|
||||
6 >Emitted(40, 14) Source(1, 14) + SourceIndex(5)
|
||||
7 >Emitted(40, 16) Source(1, 16) + SourceIndex(5)
|
||||
8 >Emitted(40, 17) Source(1, 17) + SourceIndex(5)
|
||||
---
|
||||
>>>c.doSomething();
|
||||
1->
|
||||
@@ -972,12 +982,12 @@ sourceFile:../../third_part1.ts
|
||||
4 > doSomething
|
||||
5 > ()
|
||||
6 > ;
|
||||
1->Emitted(39, 1) Source(2, 1) + SourceIndex(5)
|
||||
2 >Emitted(39, 2) Source(2, 2) + SourceIndex(5)
|
||||
3 >Emitted(39, 3) Source(2, 3) + SourceIndex(5)
|
||||
4 >Emitted(39, 14) Source(2, 14) + SourceIndex(5)
|
||||
5 >Emitted(39, 16) Source(2, 16) + SourceIndex(5)
|
||||
6 >Emitted(39, 17) Source(2, 17) + SourceIndex(5)
|
||||
1->Emitted(41, 1) Source(2, 1) + SourceIndex(5)
|
||||
2 >Emitted(41, 2) Source(2, 2) + SourceIndex(5)
|
||||
3 >Emitted(41, 3) Source(2, 3) + SourceIndex(5)
|
||||
4 >Emitted(41, 14) Source(2, 14) + SourceIndex(5)
|
||||
5 >Emitted(41, 16) Source(2, 16) + SourceIndex(5)
|
||||
6 >Emitted(41, 17) Source(2, 17) + SourceIndex(5)
|
||||
---
|
||||
>>>function forthirdthird_part1Rest() {
|
||||
1->
|
||||
@@ -988,9 +998,9 @@ sourceFile:../../third_part1.ts
|
||||
>
|
||||
2 >function
|
||||
3 > forthirdthird_part1Rest
|
||||
1->Emitted(40, 1) Source(3, 1) + SourceIndex(5)
|
||||
2 >Emitted(40, 10) Source(3, 10) + SourceIndex(5)
|
||||
3 >Emitted(40, 33) Source(3, 33) + SourceIndex(5)
|
||||
1->Emitted(42, 1) Source(3, 1) + SourceIndex(5)
|
||||
2 >Emitted(42, 10) Source(3, 10) + SourceIndex(5)
|
||||
3 >Emitted(42, 33) Source(3, 33) + SourceIndex(5)
|
||||
---
|
||||
>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]);
|
||||
1->^^^^
|
||||
@@ -1010,14 +1020,14 @@ sourceFile:../../third_part1.ts
|
||||
6 > ,
|
||||
7 > ...rest } = { a: 10, b: 30, yy: 30 }
|
||||
8 > ;
|
||||
1->Emitted(41, 5) Source(4, 1) + SourceIndex(5)
|
||||
2 >Emitted(41, 9) Source(4, 7) + SourceIndex(5)
|
||||
3 >Emitted(41, 38) Source(4, 48) + SourceIndex(5)
|
||||
4 >Emitted(41, 40) Source(4, 9) + SourceIndex(5)
|
||||
5 >Emitted(41, 48) Source(4, 10) + SourceIndex(5)
|
||||
6 >Emitted(41, 50) Source(4, 12) + SourceIndex(5)
|
||||
7 >Emitted(41, 74) Source(4, 48) + SourceIndex(5)
|
||||
8 >Emitted(41, 75) Source(4, 49) + SourceIndex(5)
|
||||
1->Emitted(43, 5) Source(4, 1) + SourceIndex(5)
|
||||
2 >Emitted(43, 9) Source(4, 7) + SourceIndex(5)
|
||||
3 >Emitted(43, 38) Source(4, 48) + SourceIndex(5)
|
||||
4 >Emitted(43, 40) Source(4, 9) + SourceIndex(5)
|
||||
5 >Emitted(43, 48) Source(4, 10) + SourceIndex(5)
|
||||
6 >Emitted(43, 50) Source(4, 12) + SourceIndex(5)
|
||||
7 >Emitted(43, 74) Source(4, 48) + SourceIndex(5)
|
||||
8 >Emitted(43, 75) Source(4, 49) + SourceIndex(5)
|
||||
---
|
||||
>>>}
|
||||
1 >
|
||||
@@ -1026,8 +1036,8 @@ sourceFile:../../third_part1.ts
|
||||
1 >
|
||||
>
|
||||
2 >}
|
||||
1 >Emitted(42, 1) Source(5, 1) + SourceIndex(5)
|
||||
2 >Emitted(42, 2) Source(5, 2) + SourceIndex(5)
|
||||
1 >Emitted(44, 1) Source(5, 1) + SourceIndex(5)
|
||||
2 >Emitted(44, 2) Source(5, 2) + SourceIndex(5)
|
||||
---
|
||||
>>>//# sourceMappingURL=third-output.js.map
|
||||
|
||||
@@ -1042,39 +1052,39 @@ sourceFile:../../third_part1.ts
|
||||
"sections": [
|
||||
{
|
||||
"pos": 0,
|
||||
"end": 415,
|
||||
"end": 500,
|
||||
"kind": "emitHelpers",
|
||||
"data": "typescript:rest"
|
||||
},
|
||||
{
|
||||
"pos": 417,
|
||||
"end": 661,
|
||||
"pos": 502,
|
||||
"end": 746,
|
||||
"kind": "prepend",
|
||||
"data": "/src/first/bin/first-output.js",
|
||||
"texts": [
|
||||
{
|
||||
"pos": 417,
|
||||
"end": 661,
|
||||
"pos": 502,
|
||||
"end": 746,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pos": 661,
|
||||
"end": 1065,
|
||||
"pos": 746,
|
||||
"end": 1150,
|
||||
"kind": "prepend",
|
||||
"data": "/src/2/second-output.js",
|
||||
"texts": [
|
||||
{
|
||||
"pos": 661,
|
||||
"end": 1065,
|
||||
"pos": 746,
|
||||
"end": 1150,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pos": 1065,
|
||||
"end": 1218,
|
||||
"pos": 1150,
|
||||
"end": 1303,
|
||||
"kind": "text"
|
||||
}
|
||||
],
|
||||
@@ -1127,20 +1137,22 @@ sourceFile:../../third_part1.ts
|
||||
======================================================================
|
||||
File:: /src/third/thirdjs/output/third-output.js
|
||||
----------------------------------------------------------------------
|
||||
emitHelpers: (0-415):: typescript:rest
|
||||
emitHelpers: (0-500):: typescript:rest
|
||||
var __rest = (this && this.__rest) || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
----------------------------------------------------------------------
|
||||
prepend: (417-661):: /src/first/bin/first-output.js texts:: 1
|
||||
prepend: (502-746):: /src/first/bin/first-output.js texts:: 1
|
||||
>>--------------------------------------------------------------------
|
||||
text: (417-661)
|
||||
text: (502-746)
|
||||
var s = "Hello, world";
|
||||
console.log(s);
|
||||
function forfirstfirst_PART1Rest() {
|
||||
@@ -1153,9 +1165,9 @@ function f() {
|
||||
}
|
||||
|
||||
----------------------------------------------------------------------
|
||||
prepend: (661-1065):: /src/2/second-output.js texts:: 1
|
||||
prepend: (746-1150):: /src/2/second-output.js texts:: 1
|
||||
>>--------------------------------------------------------------------
|
||||
text: (661-1065)
|
||||
text: (746-1150)
|
||||
var N;
|
||||
(function (N) {
|
||||
function f() {
|
||||
@@ -1176,7 +1188,7 @@ var C = (function () {
|
||||
}());
|
||||
|
||||
----------------------------------------------------------------------
|
||||
text: (1065-1218)
|
||||
text: (1150-1303)
|
||||
var c = new C();
|
||||
c.doSomething();
|
||||
function forthirdthird_part1Rest() {
|
||||
|
||||
+156
-150
@@ -283,8 +283,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
var s = "Hello, world";
|
||||
@@ -318,7 +320,7 @@ c.doSomething();
|
||||
//# sourceMappingURL=third-output.js.map
|
||||
|
||||
//// [/src/third/thirdjs/output/third-output.js.map]
|
||||
{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"}
|
||||
{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB,KAAK,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACXrD,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AACD,SAAS,yBAAyB;IAClC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;ACbD;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC"}
|
||||
|
||||
//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt]
|
||||
===================================================================
|
||||
@@ -336,8 +338,10 @@ sourceFile:../../../first/first_PART1.ts
|
||||
>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
>>> t[p] = s[p];
|
||||
>>> if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
>>> t[p[i]] = s[p[i]];
|
||||
>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
>>> t[p[i]] = s[p[i]];
|
||||
>>> }
|
||||
>>> return t;
|
||||
>>>};
|
||||
>>>var s = "Hello, world";
|
||||
@@ -357,12 +361,12 @@ sourceFile:../../../first/first_PART1.ts
|
||||
4 > =
|
||||
5 > "Hello, world"
|
||||
6 > ;
|
||||
1 >Emitted(10, 1) Source(5, 1) + SourceIndex(0)
|
||||
2 >Emitted(10, 5) Source(5, 7) + SourceIndex(0)
|
||||
3 >Emitted(10, 6) Source(5, 8) + SourceIndex(0)
|
||||
4 >Emitted(10, 9) Source(5, 11) + SourceIndex(0)
|
||||
5 >Emitted(10, 23) Source(5, 25) + SourceIndex(0)
|
||||
6 >Emitted(10, 24) Source(5, 26) + SourceIndex(0)
|
||||
1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0)
|
||||
2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0)
|
||||
3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0)
|
||||
4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0)
|
||||
5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0)
|
||||
6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0)
|
||||
---
|
||||
>>>console.log(s);
|
||||
1 >
|
||||
@@ -388,14 +392,14 @@ sourceFile:../../../first/first_PART1.ts
|
||||
6 > s
|
||||
7 > )
|
||||
8 > ;
|
||||
1 >Emitted(11, 1) Source(11, 1) + SourceIndex(0)
|
||||
2 >Emitted(11, 8) Source(11, 8) + SourceIndex(0)
|
||||
3 >Emitted(11, 9) Source(11, 9) + SourceIndex(0)
|
||||
4 >Emitted(11, 12) Source(11, 12) + SourceIndex(0)
|
||||
5 >Emitted(11, 13) Source(11, 13) + SourceIndex(0)
|
||||
6 >Emitted(11, 14) Source(11, 14) + SourceIndex(0)
|
||||
7 >Emitted(11, 15) Source(11, 15) + SourceIndex(0)
|
||||
8 >Emitted(11, 16) Source(11, 16) + SourceIndex(0)
|
||||
1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0)
|
||||
2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0)
|
||||
3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0)
|
||||
4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0)
|
||||
5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0)
|
||||
6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0)
|
||||
7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0)
|
||||
8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0)
|
||||
---
|
||||
>>>function forfirstfirst_PART1Rest() { }
|
||||
1->
|
||||
@@ -409,11 +413,11 @@ sourceFile:../../../first/first_PART1.ts
|
||||
3 > forfirstfirst_PART1Rest
|
||||
4 > () {
|
||||
5 > }
|
||||
1->Emitted(12, 1) Source(12, 1) + SourceIndex(0)
|
||||
2 >Emitted(12, 10) Source(12, 10) + SourceIndex(0)
|
||||
3 >Emitted(12, 33) Source(12, 33) + SourceIndex(0)
|
||||
4 >Emitted(12, 38) Source(12, 38) + SourceIndex(0)
|
||||
5 >Emitted(12, 39) Source(12, 39) + SourceIndex(0)
|
||||
1->Emitted(14, 1) Source(12, 1) + SourceIndex(0)
|
||||
2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0)
|
||||
3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0)
|
||||
4 >Emitted(14, 38) Source(12, 38) + SourceIndex(0)
|
||||
5 >Emitted(14, 39) Source(12, 39) + SourceIndex(0)
|
||||
---
|
||||
>>>console.log(s);
|
||||
1 >
|
||||
@@ -433,14 +437,14 @@ sourceFile:../../../first/first_PART1.ts
|
||||
6 > s
|
||||
7 > )
|
||||
8 > ;
|
||||
1 >Emitted(13, 1) Source(12, 39) + SourceIndex(0)
|
||||
2 >Emitted(13, 8) Source(12, 46) + SourceIndex(0)
|
||||
3 >Emitted(13, 9) Source(12, 47) + SourceIndex(0)
|
||||
4 >Emitted(13, 12) Source(12, 50) + SourceIndex(0)
|
||||
5 >Emitted(13, 13) Source(12, 51) + SourceIndex(0)
|
||||
6 >Emitted(13, 14) Source(12, 52) + SourceIndex(0)
|
||||
7 >Emitted(13, 15) Source(12, 53) + SourceIndex(0)
|
||||
8 >Emitted(13, 16) Source(12, 54) + SourceIndex(0)
|
||||
1 >Emitted(15, 1) Source(12, 39) + SourceIndex(0)
|
||||
2 >Emitted(15, 8) Source(12, 46) + SourceIndex(0)
|
||||
3 >Emitted(15, 9) Source(12, 47) + SourceIndex(0)
|
||||
4 >Emitted(15, 12) Source(12, 50) + SourceIndex(0)
|
||||
5 >Emitted(15, 13) Source(12, 51) + SourceIndex(0)
|
||||
6 >Emitted(15, 14) Source(12, 52) + SourceIndex(0)
|
||||
7 >Emitted(15, 15) Source(12, 53) + SourceIndex(0)
|
||||
8 >Emitted(15, 16) Source(12, 54) + SourceIndex(0)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/third/thirdjs/output/third-output.js
|
||||
@@ -465,15 +469,15 @@ sourceFile:../../../first/first_part2.ts
|
||||
7 > ()
|
||||
8 > )
|
||||
9 > ;
|
||||
1->Emitted(14, 1) Source(1, 1) + SourceIndex(1)
|
||||
2 >Emitted(14, 8) Source(1, 8) + SourceIndex(1)
|
||||
3 >Emitted(14, 9) Source(1, 9) + SourceIndex(1)
|
||||
4 >Emitted(14, 12) Source(1, 12) + SourceIndex(1)
|
||||
5 >Emitted(14, 13) Source(1, 13) + SourceIndex(1)
|
||||
6 >Emitted(14, 14) Source(1, 14) + SourceIndex(1)
|
||||
7 >Emitted(14, 16) Source(1, 16) + SourceIndex(1)
|
||||
8 >Emitted(14, 17) Source(1, 17) + SourceIndex(1)
|
||||
9 >Emitted(14, 18) Source(1, 18) + SourceIndex(1)
|
||||
1->Emitted(16, 1) Source(1, 1) + SourceIndex(1)
|
||||
2 >Emitted(16, 8) Source(1, 8) + SourceIndex(1)
|
||||
3 >Emitted(16, 9) Source(1, 9) + SourceIndex(1)
|
||||
4 >Emitted(16, 12) Source(1, 12) + SourceIndex(1)
|
||||
5 >Emitted(16, 13) Source(1, 13) + SourceIndex(1)
|
||||
6 >Emitted(16, 14) Source(1, 14) + SourceIndex(1)
|
||||
7 >Emitted(16, 16) Source(1, 16) + SourceIndex(1)
|
||||
8 >Emitted(16, 17) Source(1, 17) + SourceIndex(1)
|
||||
9 >Emitted(16, 18) Source(1, 18) + SourceIndex(1)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/third/thirdjs/output/third-output.js
|
||||
@@ -487,9 +491,9 @@ sourceFile:../../../first/first_part3.ts
|
||||
1 >
|
||||
2 >function
|
||||
3 > f
|
||||
1 >Emitted(15, 1) Source(1, 1) + SourceIndex(2)
|
||||
2 >Emitted(15, 10) Source(1, 10) + SourceIndex(2)
|
||||
3 >Emitted(15, 11) Source(1, 11) + SourceIndex(2)
|
||||
1 >Emitted(17, 1) Source(1, 1) + SourceIndex(2)
|
||||
2 >Emitted(17, 10) Source(1, 10) + SourceIndex(2)
|
||||
3 >Emitted(17, 11) Source(1, 11) + SourceIndex(2)
|
||||
---
|
||||
>>> return "JS does hoists";
|
||||
1->^^^^
|
||||
@@ -501,10 +505,10 @@ sourceFile:../../../first/first_part3.ts
|
||||
2 > return
|
||||
3 > "JS does hoists"
|
||||
4 > ;
|
||||
1->Emitted(16, 5) Source(2, 5) + SourceIndex(2)
|
||||
2 >Emitted(16, 12) Source(2, 12) + SourceIndex(2)
|
||||
3 >Emitted(16, 28) Source(2, 28) + SourceIndex(2)
|
||||
4 >Emitted(16, 29) Source(2, 29) + SourceIndex(2)
|
||||
1->Emitted(18, 5) Source(2, 5) + SourceIndex(2)
|
||||
2 >Emitted(18, 12) Source(2, 12) + SourceIndex(2)
|
||||
3 >Emitted(18, 28) Source(2, 28) + SourceIndex(2)
|
||||
4 >Emitted(18, 29) Source(2, 29) + SourceIndex(2)
|
||||
---
|
||||
>>>}
|
||||
1 >
|
||||
@@ -513,8 +517,8 @@ sourceFile:../../../first/first_part3.ts
|
||||
1 >
|
||||
>
|
||||
2 >}
|
||||
1 >Emitted(17, 1) Source(3, 1) + SourceIndex(2)
|
||||
2 >Emitted(17, 2) Source(3, 2) + SourceIndex(2)
|
||||
1 >Emitted(19, 1) Source(3, 1) + SourceIndex(2)
|
||||
2 >Emitted(19, 2) Source(3, 2) + SourceIndex(2)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/third/thirdjs/output/third-output.js
|
||||
@@ -540,10 +544,10 @@ sourceFile:../../../second/second_part1.ts
|
||||
>
|
||||
> f();
|
||||
> }
|
||||
1->Emitted(18, 1) Source(5, 1) + SourceIndex(3)
|
||||
2 >Emitted(18, 5) Source(5, 11) + SourceIndex(3)
|
||||
3 >Emitted(18, 6) Source(5, 12) + SourceIndex(3)
|
||||
4 >Emitted(18, 7) Source(11, 2) + SourceIndex(3)
|
||||
1->Emitted(20, 1) Source(5, 1) + SourceIndex(3)
|
||||
2 >Emitted(20, 5) Source(5, 11) + SourceIndex(3)
|
||||
3 >Emitted(20, 6) Source(5, 12) + SourceIndex(3)
|
||||
4 >Emitted(20, 7) Source(11, 2) + SourceIndex(3)
|
||||
---
|
||||
>>>(function (N) {
|
||||
1->
|
||||
@@ -553,9 +557,9 @@ sourceFile:../../../second/second_part1.ts
|
||||
1->
|
||||
2 >namespace
|
||||
3 > N
|
||||
1->Emitted(19, 1) Source(5, 1) + SourceIndex(3)
|
||||
2 >Emitted(19, 12) Source(5, 11) + SourceIndex(3)
|
||||
3 >Emitted(19, 13) Source(5, 12) + SourceIndex(3)
|
||||
1->Emitted(21, 1) Source(5, 1) + SourceIndex(3)
|
||||
2 >Emitted(21, 12) Source(5, 11) + SourceIndex(3)
|
||||
3 >Emitted(21, 13) Source(5, 12) + SourceIndex(3)
|
||||
---
|
||||
>>> function f() {
|
||||
1->^^^^
|
||||
@@ -566,9 +570,9 @@ sourceFile:../../../second/second_part1.ts
|
||||
>
|
||||
2 > function
|
||||
3 > f
|
||||
1->Emitted(20, 5) Source(6, 5) + SourceIndex(3)
|
||||
2 >Emitted(20, 14) Source(6, 14) + SourceIndex(3)
|
||||
3 >Emitted(20, 15) Source(6, 15) + SourceIndex(3)
|
||||
1->Emitted(22, 5) Source(6, 5) + SourceIndex(3)
|
||||
2 >Emitted(22, 14) Source(6, 14) + SourceIndex(3)
|
||||
3 >Emitted(22, 15) Source(6, 15) + SourceIndex(3)
|
||||
---
|
||||
>>> console.log('testing');
|
||||
1->^^^^^^^^
|
||||
@@ -588,14 +592,14 @@ sourceFile:../../../second/second_part1.ts
|
||||
6 > 'testing'
|
||||
7 > )
|
||||
8 > ;
|
||||
1->Emitted(21, 9) Source(7, 9) + SourceIndex(3)
|
||||
2 >Emitted(21, 16) Source(7, 16) + SourceIndex(3)
|
||||
3 >Emitted(21, 17) Source(7, 17) + SourceIndex(3)
|
||||
4 >Emitted(21, 20) Source(7, 20) + SourceIndex(3)
|
||||
5 >Emitted(21, 21) Source(7, 21) + SourceIndex(3)
|
||||
6 >Emitted(21, 30) Source(7, 30) + SourceIndex(3)
|
||||
7 >Emitted(21, 31) Source(7, 31) + SourceIndex(3)
|
||||
8 >Emitted(21, 32) Source(7, 32) + SourceIndex(3)
|
||||
1->Emitted(23, 9) Source(7, 9) + SourceIndex(3)
|
||||
2 >Emitted(23, 16) Source(7, 16) + SourceIndex(3)
|
||||
3 >Emitted(23, 17) Source(7, 17) + SourceIndex(3)
|
||||
4 >Emitted(23, 20) Source(7, 20) + SourceIndex(3)
|
||||
5 >Emitted(23, 21) Source(7, 21) + SourceIndex(3)
|
||||
6 >Emitted(23, 30) Source(7, 30) + SourceIndex(3)
|
||||
7 >Emitted(23, 31) Source(7, 31) + SourceIndex(3)
|
||||
8 >Emitted(23, 32) Source(7, 32) + SourceIndex(3)
|
||||
---
|
||||
>>> }
|
||||
1 >^^^^
|
||||
@@ -604,8 +608,8 @@ sourceFile:../../../second/second_part1.ts
|
||||
1 >
|
||||
>
|
||||
2 > }
|
||||
1 >Emitted(22, 5) Source(8, 5) + SourceIndex(3)
|
||||
2 >Emitted(22, 6) Source(8, 6) + SourceIndex(3)
|
||||
1 >Emitted(24, 5) Source(8, 5) + SourceIndex(3)
|
||||
2 >Emitted(24, 6) Source(8, 6) + SourceIndex(3)
|
||||
---
|
||||
>>> f();
|
||||
1->^^^^
|
||||
@@ -619,10 +623,10 @@ sourceFile:../../../second/second_part1.ts
|
||||
2 > f
|
||||
3 > ()
|
||||
4 > ;
|
||||
1->Emitted(23, 5) Source(10, 5) + SourceIndex(3)
|
||||
2 >Emitted(23, 6) Source(10, 6) + SourceIndex(3)
|
||||
3 >Emitted(23, 8) Source(10, 8) + SourceIndex(3)
|
||||
4 >Emitted(23, 9) Source(10, 9) + SourceIndex(3)
|
||||
1->Emitted(25, 5) Source(10, 5) + SourceIndex(3)
|
||||
2 >Emitted(25, 6) Source(10, 6) + SourceIndex(3)
|
||||
3 >Emitted(25, 8) Source(10, 8) + SourceIndex(3)
|
||||
4 >Emitted(25, 9) Source(10, 9) + SourceIndex(3)
|
||||
---
|
||||
>>>})(N || (N = {}));
|
||||
1->
|
||||
@@ -647,13 +651,13 @@ sourceFile:../../../second/second_part1.ts
|
||||
>
|
||||
> f();
|
||||
> }
|
||||
1->Emitted(24, 1) Source(11, 1) + SourceIndex(3)
|
||||
2 >Emitted(24, 2) Source(11, 2) + SourceIndex(3)
|
||||
3 >Emitted(24, 4) Source(5, 11) + SourceIndex(3)
|
||||
4 >Emitted(24, 5) Source(5, 12) + SourceIndex(3)
|
||||
5 >Emitted(24, 10) Source(5, 11) + SourceIndex(3)
|
||||
6 >Emitted(24, 11) Source(5, 12) + SourceIndex(3)
|
||||
7 >Emitted(24, 19) Source(11, 2) + SourceIndex(3)
|
||||
1->Emitted(26, 1) Source(11, 1) + SourceIndex(3)
|
||||
2 >Emitted(26, 2) Source(11, 2) + SourceIndex(3)
|
||||
3 >Emitted(26, 4) Source(5, 11) + SourceIndex(3)
|
||||
4 >Emitted(26, 5) Source(5, 12) + SourceIndex(3)
|
||||
5 >Emitted(26, 10) Source(5, 11) + SourceIndex(3)
|
||||
6 >Emitted(26, 11) Source(5, 12) + SourceIndex(3)
|
||||
7 >Emitted(26, 19) Source(11, 2) + SourceIndex(3)
|
||||
---
|
||||
>>>function forsecondsecond_part1Rest() {
|
||||
1->
|
||||
@@ -664,9 +668,9 @@ sourceFile:../../../second/second_part1.ts
|
||||
>
|
||||
2 >function
|
||||
3 > forsecondsecond_part1Rest
|
||||
1->Emitted(25, 1) Source(12, 1) + SourceIndex(3)
|
||||
2 >Emitted(25, 10) Source(12, 10) + SourceIndex(3)
|
||||
3 >Emitted(25, 35) Source(12, 35) + SourceIndex(3)
|
||||
1->Emitted(27, 1) Source(12, 1) + SourceIndex(3)
|
||||
2 >Emitted(27, 10) Source(12, 10) + SourceIndex(3)
|
||||
3 >Emitted(27, 35) Source(12, 35) + SourceIndex(3)
|
||||
---
|
||||
>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]);
|
||||
1->^^^^
|
||||
@@ -686,14 +690,14 @@ sourceFile:../../../second/second_part1.ts
|
||||
6 > ,
|
||||
7 > ...rest } = { a: 10, b: 30, yy: 30 }
|
||||
8 > ;
|
||||
1->Emitted(26, 5) Source(13, 1) + SourceIndex(3)
|
||||
2 >Emitted(26, 9) Source(13, 7) + SourceIndex(3)
|
||||
3 >Emitted(26, 38) Source(13, 48) + SourceIndex(3)
|
||||
4 >Emitted(26, 40) Source(13, 9) + SourceIndex(3)
|
||||
5 >Emitted(26, 48) Source(13, 10) + SourceIndex(3)
|
||||
6 >Emitted(26, 50) Source(13, 12) + SourceIndex(3)
|
||||
7 >Emitted(26, 74) Source(13, 48) + SourceIndex(3)
|
||||
8 >Emitted(26, 75) Source(13, 49) + SourceIndex(3)
|
||||
1->Emitted(28, 5) Source(13, 1) + SourceIndex(3)
|
||||
2 >Emitted(28, 9) Source(13, 7) + SourceIndex(3)
|
||||
3 >Emitted(28, 38) Source(13, 48) + SourceIndex(3)
|
||||
4 >Emitted(28, 40) Source(13, 9) + SourceIndex(3)
|
||||
5 >Emitted(28, 48) Source(13, 10) + SourceIndex(3)
|
||||
6 >Emitted(28, 50) Source(13, 12) + SourceIndex(3)
|
||||
7 >Emitted(28, 74) Source(13, 48) + SourceIndex(3)
|
||||
8 >Emitted(28, 75) Source(13, 49) + SourceIndex(3)
|
||||
---
|
||||
>>>}
|
||||
1 >
|
||||
@@ -702,8 +706,8 @@ sourceFile:../../../second/second_part1.ts
|
||||
1 >
|
||||
>
|
||||
2 >}
|
||||
1 >Emitted(27, 1) Source(14, 1) + SourceIndex(3)
|
||||
2 >Emitted(27, 2) Source(14, 2) + SourceIndex(3)
|
||||
1 >Emitted(29, 1) Source(14, 1) + SourceIndex(3)
|
||||
2 >Emitted(29, 2) Source(14, 2) + SourceIndex(3)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/third/thirdjs/output/third-output.js
|
||||
@@ -713,13 +717,13 @@ sourceFile:../../../second/second_part2.ts
|
||||
1->
|
||||
2 >^^^^^^^^^^^^^^^^^^^->
|
||||
1->
|
||||
1->Emitted(28, 1) Source(1, 1) + SourceIndex(4)
|
||||
1->Emitted(30, 1) Source(1, 1) + SourceIndex(4)
|
||||
---
|
||||
>>> function C() {
|
||||
1->^^^^
|
||||
2 > ^^->
|
||||
1->
|
||||
1->Emitted(29, 5) Source(1, 1) + SourceIndex(4)
|
||||
1->Emitted(31, 5) Source(1, 1) + SourceIndex(4)
|
||||
---
|
||||
>>> }
|
||||
1->^^^^
|
||||
@@ -731,8 +735,8 @@ sourceFile:../../../second/second_part2.ts
|
||||
> }
|
||||
>
|
||||
2 > }
|
||||
1->Emitted(30, 5) Source(5, 1) + SourceIndex(4)
|
||||
2 >Emitted(30, 6) Source(5, 2) + SourceIndex(4)
|
||||
1->Emitted(32, 5) Source(5, 1) + SourceIndex(4)
|
||||
2 >Emitted(32, 6) Source(5, 2) + SourceIndex(4)
|
||||
---
|
||||
>>> C.prototype.doSomething = function () {
|
||||
1->^^^^
|
||||
@@ -742,9 +746,9 @@ sourceFile:../../../second/second_part2.ts
|
||||
1->
|
||||
2 > doSomething
|
||||
3 >
|
||||
1->Emitted(31, 5) Source(2, 5) + SourceIndex(4)
|
||||
2 >Emitted(31, 28) Source(2, 16) + SourceIndex(4)
|
||||
3 >Emitted(31, 31) Source(2, 5) + SourceIndex(4)
|
||||
1->Emitted(33, 5) Source(2, 5) + SourceIndex(4)
|
||||
2 >Emitted(33, 28) Source(2, 16) + SourceIndex(4)
|
||||
3 >Emitted(33, 31) Source(2, 5) + SourceIndex(4)
|
||||
---
|
||||
>>> console.log("something got done");
|
||||
1->^^^^^^^^
|
||||
@@ -764,14 +768,14 @@ sourceFile:../../../second/second_part2.ts
|
||||
6 > "something got done"
|
||||
7 > )
|
||||
8 > ;
|
||||
1->Emitted(32, 9) Source(3, 9) + SourceIndex(4)
|
||||
2 >Emitted(32, 16) Source(3, 16) + SourceIndex(4)
|
||||
3 >Emitted(32, 17) Source(3, 17) + SourceIndex(4)
|
||||
4 >Emitted(32, 20) Source(3, 20) + SourceIndex(4)
|
||||
5 >Emitted(32, 21) Source(3, 21) + SourceIndex(4)
|
||||
6 >Emitted(32, 41) Source(3, 41) + SourceIndex(4)
|
||||
7 >Emitted(32, 42) Source(3, 42) + SourceIndex(4)
|
||||
8 >Emitted(32, 43) Source(3, 43) + SourceIndex(4)
|
||||
1->Emitted(34, 9) Source(3, 9) + SourceIndex(4)
|
||||
2 >Emitted(34, 16) Source(3, 16) + SourceIndex(4)
|
||||
3 >Emitted(34, 17) Source(3, 17) + SourceIndex(4)
|
||||
4 >Emitted(34, 20) Source(3, 20) + SourceIndex(4)
|
||||
5 >Emitted(34, 21) Source(3, 21) + SourceIndex(4)
|
||||
6 >Emitted(34, 41) Source(3, 41) + SourceIndex(4)
|
||||
7 >Emitted(34, 42) Source(3, 42) + SourceIndex(4)
|
||||
8 >Emitted(34, 43) Source(3, 43) + SourceIndex(4)
|
||||
---
|
||||
>>> };
|
||||
1 >^^^^
|
||||
@@ -780,8 +784,8 @@ sourceFile:../../../second/second_part2.ts
|
||||
1 >
|
||||
>
|
||||
2 > }
|
||||
1 >Emitted(33, 5) Source(4, 5) + SourceIndex(4)
|
||||
2 >Emitted(33, 6) Source(4, 6) + SourceIndex(4)
|
||||
1 >Emitted(35, 5) Source(4, 5) + SourceIndex(4)
|
||||
2 >Emitted(35, 6) Source(4, 6) + SourceIndex(4)
|
||||
---
|
||||
>>> return C;
|
||||
1->^^^^
|
||||
@@ -789,8 +793,8 @@ sourceFile:../../../second/second_part2.ts
|
||||
1->
|
||||
>
|
||||
2 > }
|
||||
1->Emitted(34, 5) Source(5, 1) + SourceIndex(4)
|
||||
2 >Emitted(34, 13) Source(5, 2) + SourceIndex(4)
|
||||
1->Emitted(36, 5) Source(5, 1) + SourceIndex(4)
|
||||
2 >Emitted(36, 13) Source(5, 2) + SourceIndex(4)
|
||||
---
|
||||
>>>}());
|
||||
1 >
|
||||
@@ -806,10 +810,10 @@ sourceFile:../../../second/second_part2.ts
|
||||
> console.log("something got done");
|
||||
> }
|
||||
> }
|
||||
1 >Emitted(35, 1) Source(5, 1) + SourceIndex(4)
|
||||
2 >Emitted(35, 2) Source(5, 2) + SourceIndex(4)
|
||||
3 >Emitted(35, 2) Source(1, 1) + SourceIndex(4)
|
||||
4 >Emitted(35, 6) Source(5, 2) + SourceIndex(4)
|
||||
1 >Emitted(37, 1) Source(5, 1) + SourceIndex(4)
|
||||
2 >Emitted(37, 2) Source(5, 2) + SourceIndex(4)
|
||||
3 >Emitted(37, 2) Source(1, 1) + SourceIndex(4)
|
||||
4 >Emitted(37, 6) Source(5, 2) + SourceIndex(4)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/third/thirdjs/output/third-output.js
|
||||
@@ -833,14 +837,14 @@ sourceFile:../../third_part1.ts
|
||||
6 > C
|
||||
7 > ()
|
||||
8 > ;
|
||||
1->Emitted(36, 1) Source(1, 1) + SourceIndex(5)
|
||||
2 >Emitted(36, 5) Source(1, 5) + SourceIndex(5)
|
||||
3 >Emitted(36, 6) Source(1, 6) + SourceIndex(5)
|
||||
4 >Emitted(36, 9) Source(1, 9) + SourceIndex(5)
|
||||
5 >Emitted(36, 13) Source(1, 13) + SourceIndex(5)
|
||||
6 >Emitted(36, 14) Source(1, 14) + SourceIndex(5)
|
||||
7 >Emitted(36, 16) Source(1, 16) + SourceIndex(5)
|
||||
8 >Emitted(36, 17) Source(1, 17) + SourceIndex(5)
|
||||
1->Emitted(38, 1) Source(1, 1) + SourceIndex(5)
|
||||
2 >Emitted(38, 5) Source(1, 5) + SourceIndex(5)
|
||||
3 >Emitted(38, 6) Source(1, 6) + SourceIndex(5)
|
||||
4 >Emitted(38, 9) Source(1, 9) + SourceIndex(5)
|
||||
5 >Emitted(38, 13) Source(1, 13) + SourceIndex(5)
|
||||
6 >Emitted(38, 14) Source(1, 14) + SourceIndex(5)
|
||||
7 >Emitted(38, 16) Source(1, 16) + SourceIndex(5)
|
||||
8 >Emitted(38, 17) Source(1, 17) + SourceIndex(5)
|
||||
---
|
||||
>>>c.doSomething();
|
||||
1->
|
||||
@@ -857,12 +861,12 @@ sourceFile:../../third_part1.ts
|
||||
4 > doSomething
|
||||
5 > ()
|
||||
6 > ;
|
||||
1->Emitted(37, 1) Source(2, 1) + SourceIndex(5)
|
||||
2 >Emitted(37, 2) Source(2, 2) + SourceIndex(5)
|
||||
3 >Emitted(37, 3) Source(2, 3) + SourceIndex(5)
|
||||
4 >Emitted(37, 14) Source(2, 14) + SourceIndex(5)
|
||||
5 >Emitted(37, 16) Source(2, 16) + SourceIndex(5)
|
||||
6 >Emitted(37, 17) Source(2, 17) + SourceIndex(5)
|
||||
1->Emitted(39, 1) Source(2, 1) + SourceIndex(5)
|
||||
2 >Emitted(39, 2) Source(2, 2) + SourceIndex(5)
|
||||
3 >Emitted(39, 3) Source(2, 3) + SourceIndex(5)
|
||||
4 >Emitted(39, 14) Source(2, 14) + SourceIndex(5)
|
||||
5 >Emitted(39, 16) Source(2, 16) + SourceIndex(5)
|
||||
6 >Emitted(39, 17) Source(2, 17) + SourceIndex(5)
|
||||
---
|
||||
>>>//# sourceMappingURL=third-output.js.map
|
||||
|
||||
@@ -877,39 +881,39 @@ sourceFile:../../third_part1.ts
|
||||
"sections": [
|
||||
{
|
||||
"pos": 0,
|
||||
"end": 415,
|
||||
"end": 500,
|
||||
"kind": "emitHelpers",
|
||||
"data": "typescript:rest"
|
||||
},
|
||||
{
|
||||
"pos": 417,
|
||||
"end": 584,
|
||||
"pos": 502,
|
||||
"end": 669,
|
||||
"kind": "prepend",
|
||||
"data": "/src/first/bin/first-output.js",
|
||||
"texts": [
|
||||
{
|
||||
"pos": 417,
|
||||
"end": 584,
|
||||
"pos": 502,
|
||||
"end": 669,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pos": 584,
|
||||
"end": 988,
|
||||
"pos": 669,
|
||||
"end": 1073,
|
||||
"kind": "prepend",
|
||||
"data": "/src/2/second-output.js",
|
||||
"texts": [
|
||||
{
|
||||
"pos": 584,
|
||||
"end": 988,
|
||||
"pos": 669,
|
||||
"end": 1073,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pos": 988,
|
||||
"end": 1024,
|
||||
"pos": 1073,
|
||||
"end": 1109,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
@@ -957,20 +961,22 @@ sourceFile:../../third_part1.ts
|
||||
======================================================================
|
||||
File:: /src/third/thirdjs/output/third-output.js
|
||||
----------------------------------------------------------------------
|
||||
emitHelpers: (0-415):: typescript:rest
|
||||
emitHelpers: (0-500):: typescript:rest
|
||||
var __rest = (this && this.__rest) || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
----------------------------------------------------------------------
|
||||
prepend: (417-584):: /src/first/bin/first-output.js texts:: 1
|
||||
prepend: (502-669):: /src/first/bin/first-output.js texts:: 1
|
||||
>>--------------------------------------------------------------------
|
||||
text: (417-584)
|
||||
text: (502-669)
|
||||
var s = "Hello, world";
|
||||
console.log(s);
|
||||
function forfirstfirst_PART1Rest() { }
|
||||
@@ -981,9 +987,9 @@ function f() {
|
||||
}
|
||||
|
||||
----------------------------------------------------------------------
|
||||
prepend: (584-988):: /src/2/second-output.js texts:: 1
|
||||
prepend: (669-1073):: /src/2/second-output.js texts:: 1
|
||||
>>--------------------------------------------------------------------
|
||||
text: (584-988)
|
||||
text: (669-1073)
|
||||
var N;
|
||||
(function (N) {
|
||||
function f() {
|
||||
@@ -1004,7 +1010,7 @@ var C = (function () {
|
||||
}());
|
||||
|
||||
----------------------------------------------------------------------
|
||||
text: (988-1024)
|
||||
text: (1073-1109)
|
||||
var c = new C();
|
||||
c.doSomething();
|
||||
|
||||
|
||||
+364
-352
File diff suppressed because it is too large
Load Diff
+267
-255
@@ -4,8 +4,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
var s = "Hello, world";
|
||||
@@ -21,7 +23,7 @@ function f() {
|
||||
//# sourceMappingURL=first-output.js.map
|
||||
|
||||
//// [/src/first/bin/first-output.js.map]
|
||||
{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"}
|
||||
{"version":3,"file":"first-output.js","sourceRoot":"","sources":["../first_PART1.ts","../first_part2.ts","../first_part3.ts"],"names":[],"mappings":";;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC"}
|
||||
|
||||
//// [/src/first/bin/first-output.js.map.baseline.txt]
|
||||
===================================================================
|
||||
@@ -39,8 +41,10 @@ sourceFile:../first_PART1.ts
|
||||
>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
>>> t[p] = s[p];
|
||||
>>> if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
>>> t[p[i]] = s[p[i]];
|
||||
>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
>>> t[p[i]] = s[p[i]];
|
||||
>>> }
|
||||
>>> return t;
|
||||
>>>};
|
||||
>>>var s = "Hello, world";
|
||||
@@ -60,12 +64,12 @@ sourceFile:../first_PART1.ts
|
||||
4 > =
|
||||
5 > "Hello, world"
|
||||
6 > ;
|
||||
1 >Emitted(10, 1) Source(5, 1) + SourceIndex(0)
|
||||
2 >Emitted(10, 5) Source(5, 7) + SourceIndex(0)
|
||||
3 >Emitted(10, 6) Source(5, 8) + SourceIndex(0)
|
||||
4 >Emitted(10, 9) Source(5, 11) + SourceIndex(0)
|
||||
5 >Emitted(10, 23) Source(5, 25) + SourceIndex(0)
|
||||
6 >Emitted(10, 24) Source(5, 26) + SourceIndex(0)
|
||||
1 >Emitted(12, 1) Source(5, 1) + SourceIndex(0)
|
||||
2 >Emitted(12, 5) Source(5, 7) + SourceIndex(0)
|
||||
3 >Emitted(12, 6) Source(5, 8) + SourceIndex(0)
|
||||
4 >Emitted(12, 9) Source(5, 11) + SourceIndex(0)
|
||||
5 >Emitted(12, 23) Source(5, 25) + SourceIndex(0)
|
||||
6 >Emitted(12, 24) Source(5, 26) + SourceIndex(0)
|
||||
---
|
||||
>>>console.log(s);
|
||||
1 >
|
||||
@@ -91,14 +95,14 @@ sourceFile:../first_PART1.ts
|
||||
6 > s
|
||||
7 > )
|
||||
8 > ;
|
||||
1 >Emitted(11, 1) Source(11, 1) + SourceIndex(0)
|
||||
2 >Emitted(11, 8) Source(11, 8) + SourceIndex(0)
|
||||
3 >Emitted(11, 9) Source(11, 9) + SourceIndex(0)
|
||||
4 >Emitted(11, 12) Source(11, 12) + SourceIndex(0)
|
||||
5 >Emitted(11, 13) Source(11, 13) + SourceIndex(0)
|
||||
6 >Emitted(11, 14) Source(11, 14) + SourceIndex(0)
|
||||
7 >Emitted(11, 15) Source(11, 15) + SourceIndex(0)
|
||||
8 >Emitted(11, 16) Source(11, 16) + SourceIndex(0)
|
||||
1 >Emitted(13, 1) Source(11, 1) + SourceIndex(0)
|
||||
2 >Emitted(13, 8) Source(11, 8) + SourceIndex(0)
|
||||
3 >Emitted(13, 9) Source(11, 9) + SourceIndex(0)
|
||||
4 >Emitted(13, 12) Source(11, 12) + SourceIndex(0)
|
||||
5 >Emitted(13, 13) Source(11, 13) + SourceIndex(0)
|
||||
6 >Emitted(13, 14) Source(11, 14) + SourceIndex(0)
|
||||
7 >Emitted(13, 15) Source(11, 15) + SourceIndex(0)
|
||||
8 >Emitted(13, 16) Source(11, 16) + SourceIndex(0)
|
||||
---
|
||||
>>>function forfirstfirst_PART1Rest() {
|
||||
1->
|
||||
@@ -109,9 +113,9 @@ sourceFile:../first_PART1.ts
|
||||
>
|
||||
2 >function
|
||||
3 > forfirstfirst_PART1Rest
|
||||
1->Emitted(12, 1) Source(12, 1) + SourceIndex(0)
|
||||
2 >Emitted(12, 10) Source(12, 10) + SourceIndex(0)
|
||||
3 >Emitted(12, 33) Source(12, 33) + SourceIndex(0)
|
||||
1->Emitted(14, 1) Source(12, 1) + SourceIndex(0)
|
||||
2 >Emitted(14, 10) Source(12, 10) + SourceIndex(0)
|
||||
3 >Emitted(14, 33) Source(12, 33) + SourceIndex(0)
|
||||
---
|
||||
>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]);
|
||||
1->^^^^
|
||||
@@ -131,14 +135,14 @@ sourceFile:../first_PART1.ts
|
||||
6 > ,
|
||||
7 > ...rest } = { a: 10, b: 30, yy: 30 }
|
||||
8 > ;
|
||||
1->Emitted(13, 5) Source(13, 1) + SourceIndex(0)
|
||||
2 >Emitted(13, 9) Source(13, 7) + SourceIndex(0)
|
||||
3 >Emitted(13, 38) Source(13, 48) + SourceIndex(0)
|
||||
4 >Emitted(13, 40) Source(13, 9) + SourceIndex(0)
|
||||
5 >Emitted(13, 48) Source(13, 10) + SourceIndex(0)
|
||||
6 >Emitted(13, 50) Source(13, 12) + SourceIndex(0)
|
||||
7 >Emitted(13, 74) Source(13, 48) + SourceIndex(0)
|
||||
8 >Emitted(13, 75) Source(13, 49) + SourceIndex(0)
|
||||
1->Emitted(15, 5) Source(13, 1) + SourceIndex(0)
|
||||
2 >Emitted(15, 9) Source(13, 7) + SourceIndex(0)
|
||||
3 >Emitted(15, 38) Source(13, 48) + SourceIndex(0)
|
||||
4 >Emitted(15, 40) Source(13, 9) + SourceIndex(0)
|
||||
5 >Emitted(15, 48) Source(13, 10) + SourceIndex(0)
|
||||
6 >Emitted(15, 50) Source(13, 12) + SourceIndex(0)
|
||||
7 >Emitted(15, 74) Source(13, 48) + SourceIndex(0)
|
||||
8 >Emitted(15, 75) Source(13, 49) + SourceIndex(0)
|
||||
---
|
||||
>>>}
|
||||
1 >
|
||||
@@ -147,8 +151,8 @@ sourceFile:../first_PART1.ts
|
||||
1 >
|
||||
>
|
||||
2 >}
|
||||
1 >Emitted(14, 1) Source(14, 1) + SourceIndex(0)
|
||||
2 >Emitted(14, 2) Source(14, 2) + SourceIndex(0)
|
||||
1 >Emitted(16, 1) Source(14, 1) + SourceIndex(0)
|
||||
2 >Emitted(16, 2) Source(14, 2) + SourceIndex(0)
|
||||
---
|
||||
>>>console.log(s);
|
||||
1->
|
||||
@@ -168,14 +172,14 @@ sourceFile:../first_PART1.ts
|
||||
6 > s
|
||||
7 > )
|
||||
8 > ;
|
||||
1->Emitted(15, 1) Source(14, 2) + SourceIndex(0)
|
||||
2 >Emitted(15, 8) Source(14, 9) + SourceIndex(0)
|
||||
3 >Emitted(15, 9) Source(14, 10) + SourceIndex(0)
|
||||
4 >Emitted(15, 12) Source(14, 13) + SourceIndex(0)
|
||||
5 >Emitted(15, 13) Source(14, 14) + SourceIndex(0)
|
||||
6 >Emitted(15, 14) Source(14, 15) + SourceIndex(0)
|
||||
7 >Emitted(15, 15) Source(14, 16) + SourceIndex(0)
|
||||
8 >Emitted(15, 16) Source(14, 17) + SourceIndex(0)
|
||||
1->Emitted(17, 1) Source(14, 2) + SourceIndex(0)
|
||||
2 >Emitted(17, 8) Source(14, 9) + SourceIndex(0)
|
||||
3 >Emitted(17, 9) Source(14, 10) + SourceIndex(0)
|
||||
4 >Emitted(17, 12) Source(14, 13) + SourceIndex(0)
|
||||
5 >Emitted(17, 13) Source(14, 14) + SourceIndex(0)
|
||||
6 >Emitted(17, 14) Source(14, 15) + SourceIndex(0)
|
||||
7 >Emitted(17, 15) Source(14, 16) + SourceIndex(0)
|
||||
8 >Emitted(17, 16) Source(14, 17) + SourceIndex(0)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/first/bin/first-output.js
|
||||
@@ -200,15 +204,15 @@ sourceFile:../first_part2.ts
|
||||
7 > ()
|
||||
8 > )
|
||||
9 > ;
|
||||
1->Emitted(16, 1) Source(1, 1) + SourceIndex(1)
|
||||
2 >Emitted(16, 8) Source(1, 8) + SourceIndex(1)
|
||||
3 >Emitted(16, 9) Source(1, 9) + SourceIndex(1)
|
||||
4 >Emitted(16, 12) Source(1, 12) + SourceIndex(1)
|
||||
5 >Emitted(16, 13) Source(1, 13) + SourceIndex(1)
|
||||
6 >Emitted(16, 14) Source(1, 14) + SourceIndex(1)
|
||||
7 >Emitted(16, 16) Source(1, 16) + SourceIndex(1)
|
||||
8 >Emitted(16, 17) Source(1, 17) + SourceIndex(1)
|
||||
9 >Emitted(16, 18) Source(1, 18) + SourceIndex(1)
|
||||
1->Emitted(18, 1) Source(1, 1) + SourceIndex(1)
|
||||
2 >Emitted(18, 8) Source(1, 8) + SourceIndex(1)
|
||||
3 >Emitted(18, 9) Source(1, 9) + SourceIndex(1)
|
||||
4 >Emitted(18, 12) Source(1, 12) + SourceIndex(1)
|
||||
5 >Emitted(18, 13) Source(1, 13) + SourceIndex(1)
|
||||
6 >Emitted(18, 14) Source(1, 14) + SourceIndex(1)
|
||||
7 >Emitted(18, 16) Source(1, 16) + SourceIndex(1)
|
||||
8 >Emitted(18, 17) Source(1, 17) + SourceIndex(1)
|
||||
9 >Emitted(18, 18) Source(1, 18) + SourceIndex(1)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/first/bin/first-output.js
|
||||
@@ -222,9 +226,9 @@ sourceFile:../first_part3.ts
|
||||
1 >
|
||||
2 >function
|
||||
3 > f
|
||||
1 >Emitted(17, 1) Source(1, 1) + SourceIndex(2)
|
||||
2 >Emitted(17, 10) Source(1, 10) + SourceIndex(2)
|
||||
3 >Emitted(17, 11) Source(1, 11) + SourceIndex(2)
|
||||
1 >Emitted(19, 1) Source(1, 1) + SourceIndex(2)
|
||||
2 >Emitted(19, 10) Source(1, 10) + SourceIndex(2)
|
||||
3 >Emitted(19, 11) Source(1, 11) + SourceIndex(2)
|
||||
---
|
||||
>>> return "JS does hoists";
|
||||
1->^^^^
|
||||
@@ -236,10 +240,10 @@ sourceFile:../first_part3.ts
|
||||
2 > return
|
||||
3 > "JS does hoists"
|
||||
4 > ;
|
||||
1->Emitted(18, 5) Source(2, 5) + SourceIndex(2)
|
||||
2 >Emitted(18, 12) Source(2, 12) + SourceIndex(2)
|
||||
3 >Emitted(18, 28) Source(2, 28) + SourceIndex(2)
|
||||
4 >Emitted(18, 29) Source(2, 29) + SourceIndex(2)
|
||||
1->Emitted(20, 5) Source(2, 5) + SourceIndex(2)
|
||||
2 >Emitted(20, 12) Source(2, 12) + SourceIndex(2)
|
||||
3 >Emitted(20, 28) Source(2, 28) + SourceIndex(2)
|
||||
4 >Emitted(20, 29) Source(2, 29) + SourceIndex(2)
|
||||
---
|
||||
>>>}
|
||||
1 >
|
||||
@@ -248,8 +252,8 @@ sourceFile:../first_part3.ts
|
||||
1 >
|
||||
>
|
||||
2 >}
|
||||
1 >Emitted(19, 1) Source(3, 1) + SourceIndex(2)
|
||||
2 >Emitted(19, 2) Source(3, 2) + SourceIndex(2)
|
||||
1 >Emitted(21, 1) Source(3, 1) + SourceIndex(2)
|
||||
2 >Emitted(21, 2) Source(3, 2) + SourceIndex(2)
|
||||
---
|
||||
>>>//# sourceMappingURL=first-output.js.map
|
||||
|
||||
@@ -266,13 +270,13 @@ sourceFile:../first_part3.ts
|
||||
"sections": [
|
||||
{
|
||||
"pos": 0,
|
||||
"end": 415,
|
||||
"end": 500,
|
||||
"kind": "emitHelpers",
|
||||
"data": "typescript:rest"
|
||||
},
|
||||
{
|
||||
"pos": 417,
|
||||
"end": 661,
|
||||
"pos": 502,
|
||||
"end": 746,
|
||||
"kind": "text"
|
||||
}
|
||||
],
|
||||
@@ -299,18 +303,20 @@ sourceFile:../first_part3.ts
|
||||
======================================================================
|
||||
File:: /src/first/bin/first-output.js
|
||||
----------------------------------------------------------------------
|
||||
emitHelpers: (0-415):: typescript:rest
|
||||
emitHelpers: (0-500):: typescript:rest
|
||||
var __rest = (this && this.__rest) || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
----------------------------------------------------------------------
|
||||
text: (417-661)
|
||||
text: (502-746)
|
||||
var s = "Hello, world";
|
||||
console.log(s);
|
||||
function forfirstfirst_PART1Rest() {
|
||||
@@ -361,8 +367,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
var __read = (this && this.__read) || function (o, n) {
|
||||
@@ -425,7 +433,7 @@ function forthirdthird_part1Rest() {
|
||||
//# sourceMappingURL=third-output.js.map
|
||||
|
||||
//// [/src/third/thirdjs/output/third-output.js.map]
|
||||
{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,wBAAwB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;ACb1C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC"}
|
||||
{"version":3,"file":"third-output.js","sourceRoot":"","sources":["../../../first/first_PART1.ts","../../../first/first_part2.ts","../../../first/first_part3.ts","../../../second/second_part1.ts","../../../second/second_part2.ts","../../third_part1.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,CAAC,GAAG,cAAc,CAAC;AAMzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACf,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC;AAAA,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;ACbhB,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;ACAjB,SAAS,CAAC;IACN,OAAO,gBAAgB,CAAC;AAC5B,CAAC;ACED,IAAU,CAAC,CAMV;AAND,WAAU,CAAC;IACP,SAAS,CAAC;QACN,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IAC3B,CAAC;IAED,CAAC,EAAE,CAAC;AACR,CAAC,EANS,CAAC,KAAD,CAAC,QAMV;AAED,SAAS,wBAAwB;IAAC,WAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,sBAAc;;AAAI,CAAC;AACrD,wBAAwB,wBAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAAE;ACb1C;IAAA;IAIA,CAAC;IAHG,uBAAW,GAAX;QACI,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IACtC,CAAC;IACL,QAAC;AAAD,CAAC,AAJD,IAIC;ACJD,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC;AAChB,CAAC,CAAC,WAAW,EAAE,CAAC;AAChB,SAAS,uBAAuB;IAChC,IAAM,6BAAyC,EAAvC,QAAC,EAAE,wBAAoC,CAAC;AAChD,CAAC"}
|
||||
|
||||
//// [/src/third/thirdjs/output/third-output.js.map.baseline.txt]
|
||||
===================================================================
|
||||
@@ -443,8 +451,10 @@ sourceFile:../../../first/first_PART1.ts
|
||||
>>> for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
>>> t[p] = s[p];
|
||||
>>> if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
>>> t[p[i]] = s[p[i]];
|
||||
>>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
>>> t[p[i]] = s[p[i]];
|
||||
>>> }
|
||||
>>> return t;
|
||||
>>>};
|
||||
>>>var __read = (this && this.__read) || function (o, n) {
|
||||
@@ -484,12 +494,12 @@ sourceFile:../../../first/first_PART1.ts
|
||||
4 > =
|
||||
5 > "Hello, world"
|
||||
6 > ;
|
||||
1 >Emitted(30, 1) Source(5, 1) + SourceIndex(0)
|
||||
2 >Emitted(30, 5) Source(5, 7) + SourceIndex(0)
|
||||
3 >Emitted(30, 6) Source(5, 8) + SourceIndex(0)
|
||||
4 >Emitted(30, 9) Source(5, 11) + SourceIndex(0)
|
||||
5 >Emitted(30, 23) Source(5, 25) + SourceIndex(0)
|
||||
6 >Emitted(30, 24) Source(5, 26) + SourceIndex(0)
|
||||
1 >Emitted(32, 1) Source(5, 1) + SourceIndex(0)
|
||||
2 >Emitted(32, 5) Source(5, 7) + SourceIndex(0)
|
||||
3 >Emitted(32, 6) Source(5, 8) + SourceIndex(0)
|
||||
4 >Emitted(32, 9) Source(5, 11) + SourceIndex(0)
|
||||
5 >Emitted(32, 23) Source(5, 25) + SourceIndex(0)
|
||||
6 >Emitted(32, 24) Source(5, 26) + SourceIndex(0)
|
||||
---
|
||||
>>>console.log(s);
|
||||
1 >
|
||||
@@ -515,14 +525,14 @@ sourceFile:../../../first/first_PART1.ts
|
||||
6 > s
|
||||
7 > )
|
||||
8 > ;
|
||||
1 >Emitted(31, 1) Source(11, 1) + SourceIndex(0)
|
||||
2 >Emitted(31, 8) Source(11, 8) + SourceIndex(0)
|
||||
3 >Emitted(31, 9) Source(11, 9) + SourceIndex(0)
|
||||
4 >Emitted(31, 12) Source(11, 12) + SourceIndex(0)
|
||||
5 >Emitted(31, 13) Source(11, 13) + SourceIndex(0)
|
||||
6 >Emitted(31, 14) Source(11, 14) + SourceIndex(0)
|
||||
7 >Emitted(31, 15) Source(11, 15) + SourceIndex(0)
|
||||
8 >Emitted(31, 16) Source(11, 16) + SourceIndex(0)
|
||||
1 >Emitted(33, 1) Source(11, 1) + SourceIndex(0)
|
||||
2 >Emitted(33, 8) Source(11, 8) + SourceIndex(0)
|
||||
3 >Emitted(33, 9) Source(11, 9) + SourceIndex(0)
|
||||
4 >Emitted(33, 12) Source(11, 12) + SourceIndex(0)
|
||||
5 >Emitted(33, 13) Source(11, 13) + SourceIndex(0)
|
||||
6 >Emitted(33, 14) Source(11, 14) + SourceIndex(0)
|
||||
7 >Emitted(33, 15) Source(11, 15) + SourceIndex(0)
|
||||
8 >Emitted(33, 16) Source(11, 16) + SourceIndex(0)
|
||||
---
|
||||
>>>function forfirstfirst_PART1Rest() {
|
||||
1->
|
||||
@@ -533,9 +543,9 @@ sourceFile:../../../first/first_PART1.ts
|
||||
>
|
||||
2 >function
|
||||
3 > forfirstfirst_PART1Rest
|
||||
1->Emitted(32, 1) Source(12, 1) + SourceIndex(0)
|
||||
2 >Emitted(32, 10) Source(12, 10) + SourceIndex(0)
|
||||
3 >Emitted(32, 33) Source(12, 33) + SourceIndex(0)
|
||||
1->Emitted(34, 1) Source(12, 1) + SourceIndex(0)
|
||||
2 >Emitted(34, 10) Source(12, 10) + SourceIndex(0)
|
||||
3 >Emitted(34, 33) Source(12, 33) + SourceIndex(0)
|
||||
---
|
||||
>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]);
|
||||
1->^^^^
|
||||
@@ -555,14 +565,14 @@ sourceFile:../../../first/first_PART1.ts
|
||||
6 > ,
|
||||
7 > ...rest } = { a: 10, b: 30, yy: 30 }
|
||||
8 > ;
|
||||
1->Emitted(33, 5) Source(13, 1) + SourceIndex(0)
|
||||
2 >Emitted(33, 9) Source(13, 7) + SourceIndex(0)
|
||||
3 >Emitted(33, 38) Source(13, 48) + SourceIndex(0)
|
||||
4 >Emitted(33, 40) Source(13, 9) + SourceIndex(0)
|
||||
5 >Emitted(33, 48) Source(13, 10) + SourceIndex(0)
|
||||
6 >Emitted(33, 50) Source(13, 12) + SourceIndex(0)
|
||||
7 >Emitted(33, 74) Source(13, 48) + SourceIndex(0)
|
||||
8 >Emitted(33, 75) Source(13, 49) + SourceIndex(0)
|
||||
1->Emitted(35, 5) Source(13, 1) + SourceIndex(0)
|
||||
2 >Emitted(35, 9) Source(13, 7) + SourceIndex(0)
|
||||
3 >Emitted(35, 38) Source(13, 48) + SourceIndex(0)
|
||||
4 >Emitted(35, 40) Source(13, 9) + SourceIndex(0)
|
||||
5 >Emitted(35, 48) Source(13, 10) + SourceIndex(0)
|
||||
6 >Emitted(35, 50) Source(13, 12) + SourceIndex(0)
|
||||
7 >Emitted(35, 74) Source(13, 48) + SourceIndex(0)
|
||||
8 >Emitted(35, 75) Source(13, 49) + SourceIndex(0)
|
||||
---
|
||||
>>>}
|
||||
1 >
|
||||
@@ -571,8 +581,8 @@ sourceFile:../../../first/first_PART1.ts
|
||||
1 >
|
||||
>
|
||||
2 >}
|
||||
1 >Emitted(34, 1) Source(14, 1) + SourceIndex(0)
|
||||
2 >Emitted(34, 2) Source(14, 2) + SourceIndex(0)
|
||||
1 >Emitted(36, 1) Source(14, 1) + SourceIndex(0)
|
||||
2 >Emitted(36, 2) Source(14, 2) + SourceIndex(0)
|
||||
---
|
||||
>>>console.log(s);
|
||||
1->
|
||||
@@ -592,14 +602,14 @@ sourceFile:../../../first/first_PART1.ts
|
||||
6 > s
|
||||
7 > )
|
||||
8 > ;
|
||||
1->Emitted(35, 1) Source(14, 2) + SourceIndex(0)
|
||||
2 >Emitted(35, 8) Source(14, 9) + SourceIndex(0)
|
||||
3 >Emitted(35, 9) Source(14, 10) + SourceIndex(0)
|
||||
4 >Emitted(35, 12) Source(14, 13) + SourceIndex(0)
|
||||
5 >Emitted(35, 13) Source(14, 14) + SourceIndex(0)
|
||||
6 >Emitted(35, 14) Source(14, 15) + SourceIndex(0)
|
||||
7 >Emitted(35, 15) Source(14, 16) + SourceIndex(0)
|
||||
8 >Emitted(35, 16) Source(14, 17) + SourceIndex(0)
|
||||
1->Emitted(37, 1) Source(14, 2) + SourceIndex(0)
|
||||
2 >Emitted(37, 8) Source(14, 9) + SourceIndex(0)
|
||||
3 >Emitted(37, 9) Source(14, 10) + SourceIndex(0)
|
||||
4 >Emitted(37, 12) Source(14, 13) + SourceIndex(0)
|
||||
5 >Emitted(37, 13) Source(14, 14) + SourceIndex(0)
|
||||
6 >Emitted(37, 14) Source(14, 15) + SourceIndex(0)
|
||||
7 >Emitted(37, 15) Source(14, 16) + SourceIndex(0)
|
||||
8 >Emitted(37, 16) Source(14, 17) + SourceIndex(0)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/third/thirdjs/output/third-output.js
|
||||
@@ -624,15 +634,15 @@ sourceFile:../../../first/first_part2.ts
|
||||
7 > ()
|
||||
8 > )
|
||||
9 > ;
|
||||
1->Emitted(36, 1) Source(1, 1) + SourceIndex(1)
|
||||
2 >Emitted(36, 8) Source(1, 8) + SourceIndex(1)
|
||||
3 >Emitted(36, 9) Source(1, 9) + SourceIndex(1)
|
||||
4 >Emitted(36, 12) Source(1, 12) + SourceIndex(1)
|
||||
5 >Emitted(36, 13) Source(1, 13) + SourceIndex(1)
|
||||
6 >Emitted(36, 14) Source(1, 14) + SourceIndex(1)
|
||||
7 >Emitted(36, 16) Source(1, 16) + SourceIndex(1)
|
||||
8 >Emitted(36, 17) Source(1, 17) + SourceIndex(1)
|
||||
9 >Emitted(36, 18) Source(1, 18) + SourceIndex(1)
|
||||
1->Emitted(38, 1) Source(1, 1) + SourceIndex(1)
|
||||
2 >Emitted(38, 8) Source(1, 8) + SourceIndex(1)
|
||||
3 >Emitted(38, 9) Source(1, 9) + SourceIndex(1)
|
||||
4 >Emitted(38, 12) Source(1, 12) + SourceIndex(1)
|
||||
5 >Emitted(38, 13) Source(1, 13) + SourceIndex(1)
|
||||
6 >Emitted(38, 14) Source(1, 14) + SourceIndex(1)
|
||||
7 >Emitted(38, 16) Source(1, 16) + SourceIndex(1)
|
||||
8 >Emitted(38, 17) Source(1, 17) + SourceIndex(1)
|
||||
9 >Emitted(38, 18) Source(1, 18) + SourceIndex(1)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/third/thirdjs/output/third-output.js
|
||||
@@ -646,9 +656,9 @@ sourceFile:../../../first/first_part3.ts
|
||||
1 >
|
||||
2 >function
|
||||
3 > f
|
||||
1 >Emitted(37, 1) Source(1, 1) + SourceIndex(2)
|
||||
2 >Emitted(37, 10) Source(1, 10) + SourceIndex(2)
|
||||
3 >Emitted(37, 11) Source(1, 11) + SourceIndex(2)
|
||||
1 >Emitted(39, 1) Source(1, 1) + SourceIndex(2)
|
||||
2 >Emitted(39, 10) Source(1, 10) + SourceIndex(2)
|
||||
3 >Emitted(39, 11) Source(1, 11) + SourceIndex(2)
|
||||
---
|
||||
>>> return "JS does hoists";
|
||||
1->^^^^
|
||||
@@ -660,10 +670,10 @@ sourceFile:../../../first/first_part3.ts
|
||||
2 > return
|
||||
3 > "JS does hoists"
|
||||
4 > ;
|
||||
1->Emitted(38, 5) Source(2, 5) + SourceIndex(2)
|
||||
2 >Emitted(38, 12) Source(2, 12) + SourceIndex(2)
|
||||
3 >Emitted(38, 28) Source(2, 28) + SourceIndex(2)
|
||||
4 >Emitted(38, 29) Source(2, 29) + SourceIndex(2)
|
||||
1->Emitted(40, 5) Source(2, 5) + SourceIndex(2)
|
||||
2 >Emitted(40, 12) Source(2, 12) + SourceIndex(2)
|
||||
3 >Emitted(40, 28) Source(2, 28) + SourceIndex(2)
|
||||
4 >Emitted(40, 29) Source(2, 29) + SourceIndex(2)
|
||||
---
|
||||
>>>}
|
||||
1 >
|
||||
@@ -672,8 +682,8 @@ sourceFile:../../../first/first_part3.ts
|
||||
1 >
|
||||
>
|
||||
2 >}
|
||||
1 >Emitted(39, 1) Source(3, 1) + SourceIndex(2)
|
||||
2 >Emitted(39, 2) Source(3, 2) + SourceIndex(2)
|
||||
1 >Emitted(41, 1) Source(3, 1) + SourceIndex(2)
|
||||
2 >Emitted(41, 2) Source(3, 2) + SourceIndex(2)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/third/thirdjs/output/third-output.js
|
||||
@@ -699,10 +709,10 @@ sourceFile:../../../second/second_part1.ts
|
||||
>
|
||||
> f();
|
||||
> }
|
||||
1->Emitted(40, 1) Source(5, 1) + SourceIndex(3)
|
||||
2 >Emitted(40, 5) Source(5, 11) + SourceIndex(3)
|
||||
3 >Emitted(40, 6) Source(5, 12) + SourceIndex(3)
|
||||
4 >Emitted(40, 7) Source(11, 2) + SourceIndex(3)
|
||||
1->Emitted(42, 1) Source(5, 1) + SourceIndex(3)
|
||||
2 >Emitted(42, 5) Source(5, 11) + SourceIndex(3)
|
||||
3 >Emitted(42, 6) Source(5, 12) + SourceIndex(3)
|
||||
4 >Emitted(42, 7) Source(11, 2) + SourceIndex(3)
|
||||
---
|
||||
>>>(function (N) {
|
||||
1->
|
||||
@@ -712,9 +722,9 @@ sourceFile:../../../second/second_part1.ts
|
||||
1->
|
||||
2 >namespace
|
||||
3 > N
|
||||
1->Emitted(41, 1) Source(5, 1) + SourceIndex(3)
|
||||
2 >Emitted(41, 12) Source(5, 11) + SourceIndex(3)
|
||||
3 >Emitted(41, 13) Source(5, 12) + SourceIndex(3)
|
||||
1->Emitted(43, 1) Source(5, 1) + SourceIndex(3)
|
||||
2 >Emitted(43, 12) Source(5, 11) + SourceIndex(3)
|
||||
3 >Emitted(43, 13) Source(5, 12) + SourceIndex(3)
|
||||
---
|
||||
>>> function f() {
|
||||
1->^^^^
|
||||
@@ -725,9 +735,9 @@ sourceFile:../../../second/second_part1.ts
|
||||
>
|
||||
2 > function
|
||||
3 > f
|
||||
1->Emitted(42, 5) Source(6, 5) + SourceIndex(3)
|
||||
2 >Emitted(42, 14) Source(6, 14) + SourceIndex(3)
|
||||
3 >Emitted(42, 15) Source(6, 15) + SourceIndex(3)
|
||||
1->Emitted(44, 5) Source(6, 5) + SourceIndex(3)
|
||||
2 >Emitted(44, 14) Source(6, 14) + SourceIndex(3)
|
||||
3 >Emitted(44, 15) Source(6, 15) + SourceIndex(3)
|
||||
---
|
||||
>>> console.log('testing');
|
||||
1->^^^^^^^^
|
||||
@@ -747,14 +757,14 @@ sourceFile:../../../second/second_part1.ts
|
||||
6 > 'testing'
|
||||
7 > )
|
||||
8 > ;
|
||||
1->Emitted(43, 9) Source(7, 9) + SourceIndex(3)
|
||||
2 >Emitted(43, 16) Source(7, 16) + SourceIndex(3)
|
||||
3 >Emitted(43, 17) Source(7, 17) + SourceIndex(3)
|
||||
4 >Emitted(43, 20) Source(7, 20) + SourceIndex(3)
|
||||
5 >Emitted(43, 21) Source(7, 21) + SourceIndex(3)
|
||||
6 >Emitted(43, 30) Source(7, 30) + SourceIndex(3)
|
||||
7 >Emitted(43, 31) Source(7, 31) + SourceIndex(3)
|
||||
8 >Emitted(43, 32) Source(7, 32) + SourceIndex(3)
|
||||
1->Emitted(45, 9) Source(7, 9) + SourceIndex(3)
|
||||
2 >Emitted(45, 16) Source(7, 16) + SourceIndex(3)
|
||||
3 >Emitted(45, 17) Source(7, 17) + SourceIndex(3)
|
||||
4 >Emitted(45, 20) Source(7, 20) + SourceIndex(3)
|
||||
5 >Emitted(45, 21) Source(7, 21) + SourceIndex(3)
|
||||
6 >Emitted(45, 30) Source(7, 30) + SourceIndex(3)
|
||||
7 >Emitted(45, 31) Source(7, 31) + SourceIndex(3)
|
||||
8 >Emitted(45, 32) Source(7, 32) + SourceIndex(3)
|
||||
---
|
||||
>>> }
|
||||
1 >^^^^
|
||||
@@ -763,8 +773,8 @@ sourceFile:../../../second/second_part1.ts
|
||||
1 >
|
||||
>
|
||||
2 > }
|
||||
1 >Emitted(44, 5) Source(8, 5) + SourceIndex(3)
|
||||
2 >Emitted(44, 6) Source(8, 6) + SourceIndex(3)
|
||||
1 >Emitted(46, 5) Source(8, 5) + SourceIndex(3)
|
||||
2 >Emitted(46, 6) Source(8, 6) + SourceIndex(3)
|
||||
---
|
||||
>>> f();
|
||||
1->^^^^
|
||||
@@ -778,10 +788,10 @@ sourceFile:../../../second/second_part1.ts
|
||||
2 > f
|
||||
3 > ()
|
||||
4 > ;
|
||||
1->Emitted(45, 5) Source(10, 5) + SourceIndex(3)
|
||||
2 >Emitted(45, 6) Source(10, 6) + SourceIndex(3)
|
||||
3 >Emitted(45, 8) Source(10, 8) + SourceIndex(3)
|
||||
4 >Emitted(45, 9) Source(10, 9) + SourceIndex(3)
|
||||
1->Emitted(47, 5) Source(10, 5) + SourceIndex(3)
|
||||
2 >Emitted(47, 6) Source(10, 6) + SourceIndex(3)
|
||||
3 >Emitted(47, 8) Source(10, 8) + SourceIndex(3)
|
||||
4 >Emitted(47, 9) Source(10, 9) + SourceIndex(3)
|
||||
---
|
||||
>>>})(N || (N = {}));
|
||||
1->
|
||||
@@ -806,13 +816,13 @@ sourceFile:../../../second/second_part1.ts
|
||||
>
|
||||
> f();
|
||||
> }
|
||||
1->Emitted(46, 1) Source(11, 1) + SourceIndex(3)
|
||||
2 >Emitted(46, 2) Source(11, 2) + SourceIndex(3)
|
||||
3 >Emitted(46, 4) Source(5, 11) + SourceIndex(3)
|
||||
4 >Emitted(46, 5) Source(5, 12) + SourceIndex(3)
|
||||
5 >Emitted(46, 10) Source(5, 11) + SourceIndex(3)
|
||||
6 >Emitted(46, 11) Source(5, 12) + SourceIndex(3)
|
||||
7 >Emitted(46, 19) Source(11, 2) + SourceIndex(3)
|
||||
1->Emitted(48, 1) Source(11, 1) + SourceIndex(3)
|
||||
2 >Emitted(48, 2) Source(11, 2) + SourceIndex(3)
|
||||
3 >Emitted(48, 4) Source(5, 11) + SourceIndex(3)
|
||||
4 >Emitted(48, 5) Source(5, 12) + SourceIndex(3)
|
||||
5 >Emitted(48, 10) Source(5, 11) + SourceIndex(3)
|
||||
6 >Emitted(48, 11) Source(5, 12) + SourceIndex(3)
|
||||
7 >Emitted(48, 19) Source(11, 2) + SourceIndex(3)
|
||||
---
|
||||
>>>function secondsecond_part1Spread() {
|
||||
1->
|
||||
@@ -823,9 +833,9 @@ sourceFile:../../../second/second_part1.ts
|
||||
>
|
||||
2 >function
|
||||
3 > secondsecond_part1Spread
|
||||
1->Emitted(47, 1) Source(13, 1) + SourceIndex(3)
|
||||
2 >Emitted(47, 10) Source(13, 10) + SourceIndex(3)
|
||||
3 >Emitted(47, 34) Source(13, 34) + SourceIndex(3)
|
||||
1->Emitted(49, 1) Source(13, 1) + SourceIndex(3)
|
||||
2 >Emitted(49, 10) Source(13, 10) + SourceIndex(3)
|
||||
3 >Emitted(49, 34) Source(13, 34) + SourceIndex(3)
|
||||
---
|
||||
>>> var b = [];
|
||||
1 >^^^^
|
||||
@@ -833,8 +843,8 @@ sourceFile:../../../second/second_part1.ts
|
||||
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >(
|
||||
2 > ...b: number[]
|
||||
1 >Emitted(48, 5) Source(13, 35) + SourceIndex(3)
|
||||
2 >Emitted(48, 16) Source(13, 49) + SourceIndex(3)
|
||||
1 >Emitted(50, 5) Source(13, 35) + SourceIndex(3)
|
||||
2 >Emitted(50, 16) Source(13, 49) + SourceIndex(3)
|
||||
---
|
||||
>>> for (var _i = 0; _i < arguments.length; _i++) {
|
||||
1->^^^^^^^^^
|
||||
@@ -849,20 +859,20 @@ sourceFile:../../../second/second_part1.ts
|
||||
4 > ...b: number[]
|
||||
5 >
|
||||
6 > ...b: number[]
|
||||
1->Emitted(49, 10) Source(13, 35) + SourceIndex(3)
|
||||
2 >Emitted(49, 20) Source(13, 49) + SourceIndex(3)
|
||||
3 >Emitted(49, 22) Source(13, 35) + SourceIndex(3)
|
||||
4 >Emitted(49, 43) Source(13, 49) + SourceIndex(3)
|
||||
5 >Emitted(49, 45) Source(13, 35) + SourceIndex(3)
|
||||
6 >Emitted(49, 49) Source(13, 49) + SourceIndex(3)
|
||||
1->Emitted(51, 10) Source(13, 35) + SourceIndex(3)
|
||||
2 >Emitted(51, 20) Source(13, 49) + SourceIndex(3)
|
||||
3 >Emitted(51, 22) Source(13, 35) + SourceIndex(3)
|
||||
4 >Emitted(51, 43) Source(13, 49) + SourceIndex(3)
|
||||
5 >Emitted(51, 45) Source(13, 35) + SourceIndex(3)
|
||||
6 >Emitted(51, 49) Source(13, 49) + SourceIndex(3)
|
||||
---
|
||||
>>> b[_i] = arguments[_i];
|
||||
1 >^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^
|
||||
1 >
|
||||
2 > ...b: number[]
|
||||
1 >Emitted(50, 9) Source(13, 35) + SourceIndex(3)
|
||||
2 >Emitted(50, 31) Source(13, 49) + SourceIndex(3)
|
||||
1 >Emitted(52, 9) Source(13, 35) + SourceIndex(3)
|
||||
2 >Emitted(52, 31) Source(13, 49) + SourceIndex(3)
|
||||
---
|
||||
>>> }
|
||||
>>>}
|
||||
@@ -871,8 +881,8 @@ sourceFile:../../../second/second_part1.ts
|
||||
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >) {
|
||||
2 >}
|
||||
1 >Emitted(52, 1) Source(13, 53) + SourceIndex(3)
|
||||
2 >Emitted(52, 2) Source(13, 54) + SourceIndex(3)
|
||||
1 >Emitted(54, 1) Source(13, 53) + SourceIndex(3)
|
||||
2 >Emitted(54, 2) Source(13, 54) + SourceIndex(3)
|
||||
---
|
||||
>>>secondsecond_part1Spread.apply(void 0, __spread([10, 20, 30]));
|
||||
1->
|
||||
@@ -898,17 +908,17 @@ sourceFile:../../../second/second_part1.ts
|
||||
9 > 30
|
||||
10> ]
|
||||
11> );
|
||||
1->Emitted(53, 1) Source(14, 1) + SourceIndex(3)
|
||||
2 >Emitted(53, 25) Source(14, 25) + SourceIndex(3)
|
||||
3 >Emitted(53, 49) Source(14, 29) + SourceIndex(3)
|
||||
4 >Emitted(53, 50) Source(14, 30) + SourceIndex(3)
|
||||
5 >Emitted(53, 52) Source(14, 32) + SourceIndex(3)
|
||||
6 >Emitted(53, 54) Source(14, 34) + SourceIndex(3)
|
||||
7 >Emitted(53, 56) Source(14, 36) + SourceIndex(3)
|
||||
8 >Emitted(53, 58) Source(14, 38) + SourceIndex(3)
|
||||
9 >Emitted(53, 60) Source(14, 40) + SourceIndex(3)
|
||||
10>Emitted(53, 61) Source(14, 41) + SourceIndex(3)
|
||||
11>Emitted(53, 64) Source(14, 43) + SourceIndex(3)
|
||||
1->Emitted(55, 1) Source(14, 1) + SourceIndex(3)
|
||||
2 >Emitted(55, 25) Source(14, 25) + SourceIndex(3)
|
||||
3 >Emitted(55, 49) Source(14, 29) + SourceIndex(3)
|
||||
4 >Emitted(55, 50) Source(14, 30) + SourceIndex(3)
|
||||
5 >Emitted(55, 52) Source(14, 32) + SourceIndex(3)
|
||||
6 >Emitted(55, 54) Source(14, 34) + SourceIndex(3)
|
||||
7 >Emitted(55, 56) Source(14, 36) + SourceIndex(3)
|
||||
8 >Emitted(55, 58) Source(14, 38) + SourceIndex(3)
|
||||
9 >Emitted(55, 60) Source(14, 40) + SourceIndex(3)
|
||||
10>Emitted(55, 61) Source(14, 41) + SourceIndex(3)
|
||||
11>Emitted(55, 64) Source(14, 43) + SourceIndex(3)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/third/thirdjs/output/third-output.js
|
||||
@@ -918,13 +928,13 @@ sourceFile:../../../second/second_part2.ts
|
||||
1 >
|
||||
2 >^^^^^^^^^^^^^^^^^^^->
|
||||
1 >
|
||||
1 >Emitted(54, 1) Source(1, 1) + SourceIndex(4)
|
||||
1 >Emitted(56, 1) Source(1, 1) + SourceIndex(4)
|
||||
---
|
||||
>>> function C() {
|
||||
1->^^^^
|
||||
2 > ^^->
|
||||
1->
|
||||
1->Emitted(55, 5) Source(1, 1) + SourceIndex(4)
|
||||
1->Emitted(57, 5) Source(1, 1) + SourceIndex(4)
|
||||
---
|
||||
>>> }
|
||||
1->^^^^
|
||||
@@ -936,8 +946,8 @@ sourceFile:../../../second/second_part2.ts
|
||||
> }
|
||||
>
|
||||
2 > }
|
||||
1->Emitted(56, 5) Source(5, 1) + SourceIndex(4)
|
||||
2 >Emitted(56, 6) Source(5, 2) + SourceIndex(4)
|
||||
1->Emitted(58, 5) Source(5, 1) + SourceIndex(4)
|
||||
2 >Emitted(58, 6) Source(5, 2) + SourceIndex(4)
|
||||
---
|
||||
>>> C.prototype.doSomething = function () {
|
||||
1->^^^^
|
||||
@@ -947,9 +957,9 @@ sourceFile:../../../second/second_part2.ts
|
||||
1->
|
||||
2 > doSomething
|
||||
3 >
|
||||
1->Emitted(57, 5) Source(2, 5) + SourceIndex(4)
|
||||
2 >Emitted(57, 28) Source(2, 16) + SourceIndex(4)
|
||||
3 >Emitted(57, 31) Source(2, 5) + SourceIndex(4)
|
||||
1->Emitted(59, 5) Source(2, 5) + SourceIndex(4)
|
||||
2 >Emitted(59, 28) Source(2, 16) + SourceIndex(4)
|
||||
3 >Emitted(59, 31) Source(2, 5) + SourceIndex(4)
|
||||
---
|
||||
>>> console.log("something got done");
|
||||
1->^^^^^^^^
|
||||
@@ -969,14 +979,14 @@ sourceFile:../../../second/second_part2.ts
|
||||
6 > "something got done"
|
||||
7 > )
|
||||
8 > ;
|
||||
1->Emitted(58, 9) Source(3, 9) + SourceIndex(4)
|
||||
2 >Emitted(58, 16) Source(3, 16) + SourceIndex(4)
|
||||
3 >Emitted(58, 17) Source(3, 17) + SourceIndex(4)
|
||||
4 >Emitted(58, 20) Source(3, 20) + SourceIndex(4)
|
||||
5 >Emitted(58, 21) Source(3, 21) + SourceIndex(4)
|
||||
6 >Emitted(58, 41) Source(3, 41) + SourceIndex(4)
|
||||
7 >Emitted(58, 42) Source(3, 42) + SourceIndex(4)
|
||||
8 >Emitted(58, 43) Source(3, 43) + SourceIndex(4)
|
||||
1->Emitted(60, 9) Source(3, 9) + SourceIndex(4)
|
||||
2 >Emitted(60, 16) Source(3, 16) + SourceIndex(4)
|
||||
3 >Emitted(60, 17) Source(3, 17) + SourceIndex(4)
|
||||
4 >Emitted(60, 20) Source(3, 20) + SourceIndex(4)
|
||||
5 >Emitted(60, 21) Source(3, 21) + SourceIndex(4)
|
||||
6 >Emitted(60, 41) Source(3, 41) + SourceIndex(4)
|
||||
7 >Emitted(60, 42) Source(3, 42) + SourceIndex(4)
|
||||
8 >Emitted(60, 43) Source(3, 43) + SourceIndex(4)
|
||||
---
|
||||
>>> };
|
||||
1 >^^^^
|
||||
@@ -985,8 +995,8 @@ sourceFile:../../../second/second_part2.ts
|
||||
1 >
|
||||
>
|
||||
2 > }
|
||||
1 >Emitted(59, 5) Source(4, 5) + SourceIndex(4)
|
||||
2 >Emitted(59, 6) Source(4, 6) + SourceIndex(4)
|
||||
1 >Emitted(61, 5) Source(4, 5) + SourceIndex(4)
|
||||
2 >Emitted(61, 6) Source(4, 6) + SourceIndex(4)
|
||||
---
|
||||
>>> return C;
|
||||
1->^^^^
|
||||
@@ -994,8 +1004,8 @@ sourceFile:../../../second/second_part2.ts
|
||||
1->
|
||||
>
|
||||
2 > }
|
||||
1->Emitted(60, 5) Source(5, 1) + SourceIndex(4)
|
||||
2 >Emitted(60, 13) Source(5, 2) + SourceIndex(4)
|
||||
1->Emitted(62, 5) Source(5, 1) + SourceIndex(4)
|
||||
2 >Emitted(62, 13) Source(5, 2) + SourceIndex(4)
|
||||
---
|
||||
>>>}());
|
||||
1 >
|
||||
@@ -1011,10 +1021,10 @@ sourceFile:../../../second/second_part2.ts
|
||||
> console.log("something got done");
|
||||
> }
|
||||
> }
|
||||
1 >Emitted(61, 1) Source(5, 1) + SourceIndex(4)
|
||||
2 >Emitted(61, 2) Source(5, 2) + SourceIndex(4)
|
||||
3 >Emitted(61, 2) Source(1, 1) + SourceIndex(4)
|
||||
4 >Emitted(61, 6) Source(5, 2) + SourceIndex(4)
|
||||
1 >Emitted(63, 1) Source(5, 1) + SourceIndex(4)
|
||||
2 >Emitted(63, 2) Source(5, 2) + SourceIndex(4)
|
||||
3 >Emitted(63, 2) Source(1, 1) + SourceIndex(4)
|
||||
4 >Emitted(63, 6) Source(5, 2) + SourceIndex(4)
|
||||
---
|
||||
-------------------------------------------------------------------
|
||||
emittedFile:/src/third/thirdjs/output/third-output.js
|
||||
@@ -1038,14 +1048,14 @@ sourceFile:../../third_part1.ts
|
||||
6 > C
|
||||
7 > ()
|
||||
8 > ;
|
||||
1->Emitted(62, 1) Source(1, 1) + SourceIndex(5)
|
||||
2 >Emitted(62, 5) Source(1, 5) + SourceIndex(5)
|
||||
3 >Emitted(62, 6) Source(1, 6) + SourceIndex(5)
|
||||
4 >Emitted(62, 9) Source(1, 9) + SourceIndex(5)
|
||||
5 >Emitted(62, 13) Source(1, 13) + SourceIndex(5)
|
||||
6 >Emitted(62, 14) Source(1, 14) + SourceIndex(5)
|
||||
7 >Emitted(62, 16) Source(1, 16) + SourceIndex(5)
|
||||
8 >Emitted(62, 17) Source(1, 17) + SourceIndex(5)
|
||||
1->Emitted(64, 1) Source(1, 1) + SourceIndex(5)
|
||||
2 >Emitted(64, 5) Source(1, 5) + SourceIndex(5)
|
||||
3 >Emitted(64, 6) Source(1, 6) + SourceIndex(5)
|
||||
4 >Emitted(64, 9) Source(1, 9) + SourceIndex(5)
|
||||
5 >Emitted(64, 13) Source(1, 13) + SourceIndex(5)
|
||||
6 >Emitted(64, 14) Source(1, 14) + SourceIndex(5)
|
||||
7 >Emitted(64, 16) Source(1, 16) + SourceIndex(5)
|
||||
8 >Emitted(64, 17) Source(1, 17) + SourceIndex(5)
|
||||
---
|
||||
>>>c.doSomething();
|
||||
1->
|
||||
@@ -1062,12 +1072,12 @@ sourceFile:../../third_part1.ts
|
||||
4 > doSomething
|
||||
5 > ()
|
||||
6 > ;
|
||||
1->Emitted(63, 1) Source(2, 1) + SourceIndex(5)
|
||||
2 >Emitted(63, 2) Source(2, 2) + SourceIndex(5)
|
||||
3 >Emitted(63, 3) Source(2, 3) + SourceIndex(5)
|
||||
4 >Emitted(63, 14) Source(2, 14) + SourceIndex(5)
|
||||
5 >Emitted(63, 16) Source(2, 16) + SourceIndex(5)
|
||||
6 >Emitted(63, 17) Source(2, 17) + SourceIndex(5)
|
||||
1->Emitted(65, 1) Source(2, 1) + SourceIndex(5)
|
||||
2 >Emitted(65, 2) Source(2, 2) + SourceIndex(5)
|
||||
3 >Emitted(65, 3) Source(2, 3) + SourceIndex(5)
|
||||
4 >Emitted(65, 14) Source(2, 14) + SourceIndex(5)
|
||||
5 >Emitted(65, 16) Source(2, 16) + SourceIndex(5)
|
||||
6 >Emitted(65, 17) Source(2, 17) + SourceIndex(5)
|
||||
---
|
||||
>>>function forthirdthird_part1Rest() {
|
||||
1->
|
||||
@@ -1078,9 +1088,9 @@ sourceFile:../../third_part1.ts
|
||||
>
|
||||
2 >function
|
||||
3 > forthirdthird_part1Rest
|
||||
1->Emitted(64, 1) Source(3, 1) + SourceIndex(5)
|
||||
2 >Emitted(64, 10) Source(3, 10) + SourceIndex(5)
|
||||
3 >Emitted(64, 33) Source(3, 33) + SourceIndex(5)
|
||||
1->Emitted(66, 1) Source(3, 1) + SourceIndex(5)
|
||||
2 >Emitted(66, 10) Source(3, 10) + SourceIndex(5)
|
||||
3 >Emitted(66, 33) Source(3, 33) + SourceIndex(5)
|
||||
---
|
||||
>>> var _a = { a: 10, b: 30, yy: 30 }, b = _a.b, rest = __rest(_a, ["b"]);
|
||||
1->^^^^
|
||||
@@ -1100,14 +1110,14 @@ sourceFile:../../third_part1.ts
|
||||
6 > ,
|
||||
7 > ...rest } = { a: 10, b: 30, yy: 30 }
|
||||
8 > ;
|
||||
1->Emitted(65, 5) Source(4, 1) + SourceIndex(5)
|
||||
2 >Emitted(65, 9) Source(4, 7) + SourceIndex(5)
|
||||
3 >Emitted(65, 38) Source(4, 48) + SourceIndex(5)
|
||||
4 >Emitted(65, 40) Source(4, 9) + SourceIndex(5)
|
||||
5 >Emitted(65, 48) Source(4, 10) + SourceIndex(5)
|
||||
6 >Emitted(65, 50) Source(4, 12) + SourceIndex(5)
|
||||
7 >Emitted(65, 74) Source(4, 48) + SourceIndex(5)
|
||||
8 >Emitted(65, 75) Source(4, 49) + SourceIndex(5)
|
||||
1->Emitted(67, 5) Source(4, 1) + SourceIndex(5)
|
||||
2 >Emitted(67, 9) Source(4, 7) + SourceIndex(5)
|
||||
3 >Emitted(67, 38) Source(4, 48) + SourceIndex(5)
|
||||
4 >Emitted(67, 40) Source(4, 9) + SourceIndex(5)
|
||||
5 >Emitted(67, 48) Source(4, 10) + SourceIndex(5)
|
||||
6 >Emitted(67, 50) Source(4, 12) + SourceIndex(5)
|
||||
7 >Emitted(67, 74) Source(4, 48) + SourceIndex(5)
|
||||
8 >Emitted(67, 75) Source(4, 49) + SourceIndex(5)
|
||||
---
|
||||
>>>}
|
||||
1 >
|
||||
@@ -1116,8 +1126,8 @@ sourceFile:../../third_part1.ts
|
||||
1 >
|
||||
>
|
||||
2 >}
|
||||
1 >Emitted(66, 1) Source(5, 1) + SourceIndex(5)
|
||||
2 >Emitted(66, 2) Source(5, 2) + SourceIndex(5)
|
||||
1 >Emitted(68, 1) Source(5, 1) + SourceIndex(5)
|
||||
2 >Emitted(68, 2) Source(5, 2) + SourceIndex(5)
|
||||
---
|
||||
>>>//# sourceMappingURL=third-output.js.map
|
||||
|
||||
@@ -1132,51 +1142,51 @@ sourceFile:../../third_part1.ts
|
||||
"sections": [
|
||||
{
|
||||
"pos": 0,
|
||||
"end": 415,
|
||||
"end": 500,
|
||||
"kind": "emitHelpers",
|
||||
"data": "typescript:rest"
|
||||
},
|
||||
{
|
||||
"pos": 417,
|
||||
"end": 921,
|
||||
"pos": 502,
|
||||
"end": 1006,
|
||||
"kind": "emitHelpers",
|
||||
"data": "typescript:read"
|
||||
},
|
||||
{
|
||||
"pos": 923,
|
||||
"end": 1093,
|
||||
"pos": 1008,
|
||||
"end": 1178,
|
||||
"kind": "emitHelpers",
|
||||
"data": "typescript:spread"
|
||||
},
|
||||
{
|
||||
"pos": 1095,
|
||||
"end": 1339,
|
||||
"pos": 1180,
|
||||
"end": 1424,
|
||||
"kind": "prepend",
|
||||
"data": "/src/first/bin/first-output.js",
|
||||
"texts": [
|
||||
{
|
||||
"pos": 1095,
|
||||
"end": 1339,
|
||||
"pos": 1180,
|
||||
"end": 1424,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pos": 1339,
|
||||
"end": 1840,
|
||||
"pos": 1424,
|
||||
"end": 1925,
|
||||
"kind": "prepend",
|
||||
"data": "/src/2/second-output.js",
|
||||
"texts": [
|
||||
{
|
||||
"pos": 1339,
|
||||
"end": 1840,
|
||||
"pos": 1424,
|
||||
"end": 1925,
|
||||
"kind": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"pos": 1840,
|
||||
"end": 1993,
|
||||
"pos": 1925,
|
||||
"end": 2078,
|
||||
"kind": "text"
|
||||
}
|
||||
],
|
||||
@@ -1229,18 +1239,20 @@ sourceFile:../../third_part1.ts
|
||||
======================================================================
|
||||
File:: /src/third/thirdjs/output/third-output.js
|
||||
----------------------------------------------------------------------
|
||||
emitHelpers: (0-415):: typescript:rest
|
||||
emitHelpers: (0-500):: typescript:rest
|
||||
var __rest = (this && this.__rest) || function (s, e) {
|
||||
var t = {};
|
||||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
||||
t[p] = s[p];
|
||||
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
||||
t[p[i]] = s[p[i]];
|
||||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
||||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
||||
t[p[i]] = s[p[i]];
|
||||
}
|
||||
return t;
|
||||
};
|
||||
----------------------------------------------------------------------
|
||||
emitHelpers: (417-921):: typescript:read
|
||||
emitHelpers: (502-1006):: typescript:read
|
||||
var __read = (this && this.__read) || function (o, n) {
|
||||
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
||||
if (!m) return o;
|
||||
@@ -1258,15 +1270,15 @@ var __read = (this && this.__read) || function (o, n) {
|
||||
return ar;
|
||||
};
|
||||
----------------------------------------------------------------------
|
||||
emitHelpers: (923-1093):: typescript:spread
|
||||
emitHelpers: (1008-1178):: typescript:spread
|
||||
var __spread = (this && this.__spread) || function () {
|
||||
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
|
||||
return ar;
|
||||
};
|
||||
----------------------------------------------------------------------
|
||||
prepend: (1095-1339):: /src/first/bin/first-output.js texts:: 1
|
||||
prepend: (1180-1424):: /src/first/bin/first-output.js texts:: 1
|
||||
>>--------------------------------------------------------------------
|
||||
text: (1095-1339)
|
||||
text: (1180-1424)
|
||||
var s = "Hello, world";
|
||||
console.log(s);
|
||||
function forfirstfirst_PART1Rest() {
|
||||
@@ -1279,9 +1291,9 @@ function f() {
|
||||
}
|
||||
|
||||
----------------------------------------------------------------------
|
||||
prepend: (1339-1840):: /src/2/second-output.js texts:: 1
|
||||
prepend: (1424-1925):: /src/2/second-output.js texts:: 1
|
||||
>>--------------------------------------------------------------------
|
||||
text: (1339-1840)
|
||||
text: (1424-1925)
|
||||
var N;
|
||||
(function (N) {
|
||||
function f() {
|
||||
@@ -1306,7 +1318,7 @@ var C = (function () {
|
||||
}());
|
||||
|
||||
----------------------------------------------------------------------
|
||||
text: (1840-1993)
|
||||
text: (1925-2078)
|
||||
var c = new C();
|
||||
c.doSomething();
|
||||
function forthirdthird_part1Rest() {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user