This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| payload { | |
| "bundleString": "__fuse.bundle(/* heres it the update code with sourcemaps */)", | |
| "modules": [ | |
| 1 | |
| ], | |
| "tree": { | |
| "1": { | |
| "deps": [ | |
| 2, | |
| 7, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function() { | |
| var f = (window.__fuse = window.__fuse || {}); | |
| var modules = (f.modules = f.modules || {}); | |
| f.dt = function(x) { | |
| return x !== undefined && x.default !== undefined ? x.default : x; | |
| }; | |
| f.bundle = function(collection, fn) { | |
| for (var num in collection) { | |
| modules[num] = collection[num]; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as path from 'path'; | |
| import { CustomTransformers } from 'typescript'; | |
| import { ITransformer } from '../compiler/interfaces/ITransformer'; | |
| import { createCompilerOptions } from '../compilerOptions/compilerOptions'; | |
| import { ICompilerOptions } from '../compilerOptions/interfaces'; | |
| import { EnvironmentType } from '../config/EnvironmentType'; | |
| import { IConfig, IPublicConfig } from '../config/IPublicConfig'; | |
| import { IRunProps } from '../config/IRunProps'; | |
| import { createConfig } from '../config/config'; | |
| import { IDevServerActions } from '../devServer/devServer'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as path from 'path'; | |
| import * as buntis from 'buntis'; | |
| import * as fs from 'fs'; | |
| var walkSync = function(dir, filelist) { | |
| var fs = fs || require('fs'), | |
| files = fs.readdirSync(dir); | |
| filelist = filelist || []; | |
| files.forEach(function(file) { | |
| if (!/node_modules/.test(file)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "type": "Program", | |
| "sourceType": "module", | |
| "body": [ | |
| { | |
| "type": "ExpressionStatement", | |
| "expression": { | |
| "propertyAccessName" : "one", | |
| "type": "MemberExpression", | |
| "object": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function calcExpression(left, operator, right) { | |
| let result; | |
| switch (operator) { | |
| case '+': | |
| result = +new Big(left).plus(right); | |
| break; | |
| case '-': | |
| result = +new Big(left).minus(right); | |
| break; | |
| case '*': |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const CharsTokenEnd = [-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0xa,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0x20,-1,-1,-1,-1,-1,-1,-1,0x28,0x29,-1,-1,0x2c,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0x3a,0x3b,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0x7b,-1,0x7d,-1] | |
| const CharsTokenStart = [-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0x23,0x24,-1,-1,-1,-1,-1,-1,-1,-1,0x2d,0x2e,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,0x3a,-1,-1,-1,-1,-1,-1,0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5a,-1,-1,-1,-1,-1,-1,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,-1,-1,-1,-1] | |
| switch(pos){ | |
| case CharsTokenEnd[pos]: | |
| break; | |
| case CharsTokenStart[pos]: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { CharType } from "./chars"; | |
| export const CharCategory = { | |
| TOKEN_START: | |
| CharType.ALPHABET | | |
| CharType.HYPHEN | | |
| CharType.PERIOD | | |
| CharType.COLON | | |
| CharType.NUMBER_SIGN, | |
| TOKEN: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export enum CharType { | |
| Fill = 1, | |
| ALPHABET = 1 << 2, | |
| DIGIT = 1 << 3, | |
| COLON = 1 << 4, // ":" | |
| SEMICOLON = 1 << 5, // ";", | |
| HYPHEN = 1 << 6, // "<" | |
| NUMBER_SIGN = 1 << 7, | |
| END_OF_LINE = 1 << 8, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Context } from "./Context"; | |
| import { CharTypes, CharType } from "./chars"; | |
| import { OneCharToken } from "./OneCharToken"; | |
| import { CharCategory } from "./CharCategory"; | |
| import { TokenType } from "./TokenType"; | |
| export interface ITokenizeProps { | |
| str: string; | |
| locations?: boolean; | |
| onToken?: (token: any) => void; |
NewerOlder