remove noisy comments/documentation

This commit is contained in:
Sebastian McKenzie
2015-09-01 04:56:03 +01:00
parent 582061a9e8
commit 15f73b4fc3
150 changed files with 66 additions and 3376 deletions

View File

@@ -1,9 +1,5 @@
import * as t from "babel-types";
/**
* [Please add a description.]
*/
export default function (node) {
if (!this.isReferenced()) return;
@@ -28,10 +24,6 @@ export default function (node) {
}
}
/**
* [Please add a description.]
*/
function getTypeAnnotationBindingConstantViolations(path, name) {
var binding = path.scope.getBinding(name);
@@ -85,10 +77,6 @@ function getTypeAnnotationBindingConstantViolations(path, name) {
}
}
/**
* [Please add a description.]
*/
function getConstantViolationsBefore(binding, path, functions) {
var violations = binding.constantViolations.slice();
violations.unshift(binding.path);
@@ -100,10 +88,6 @@ function getConstantViolationsBefore(binding, path, functions) {
});
}
/**
* [Please add a description.]
*/
function inferAnnotationFromBinaryExpression(name, path) {
var operator = path.node.operator;
@@ -155,10 +139,6 @@ function inferAnnotationFromBinaryExpression(name, path) {
return t.createTypeAnnotationBasedOnTypeof(typePath.node.value);
}
/**
* [Please add a description.]
*/
function getParentConditionalPath(path) {
var parentPath;
while (parentPath = path.parentPath) {
@@ -174,10 +154,6 @@ function getParentConditionalPath(path) {
}
}
/**
* [Please add a description.]
*/
function getConditionalAnnotation(path, name) {
var ifStatement = getParentConditionalPath(path);
if (!ifStatement) return;