MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / addSource

Method addSource

tools/mcconfig.js:670–679  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

668
669class XcodeFile extends PrerequisiteFile {
670 addSource(path) {
671 let parts = this.tool.splitPath(path);
672 parts.fileReferenceID = this.id++;
673 parts.buildFileID = this.id++;
674 if (parts.extension == ".m")
675 parts.fileType = "sourcecode.c.objc";
676 else
677 parts.fileType = "sourcecode.c.c";
678 this.sources.push(parts);
679 }
680 addResource(path, folder) {
681 let parts = this.tool.splitPath(path);
682 parts.fileReferenceID = this.id++;

Callers 1

generateMethod · 0.95

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected