Lines Matching full:ts
16 import ts from 'typescript';
28 let path = '/user/local/tester.d.ts';
30 const ast = ts.createSourceFile(path, content, ts.ScriptTarget.ES2015, true);
46 let path = '/user/local/tester.d.ts';
48 const ast = ts.createSourceFile(path, content, ts.ScriptTarget.ES2015, true);
64 let path = '/user/local/tester.ts';
66 const ast = ts.createSourceFile(path, content, ts.ScriptTarget.ES2015, true);
86 path = '/user/local/tester.d.ts';
100 const ast = ts.createSourceFile(path, content, ts.ScriptTarget.ES2015, true);
101 let node: ts.Identifier = undefined;
102 …let mangledSymbolNames: Map<ts.Symbol, MangledSymbolInfo> = new Map<ts.Symbol, MangledSymbolInfo>(…
103 const checker: ts.TypeChecker = TypeUtils.createChecker(ast);
110 const ast = ts.createSourceFile(path, content, ts.ScriptTarget.ES2015, true);
111 let node = (ast.statements[0] as ts.VariableStatement).declarationList.declarations[0].name;
112 …let mangledSymbolNames: Map<ts.Symbol, MangledSymbolInfo> = new Map<ts.Symbol, MangledSymbolInfo>(…
113 const checker: ts.TypeChecker = TypeUtils.createChecker(ast);
114 // @ts-ignore
121 const ast = ts.createSourceFile(path, content, ts.ScriptTarget.ES2015, true);
122 const customNode = ts.createParameter(undefined, undefined, 'a');
123 …let mangledSymbolNames: Map<ts.Symbol, MangledSymbolInfo> = new Map<ts.Symbol, MangledSymbolInfo>(…
124 const checker: ts.TypeChecker = TypeUtils.createChecker(ast);
131 const ast = ts.createSourceFile(path, content, ts.ScriptTarget.ES2015, true);
132 let node = (ast.statements[0] as ts.FunctionDeclaration).parameters[0];
133 …let mangledSymbolNames: Map<ts.Symbol, MangledSymbolInfo> = new Map<ts.Symbol, MangledSymbolInfo>(…
134 const checker: ts.TypeChecker = TypeUtils.createChecker(ast);
141 const ast = ts.createSourceFile(path, content, ts.ScriptTarget.ES2015, true);
142 …let node = (ast.statements[0] as ts.FunctionDeclaration).typeParameters[0] as ts.TypeParameterDecl…
143 const checker: ts.TypeChecker = TypeUtils.createChecker(ast);
144 …let mangledSymbolNames: Map<ts.Symbol, MangledSymbolInfo> = new Map<ts.Symbol, MangledSymbolInfo>(…
151 const ast = ts.createSourceFile(path, content, ts.ScriptTarget.ES2015, true);
152 let node: ts.ParameterDeclaration = (ast.statements[0] as ts.FunctionDeclaration).parameters[0];
153 const checker: ts.TypeChecker = TypeUtils.createChecker(ast);
154 const parentNode: ts.FunctionDeclaration = node.parent as ts.FunctionDeclaration;
156 const functionName: ts.Identifier = parentNode.name as ts.Identifier;
158 …const sym: ts.Symbol = NodeUtils.findSymbolOfIdentifier(checker, functionName, nodeSymbolMap) as t…
159 …let mangledSymbolNames: Map<ts.Symbol, MangledSymbolInfo> = new Map<ts.Symbol, MangledSymbolInfo>(…
167 const ast = ts.createSourceFile(path, content, ts.ScriptTarget.ES2015, true);
168 let node: ts.ParameterDeclaration = (ast.statements[0] as ts.FunctionDeclaration).parameters[0];
169 const checker: ts.TypeChecker = TypeUtils.createChecker(ast);
170 const parentNode: ts.FunctionDeclaration = node.parent as ts.FunctionDeclaration;
172 const functionName: ts.Identifier = parentNode.name as ts.Identifier;
174 …const sym: ts.Symbol = NodeUtils.findSymbolOfIdentifier(checker, functionName, nodeSymbolMap) as t…
175 …let mangledSymbolNames: Map<ts.Symbol, MangledSymbolInfo> = new Map<ts.Symbol, MangledSymbolInfo>(…
183 const ast = ts.createSourceFile(path, content, ts.ScriptTarget.ES2015, true);
184 let node: ts.ParameterDeclaration = (ast.statements[0] as ts.FunctionDeclaration).parameters[0];
185 const checker: ts.TypeChecker = TypeUtils.createChecker(ast);
186 const parentNode: ts.FunctionDeclaration = node.parent as ts.FunctionDeclaration;
188 const functionName: ts.Identifier = parentNode.name as ts.Identifier;
190 …const sym: ts.Symbol = NodeUtils.findSymbolOfIdentifier(checker, functionName, nodeSymbolMap) as t…
191 …let mangledSymbolNames: Map<ts.Symbol, MangledSymbolInfo> = new Map<ts.Symbol, MangledSymbolInfo>(…
202 const ast = ts.createSourceFile(path, content, ts.ScriptTarget.ES2015, true);
203 …let method: ts.MethodDeclaration = (ast.statements[0] as ts.ClassDeclaration).members[1] as ts.Met…
204 let node: ts.ParameterDeclaration = method.parameters[0];
205 const checker: ts.TypeChecker = TypeUtils.createChecker(ast);
206 const methodName: ts.Identifier = method.name as ts.Identifier;
208 …let mangledSymbolNames: Map<ts.Symbol, MangledSymbolInfo> = new Map<ts.Symbol, MangledSymbolInfo>(…
218 const ast = ts.createSourceFile(path, content, ts.ScriptTarget.ES2015, true);
219 …let method: ts.MethodDeclaration = (ast.statements[0] as ts.ClassDeclaration).members[1] as ts.Met…
220 let node: ts.ParameterDeclaration = method.parameters[0];
221 const checker: ts.TypeChecker = TypeUtils.createChecker(ast);
222 const methodName: ts.Identifier = method.name as ts.Identifier;
225 // @ts-ignore
227 …let mangledSymbolNames: Map<ts.Symbol, MangledSymbolInfo> = new Map<ts.Symbol, MangledSymbolInfo>(…
237 const ast = ts.createSourceFile(path, content, ts.ScriptTarget.ES2015, true);
238 …let method: ts.MethodDeclaration = (ast.statements[0] as ts.ClassDeclaration).members[1] as ts.Met…
239 let node: ts.ParameterDeclaration = method.parameters[0];
240 const checker: ts.TypeChecker = TypeUtils.createChecker(ast);
241 const methodName: ts.Identifier = method.name as ts.Identifier;
243 …let mangledSymbolNames: Map<ts.Symbol, MangledSymbolInfo> = new Map<ts.Symbol, MangledSymbolInfo>(…
246 // @ts-ignore
257 const ast = ts.createSourceFile(path, content, ts.ScriptTarget.ES2015, true);
258 …let construcotr: ts.ConstructorDeclaration = (ast.statements[0] as ts.ClassDeclaration).members[0]…
259 let node: ts.ParameterDeclaration = construcotr.parameters[0];
261 const checker: ts.TypeChecker = TypeUtils.createChecker(ast);
262 const className: ts.Identifier = construcotr.parent.name as ts.Identifier;
264 …const sym: ts.Symbol = NodeUtils.findSymbolOfIdentifier(checker, className, nodeSymbolMap) as ts.S…
265 …let mangledSymbolNames: Map<ts.Symbol, MangledSymbolInfo> = new Map<ts.Symbol, MangledSymbolInfo>(…
276 const ast = ts.createSourceFile(path, content, ts.ScriptTarget.ES2015, true);
277 …let construcotr: ts.ConstructorDeclaration = (ast.statements[0] as ts.ClassDeclaration).members[0]…
278 const className: ts.Identifier = construcotr.parent.name as ts.Identifier;
280 let node: ts.ParameterDeclaration = construcotr.parameters[0];
281 const checker: ts.TypeChecker = TypeUtils.createChecker(ast);
282 …const sym: ts.Symbol = NodeUtils.findSymbolOfIdentifier(checker, className, nodeSymbolMap) as ts.S…
283 …let mangledSymbolNames: Map<ts.Symbol, MangledSymbolInfo> = new Map<ts.Symbol, MangledSymbolInfo>(…
291 const ast = ts.createSourceFile(path, content, ts.ScriptTarget.ES2015, true);
292 const customIdentifier = ts.createIdentifier('a1');
293 const customParaNode = ts.createParameter(undefined, undefined, customIdentifier);
294 // @ts-ignore
296 …const customMethodSig = ts.createMethodSignature(undefined, [customParaNode], undefined, '', undef…
297 // @ts-ignore
299 …let mangledSymbolNames: Map<ts.Symbol, MangledSymbolInfo> = new Map<ts.Symbol, MangledSymbolInfo>(…
300 const checker: ts.TypeChecker = TypeUtils.createChecker(ast);
310 const ast = ts.createSourceFile(path, content, ts.ScriptTarget.ES2015, true);
311 …let method: ts.MethodDeclaration = (ast.statements[0] as ts.ClassDeclaration).members[1] as ts.Met…
312 let node: ts.ParameterDeclaration = method.parameters[0];
313 const checker: ts.TypeChecker = TypeUtils.createChecker(ast);
314 const methodName: ts.Identifier = method.name as ts.Identifier;
316 …let mangledSymbolNames: Map<ts.Symbol, MangledSymbolInfo> = new Map<ts.Symbol, MangledSymbolInfo>(…
319 // @ts-ignore
330 const ast = ts.createSourceFile(path, content, ts.ScriptTarget.ES2015, false);
331 …let method: ts.MethodDeclaration = (ast.statements[0] as ts.ClassDeclaration).members[1] as ts.Met…
332 let node: ts.ParameterDeclaration = method.parameters[0];
333 const checker: ts.TypeChecker = TypeUtils.createChecker(ast);
334 const methodName: ts.Identifier = method.name as ts.Identifier;
336 …let mangledSymbolNames: Map<ts.Symbol, MangledSymbolInfo> = new Map<ts.Symbol, MangledSymbolInfo>(…
339 // @ts-ignore